Committed by
Gerrit Code Review
Update and Remove some network-cfg.json sample
Remove network-cfg
Each app has its own way to interpret the config.
Therefore it doesn't make sense to keep a generic one
In long term, each app should have a json schema that explain the meaning
Remove network-cfg-fabric4x4
It does not provide more info than 2x2
Remove network-cfg-fabric2x2-default-route and network-cfg-fabric2x2-xconnect
Keeping features in different configs doesn't help much but make people confused
Also it's hard to maintain so many samples
Add network-cfg-fabric-2x2-all
Full fabric config with readme
The html documentation is just temporary. We will have a json schema
Rename/update network-cfg-fabric-2x2-min.json
Minimum config required by the fabric
Change-Id: I93332d8166c264b9dbb7819b90099c2f19fcf3b5
Showing
7 changed files
with
188 additions
and
466 deletions
| 1 | The onos-config command will copy files contained in this directory to ONOS | 1 | The onos-config command will copy files contained in this directory to ONOS |
| 2 | instances according to cell definition. | 2 | instances according to cell definition. |
| 3 | + | ||
| 4 | +NOTE: Please remember to rename the network config to network-cfg.json if | ||
| 5 | + you copy it from the samples directory | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
This diff is collapsed. Click to expand it.
| 1 | { | 1 | { |
| 2 | "ports" : { | 2 | "ports" : { |
| 3 | - "of:0000000000000001/3" : { | 3 | + "of:0000000000000001/5" : { |
| 4 | "interfaces" : [ | 4 | "interfaces" : [ |
| 5 | - { | 5 | + { |
| 6 | - "ips" : [ "10.0.1.254/24" ], | 6 | + "ips" : [ "10.0.1.254/24" ] |
| 7 | - "vlan" : "-1" | 7 | + }, |
| 8 | - }, | 8 | + { |
| 9 | - { | 9 | + "vlan" : "20" |
| 10 | - "vlan" : "100" | 10 | + }, |
| 11 | - } | 11 | + { |
| 12 | + "vlan" : "10" | ||
| 13 | + }, | ||
| 14 | + { | ||
| 15 | + "vlan" : "222" | ||
| 16 | + }, | ||
| 17 | + { | ||
| 18 | + "ips" : [ | ||
| 19 | + "A.A.A.146/32", "A.A.A.147/32", "A.A.A.148/32", "A.A.A.149/32", | ||
| 20 | + "A.A.A.150/32", "A.A.A.151/32", "A.A.A.152/32", "A.A.A.153/32" | ||
| 21 | + ] | ||
| 22 | + } | ||
| 12 | ] | 23 | ] |
| 13 | }, | 24 | }, |
| 14 | - "of:0000000000000001/4" : { | 25 | + "of:0000000000000001/7" : { |
| 15 | "interfaces" : [ | 26 | "interfaces" : [ |
| 16 | - { | 27 | + { |
| 17 | - "ips" : [ "10.0.1.254/24" ], | 28 | + "ips" : [ "10.0.1.254/24" ] |
| 18 | - "vlan" : "-1" | 29 | + } |
| 19 | - } | ||
| 20 | ] | 30 | ] |
| 21 | }, | 31 | }, |
| 22 | - "of:0000000000000001/5" : { | 32 | + "of:0000000000000001/65" : { |
| 23 | "interfaces" : [ | 33 | "interfaces" : [ |
| 24 | { | 34 | { |
| 25 | - "vlan" : "100" | 35 | + "name" : "fujitsu-olt", |
| 36 | + "vlan" : "20" | ||
| 26 | } | 37 | } |
| 27 | ] | 38 | ] |
| 28 | }, | 39 | }, |
| 29 | - "of:0000000000000002/3" : { | 40 | + "of:0000000000000001/73" : { |
| 30 | "interfaces" : [ | 41 | "interfaces" : [ |
| 31 | - { | 42 | + { |
| 32 | - "ips" : [ "10.0.2.254/24" ], | 43 | + "name" : "pmc-olt", |
| 33 | - "vlan" : "-1" | 44 | + "vlan" : "10" |
| 34 | - } | 45 | + }, |
| 46 | + { | ||
| 47 | + "vlan" : "222" | ||
| 48 | + } | ||
| 35 | ] | 49 | ] |
| 36 | }, | 50 | }, |
| 37 | - "of:0000000000000002/4" : { | 51 | + "of:0000000000000002/5" : { |
| 38 | "interfaces" : [ | 52 | "interfaces" : [ |
| 39 | - { | 53 | + { |
| 40 | - "ips" : [ "10.0.2.254/24" ], | 54 | + "ips" : [ "10.0.2.254/24" ] |
| 41 | - "vlan" : "-1" | 55 | + }, |
| 42 | - } | 56 | + { |
| 57 | + "ips" : [ "A.A.A.130/32", "A.A.A.131/32" ] | ||
| 58 | + } | ||
| 43 | ] | 59 | ] |
| 60 | + }, | ||
| 61 | + "of:0000000000000002/32" : { | ||
| 62 | + "interfaces" : [ | ||
| 63 | + { | ||
| 64 | + "name" : "internet-router", | ||
| 65 | + "ips" : [ "10.231.254.202/30" ], | ||
| 66 | + "mac" : "00:16:3e:4b:5a:04" | ||
| 67 | + } | ||
| 68 | + ], | ||
| 69 | + "pimInterface" : { | ||
| 70 | + "interfaceName" : "internet-router", | ||
| 71 | + "enabled" : true, | ||
| 72 | + "helloInterval" : 1, | ||
| 73 | + "holdTime" : 3, | ||
| 74 | + "propagationDelay" : 500, | ||
| 75 | + "overrideInterval" : 2500 | ||
| 76 | + } | ||
| 44 | } | 77 | } |
| 45 | }, | 78 | }, |
| 46 | "devices" : { | 79 | "devices" : { |
| ... | @@ -86,28 +119,138 @@ | ... | @@ -86,28 +119,138 @@ |
| 86 | } | 119 | } |
| 87 | }, | 120 | }, |
| 88 | "hosts" : { | 121 | "hosts" : { |
| 89 | - "00:00:00:00:00:01/-1" : { | 122 | + "00:02:c9:1e:b1:20/-1" : { |
| 90 | "basic": { | 123 | "basic": { |
| 91 | "ips": ["10.0.1.1"], | 124 | "ips": ["10.0.1.1"], |
| 92 | - "location": "of:0000000000000001/3" | 125 | + "location": "of:0000000000000001/5" |
| 93 | } | 126 | } |
| 94 | }, | 127 | }, |
| 95 | - "00:00:00:00:00:02/-1" : { | 128 | + "00:02:c9:1e:b4:e0/-1" : { |
| 96 | "basic": { | 129 | "basic": { |
| 97 | "ips": ["10.0.1.2"], | 130 | "ips": ["10.0.1.2"], |
| 98 | - "location": "of:0000000000000001/4" | 131 | + "location": "of:0000000000000001/7" |
| 99 | } | 132 | } |
| 100 | }, | 133 | }, |
| 101 | - "00:00:00:00:00:03/-1" : { | 134 | + "00:02:c9:1e:b4:60/-1" : { |
| 102 | "basic": { | 135 | "basic": { |
| 103 | "ips": ["10.0.2.1"], | 136 | "ips": ["10.0.2.1"], |
| 104 | - "location": "of:0000000000000002/3" | 137 | + "location": "of:0000000000000002/5" |
| 105 | } | 138 | } |
| 106 | }, | 139 | }, |
| 107 | - "00:00:00:00:00:04/-1" : { | 140 | + "fa:16:3e:f9:2d:96/-1" : { |
| 108 | "basic": { | 141 | "basic": { |
| 109 | - "ips": ["10.0.2.2"], | 142 | + "ips": ["A.A.A.130"], |
| 110 | - "location": "of:0000000000000002/4" | 143 | + "location": "of:0000000000000002/5" |
| 144 | + } | ||
| 145 | + }, | ||
| 146 | + "FA:16:3E:2D:11:D4/-1" : { | ||
| 147 | + "basic": { | ||
| 148 | + "ips": ["A.A.A.134"], | ||
| 149 | + "location": "of:0000000000000002/5" | ||
| 150 | + } | ||
| 151 | + }, | ||
| 152 | + "02:42:cf:8d:c0:92/-1" : { | ||
| 153 | + "basic": { | ||
| 154 | + "ips": ["A.A.A.146"], | ||
| 155 | + "location": "of:0000000000000001/5" | ||
| 156 | + } | ||
| 157 | + }, | ||
| 158 | + "02:42:cf:8d:c0:93/-1" : { | ||
| 159 | + "basic": { | ||
| 160 | + "ips": ["A.A.A.147"], | ||
| 161 | + "location": "of:0000000000000001/5" | ||
| 162 | + } | ||
| 163 | + }, | ||
| 164 | + "02:42:cf:8d:c0:94/-1" : { | ||
| 165 | + "basic": { | ||
| 166 | + "ips": ["A.A.A.148"], | ||
| 167 | + "location": "of:0000000000000001/5" | ||
| 168 | + } | ||
| 169 | + }, | ||
| 170 | + "02:42:cf:8d:c0:95/-1" : { | ||
| 171 | + "basic": { | ||
| 172 | + "ips": ["A.A.A.149"], | ||
| 173 | + "location": "of:0000000000000001/5" | ||
| 174 | + } | ||
| 175 | + }, | ||
| 176 | + "02:42:cf:8d:c0:96/-1" : { | ||
| 177 | + "basic": { | ||
| 178 | + "ips": ["A.A.A.150"], | ||
| 179 | + "location": "of:0000000000000001/5" | ||
| 180 | + } | ||
| 181 | + }, | ||
| 182 | + "02:42:cf:8d:c0:97/-1" : { | ||
| 183 | + "basic": { | ||
| 184 | + "ips": ["A.A.A.151"], | ||
| 185 | + "location": "of:0000000000000001/5" | ||
| 186 | + } | ||
| 187 | + }, | ||
| 188 | + "02:42:cf:8d:c0:98/-1" : { | ||
| 189 | + "basic": { | ||
| 190 | + "ips": ["A.A.A.152"], | ||
| 191 | + "location": "of:0000000000000001/5" | ||
| 192 | + } | ||
| 193 | + }, | ||
| 194 | + "02:42:cf:8d:c0:99/-1" : { | ||
| 195 | + "basic": { | ||
| 196 | + "ips": ["A.A.A.153"], | ||
| 197 | + "location": "of:0000000000000001/5" | ||
| 198 | + } | ||
| 199 | + } | ||
| 200 | + }, | ||
| 201 | + "links" : { | ||
| 202 | + "of:0000000000000001/1-of:0000000000000191/1" : { | ||
| 203 | + "basic" : {} | ||
| 204 | + }, | ||
| 205 | + "of:0000000000000001/3-of:0000000000000192/1" : { | ||
| 206 | + "basic" : {} | ||
| 207 | + }, | ||
| 208 | + "of:0000000000000002/1-of:0000000000000191/3" : { | ||
| 209 | + "basic" : {} | ||
| 210 | + }, | ||
| 211 | + "of:0000000000000002/3-of:0000000000000192/3" : { | ||
| 212 | + "basic" : {} | ||
| 213 | + }, | ||
| 214 | + "of:0000000000000191/1-of:0000000000000001/1" : { | ||
| 215 | + "basic" : {} | ||
| 216 | + }, | ||
| 217 | + "of:0000000000000192/1-of:0000000000000001/3" : { | ||
| 218 | + "basic" : {} | ||
| 219 | + }, | ||
| 220 | + "of:0000000000000191/3-of:0000000000000002/1" : { | ||
| 221 | + "basic" : {} | ||
| 222 | + }, | ||
| 223 | + "of:0000000000000192/3-of:0000000000000002/3" : { | ||
| 224 | + "basic" : {} | ||
| 225 | + } | ||
| 226 | + }, | ||
| 227 | + "apps" : { | ||
| 228 | + "org.onosproject.core" : { | ||
| 229 | + "core" : { | ||
| 230 | + "linkDiscoveryMode" : "STRICT" | ||
| 231 | + } | ||
| 232 | + }, | ||
| 233 | + "org.onosproject.segmentrouting" : { | ||
| 234 | + "segmentrouting" : { | ||
| 235 | + "vRouterMacs" : [ | ||
| 236 | + "a4:23:05:34:56:78", "a4:23:05:34:56:79" | ||
| 237 | + ], | ||
| 238 | + "vRouterId" : "of:0000000000000002", | ||
| 239 | + "suppressSubnet" : [ | ||
| 240 | + "of:0000000000000002/31", "of:0000000000000002/32" | ||
| 241 | + ], | ||
| 242 | + "suppressHost" : [ | ||
| 243 | + "of:0000000000000001/65", "of:0000000000000001/73", | ||
| 244 | + "of:0000000000000002/31", "of:0000000000000002/32" | ||
| 245 | + ] | ||
| 246 | + } | ||
| 247 | + }, | ||
| 248 | + "org.onosproject.router" : { | ||
| 249 | + "router" : { | ||
| 250 | + "controlPlaneConnectPoint" : "of:0000000000000002/31", | ||
| 251 | + "ospfEnabled" : "true", | ||
| 252 | + "pimEnabled" : "true", | ||
| 253 | + "interfaces" : [ "internet-router" ] | ||
| 111 | } | 254 | } |
| 112 | } | 255 | } |
| 113 | } | 256 | } | ... | ... |
| ... | @@ -3,32 +3,28 @@ | ... | @@ -3,32 +3,28 @@ |
| 3 | "of:0000000000000001/3" : { | 3 | "of:0000000000000001/3" : { |
| 4 | "interfaces" : [ | 4 | "interfaces" : [ |
| 5 | { | 5 | { |
| 6 | - "ips" : [ "10.0.1.254/24" ], | 6 | + "ips" : [ "10.0.1.254/24" ] |
| 7 | - "vlan" : "-1" | ||
| 8 | } | 7 | } |
| 9 | ] | 8 | ] |
| 10 | }, | 9 | }, |
| 11 | "of:0000000000000001/4" : { | 10 | "of:0000000000000001/4" : { |
| 12 | "interfaces" : [ | 11 | "interfaces" : [ |
| 13 | { | 12 | { |
| 14 | - "ips" : [ "10.0.1.254/24" ], | 13 | + "ips" : [ "10.0.1.254/24" ] |
| 15 | - "vlan" : "-1" | ||
| 16 | } | 14 | } |
| 17 | ] | 15 | ] |
| 18 | }, | 16 | }, |
| 19 | "of:0000000000000002/3" : { | 17 | "of:0000000000000002/3" : { |
| 20 | "interfaces" : [ | 18 | "interfaces" : [ |
| 21 | { | 19 | { |
| 22 | - "ips" : [ "10.0.2.254/24" ], | 20 | + "ips" : [ "10.0.2.254/24" ] |
| 23 | - "vlan" : "-1" | ||
| 24 | } | 21 | } |
| 25 | ] | 22 | ] |
| 26 | }, | 23 | }, |
| 27 | "of:0000000000000002/4" : { | 24 | "of:0000000000000002/4" : { |
| 28 | "interfaces" : [ | 25 | "interfaces" : [ |
| 29 | { | 26 | { |
| 30 | - "ips" : [ "10.0.2.254/24" ], | 27 | + "ips" : [ "10.0.2.254/24" ] |
| 31 | - "vlan" : "-1" | ||
| 32 | } | 28 | } |
| 33 | ] | 29 | ] |
| 34 | } | 30 | } |
| ... | @@ -76,25 +72,25 @@ | ... | @@ -76,25 +72,25 @@ |
| 76 | } | 72 | } |
| 77 | }, | 73 | }, |
| 78 | "hosts" : { | 74 | "hosts" : { |
| 79 | - "00:00:00:00:00:01/4093" : { | 75 | + "00:00:00:00:00:01/-1" : { |
| 80 | "basic": { | 76 | "basic": { |
| 81 | "ips": ["10.0.1.1"], | 77 | "ips": ["10.0.1.1"], |
| 82 | "location": "of:0000000000000001/3" | 78 | "location": "of:0000000000000001/3" |
| 83 | } | 79 | } |
| 84 | }, | 80 | }, |
| 85 | - "00:00:00:00:00:02/4093" : { | 81 | + "00:00:00:00:00:02/-1" : { |
| 86 | "basic": { | 82 | "basic": { |
| 87 | "ips": ["10.0.1.2"], | 83 | "ips": ["10.0.1.2"], |
| 88 | "location": "of:0000000000000001/4" | 84 | "location": "of:0000000000000001/4" |
| 89 | } | 85 | } |
| 90 | }, | 86 | }, |
| 91 | - "00:00:00:00:00:03/4093" : { | 87 | + "00:00:00:00:00:03/-1" : { |
| 92 | "basic": { | 88 | "basic": { |
| 93 | "ips": ["10.0.2.1"], | 89 | "ips": ["10.0.2.1"], |
| 94 | "location": "of:0000000000000002/3" | 90 | "location": "of:0000000000000002/3" |
| 95 | } | 91 | } |
| 96 | }, | 92 | }, |
| 97 | - "00:00:00:00:00:04/4093" : { | 93 | + "00:00:00:00:00:04/-1" : { |
| 98 | "basic": { | 94 | "basic": { |
| 99 | "ips": ["10.0.2.2"], | 95 | "ips": ["10.0.2.2"], |
| 100 | "location": "of:0000000000000002/4" | 96 | "location": "of:0000000000000002/4" | ... | ... |
| 1 | -{ | ||
| 2 | - "ports" : { | ||
| 3 | - "of:0000000000000001/3" : { | ||
| 4 | - "interfaces" : [ | ||
| 5 | - { | ||
| 6 | - "ips" : [ "10.0.1.254/24" ], | ||
| 7 | - "vlan" : "-1" | ||
| 8 | - } | ||
| 9 | - ] | ||
| 10 | - }, | ||
| 11 | - "of:0000000000000001/4" : { | ||
| 12 | - "interfaces" : [ | ||
| 13 | - { | ||
| 14 | - "ips" : [ "10.0.1.254/24", "200.0.0.200/32" ], | ||
| 15 | - "vlan" : "-1" | ||
| 16 | - } | ||
| 17 | - ] | ||
| 18 | - }, | ||
| 19 | - "of:0000000000000002/3" : { | ||
| 20 | - "interfaces" : [ | ||
| 21 | - { | ||
| 22 | - "ips" : [ "10.0.2.254/24" ], | ||
| 23 | - "vlan" : "-1" | ||
| 24 | - } | ||
| 25 | - ] | ||
| 26 | - }, | ||
| 27 | - "of:0000000000000002/4" : { | ||
| 28 | - "interfaces" : [ | ||
| 29 | - { | ||
| 30 | - "ips" : [ "10.0.2.254/24" ], | ||
| 31 | - "vlan" : "-1" | ||
| 32 | - } | ||
| 33 | - ] | ||
| 34 | - }, | ||
| 35 | - "of:0000000000000002/5" : { | ||
| 36 | - "interfaces" : [ | ||
| 37 | - { | ||
| 38 | - "ips" : [ "100.0.0.0/24" ], | ||
| 39 | - "vlan" : "-1" | ||
| 40 | - } | ||
| 41 | - ] | ||
| 42 | - } | ||
| 43 | - }, | ||
| 44 | - "devices" : { | ||
| 45 | - "of:0000000000000001" : { | ||
| 46 | - "segmentrouting" : { | ||
| 47 | - "name" : "Leaf-R1", | ||
| 48 | - "nodeSid" : 101, | ||
| 49 | - "routerIp" : "10.0.1.254", | ||
| 50 | - "routerMac" : "00:00:00:00:01:80", | ||
| 51 | - "isEdgeRouter" : true, | ||
| 52 | - "adjacencySids" : [] | ||
| 53 | - } | ||
| 54 | - }, | ||
| 55 | - "of:0000000000000002" : { | ||
| 56 | - "segmentrouting" : { | ||
| 57 | - "name" : "Leaf-R2", | ||
| 58 | - "nodeSid" : 102, | ||
| 59 | - "routerIp" : "10.0.2.254", | ||
| 60 | - "routerMac" : "00:00:00:00:02:80", | ||
| 61 | - "isEdgeRouter" : true, | ||
| 62 | - "adjacencySids" : [] | ||
| 63 | - } | ||
| 64 | - }, | ||
| 65 | - "of:0000000000000191" : { | ||
| 66 | - "segmentrouting" : { | ||
| 67 | - "name" : "Spine-R1", | ||
| 68 | - "nodeSid" : 103, | ||
| 69 | - "routerIp" : "192.168.0.11", | ||
| 70 | - "routerMac" : "00:00:01:00:11:80", | ||
| 71 | - "isEdgeRouter" : false, | ||
| 72 | - "adjacencySids" : [] | ||
| 73 | - } | ||
| 74 | - }, | ||
| 75 | - "of:0000000000000192" : { | ||
| 76 | - "segmentrouting" : { | ||
| 77 | - "name" : "Spine-R2", | ||
| 78 | - "nodeSid" : 104, | ||
| 79 | - "routerIp" : "192.168.0.22", | ||
| 80 | - "routerMac" : "00:00:01:00:22:80", | ||
| 81 | - "isEdgeRouter" : false, | ||
| 82 | - "adjacencySids" : [] | ||
| 83 | - } | ||
| 84 | - } | ||
| 85 | - }, | ||
| 86 | - "hosts" : { | ||
| 87 | - "00:00:00:00:00:01/-1" : { | ||
| 88 | - "basic": { | ||
| 89 | - "ips": ["10.0.1.1"], | ||
| 90 | - "location": "of:0000000000000001/3" | ||
| 91 | - } | ||
| 92 | - }, | ||
| 93 | - "00:00:00:00:00:02/-1" : { | ||
| 94 | - "basic": { | ||
| 95 | - "ips": ["10.0.1.2"], | ||
| 96 | - "location": "of:0000000000000001/4" | ||
| 97 | - } | ||
| 98 | - }, | ||
| 99 | - "00:00:00:00:00:03/-1" : { | ||
| 100 | - "basic": { | ||
| 101 | - "ips": ["10.0.2.1"], | ||
| 102 | - "location": "of:0000000000000002/3" | ||
| 103 | - } | ||
| 104 | - }, | ||
| 105 | - "00:00:00:00:00:04/-1" : { | ||
| 106 | - "basic": { | ||
| 107 | - "ips": ["10.0.2.2"], | ||
| 108 | - "location": "of:0000000000000002/4" | ||
| 109 | - } | ||
| 110 | - }, | ||
| 111 | - "00:00:00:aa:00:01/-1" : { | ||
| 112 | - "basic": { | ||
| 113 | - "ips": ["200.0.0.200"], | ||
| 114 | - "location": "of:0000000000000001/4" | ||
| 115 | - } | ||
| 116 | - } | ||
| 117 | - }, | ||
| 118 | - "apps" : { | ||
| 119 | - "org.onosproject.segmentrouting" : { | ||
| 120 | - "segmentrouting" : { | ||
| 121 | - "vRouterMacs" : [ | ||
| 122 | - "00:00:00:aa:00:02" | ||
| 123 | - ], | ||
| 124 | - "vRouterId" : "of:0000000000000002", | ||
| 125 | - "suppressSubnet" : [ | ||
| 126 | - "of:0000000000000002/5" | ||
| 127 | - ], | ||
| 128 | - "suppressHost" : [ | ||
| 129 | - "of:0000000000000002/5" | ||
| 130 | - ] | ||
| 131 | - } | ||
| 132 | - } | ||
| 133 | - } | ||
| 134 | -} |
| 1 | -{ | ||
| 2 | - "ports" : { | ||
| 3 | - "of:0000000000000001/5" : { | ||
| 4 | - "interfaces" : [ | ||
| 5 | - { | ||
| 6 | - "ips" : [ "10.0.1.254/24" ], | ||
| 7 | - "vlan" : "-1" | ||
| 8 | - } | ||
| 9 | - ] | ||
| 10 | - }, | ||
| 11 | - "of:0000000000000001/6" : { | ||
| 12 | - "interfaces" : [ | ||
| 13 | - { | ||
| 14 | - "ips" : [ "10.0.1.254/24" ], | ||
| 15 | - "vlan" : "-1" | ||
| 16 | - } | ||
| 17 | - ] | ||
| 18 | - }, | ||
| 19 | - "of:0000000000000002/5" : { | ||
| 20 | - "interfaces" : [ | ||
| 21 | - { | ||
| 22 | - "ips" : [ "10.0.2.254/24" ], | ||
| 23 | - "vlan" : "-1" | ||
| 24 | - } | ||
| 25 | - ] | ||
| 26 | - }, | ||
| 27 | - "of:0000000000000002/6" : { | ||
| 28 | - "interfaces" : [ | ||
| 29 | - { | ||
| 30 | - "ips" : [ "10.0.2.254/24" ], | ||
| 31 | - "vlan" : "-1" | ||
| 32 | - } | ||
| 33 | - ] | ||
| 34 | - }, | ||
| 35 | - "of:0000000000000003/5" : { | ||
| 36 | - "interfaces" : [ | ||
| 37 | - { | ||
| 38 | - "ips" : [ "10.0.3.254/24" ], | ||
| 39 | - "vlan" : "-1" | ||
| 40 | - } | ||
| 41 | - ] | ||
| 42 | - }, | ||
| 43 | - "of:0000000000000003/6" : { | ||
| 44 | - "interfaces" : [ | ||
| 45 | - { | ||
| 46 | - "ips" : [ "10.0.3.254/24" ], | ||
| 47 | - "vlan" : "-1" | ||
| 48 | - } | ||
| 49 | - ] | ||
| 50 | - }, | ||
| 51 | - "of:0000000000000004/5" : { | ||
| 52 | - "interfaces" : [ | ||
| 53 | - { | ||
| 54 | - "ips" : [ "10.0.4.254/24" ], | ||
| 55 | - "vlan" : "-1" | ||
| 56 | - } | ||
| 57 | - ] | ||
| 58 | - }, | ||
| 59 | - "of:0000000000000004/6" : { | ||
| 60 | - "interfaces" : [ | ||
| 61 | - { | ||
| 62 | - "ips" : [ "10.0.4.254/24" ], | ||
| 63 | - "vlan" : "-1" | ||
| 64 | - } | ||
| 65 | - ] | ||
| 66 | - } | ||
| 67 | - }, | ||
| 68 | - "devices" : { | ||
| 69 | - "of:0000000000000001" : { | ||
| 70 | - "segmentrouting" : { | ||
| 71 | - "name" : "Leaf-R1", | ||
| 72 | - "nodeSid" : 101, | ||
| 73 | - "routerIp" : "10.0.1.254", | ||
| 74 | - "routerMac" : "00:00:00:00:01:80", | ||
| 75 | - "isEdgeRouter" : true, | ||
| 76 | - "adjacencySids" : [] | ||
| 77 | - } | ||
| 78 | - }, | ||
| 79 | - "of:0000000000000002" : { | ||
| 80 | - "segmentrouting" : { | ||
| 81 | - "name" : "Leaf-R2", | ||
| 82 | - "nodeSid" : 102, | ||
| 83 | - "routerIp" : "10.0.2.254", | ||
| 84 | - "routerMac" : "00:00:00:00:02:80", | ||
| 85 | - "isEdgeRouter" : true, | ||
| 86 | - "adjacencySids" : [] | ||
| 87 | - } | ||
| 88 | - }, | ||
| 89 | - "of:0000000000000003" : { | ||
| 90 | - "segmentrouting" : { | ||
| 91 | - "name" : "Leaf-R3", | ||
| 92 | - "nodeSid" : 103, | ||
| 93 | - "routerIp" : "10.0.3.254", | ||
| 94 | - "routerMac" : "00:00:00:00:03:80", | ||
| 95 | - "isEdgeRouter" : true, | ||
| 96 | - "adjacencySids" : [] | ||
| 97 | - } | ||
| 98 | - }, | ||
| 99 | - "of:0000000000000004" : { | ||
| 100 | - "segmentrouting" : { | ||
| 101 | - "name" : "Leaf-R4", | ||
| 102 | - "nodeSid" : 104, | ||
| 103 | - "routerIp" : "10.0.4.254", | ||
| 104 | - "routerMac" : "00:00:00:00:04:80", | ||
| 105 | - "isEdgeRouter" : true, | ||
| 106 | - "adjacencySids" : [] | ||
| 107 | - } | ||
| 108 | - }, | ||
| 109 | - "of:0000000000000191" : { | ||
| 110 | - "segmentrouting" : { | ||
| 111 | - "name" : "Spine-R1", | ||
| 112 | - "nodeSid" : 105, | ||
| 113 | - "routerIp" : "192.168.0.11", | ||
| 114 | - "routerMac" : "00:00:01:00:11:80", | ||
| 115 | - "isEdgeRouter" : false, | ||
| 116 | - "adjacencySids" : [] | ||
| 117 | - } | ||
| 118 | - }, | ||
| 119 | - "of:0000000000000192" : { | ||
| 120 | - "segmentrouting" : { | ||
| 121 | - "name" : "Spine-R2", | ||
| 122 | - "nodeSid" : 106, | ||
| 123 | - "routerIp" : "192.168.0.22", | ||
| 124 | - "routerMac" : "00:00:01:00:22:80", | ||
| 125 | - "isEdgeRouter" : false, | ||
| 126 | - "adjacencySids" : [] | ||
| 127 | - } | ||
| 128 | - }, | ||
| 129 | - "of:0000000000000193" : { | ||
| 130 | - "segmentrouting" : { | ||
| 131 | - "name" : "Spine-R3", | ||
| 132 | - "nodeSid" : 107, | ||
| 133 | - "routerIp" : "192.168.0.33", | ||
| 134 | - "routerMac" : "00:00:03:00:33:80", | ||
| 135 | - "isEdgeRouter" : false, | ||
| 136 | - "adjacencySids" : [] | ||
| 137 | - } | ||
| 138 | - }, | ||
| 139 | - "of:0000000000000194" : { | ||
| 140 | - "segmentrouting" : { | ||
| 141 | - "name" : "Spine-R4", | ||
| 142 | - "nodeSid" : 108, | ||
| 143 | - "routerIp" : "192.168.0.44", | ||
| 144 | - "routerMac" : "00:00:04:00:44:80", | ||
| 145 | - "isEdgeRouter" : false, | ||
| 146 | - "adjacencySids" : [] | ||
| 147 | - } | ||
| 148 | - } | ||
| 149 | - }, | ||
| 150 | - "hosts" : { | ||
| 151 | - "00:00:00:00:00:01/-1" : { | ||
| 152 | - "basic": { | ||
| 153 | - "ips": ["10.0.1.1"], | ||
| 154 | - "location": "of:0000000000000001/5" | ||
| 155 | - } | ||
| 156 | - }, | ||
| 157 | - "00:00:00:00:00:02/-1" : { | ||
| 158 | - "basic": { | ||
| 159 | - "ips": ["10.0.1.2"], | ||
| 160 | - "location": "of:0000000000000001/6" | ||
| 161 | - } | ||
| 162 | - }, | ||
| 163 | - "00:00:00:00:00:03/-1" : { | ||
| 164 | - "basic": { | ||
| 165 | - "ips": ["10.0.2.1"], | ||
| 166 | - "location": "of:0000000000000002/5" | ||
| 167 | - } | ||
| 168 | - }, | ||
| 169 | - "00:00:00:00:00:04/-1" : { | ||
| 170 | - "basic": { | ||
| 171 | - "ips": ["10.0.2.2"], | ||
| 172 | - "location": "of:0000000000000002/6" | ||
| 173 | - } | ||
| 174 | - }, | ||
| 175 | - "00:00:00:00:00:05/-1" : { | ||
| 176 | - "basic": { | ||
| 177 | - "ips": ["10.0.3.1"], | ||
| 178 | - "location": "of:0000000000000003/5" | ||
| 179 | - } | ||
| 180 | - }, | ||
| 181 | - "00:00:00:00:00:06/-1" : { | ||
| 182 | - "basic": { | ||
| 183 | - "ips": ["10.0.3.2"], | ||
| 184 | - "location": "of:0000000000000003/6" | ||
| 185 | - } | ||
| 186 | - }, | ||
| 187 | - "00:00:00:00:00:07/-1" : { | ||
| 188 | - "basic": { | ||
| 189 | - "ips": ["10.0.4.1"], | ||
| 190 | - "location": "of:0000000000000004/5" | ||
| 191 | - } | ||
| 192 | - }, | ||
| 193 | - "00:00:00:00:00:08/-1" : { | ||
| 194 | - "basic": { | ||
| 195 | - "ips": ["10.0.4.2"], | ||
| 196 | - "location": "of:0000000000000004/6" | ||
| 197 | - } | ||
| 198 | - } | ||
| 199 | - } | ||
| 200 | -} |
| 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/2" : { | ||
| 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 | - }, | ||
| 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 | - { "adjSids" : 100, "ports" : [2, 3] }, | ||
| 32 | - { "adjSids" : 200, "ports" : [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 | - "adjacencySids" : [] | ||
| 44 | - } | ||
| 45 | - } | ||
| 46 | - }, | ||
| 47 | - "apps" : { | ||
| 48 | - "org.onosproject.router" : { | ||
| 49 | - "bgp" : { | ||
| 50 | - "bgpSpeakers" : [ | ||
| 51 | - { | ||
| 52 | - "connectPoint" : "of:00000000000000aa/10", | ||
| 53 | - "peers" : [ | ||
| 54 | - "192.168.10.1" | ||
| 55 | - ] | ||
| 56 | - }, | ||
| 57 | - { | ||
| 58 | - "connectPoint" : "of:00000000000000aa/20", | ||
| 59 | - "peers" : [ | ||
| 60 | - "192.168.20.1" | ||
| 61 | - ] | ||
| 62 | - } | ||
| 63 | - ] | ||
| 64 | - } | ||
| 65 | - } | ||
| 66 | - }, | ||
| 67 | - "hosts" : { | ||
| 68 | - "00:00:00:00:00:01/4093": { | ||
| 69 | - "basic": { | ||
| 70 | - "ips": [ | ||
| 71 | - "10.0.1.1" | ||
| 72 | - ], | ||
| 73 | - "location": "of:0000000000000001/3" | ||
| 74 | - } | ||
| 75 | - }, | ||
| 76 | - "00:00:00:00:00:02/4093": { | ||
| 77 | - "basic": { | ||
| 78 | - "ips": [ | ||
| 79 | - "10.0.1.2" | ||
| 80 | - ], | ||
| 81 | - "location": "of:0000000000000001/4" | ||
| 82 | - } | ||
| 83 | - } | ||
| 84 | - } | ||
| 85 | -} | ||
| 86 | - |
-
Please register or login to post a comment