Create stc net-setup topo for SDN-IP
Updated to latest routinglib version.
Change-Id: I939f5562cc88c30671f8f2f4b074699bd5367a79
diff --git a/tools/test/topos/sdnip.json b/tools/test/topos/sdnip.json
new file mode 100644
index 0000000..912f54b
--- /dev/null
+++ b/tools/test/topos/sdnip.json
@@ -0,0 +1,296 @@
+{
+ "devices":{
+ "of:0000000000000001":{
+ "basic":{
+ "name":"S1",
+ "latitude":39.739317,
+ "longitude":-104.983791
+ }
+ },
+ "of:0000000000000002":{
+ "basic":{
+ "name":"S2",
+ "latitude":39.769089,
+ "longitude":-86.158039
+ }
+ },
+ "of:0000000000000003":{
+ "basic":{
+ "name":"S3",
+ "latitude":35.116541,
+ "longitude":-106.604146
+ }
+ },
+ "of:0000000000000004":{
+ "basic":{
+ "name":"S4",
+ "latitude":32.779501,
+ "longitude":-96.801104
+ }
+ },
+ "of:0000000000000005":{
+ "basic":{
+ "name":"S5",
+ "latitude":45.522585,
+ "longitude":-122.677890
+ }
+ },
+ "of:0000000000000006":{
+ "basic":{
+ "name":"S6",
+ "latitude":37.785286,
+ "longitude":-122.406509
+ }
+ },
+ "of:0000000000000007":{
+ "basic":{
+ "name":"S7",
+ "latitude":34.055604,
+ "longitude":-118.248567
+ }
+ },
+ "of:0000000000000008":{
+ "basic":{
+ "name":"S8",
+ "latitude":40.769487,
+ "longitude":-73.972520
+ }
+ },
+ "of:0000000000000009":{
+ "basic":{
+ "name":"S9",
+ "latitude":38.897676,
+ "longitude":-77.036525
+ }
+ },
+ "of:000000000000000A":{
+ "basic":{
+ "name":"S10",
+ "latitude":33.756298,
+ "longitude":-84.388507
+ }
+ }
+ },
+ "hosts":{
+ "00:00:00:00:00:01/-1":{
+ "basic":{
+ "location":"of:0000000000000001/7",
+ "uiType":"bgpSpeaker",
+ "latitude":42.8498743,
+ "longitude":-106.3598992,
+ "ips":[
+ "10.0.1.2",
+ "10.0.3.2",
+ "10.1.7.2"
+ ]
+ }
+ },
+ "00:00:00:00:00:02/-1":{
+ "basic":{
+ "location":"of:0000000000000001/8",
+ "uiType":"bgpSpeaker",
+ "latitude":42.8498743,
+ "longitude":-103.2984284,
+ "ips":[
+ "10.0.4.2",
+ "10.0.5.2"
+ ]
+ }
+ },
+ "00:00:00:00:00:03/-1":{
+ "basic":{
+ "location":"of:0000000000000001/9",
+ "uiType":"bgpSpeaker",
+ "latitude":41.1330594,
+ "longitude":-102.986907,
+ "ips":[
+ "10.0.2.2",
+ "10.0.6.2",
+ "10.1.8.2"
+ ]
+ }
+ },
+ "00:00:01:00:01:01/-1":{
+ "basic":{
+ "location":"of:0000000000000005/4",
+ "uiType":"router",
+ "latitude":42.512684,
+ "longitude":-126.4902853,
+ "ips":[
+ "10.0.1.1"
+ ]
+ }
+ },
+ "00:00:01:00:01:02/-1":{
+ "basic":{
+ "location":"of:0000000000000006/4",
+ "uiType":"router",
+ "latitude":41.3851357,
+ "longitude":-126.4902853,
+ "ips":[
+ "10.0.2.1"
+ ]
+ }
+ },
+ "00:00:02:00:01:01/-1":{
+ "basic":{
+ "location":"of:0000000000000007/4",
+ "uiType":"router",
+ "latitude":30.8457906,
+ "longitude":-121.354880,
+ "ips":[
+ "10.0.3.1",
+ "10.0.4.1"
+ ]
+ }
+ },
+ "00:00:03:00:01:01/-1":{
+ "basic":{
+ "location":"of:0000000000000008/4",
+ "uiType":"router",
+ "latitude":40.6976637,
+ "longitude":-69.976271,
+ "ips":[
+ "10.0.5.1",
+ "10.0.6.1"
+ ]
+ }
+ },
+ "00:00:04:00:01:01/-1":{
+ "basic":{
+ "location":"of:0000000000000009/4",
+ "uiType":"router",
+ "latitude":39.368502,
+ "longitude":-69.976271,
+ "ips":[
+ "10.0.7.1"
+ ]
+ }
+ },
+ "00:00:04:00:02:01/-1":{
+ "basic":{
+ "location":"of:000000000000000A/4",
+ "uiType":"router",
+ "latitude":30.8457906,
+ "longitude":-83.3532616,
+ "ips":[
+ "10.0.8.1"
+ ]
+ }
+ }
+ },
+ "ports":{
+ "of:0000000000000005/4":{
+ "interfaces":[
+ {
+ "name":"sw5-4",
+ "ips":[
+ "10.0.1.2/24"
+ ],
+ "mac":"00:00:00:00:00:01"
+ }
+ ]
+ },
+ "of:0000000000000006/4":{
+ "interfaces":[
+ {
+ "name":"sw6-4",
+ "ips":[
+ "10.0.2.2/24"
+ ],
+ "mac":"00:00:00:00:00:03"
+ }
+ ]
+ },
+ "of:0000000000000007/4":{
+ "interfaces":[
+ {
+ "name":"sw7-4",
+ "ips":[
+ "10.0.3.2/24"
+ ],
+ "mac":"00:00:00:00:00:01"
+ },
+ {
+ "name":"sw7-42",
+ "ips":[
+ "10.0.4.2/24"
+ ],
+ "mac":"00:00:00:00:00:02"
+ }
+ ]
+ },
+ "of:0000000000000008/4":{
+ "interfaces":[
+ {
+ "name":"sw8-4",
+ "ips":[
+ "10.0.5.2/24"
+ ],
+ "mac":"00:00:00:00:00:02"
+ },
+ {
+ "name":"sw8-42",
+ "ips":[
+ "10.0.6.2/24"
+ ],
+ "mac":"00:00:00:00:00:03"
+ }
+ ]
+ },
+ "of:0000000000000009/4":{
+ "interfaces":[
+ {
+ "name":"sw9-4",
+ "ips":[
+ "10.0.7.2/24"
+ ],
+ "mac":"00:00:00:00:00:01"
+ }
+ ]
+ },
+ "of:000000000000000A/4":{
+ "interfaces":[
+ {
+ "name":"sw10-4",
+ "ips":[
+ "10.0.8.2/24"
+ ],
+ "mac":"00:00:00:00:00:03"
+ }
+ ]
+ }
+ },
+ "apps":{
+ "org.onosproject.router":{
+ "bgp":{
+ "bgpSpeakers":[
+ {
+ "name":"speaker1",
+ "connectPoint":"of:0000000000000001/7",
+ "peers":[
+ "10.0.1.1",
+ "10.0.3.1",
+ "10.0.7.1"
+ ]
+ },
+ {
+ "connectPoint":"of:0000000000000001/8",
+ "peers":[
+ "10.0.4.1",
+ "10.0.5.1"
+ ]
+ },
+ {
+ "connectPoint":"of:0000000000000001/9",
+ "peers":[
+ "10.0.2.1",
+ "10.0.6.1",
+ "10.0.8.1"
+ ]
+ }
+ ]
+ }
+ }
+ }
+}
\ No newline at end of file