Saurav Das | 428ebc9 | 2015-09-30 10:00:49 -0700 | [diff] [blame] | 1 | { |
| 2 | "ports" : { |
| 3 | "of:0000000000000002/1" : { |
| 4 | "interfaces" : [ |
| 5 | { |
| 6 | "ips" : [ "192.168.10.101/24" ], |
| 7 | "mac" : "08:9e:01:82:38:68", |
| 8 | "vlan" : "100" |
| 9 | } |
| 10 | ] |
| 11 | }, |
| 12 | "of:0000000000000002/20" : { |
| 13 | "interfaces" : [ |
| 14 | { |
| 15 | "ips" : [ "192.168.20.101/24" ], |
| 16 | "mac" : "08:9e:01:82:38:68", |
| 17 | "vlan" : "200" |
| 18 | } |
| 19 | ] |
| 20 | } |
| 21 | }, |
Charles Chan | 4636be0 | 2015-10-07 14:21:45 -0700 | [diff] [blame] | 22 | "devices" : { |
| 23 | "of:0000000000000002" : { |
| 24 | "segmentrouting" : { |
| 25 | "name" : "Leaf-R1", |
| 26 | "nodeSid" : 101, |
| 27 | "routerIp" : "10.0.1.254", |
| 28 | "routerMac" : "00:00:00:00:01:80", |
| 29 | "isEdgeRouter" : true, |
| 30 | "adjacencySids" : [ |
| 31 | { "sid" : 100, "port" : [2, 3] }, |
| 32 | { "sid" : 200, "port" : [4, 5] } |
| 33 | ] |
| 34 | } |
| 35 | }, |
| 36 | "of:0000000000000191" : { |
| 37 | "segmentrouting" : { |
| 38 | "name" : "Spine-R1", |
| 39 | "nodeSid" : 105, |
| 40 | "routerIp" : "192.168.0.11", |
| 41 | "routerMac" : "00:00:01:00:11:80", |
| 42 | "isEdgeRouter" : false |
| 43 | } |
| 44 | } |
| 45 | }, |
Saurav Das | 428ebc9 | 2015-09-30 10:00:49 -0700 | [diff] [blame] | 46 | "apps" : { |
| 47 | "org.onosproject.router" : { |
| 48 | "bgp" : { |
| 49 | "bgpSpeakers" : [ |
| 50 | { |
| 51 | "connectPoint" : "of:00000000000000aa/10", |
| 52 | "peers" : [ |
| 53 | "192.168.10.1" |
| 54 | ] |
| 55 | }, |
| 56 | { |
| 57 | "connectPoint" : "of:00000000000000aa/20", |
| 58 | "peers" : [ |
| 59 | "192.168.20.1" |
| 60 | ] |
| 61 | } |
| 62 | ] |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | } |