| { |
| "devices":{ |
| "of:0000000000000001":{ |
| "basic":{ |
| "driver":"ofdpa-ovs" |
| }, |
| "segmentrouting":{ |
| "adjacencySids":[], |
| "ipv4Loopback":"192.168.0.1", |
| "ipv4NodeSid":201, |
| "isEdgeRouter":true, |
| "pairDeviceId":"of:0000000000000002", |
| "pairLocalPort":5, |
| "routerMac":"00:00:00:00:00:01" |
| } |
| }, |
| "of:0000000000000002":{ |
| "basic":{ |
| "driver":"ofdpa-ovs" |
| }, |
| "segmentrouting":{ |
| "adjacencySids":[], |
| "ipv4Loopback":"192.168.0.2", |
| "ipv4NodeSid":202, |
| "isEdgeRouter":true, |
| "pairDeviceId":"of:0000000000000001", |
| "pairLocalPort":5, |
| "routerMac":"00:00:00:00:00:01" |
| } |
| }, |
| "of:0000000000000003":{ |
| "basic":{ |
| "driver":"ofdpa-ovs" |
| }, |
| "segmentrouting":{ |
| "adjacencySids":[], |
| "ipv4Loopback":"192.168.0.3", |
| "ipv4NodeSid":203, |
| "isEdgeRouter":true, |
| "pairDeviceId":"of:0000000000000004", |
| "pairLocalPort":5, |
| "routerMac":"00:00:00:00:00:02" |
| } |
| }, |
| "of:0000000000000004":{ |
| "basic":{ |
| "driver":"ofdpa-ovs" |
| }, |
| "segmentrouting":{ |
| "adjacencySids":[], |
| "ipv4Loopback":"192.168.0.4", |
| "ipv4NodeSid":204, |
| "isEdgeRouter":true, |
| "pairDeviceId":"of:0000000000000003", |
| "pairLocalPort":5, |
| "routerMac":"00:00:00:00:00:02" |
| } |
| }, |
| "of:0000000000000101":{ |
| "basic":{ |
| "driver":"ofdpa-ovs" |
| }, |
| "segmentrouting":{ |
| "adjacencySids":[], |
| "ipv4Loopback":"192.168.0.101", |
| "ipv4NodeSid":101, |
| "isEdgeRouter":false, |
| "routerMac":"00:00:00:00:01:01" |
| } |
| }, |
| "of:0000000000000102":{ |
| "basic":{ |
| "driver":"ofdpa-ovs" |
| }, |
| "segmentrouting":{ |
| "adjacencySids":[], |
| "ipv4Loopback":"192.168.0.102", |
| "ipv4NodeSid":102, |
| "isEdgeRouter":false, |
| "routerMac":"00:00:00:00:01:02" |
| } |
| } |
| }, |
| "hosts":{ |
| "00:aa:00:00:00:01/10":{ |
| "basic":{ |
| "ips":[ |
| "10.0.2.1" |
| ], |
| "locations":[ |
| "of:0000000000000001/6", |
| "of:0000000000000002/6" |
| ] |
| } |
| }, |
| "00:aa:00:00:00:02/10":{ |
| "basic":{ |
| "ips":[ |
| "10.0.2.2" |
| ], |
| "locations":[ |
| "of:0000000000000001/7", |
| "of:0000000000000002/7" |
| ] |
| } |
| }, |
| "00:aa:00:00:00:03/20":{ |
| "basic":{ |
| "ips":[ |
| "10.0.3.1" |
| ], |
| "locations":[ |
| "of:0000000000000003/6", |
| "of:0000000000000004/6" |
| ] |
| } |
| }, |
| "00:aa:00:00:00:04/20":{ |
| "basic":{ |
| "ips":[ |
| "10.0.3.2" |
| ], |
| "locations":[ |
| "of:0000000000000003/7", |
| "of:0000000000000004/7" |
| ] |
| } |
| } |
| }, |
| "ports":{ |
| "of:0000000000000001/6":{ |
| "interfaces":[ |
| { |
| "ips":[ |
| "10.0.2.254/24" |
| ], |
| "vlan-tagged":[ |
| 10 |
| ] |
| } |
| ] |
| }, |
| "of:0000000000000001/7":{ |
| "interfaces":[ |
| { |
| "ips":[ |
| "10.0.2.254/24" |
| ], |
| "vlan-tagged":[ |
| 10 |
| ] |
| } |
| ] |
| }, |
| "of:0000000000000002/6":{ |
| "interfaces":[ |
| { |
| "ips":[ |
| "10.0.2.254/24" |
| ], |
| "vlan-tagged":[ |
| 10 |
| ] |
| } |
| ] |
| }, |
| "of:0000000000000002/7":{ |
| "interfaces":[ |
| { |
| "ips":[ |
| "10.0.2.254/24" |
| ], |
| "vlan-tagged":[ |
| 10 |
| ] |
| } |
| ] |
| }, |
| "of:0000000000000003/6":{ |
| "interfaces":[ |
| { |
| "ips":[ |
| "10.0.3.254/24" |
| ], |
| "vlan-tagged":[ |
| 20 |
| ] |
| } |
| ] |
| }, |
| "of:0000000000000003/7":{ |
| "interfaces":[ |
| { |
| "ips":[ |
| "10.0.3.254/24" |
| ], |
| "vlan-tagged":[ |
| 20 |
| ] |
| } |
| ] |
| }, |
| "of:0000000000000004/6":{ |
| "interfaces":[ |
| { |
| "ips":[ |
| "10.0.3.254/24" |
| ], |
| "vlan-tagged":[ |
| 20 |
| ] |
| } |
| ] |
| }, |
| "of:0000000000000004/7":{ |
| "interfaces":[ |
| { |
| "ips":[ |
| "10.0.3.254/24" |
| ], |
| "vlan-tagged":[ |
| 20 |
| ] |
| } |
| ] |
| } |
| } |
| } |