Json formatiing
- To reduce file churn when running tests, sort and format json files
- Add xconnect json files I forgot to add to last patch
Change-Id: I66dd757a871a50e99c78b298c5106038e9ca5eff
(cherry picked from commit 312199d2e17692f129267c3c59ba03f2cd1bef44)
diff --git a/TestON/tests/USECASE/SegmentRouting/dependencies/json/0x1-xconnects.json b/TestON/tests/USECASE/SegmentRouting/dependencies/json/0x1-xconnects.json
new file mode 100644
index 0000000..09e63c4
--- /dev/null
+++ b/TestON/tests/USECASE/SegmentRouting/dependencies/json/0x1-xconnects.json
@@ -0,0 +1,28 @@
+{
+ "xconnects":[
+ {
+ "deviceId":"of:0000000000000001",
+ "endpoints":[
+ "5",
+ "8"
+ ],
+ "vlanId":10
+ },
+ {
+ "deviceId":"of:0000000000000001",
+ "endpoints":[
+ "5",
+ "7"
+ ],
+ "vlanId":5
+ },
+ {
+ "deviceId":"of:0000000000000001",
+ "endpoints":[
+ "5",
+ "6"
+ ],
+ "vlanId":1
+ }
+ ]
+}
\ No newline at end of file
diff --git a/TestON/tests/USECASE/SegmentRouting/dependencies/json/0x1.json b/TestON/tests/USECASE/SegmentRouting/dependencies/json/0x1.json
index 2b78717..65a03b8 100755
--- a/TestON/tests/USECASE/SegmentRouting/dependencies/json/0x1.json
+++ b/TestON/tests/USECASE/SegmentRouting/dependencies/json/0x1.json
@@ -1,63 +1,81 @@
{
- "ports" : {
- "of:0000000000000001/1" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.1.254/24" ],
- "vlan-untagged" : 100
- }
- ]
- },
- "of:0000000000000001/2" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.1.254/24" ],
- "vlan-untagged" : 100
- }
- ]
- },
- "of:0000000000000001/3" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.1.254/24" ],
- "vlan-untagged" : 100
- }
- ]
- },
- "of:0000000000000001/4" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.1.254/24" ],
- "vlan-untagged" : 100
- }
- ]
- }
- },
- "devices" : {
- "of:0000000000000001" : {
- "basic":{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Leaf-R1",
- "ipv4NodeSid" : 101,
- "ipv4Loopback" : "192.168.0.1",
- "routerMac" : "10:00:00:00:00:01",
- "isEdgeRouter" : true,
- "adjacencySids" : []
+ "devices":{
+ "of:0000000000000001":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.1",
+ "ipv4NodeSid":101,
+ "isEdgeRouter":true,
+ "name":"Leaf-R1",
+ "routerMac":"10:00:00:00:00:01"
}
}
},
- "hosts" : {
- "00:00:00:00:00:01/-1" : {
- "basic": {
- "ips": ["10.0.1.1"],
- "locations": ["of:0000000000000001/1"]
+ "hosts":{
+ "00:00:00:00:00:01/-1":{
+ "basic":{
+ "ips":[
+ "10.0.1.1"
+ ],
+ "locations":[
+ "of:0000000000000001/1"
+ ]
}
},
- "00:00:00:00:00:02/-1" : {
- "basic": {
- "ips": ["10.0.1.2"],
- "locations": ["of:0000000000000001/2"]
+ "00:00:00:00:00:02/-1":{
+ "basic":{
+ "ips":[
+ "10.0.1.2"
+ ],
+ "locations":[
+ "of:0000000000000001/2"
+ ]
}
}
+ },
+ "ports":{
+ "of:0000000000000001/1":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.1.254/24"
+ ],
+ "vlan-untagged":100
+ }
+ ]
+ },
+ "of:0000000000000001/2":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.1.254/24"
+ ],
+ "vlan-untagged":100
+ }
+ ]
+ },
+ "of:0000000000000001/3":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.1.254/24"
+ ],
+ "vlan-untagged":100
+ }
+ ]
+ },
+ "of:0000000000000001/4":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.1.254/24"
+ ],
+ "vlan-untagged":100
+ }
+ ]
+ }
}
-}
+}
\ No newline at end of file
diff --git a/TestON/tests/USECASE/SegmentRouting/dependencies/json/2x2-xconnects.json b/TestON/tests/USECASE/SegmentRouting/dependencies/json/2x2-xconnects.json
new file mode 100644
index 0000000..09e63c4
--- /dev/null
+++ b/TestON/tests/USECASE/SegmentRouting/dependencies/json/2x2-xconnects.json
@@ -0,0 +1,28 @@
+{
+ "xconnects":[
+ {
+ "deviceId":"of:0000000000000001",
+ "endpoints":[
+ "5",
+ "8"
+ ],
+ "vlanId":10
+ },
+ {
+ "deviceId":"of:0000000000000001",
+ "endpoints":[
+ "5",
+ "7"
+ ],
+ "vlanId":5
+ },
+ {
+ "deviceId":"of:0000000000000001",
+ "endpoints":[
+ "5",
+ "6"
+ ],
+ "vlanId":1
+ }
+ ]
+}
\ No newline at end of file
diff --git a/TestON/tests/USECASE/SegmentRouting/dependencies/json/2x2.json b/TestON/tests/USECASE/SegmentRouting/dependencies/json/2x2.json
index 7c9b5db..4b2ca04 100755
--- a/TestON/tests/USECASE/SegmentRouting/dependencies/json/2x2.json
+++ b/TestON/tests/USECASE/SegmentRouting/dependencies/json/2x2.json
@@ -1,124 +1,160 @@
{
- "ports" : {
- "of:0000000000000001/1" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.1.254/24" ],
- "vlan-untagged" : 100
- }
- ]
- },
- "of:0000000000000001/2" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.1.254/24" ],
- "vlan-untagged" : 100
- }
- ]
- },
- "of:0000000000000001/3" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.1.254/24" ],
- "vlan-untagged" : 100
- }
- ]
- },
- "of:0000000000000001/4" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.1.254/24" ],
- "vlan-untagged" : 100
- }
- ]
- },
- "of:0000000000000002/1" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.2.254/24" ],
- "vlan-untagged" : 200
- }
- ]
- },
- "of:0000000000000002/2" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.2.254/24" ],
- "vlan-untagged" : 200
- }
- ]
- }
- },
- "devices" : {
- "of:0000000000000001" : {
- "basic":{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Leaf-R1",
- "ipv4NodeSid" : 201,
- "ipv4Loopback" : "192.168.0.1",
- "routerMac" : "10:00:00:00:00:01",
- "isEdgeRouter" : true,
- "adjacencySids" : []
+ "devices":{
+ "of:0000000000000001":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.1",
+ "ipv4NodeSid":201,
+ "isEdgeRouter":true,
+ "name":"Leaf-R1",
+ "routerMac":"10:00:00:00:00:01"
}
},
- "of:0000000000000002" : {
- "basic":{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Leaf-R2",
- "ipv4NodeSid" : 202,
- "ipv4Loopback" : "192.168.0.2",
- "routerMac" : "10:00:00:00:00:02",
- "isEdgeRouter" : true,
- "adjacencySids" : []
+ "of:0000000000000002":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.2",
+ "ipv4NodeSid":202,
+ "isEdgeRouter":true,
+ "name":"Leaf-R2",
+ "routerMac":"10:00:00:00:00:02"
}
},
- "of:0000000000000101" : {
- "basic":{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Spine-R1",
- "ipv4NodeSid" : 101,
- "ipv4Loopback" : "192.168.0.101",
- "routerMac" : "10:00:00:00:01:01",
- "isEdgeRouter" : false,
- "adjacencySids" : []
+ "of:0000000000000101":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.101",
+ "ipv4NodeSid":101,
+ "isEdgeRouter":false,
+ "name":"Spine-R1",
+ "routerMac":"10:00:00:00:01:01"
}
},
- "of:0000000000000102" : {
- "basic":{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Spine-R2",
- "ipv4NodeSid" : 102,
- "ipv4Loopback" : "192.168.0.102",
- "routerMac" : "10:00:00:00:01:02",
- "isEdgeRouter" : false,
- "adjacencySids" : []
+ "of:0000000000000102":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.102",
+ "ipv4NodeSid":102,
+ "isEdgeRouter":false,
+ "name":"Spine-R2",
+ "routerMac":"10:00:00:00:01:02"
}
}
},
- "hosts" : {
- "00:00:00:00:00:01/-1" : {
- "basic": {
- "ips": ["10.0.1.1"],
- "locations": ["of:0000000000000001/1"]
+ "hosts":{
+ "00:00:00:00:00:01/-1":{
+ "basic":{
+ "ips":[
+ "10.0.1.1"
+ ],
+ "locations":[
+ "of:0000000000000001/1"
+ ]
}
},
- "00:00:00:00:00:02/-1" : {
- "basic": {
- "ips": ["10.0.1.2"],
- "locations": ["of:0000000000000001/2"]
+ "00:00:00:00:00:02/-1":{
+ "basic":{
+ "ips":[
+ "10.0.1.2"
+ ],
+ "locations":[
+ "of:0000000000000001/2"
+ ]
}
},
- "00:00:00:00:00:03/-1" : {
- "basic": {
- "ips": ["10.0.2.1"],
- "locations": ["of:0000000000000002/1"]
+ "00:00:00:00:00:03/-1":{
+ "basic":{
+ "ips":[
+ "10.0.2.1"
+ ],
+ "locations":[
+ "of:0000000000000002/1"
+ ]
}
},
- "00:00:00:00:00:04/-1" : {
- "basic": {
- "ips": ["10.0.2.2"],
- "locations": ["of:0000000000000002/2"]
+ "00:00:00:00:00:04/-1":{
+ "basic":{
+ "ips":[
+ "10.0.2.2"
+ ],
+ "locations":[
+ "of:0000000000000002/2"
+ ]
}
}
+ },
+ "ports":{
+ "of:0000000000000001/1":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.1.254/24"
+ ],
+ "vlan-untagged":100
+ }
+ ]
+ },
+ "of:0000000000000001/2":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.1.254/24"
+ ],
+ "vlan-untagged":100
+ }
+ ]
+ },
+ "of:0000000000000001/3":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.1.254/24"
+ ],
+ "vlan-untagged":100
+ }
+ ]
+ },
+ "of:0000000000000001/4":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.1.254/24"
+ ],
+ "vlan-untagged":100
+ }
+ ]
+ },
+ "of:0000000000000002/1":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.2.254/24"
+ ],
+ "vlan-untagged":200
+ }
+ ]
+ },
+ "of:0000000000000002/2":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.2.254/24"
+ ],
+ "vlan-untagged":200
+ }
+ ]
+ }
}
-}
+}
\ No newline at end of file
diff --git a/TestON/tests/USECASE/SegmentRouting/dependencies/json/4x4-xconnects.json b/TestON/tests/USECASE/SegmentRouting/dependencies/json/4x4-xconnects.json
new file mode 100644
index 0000000..09e63c4
--- /dev/null
+++ b/TestON/tests/USECASE/SegmentRouting/dependencies/json/4x4-xconnects.json
@@ -0,0 +1,28 @@
+{
+ "xconnects":[
+ {
+ "deviceId":"of:0000000000000001",
+ "endpoints":[
+ "5",
+ "8"
+ ],
+ "vlanId":10
+ },
+ {
+ "deviceId":"of:0000000000000001",
+ "endpoints":[
+ "5",
+ "7"
+ ],
+ "vlanId":5
+ },
+ {
+ "deviceId":"of:0000000000000001",
+ "endpoints":[
+ "5",
+ "6"
+ ],
+ "vlanId":1
+ }
+ ]
+}
\ No newline at end of file
diff --git a/TestON/tests/USECASE/SegmentRouting/dependencies/json/4x4.json b/TestON/tests/USECASE/SegmentRouting/dependencies/json/4x4.json
index e3c24e6..8ca4097 100755
--- a/TestON/tests/USECASE/SegmentRouting/dependencies/json/4x4.json
+++ b/TestON/tests/USECASE/SegmentRouting/dependencies/json/4x4.json
@@ -1,224 +1,292 @@
{
- "ports" : {
- "of:0000000000000001/1" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.1.254/24" ],
- "vlan-untagged" : 100
- }
- ]
- },
- "of:0000000000000001/2" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.1.254/24" ],
- "vlan-untagged" : 100
- }
- ]
- },
- "of:0000000000000001/3" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.1.254/24" ],
- "vlan-untagged" : 100
- }
- ]
- },
- "of:0000000000000001/4" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.1.254/24" ],
- "vlan-untagged" : 100
- }
- ]
- },
- "of:0000000000000002/1" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.2.254/24" ],
- "vlan-untagged" : 200
- }
- ]
- },
- "of:0000000000000002/2" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.2.254/24" ],
- "vlan-untagged" : 200
- }
- ]
- },
- "of:0000000000000003/1" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.3.254/24" ],
- "vlan-untagged" : 300
- }
- ]
- },
- "of:0000000000000003/2" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.3.254/24" ],
- "vlan-untagged" : 300
- }
- ]
- },
- "of:0000000000000004/1" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.4.254/24" ],
- "vlan-untagged" : 400
- }
- ]
- },
- "of:0000000000000004/2" : {
- "interfaces" : [
- {
- "ips" : [ "10.0.4.254/24"],
- "vlan-untagged" : 400
- }
- ]
- }
- },
- "devices" : {
- "of:0000000000000001" : {
- "basic":{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Leaf-R1",
- "ipv4NodeSid" : 201,
- "ipv4Loopback" : "192.168.0.1",
- "routerMac" : "10:00:00:00:00:01",
- "isEdgeRouter" : true,
- "adjacencySids" : []
+ "devices":{
+ "of:0000000000000001":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.1",
+ "ipv4NodeSid":201,
+ "isEdgeRouter":true,
+ "name":"Leaf-R1",
+ "routerMac":"10:00:00:00:00:01"
}
},
- "of:0000000000000002" : {
- "basic":{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Leaf-R2",
- "ipv4NodeSid" : 202,
- "ipv4Loopback" : "192.168.0.2",
- "routerMac" : "10:00:00:00:00:02",
- "isEdgeRouter" : true,
- "adjacencySids" : []
+ "of:0000000000000002":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.2",
+ "ipv4NodeSid":202,
+ "isEdgeRouter":true,
+ "name":"Leaf-R2",
+ "routerMac":"10:00:00:00:00:02"
}
},
- "of:0000000000000003" : {
- "basic" :{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Leaf-R3",
- "ipv4NodeSid" : 203,
- "ipv4Loopback" : "192.168.0.3",
- "routerMac" : "10:00:00:00:00:03",
- "isEdgeRouter" : true,
- "adjacencySids" : []
+ "of:0000000000000003":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.3",
+ "ipv4NodeSid":203,
+ "isEdgeRouter":true,
+ "name":"Leaf-R3",
+ "routerMac":"10:00:00:00:00:03"
}
},
- "of:0000000000000004" : {
- "basic":{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Leaf-R4",
- "ipv4NodeSid" : 204,
- "ipv4Loopback" : "192.168.0.4",
- "routerMac" : "10:00:00:00:00:04",
- "isEdgeRouter" : true,
- "adjacencySids" : []
+ "of:0000000000000004":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.4",
+ "ipv4NodeSid":204,
+ "isEdgeRouter":true,
+ "name":"Leaf-R4",
+ "routerMac":"10:00:00:00:00:04"
}
},
- "of:0000000000000101" : {
- "basic":{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Spine-R1",
- "ipv4NodeSid" : 101,
- "ipv4Loopback" : "192.168.0.101",
- "routerMac" : "10:00:00:00:01:01",
- "isEdgeRouter" : false,
- "adjacencySids" : []
+ "of:0000000000000101":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.101",
+ "ipv4NodeSid":101,
+ "isEdgeRouter":false,
+ "name":"Spine-R1",
+ "routerMac":"10:00:00:00:01:01"
}
},
- "of:0000000000000102" : {
- "basic":{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Spine-R2",
- "ipv4NodeSid" : 102,
- "ipv4Loopback" : "192.168.0.102",
- "routerMac" : "10:00:00:00:01:02",
- "isEdgeRouter" : false,
- "adjacencySids" : []
+ "of:0000000000000102":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.102",
+ "ipv4NodeSid":102,
+ "isEdgeRouter":false,
+ "name":"Spine-R2",
+ "routerMac":"10:00:00:00:01:02"
}
},
- "of:0000000000000103" : {
- "basic":{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Spine-R3",
- "ipv4NodeSid" : 103,
- "ipv4Loopback" : "192.168.0.103",
- "routerMac" : "10:00:00:00:01:03",
- "isEdgeRouter" : false,
- "adjacencySids" : []
+ "of:0000000000000103":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.103",
+ "ipv4NodeSid":103,
+ "isEdgeRouter":false,
+ "name":"Spine-R3",
+ "routerMac":"10:00:00:00:01:03"
}
},
- "of:0000000000000104" : {
- "basic":{ "driver" : "ofdpa-ovs" },
- "segmentrouting" : {
- "name" : "Spine-R4",
- "ipv4NodeSid" : 104,
- "ipv4Loopback" : "192.168.0.104",
- "routerMac" : "10:00:00:00:01:04",
- "isEdgeRouter" : false,
- "adjacencySids" : []
+ "of:0000000000000104":{
+ "basic":{
+ "driver":"ofdpa-ovs"
+ },
+ "segmentrouting":{
+ "adjacencySids":[],
+ "ipv4Loopback":"192.168.0.104",
+ "ipv4NodeSid":104,
+ "isEdgeRouter":false,
+ "name":"Spine-R4",
+ "routerMac":"10:00:00:00:01:04"
}
}
},
- "hosts" : {
- "00:00:00:00:00:01/-1" : {
- "basic": {
- "ips": ["10.0.1.1"],
- "locations": ["of:0000000000000001/1"]
+ "hosts":{
+ "00:00:00:00:00:01/-1":{
+ "basic":{
+ "ips":[
+ "10.0.1.1"
+ ],
+ "locations":[
+ "of:0000000000000001/1"
+ ]
}
},
- "00:00:00:00:00:02/-1" : {
- "basic": {
- "ips": ["10.0.1.2"],
- "locations": ["of:0000000000000001/2"]
+ "00:00:00:00:00:02/-1":{
+ "basic":{
+ "ips":[
+ "10.0.1.2"
+ ],
+ "locations":[
+ "of:0000000000000001/2"
+ ]
}
},
- "00:00:00:00:00:03/-1" : {
- "basic": {
- "ips": ["10.0.2.1"],
- "locations": ["of:0000000000000002/1"]
+ "00:00:00:00:00:03/-1":{
+ "basic":{
+ "ips":[
+ "10.0.2.1"
+ ],
+ "locations":[
+ "of:0000000000000002/1"
+ ]
}
},
- "00:00:00:00:00:04/-1" : {
- "basic": {
- "ips": ["10.0.2.2"],
- "locations": ["of:0000000000000002/2"]
+ "00:00:00:00:00:04/-1":{
+ "basic":{
+ "ips":[
+ "10.0.2.2"
+ ],
+ "locations":[
+ "of:0000000000000002/2"
+ ]
}
},
- "00:00:00:00:00:05/-1" : {
- "basic": {
- "ips": ["10.0.3.1"],
- "locations": ["of:0000000000000003/1"]
+ "00:00:00:00:00:05/-1":{
+ "basic":{
+ "ips":[
+ "10.0.3.1"
+ ],
+ "locations":[
+ "of:0000000000000003/1"
+ ]
}
},
- "00:00:00:00:00:06/-1" : {
- "basic": {
- "ips": ["10.0.3.2"],
- "locations": ["of:0000000000000003/2"]
+ "00:00:00:00:00:06/-1":{
+ "basic":{
+ "ips":[
+ "10.0.3.2"
+ ],
+ "locations":[
+ "of:0000000000000003/2"
+ ]
}
},
- "00:00:00:00:00:07/-1" : {
- "basic": {
- "ips": ["10.0.4.1"],
- "locations": ["of:0000000000000004/1"]
+ "00:00:00:00:00:07/-1":{
+ "basic":{
+ "ips":[
+ "10.0.4.1"
+ ],
+ "locations":[
+ "of:0000000000000004/1"
+ ]
}
},
- "00:00:00:00:00:08/-1" : {
- "basic": {
- "ips": ["10.0.4.2"],
- "locations": ["of:0000000000000004/2"]
+ "00:00:00:00:00:08/-1":{
+ "basic":{
+ "ips":[
+ "10.0.4.2"
+ ],
+ "locations":[
+ "of:0000000000000004/2"
+ ]
}
}
+ },
+ "ports":{
+ "of:0000000000000001/1":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.1.254/24"
+ ],
+ "vlan-untagged":100
+ }
+ ]
+ },
+ "of:0000000000000001/2":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.1.254/24"
+ ],
+ "vlan-untagged":100
+ }
+ ]
+ },
+ "of:0000000000000001/3":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.1.254/24"
+ ],
+ "vlan-untagged":100
+ }
+ ]
+ },
+ "of:0000000000000001/4":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.1.254/24"
+ ],
+ "vlan-untagged":100
+ }
+ ]
+ },
+ "of:0000000000000002/1":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.2.254/24"
+ ],
+ "vlan-untagged":200
+ }
+ ]
+ },
+ "of:0000000000000002/2":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.2.254/24"
+ ],
+ "vlan-untagged":200
+ }
+ ]
+ },
+ "of:0000000000000003/1":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.3.254/24"
+ ],
+ "vlan-untagged":300
+ }
+ ]
+ },
+ "of:0000000000000003/2":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.3.254/24"
+ ],
+ "vlan-untagged":300
+ }
+ ]
+ },
+ "of:0000000000000004/1":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.4.254/24"
+ ],
+ "vlan-untagged":400
+ }
+ ]
+ },
+ "of:0000000000000004/2":{
+ "interfaces":[
+ {
+ "ips":[
+ "10.0.4.254/24"
+ ],
+ "vlan-untagged":400
+ }
+ ]
+ }
}
-}
+}
\ No newline at end of file
diff --git a/TestON/tests/USECASE/SegmentRouting/dependencies/json/extra.json b/TestON/tests/USECASE/SegmentRouting/dependencies/json/extra.json
index e3544bf..1b9bc89 100755
--- a/TestON/tests/USECASE/SegmentRouting/dependencies/json/extra.json
+++ b/TestON/tests/USECASE/SegmentRouting/dependencies/json/extra.json
@@ -1,16 +1,24 @@
{
- "hosts" : {
- "00:00:00:00:00:09/-1" : {
- "basic": {
- "ips": ["10.0.1.9"],
- "locations": ["of:0000000000000001/3"]
+ "hosts":{
+ "00:00:00:00:00:09/-1":{
+ "basic":{
+ "ips":[
+ "10.0.1.9"
+ ],
+ "locations":[
+ "of:0000000000000001/3"
+ ]
}
},
- "00:00:00:00:09:01/-1" : {
- "basic": {
- "ips": ["10.0.9.1"],
- "locations": ["of:0000000000000001/4"]
+ "00:00:00:00:09:01/-1":{
+ "basic":{
+ "ips":[
+ "10.0.9.1"
+ ],
+ "locations":[
+ "of:0000000000000001/4"
+ ]
}
}
}
-}
+}
\ No newline at end of file