| { |
| "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":{ |
| "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":{ |
| "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":{ |
| "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" |
| ] |
| } |
| }, |
| "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: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 |
| } |
| ] |
| } |
| } |
| } |