| { |
| "ports" : { |
| "of:0000000000000001/2" : { |
| "interfaces" : [ |
| { |
| "ips" : [ "10.0.2.254/24" ], |
| "vlan-untagged": 10 |
| } |
| ] |
| }, |
| "of:0000000000000001/3" : { |
| "interfaces" : [ |
| { |
| "ips" : [ "10.0.2.254/24" ], |
| "vlan-tagged": [20] |
| } |
| ] |
| }, |
| "of:0000000000000002/2" : { |
| "interfaces" : [ |
| { |
| "ips" : [ "10.0.2.254/24" ], |
| "vlan-untagged": 10 |
| } |
| ] |
| }, |
| "of:0000000000000002/3" : { |
| "interfaces" : [ |
| { |
| "ips" : [ "10.0.2.254/24" ], |
| "vlan-tagged": [20] |
| } |
| ] |
| } |
| }, |
| "hosts" : { |
| "00:AA:00:00:00:01/None": { |
| "basic": { |
| "ips": ["10.0.2.1"], |
| "locations": ["of:0000000000000001/2", "of:0000000000000002/2"] |
| } |
| }, |
| "00:AA:00:00:00:02/20" : { |
| "basic": { |
| "ips": ["10.0.2.2"], |
| "locations": ["of:0000000000000001/3", "of:0000000000000002/3"] |
| } |
| } |
| }, |
| "devices" : { |
| "of:0000000000000001" : { |
| "segmentrouting" : { |
| "ipv4NodeSid" : 1, |
| "ipv4Loopback" : "192.168.0.1", |
| "routerMac" : "00:00:00:00:00:01", |
| "isEdgeRouter" : true, |
| "pairDeviceId" : "of:0000000000000002", |
| "pairLocalPort" : 1, |
| "adjacencySids" : [] |
| }, |
| "basic" : { |
| "driver" : "ofdpa-ovs" |
| } |
| }, |
| "of:0000000000000002" : { |
| "segmentrouting" : { |
| "ipv4NodeSid" : 1, |
| "ipv4Loopback" : "192.168.0.2", |
| "routerMac" : "00:00:00:00:00:01", |
| "isEdgeRouter" : true, |
| "pairDeviceId" : "of:0000000000000001", |
| "pairLocalPort" : 1, |
| "adjacencySids" : [] |
| }, |
| "basic" : { |
| "driver" : "ofdpa-ovs" |
| } |
| } |
| } |
| } |