Charles Chan
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
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
......
1 +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 +<html>
3 +<head>
4 + <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 + <meta http-equiv="Content-Style-Type" content="text/css">
6 + <title></title>
7 + <meta name="Generator" content="Cocoa HTML Writer">
8 + <meta name="CocoaVersion" content="1404.34">
9 + <style type="text/css">
10 + p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Menlo; color: #0433ff; -webkit-text-stroke: #0433ff}
11 + p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Menlo; color: #ff9300; -webkit-text-stroke: #ff9300}
12 + p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Menlo; color: #ff40ff; -webkit-text-stroke: #ff40ff}
13 + p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Menlo; color: #77bb41; -webkit-text-stroke: #77bb41}
14 + p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Menlo; color: #00c7fc; -webkit-text-stroke: #00c7fc}
15 + p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Menlo; color: #ff2600; -webkit-text-stroke: #ff2600}
16 + p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 14.0px; font: 12.0px Menlo; color: #000000; -webkit-text-stroke: #000000}
17 + span.s1 {font-kerning: none}
18 + span.s2 {font-kerning: none; color: #0433ff; -webkit-text-stroke: 0px #0433ff}
19 + span.s3 {font-kerning: none; color: #000000; -webkit-text-stroke: 0px #000000}
20 + span.s4 {font-kerning: none; color: #ff40ff; -webkit-text-stroke: 0px #ff40ff}
21 + span.s5 {font-kerning: none; color: #ff9300; -webkit-text-stroke: 0px #ff9300}
22 + span.s6 {font-kerning: none; color: #77bb41; -webkit-text-stroke: 0px #77bb41}
23 + span.s7 {font-kerning: none; color: #00c7fc; -webkit-text-stroke: 0px #00c7fc}
24 + span.s8 {font-kerning: none; color: #ff2600; -webkit-text-stroke: 0px #ff2600}
25 + span.s9 {font-kerning: none; color: #669c35; -webkit-text-stroke: 0px #669c35}
26 + span.Apple-tab-span {white-space:pre}
27 + </style>
28 +</head>
29 +<body>
30 +<p class="p1"><span class="s1">Blue: standard fabric operation</span></p>
31 +<p class="p2"><span class="s1">Orange: vSG LAN connectivity (cross-connect)</span></p>
32 +<p class="p3"><span class="s1">Magenta: vSG WAN connectivity (default route)</span></p>
33 +<p class="p4"><span class="s1">Green: vRouter integration</span></p>
34 +<p class="p5"><span class="s1">Light Blue: PIM integration</span></p>
35 +<p class="p6"><span class="s1">Red: Link validation</span></p>
36 +<p class="p7"><span class="s1"><br>
37 +</span></p>
38 +<p class="p7"><span class="s1">{</span></p>
39 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>"ports" : {</span></p>
40 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>"of:0000000000000001/5" : { </span><span class="s2">// connects to node 1</span></p>
41 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"interfaces" : [</span></p>
42 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>{<span class="Apple-tab-span"> </span></span></p>
43 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips" : [ "10.0.1.254/24" ] </span><span class="s2">// subnet of node 1</span></p>
44 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>},</span></p>
45 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>{</span></p>
46 +<p class="p2"><span class="s3"><span class="Apple-converted-space">                </span>"vlan" : "69" </span><span class="s1">// cross-connect s-tag 69 to Fujitsu OLT</span></p>
47 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>},</span></p>
48 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>{</span></p>
49 +<p class="p2"><span class="s3"><span class="Apple-converted-space">                </span>"vlan" : "222" </span><span class="s1">// cross-connect s-tag 222 to PMC OLT</span></p>
50 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>},</span></p>
51 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>{</span></p>
52 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips" : [ "A.A.A.A/32" ] </span><span class="s4">// vSG1 public IP address /32</span></p>
53 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>},</span></p>
54 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>{</span></p>
55 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips" : [ "B.B.B.B/32" ] </span><span class="s4">// vSG2 public IP address /32</span></p>
56 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
57 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>]</span></p>
58 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>},</span></p>
59 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>"of:0000000000000001/7" : { </span><span class="s2">// connect to node 3</span></p>
60 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"interfaces" : [</span></p>
61 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>{</span></p>
62 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips" : [ "10.0.1.254/24" ] </span><span class="s2">// subnet of node 3</span></p>
63 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
64 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>]</span></p>
65 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>},</span></p>
66 +<p class="p3"><span class="s3"><span class="Apple-converted-space">    </span>"of:0000000000000001/30" : { </span><span class="s1">// connect to vSG3 directly without OLT (temporary)</span></p>
67 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"interfaces" : [</span></p>
68 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>{</span></p>
69 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips" : [ "C.C.C.C/32" ] </span><span class="s4">// vSG3 /32 public IP address</span></p>
70 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
71 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>]</span></p>
72 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>},</span></p>
73 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>"of:0000000000000001/65" : { </span><span class="s5">// connect to Fujitsu OLT</span></p>
74 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"interfaces" : [</span></p>
75 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>{</span></p>
76 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"name" : "fujitsu-olt", </span><span class="s5">// unused</span></p>
77 +<p class="p2"><span class="s3"><span class="Apple-converted-space">                </span>"vlan" : "69" </span><span class="s1">// cross-connect s-tag 69<span class="Apple-converted-space">  </span>to vSG</span></p>
78 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
79 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>]</span></p>
80 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>},</span></p>
81 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>"of:0000000000000001/73" : { </span><span class="s5">// connect to PMC OLT</span></p>
82 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"interfaces" : [</span></p>
83 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>{</span></p>
84 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"name" : "pmc-olt", </span><span class="s5">// unused</span></p>
85 +<p class="p2"><span class="s3"><span class="Apple-converted-space">                </span>"vlan" : "222" </span><span class="s1">// cross-connect s-tag 222 to vSG</span></p>
86 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
87 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>]</span></p>
88 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>},</span></p>
89 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>"of:0000000000000002/5" : { </span><span class="s2">// connect to node 2</span></p>
90 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"interfaces" : [</span></p>
91 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>{</span></p>
92 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips" : [ "10.0.2.254/24" ] </span><span class="s2">// subnet of node 2</span></p>
93 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
94 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>]</span></p>
95 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>},</span></p>
96 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>"of:0000000000000002/32" : { </span><span class="s6">// connect to Internet router</span></p>
97 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"interfaces" : [</span></p>
98 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>{</span></p>
99 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"name" : "external-quagga", </span><span class="s6">// Internet router interface name</span></p>
100 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips" : [ "10.231.254.202/30", "10.231.254.223/32" ], </span><span class="s6">// Quagga IP addresses</span></p>
101 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"mac" : "00:16:3e:56:2b:48" </span><span class="s6">// Quagga WAN MAC</span></p>
102 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
103 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>],</span></p>
104 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"pimInterface" : { </span><span class="s7">// PIM configuration</span></p>
105 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"interfaceName" : "external-quagga", </span><span class="s7">// port that faces the Internet router</span></p>
106 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"enabled" : true,</span></p>
107 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"helloInterval" : 1,</span></p>
108 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"holdTime" : 3,</span></p>
109 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"propagationDelay" : 500,</span></p>
110 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"overrideInterval" : 2500</span></p>
111 +<p class="p7"><span class="s1"><span class="Apple-converted-space">         </span>}</span></p>
112 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>}</span></p>
113 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>},</span></p>
114 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>"devices" : {</span></p>
115 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"of:0000000000000001" : { </span><span class="s2">// fabric leaf 1</span></p>
116 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"segmentrouting" : {</span></p>
117 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"name" : "Leaf-R1",</span></p>
118 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"nodeSid" : 101, </span><span class="s2">// segment router SID</span></p>
119 +<p class="p1"><span class="s3"><span class="Apple-converted-space">                </span>"routerIp" : "10.0.1.254", </span><span class="s1">// segment router IP (default gateway of compute nodes)</span></p>
120 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"routerMac" : "00:00:00:00:01:80", </span><span class="s2">// segment router MAC</span></p>
121 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"isEdgeRouter" : true, </span><span class="s2">// true if this is a leaf router</span></p>
122 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"adjacencySids" : [] </span><span class="s2">// unused<span class="Apple-converted-space"> </span></span></p>
123 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
124 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
125 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"of:0000000000000002" : { </span><span class="s2">// fabric leaf 2 DPID</span></p>
126 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"segmentrouting" : {</span></p>
127 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"name" : "Leaf-R2",</span></p>
128 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"nodeSid" : 102,</span></p>
129 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"routerIp" : "10.0.2.254",</span></p>
130 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"routerMac" : "00:00:00:00:02:80",</span></p>
131 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"isEdgeRouter" : true,</span></p>
132 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"adjacencySids" : []</span></p>
133 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
134 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
135 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"of:0000000000000191" : { </span><span class="s2">// fabric spine 1 DPID</span></p>
136 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"segmentrouting" : {</span></p>
137 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"name" : "Spine-R1",</span></p>
138 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"nodeSid" : 103,</span></p>
139 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"routerIp" : "192.168.0.11",</span></p>
140 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"routerMac" : "00:00:01:00:11:80",</span></p>
141 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"isEdgeRouter" : false,</span></p>
142 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"adjacencySids" : []</span></p>
143 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
144 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
145 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"of:0000000000000192" : { </span><span class="s2">// fabric spine 2 DPID</span></p>
146 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"segmentrouting" : {</span></p>
147 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"name" : "Spine-R2",</span></p>
148 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"nodeSid" : 104,</span></p>
149 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"routerIp" : "192.168.0.22",</span></p>
150 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"routerMac" : "00:00:01:00:22:80",</span></p>
151 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"isEdgeRouter" : false,</span></p>
152 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"adjacencySids" : []</span></p>
153 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
154 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>}</span></p>
155 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>},</span></p>
156 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>"hosts" : {</span></p>
157 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"00:02:c9:1e:b1:20/-1" : { </span><span class="s2">// node 1</span></p>
158 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic": {</span></p>
159 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips": ["10.0.1.1"], </span><span class="s2">// node 1 IP</span></p>
160 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"location": "of:0000000000000001/5" </span><span class="s2">// node 1 location</span></p>
161 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
162 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
163 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"02:42:cf:8d:c0:82/-1" : { </span><span class="s4">// vSG1</span></p>
164 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic": {</span></p>
165 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips": ["A.A.A.A"], </span><span class="s4">// vSG1 public IP address</span></p>
166 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"location": "of:0000000000000001/5"</span></p>
167 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
168 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
169 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"02:42:cf:8d:c0:83/-1" : { </span><span class="s4">// vSG2</span></p>
170 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic": {</span></p>
171 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips": ["B.B.B.B"], </span><span class="s4">// vSG2 public IP address</span></p>
172 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"location": "of:0000000000000001/5"</span></p>
173 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
174 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
175 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"00:02:c9:1e:b4:e0/-1" : { </span><span class="s2">// node 2</span></p>
176 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic": {</span></p>
177 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips": ["10.0.1.2"],</span></p>
178 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"location": "of:0000000000000001/7"</span></p>
179 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
180 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
181 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"74:44:01:74:61:92/-1" : { </span><span class="s4">// vSG3</span></p>
182 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic": {</span></p>
183 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips": ["C.C.C.C"], </span><span class="s4">// vSG3 public IP address</span></p>
184 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"location": "of:0000000000000001/30"</span></p>
185 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
186 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
187 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"00:02:c9:1e:b4:60/-1" : { </span><span class="s2">// node 2</span></p>
188 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic": {</span></p>
189 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ips": ["10.0.2.1"], </span><span class="s2">// node 2 IP</span></p>
190 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"location": "of:0000000000000002/5"</span></p>
191 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
192 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>}</span></p>
193 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>},</span></p>
194 +<p class="p6"><span class="s3"><span class="Apple-converted-space">    </span>"links" : { </span><span class="s1">// list of expected links</span></p>
195 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"of:0000000000000001/1-of:0000000000000191/1" : {</span></p>
196 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic" : {}</span></p>
197 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
198 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"of:0000000000000001/3-of:0000000000000192/1" : {</span></p>
199 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic" : {}</span></p>
200 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
201 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"of:0000000000000002/1-of:0000000000000191/3" : {</span></p>
202 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic" : {}</span></p>
203 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
204 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"of:0000000000000002/3-of:0000000000000192/3" : {</span></p>
205 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic" : {}</span></p>
206 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
207 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"of:0000000000000191/1-of:0000000000000001/1" : {</span></p>
208 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic" : {}</span></p>
209 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
210 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"of:0000000000000192/1-of:0000000000000001/3" : {</span></p>
211 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic" : {}</span></p>
212 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
213 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"of:0000000000000191/3-of:0000000000000002/1" : {</span></p>
214 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic" : {}</span></p>
215 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
216 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"of:0000000000000192/3-of:0000000000000002/3" : {</span></p>
217 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"basic" : {}</span></p>
218 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>}</span></p>
219 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>},</span></p>
220 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>"apps" : {</span></p>
221 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"org.onosproject.core" : {</span></p>
222 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"core" : {</span></p>
223 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"linkDiscoveryMode" : "STRICT" </span><span class="s8">// enable strict link validation</span></p>
224 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>} <span class="Apple-converted-space">   </span></span></p>
225 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
226 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"org.onosproject.segmentrouting" : {</span></p>
227 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"segmentrouting" : {</span></p>
228 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"vRouterMacs" : [</span></p>
229 +<p class="p3"><span class="s3"><span class="Apple-converted-space">                    </span>"a4:23:05:34:56:78" </span><span class="s1">// vRouter LAN MAC (vSG’s default gateway)</span></p>
230 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>],</span></p>
231 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"vRouterId" : "of:0000000000000002", </span><span class="s4">// vRouter DPID (0/0 is replaced by this)</span></p>
232 +<p class="p4"><span class="s3"><span class="Apple-converted-space">                 </span>"suppressSubnet" : [ </span><span class="s1">// Do not push subnet rules for these ports</span></p>
233 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                    </span>"of:0000000000000002/31", "of:0000000000000002/32"</span></p>
234 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>],</span></p>
235 +<p class="p4"><span class="s3"><span class="Apple-converted-space">                </span>"suppressHost" : [ </span><span class="s1">// Do not push host rules for these ports</span></p>
236 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                    </span>"of:0000000000000001/65", "of:0000000000000001/73",</span></p>
237 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                    </span>"of:0000000000000002/31", "of:0000000000000002/32"</span></p>
238 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>]</span></p>
239 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
240 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>},</span></p>
241 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>"org.onosproject.router" : {</span></p>
242 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>"router" : {</span></p>
243 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"controlPlaneConnectPoint" : "of:0000000000000002/31", </span><span class="s6">// location of Quagga</span></p>
244 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"ospfEnabled" : "true", </span><span class="s6">// enable OSPF</span></p>
245 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"pimEnabled" : "true", </span><span class="s7">// enable PIM</span></p>
246 +<p class="p7"><span class="s1"><span class="Apple-converted-space">                </span>"interfaces" : [ "external-quagga" ] </span><span class="s9">// </span><span class="s6">VR only handles peers on these ports</span></p>
247 +<p class="p7"><span class="s1"><span class="Apple-converted-space">            </span>}</span></p>
248 +<p class="p7"><span class="s1"><span class="Apple-converted-space">        </span>}</span></p>
249 +<p class="p7"><span class="s1"><span class="Apple-converted-space">    </span>}</span></p>
250 +<p class="p7"><span class="s1">}</span></p>
251 +</body>
252 +</html>
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 -