Adding Tofino demo topology json
Change-Id: I7dad0e535926083aa37241d39084de1b5fc1299a
diff --git a/tools/test/topos/tofino-demo.json b/tools/test/topos/tofino-demo.json
new file mode 100644
index 0000000..d992970
--- /dev/null
+++ b/tools/test/topos/tofino-demo.json
@@ -0,0 +1,253 @@
+{
+ "devices": {
+ "device:tofino:21": {
+ "generalprovider": {
+ "p4runtime": {
+ "ip": "10.254.1.40",
+ "deviceKeyId": "p4runtime:device:tofino:21",
+ "port": 50051,
+ "deviceId": 21
+ }
+ },
+ "piPipeconf": {
+ "piPipeconfId": "pi-demo-ecmp"
+ },
+ "ports": {
+ "1": {
+ "name": "s21-1",
+ "speed": 100000,
+ "enabled": true,
+ "number": 1,
+ "removed": false,
+ "type": "copper"
+ },
+ "2": {
+ "name": "s21-2",
+ "speed": 100000,
+ "enabled": true,
+ "number": 2,
+ "removed": false,
+ "type": "copper"
+ }
+ },
+ "basic": {
+ "name": "Spine 1",
+ "latitude": 41,
+ "driver": "tofino",
+ "longitude": -107
+ }
+ },
+ "device:tofino:22": {
+ "generalprovider": {
+ "p4runtime": {
+ "ip": "10.254.1.39",
+ "deviceKeyId": "p4runtime:device:tofino:22",
+ "port": 50051,
+ "deviceId": 22
+ }
+ },
+ "piPipeconf": {
+ "piPipeconfId": "pi-demo-ecmp"
+ },
+ "ports": {
+ "1": {
+ "name": "s22-1",
+ "speed": 100000,
+ "enabled": true,
+ "number": 1,
+ "removed": false,
+ "type": "copper"
+ },
+ "2": {
+ "name": "s22-2",
+ "speed": 100000,
+ "enabled": true,
+ "number": 2,
+ "removed": false,
+ "type": "copper"
+ }
+ },
+ "basic": {
+ "name": "Spine 2",
+ "latitude": 41,
+ "driver": "tofino",
+ "longitude": -99
+ }
+ },
+ "device:tofino:11": {
+ "generalprovider": {
+ "p4runtime": {
+ "ip": "10.254.1.38",
+ "deviceKeyId": "p4runtime:device:tofino:11",
+ "port": 50051,
+ "deviceId": 11
+ }
+ },
+ "piPipeconf": {
+ "piPipeconfId": "pi-demo-ecmp"
+ },
+ "ports": {
+ "1": {
+ "name": "s11-1",
+ "speed": 100000,
+ "enabled": true,
+ "number": 1,
+ "removed": false,
+ "type": "copper"
+ },
+ "2": {
+ "name": "s11-2",
+ "speed": 100000,
+ "enabled": true,
+ "number": 2,
+ "removed": false,
+ "type": "copper"
+ },
+ "3": {
+ "name": "s11-3",
+ "speed": 40000,
+ "enabled": true,
+ "number": 3,
+ "removed": false,
+ "type": "copper"
+ }
+ },
+ "basic": {
+ "name": "Leaf 1",
+ "latitude": 33,
+ "driver": "tofino",
+ "longitude": -107
+ }
+ },
+ "device:tofino:12": {
+ "generalprovider": {
+ "p4runtime": {
+ "ip": "10.254.1.37",
+ "deviceKeyId": "p4runtime:device:tofino:12",
+ "port": 50051,
+ "deviceId": 12
+ }
+ },
+ "piPipeconf": {
+ "piPipeconfId": "pi-demo-ecmp"
+ },
+ "ports": {
+ "1": {
+ "name": "s12-1",
+ "speed": 100000,
+ "enabled": true,
+ "number": 1,
+ "removed": false,
+ "type": "copper"
+ },
+ "2": {
+ "name": "s12-2",
+ "speed": 100000,
+ "enabled": true,
+ "number": 2,
+ "removed": false,
+ "type": "copper"
+ },
+ "3": {
+ "name": "s12-3",
+ "speed": 40000,
+ "enabled": true,
+ "number": 3,
+ "removed": false,
+ "type": "copper"
+ }
+ },
+ "basic": {
+ "name": "Leaf 2",
+ "latitude": 33,
+ "driver": "tofino",
+ "longitude": -99
+ }
+ }
+ },
+ "links": {
+ "device:tofino:11/1-device:tofino:21/1": {
+ "basic": {
+ "bandwidth": 100000,
+ "type": "DIRECT"
+ }
+ },
+ "device:tofino:11/2-device:tofino:22/1": {
+ "basic": {
+ "bandwidth": 100000,
+ "type": "DIRECT"
+ }
+ },
+ "device:tofino:12/1-device:tofino:21/2": {
+ "basic": {
+ "bandwidth": 100000,
+ "type": "DIRECT"
+ }
+ },
+ "device:tofino:12/2-device:tofino:22/2": {
+ "basic": {
+ "bandwidth": 100000,
+ "type": "DIRECT"
+ }
+ },
+ "device:tofino:21/1-device:tofino:11/1": {
+ "basic": {
+ "bandwidth": 100000,
+ "type": "DIRECT"
+ }
+ },
+ "device:tofino:22/1-device:tofino:11/2": {
+ "basic": {
+ "bandwidth": 100000,
+ "type": "DIRECT"
+ }
+ },
+ "device:tofino:21/2-device:tofino:12/1": {
+ "basic": {
+ "bandwidth": 100000,
+ "type": "DIRECT"
+ }
+ },
+ "device:tofino:22/2-device:tofino:12/2": {
+ "basic": {
+ "bandwidth": 100000,
+ "type": "DIRECT"
+ }
+ }
+ },
+ "hosts": {
+ "3c:fd:fe:a6:e7:08/-1": {
+ "basic": {
+ "latitude": 28,
+ "ips": [
+ "10.0.0.1"
+ ],
+ "locations": [
+ "device:tofino:21/3"
+ ],
+ "longitude": -107,
+ "name": "h1"
+ }
+ },
+ "3c:fd:fe:a6:e7:09/-1": {
+ "basic": {
+ "latitude": 28,
+ "ips": [
+ "10.0.0.2"
+ ],
+ "locations": [
+ "device:tofino:22/3"
+ ],
+ "longitude": -99,
+ "name": "h2"
+ }
+ }
+ },
+ "apps": {
+ "org.onosproject.core": {
+ "core": {
+ "linkDiscoveryMode": "STRICT"
+ }
+ }
+ }
+}