blob: ababef0a7ff136083fc5eaf464cb85bb4ec63e03 [file] [log] [blame]
Thomas Vachuskaeec8b192016-12-14 16:58:08 -08001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Creates a replica of the GEANT topology using ONOS null provider
4# -----------------------------------------------------------------------------
5
Simon Huntfe3d7b42017-04-05 11:19:45 -07006# config
7host=${1:-localhost}
8nports=24
9sleepfor=5
10
11
12# start custom simulation..
13onos ${host} null-simulation start custom
14
15
16## unfortunately, it takes a time for the sim to start up
17# this is not ideal...
18
19echo
20echo "Sleeping while sim starts up... (${sleepfor} seconds)..."
21echo
22sleep ${sleepfor}
23
24# Add devices, links, and hosts
Thomas Vachuskaeec8b192016-12-14 16:58:08 -080025onos ${1:-localhost} <<-EOF
26
Simon Huntfe3d7b42017-04-05 11:19:45 -070027null-create-device switch ATH ${nports} 37.984149 23.7279843
28null-create-device switch LIS ${nports} 38.707792 -9.1365069
29null-create-device switch LON ${nports} 51.507321 -0.1276473
30null-create-device switch BRU ${nports} 50.846556 4.351697
31null-create-device switch PAR ${nports} 48.856610 2.3514992
32null-create-device switch DUB ${nports} 53.349764 -8.2602731
33null-create-device switch MAD ${nports} 40.416704 -3.7035824
34null-create-device switch GEN ${nports} 46.201755 6.1466014
35null-create-device switch MIL ${nports} 45.466797 9.1904984
36null-create-device switch SOF ${nports} 42.697721 23.3225964
37null-create-device switch BUC ${nports} 44.436141 26.1027443
38null-create-device switch VIE ${nports} 48.208353 15.3725042
39null-create-device switch FRA ${nports} 50.110652 8.6820934
40null-create-device switch COP ${nports} 55.686724 9.5700724
41null-create-device switch TLN ${nports} 59.437215 24.7453688
42null-create-device switch RIG ${nports} 56.949397 24.1051846
43null-create-device switch KAU ${nports} 54.898106 23.9117515
44null-create-device switch POZ ${nports} 52.408266 16.9335199
45null-create-device switch PRA ${nports} 50.087465 14.4212503
46null-create-device switch BRA ${nports} 48.135908 18.1597440
47null-create-device switch ZAG ${nports} 45.813154 15.9770298
48null-create-device switch LJU ${nports} 46.049865 14.5068921
49null-create-device switch BUD ${nports} 47.498381 19.0404707
50null-create-device switch MLT ${nports} 35.898754 14.5134889
51null-create-device switch LUX ${nports} 49.815868 6.1296751
52null-create-device switch MAR ${nports} 43.296174 5.3699525
53null-create-device switch HAM ${nports} 50.699641 10.6301627
54null-create-device switch AMS ${nports} 50.828525 -4.546936
55null-create-device switch STO ${nports} 43.296174 5.3699525
56null-create-device switch OSL ${nports} 53.550341 10.000654
57null-create-device switch HEL ${nports} 52.374436 4.89799560
Thomas Vachuskaeec8b192016-12-14 16:58:08 -080058
59null-create-link direct ATH MIL
60null-create-link direct MIL ATH
61null-create-link direct MIL VIE
62null-create-link direct MIL MAR
63null-create-link direct MIL GEN
64null-create-link direct GEN MIL
65null-create-link direct MIL MLT
66null-create-link direct GEN FRA
67null-create-link direct FRA GEN
68null-create-link direct GEN PAR
69null-create-link direct PAR GEN
70null-create-link direct GEN PAR
71null-create-link direct FRA POZ
72null-create-link direct GEN MAR
73null-create-link direct MAR MAD
74null-create-link direct MAD PAR
75null-create-link direct MAD LIS
76null-create-link direct LIS LON
77null-create-link direct LON LIS
78null-create-link direct LON PAR
79null-create-link direct LON DUB
80null-create-link direct DUB LON
81null-create-link direct LON BRU
82null-create-link direct BRU AMS
83null-create-link direct AMS LUX
84null-create-link direct LUX FRA
85null-create-link direct AMS HAM
86null-create-link direct HAM FRA
87null-create-link direct HAM COP
88null-create-link direct COP AMS
89null-create-link direct FRA POZ
90null-create-link direct FRA PRA
91null-create-link direct FRA BUD
92null-create-link direct FRA VIE
93null-create-link direct POZ PRA
94null-create-link direct POZ KAU
95null-create-link direct KAU RIG
96null-create-link direct ZAG VIE
97null-create-link direct ZAG BUD
98null-create-link direct BUD PRA
99null-create-link direct BUD BRA
100null-create-link direct BUD BUC
101null-create-link direct BUD SOF
102null-create-link direct BUD LJU
103null-create-link direct BUC SOF
104null-create-link direct BUC VIE
105null-create-link direct VIE BRA
106null-create-link direct RIG TLN
107null-create-link direct TLN HAM
108null-create-link direct OSL STO
109null-create-link direct STO HEL
110null-create-link direct STO COP
111null-create-link direct OSL COP
112null-create-link direct TLN HEL
113
114null-create-host ATH 192.168.1.1 34.984149 24.7279843
115null-create-host LIS 192.168.1.2 37.707792 -7.1365069
116null-create-host LON 192.168.1.3 53.507321 -1.1276473
117null-create-host BRU 192.168.1.4 49.046556 4.351697
118null-create-host PAR 192.168.1.5 46.856610 2.3514992
119null-create-host DUB 192.168.1.6 54.349764 -8.2602731
120null-create-host MAD 192.168.1.7 37.416704 -3.7035824
121null-create-host GEN 192.168.1.8 45.001755 4.1466014
122null-create-host MIL 192.168.1.9 45.466797 6.6904984
123null-create-host SOF 192.168.1.10 42.697721 27.9225964
124null-create-host BUC 192.168.1.11 47.436141 26.1027443
125null-create-host VIE 192.168.1.12 48.208353 13.3725042
126null-create-host FRA 192.168.1.13 48.110652 9.2820934
127null-create-host COP 192.168.1.14 57.186724 9.5700724
128null-create-host TLN 192.168.1.15 59.437215 26.7453688
129null-create-host RIG 192.168.1.16 56.949397 26.1051846
130null-create-host KAU 192.168.1.17 52.898106 24.9117515
131null-create-host POZ 192.168.1.18 50.408266 19.3335199
132null-create-host PRA 192.168.1.19 50.087465 16.4212503
133null-create-host BRA 192.168.1.20 48.835908 19.1597440
134null-create-host ZAG 192.168.1.21 43.213154 16.4770298
135null-create-host LJU 192.168.1.22 46.049865 13.2068921
136null-create-host BUD 192.168.1.23 47.898381 20.2404707
137null-create-host MLT 192.168.1.24 32.898754 14.5134889
138null-create-host LUX 192.168.1.25 48.815868 6.5296751
139null-create-host MAR 192.168.1.26 43.296174 5.3699525
140null-create-host HAM 192.168.1.27 50.828525 -4.546936
141null-create-host AMS 192.168.1.28 43.374436 3.3699525
142null-create-host STO 192.168.1.29 52.699641 11.6301627
143null-create-host OSL 192.168.1.30 51.374436 7.39799560
144null-create-host HEL 192.168.1.31 61.325117 16.0710935
145
146EOF