1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2 <topology xmlns="http://www.cisco.com/VIRL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" schemaVersion="0.9" xsi:schemaLocation="http://www.cisco.com/VIRL https://raw.github.com/CiscoVIRL/schema/v0.9/virl.xsd">
4 <entry key="management_network" type="String">flat</entry>
6 <node name="vpp-1" type="SIMPLE" subtype="vPP" location="467,307" vmImage="vPP-hacker [445e503a-564e-4c14-93e1-9660957c539a]" vmFlavor="vPP-small [e7f7de38-54e3-46f1-92ef-92b0039c1c60]">
8 <entry key="config" type="string">#cloud-config
10 - ln -s -t /etc/rc.d /etc/rc.local
12 manage_etc_hosts: true
15 - systemctl start getty@ttyS0.service
16 - systemctl start rc-local
17 - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
18 - echo "UseDNS no" >> /etc/ssh/sshd_config
20 - service sshd restart
21 - sed -i 's/no-pci//' /cisco/etc/qn.conf
22 - sed -i 's/1024/1024 decimal-interface-names/g' /cisco/etc/qn.conf
25 - gecos: User configured by VIRL Configuration Engine 0.15.3
28 plain-text-passwd: cisco
31 - VIRL-USER-SSH-PUBLIC-KEY
34 - path: /etc/init/ttyS0.conf
38 # This service maintains a getty on ttyS0 from the point the system is
39 # started until it is shut down again.
40 start on stopped rc or RUNLEVEL=[12345]
41 stop on runlevel [!12345]
43 exec /sbin/getty -L 115200 ttyS0 vt102
45 - path: /etc/systemd/system/dhclient@.service
48 Description=Run dhclient on %i interface
52 ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
56 - path: /cisco/etc/vpp-server.conf
60 set interface ip address GigabitEthernet0/4/0 10.0.0.6/30
61 set interface state GigabitEthernet0/4/0 up
62 set interface ip address GigabitEthernet0/5/0 10.0.0.9/30
63 set interface state GigabitEthernet0/5/0 up
64 mpls encap add label 30 fib 0 dest 10.0.0.10
65 mpls decap add label 30 fib 0
66 create mpls gre tunnel src 10.0.0.9 dst 10.0.0.10 intfc 10.0.0.13/30 inner-fib-id 0 outer-fib-id 0
69 <interface id="0" name="GigabitEthernet0/4/0" ipv4="10.0.0.6" netPrefixLenV4="30"/>
70 <interface id="1" name="GigabitEthernet0/5/0" ipv4="10.0.0.9" netPrefixLenV4="30"/>
72 <node name="vpp-2" type="SIMPLE" subtype="vPP" location="591,305" vmImage="vPP-hacker [445e503a-564e-4c14-93e1-9660957c539a]" vmFlavor="vPP-small [e7f7de38-54e3-46f1-92ef-92b0039c1c60]">
74 <entry key="config" type="string">#cloud-config
76 - ln -s -t /etc/rc.d /etc/rc.local
78 manage_etc_hosts: true
81 - systemctl start getty@ttyS0.service
82 - systemctl start rc-local
83 - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config
84 - echo "UseDNS no" >> /etc/ssh/sshd_config
86 - service sshd restart
87 - sed -i 's/no-pci//' /cisco/etc/qn.conf
88 - sed -i 's/1024/1024 decimal-interface-names/g' /cisco/etc/qn.conf
91 - gecos: User configured by VIRL Configuration Engine 0.15.3
94 plain-text-passwd: cisco
97 - VIRL-USER-SSH-PUBLIC-KEY
100 - path: /etc/init/ttyS0.conf
104 # This service maintains a getty on ttyS0 from the point the system is
105 # started until it is shut down again.
106 start on stopped rc or RUNLEVEL=[12345]
107 stop on runlevel [!12345]
109 exec /sbin/getty -L 115200 ttyS0 vt102
111 - path: /etc/systemd/system/dhclient@.service
114 Description=Run dhclient on %i interface
118 ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease
122 - path: /cisco/etc/vpp-server.conf
126 set interface ip address GigabitEthernet0/4/0 10.0.0.10/30
127 set interface state GigabitEthernet0/4/0 up
128 set interface ip address GigabitEthernet0/5/0 10.0.0.14/30
129 set interface state GigabitEthernet0/5/0 up
130 mpls encap add label 30 fib 0 dest 10.0.0.9
131 mpls decap add label 30 fib 0
132 create mpls gre tunnel src 10.0.0.10 dst 10.0.0.9 intfc 10.0.0.5/30 inner-fib-id 0 outer-fib-id 0
135 <interface id="0" name="GigabitEthernet0/4/0" ipv4="10.0.0.10" netPrefixLenV4="30"/>
136 <interface id="1" name="GigabitEthernet0/5/0" ipv4="10.0.0.14" netPrefixLenV4="30"/>
138 <node name="iosv-1" type="SIMPLE" subtype="IOSv" location="326,311" ipv4="192.168.0.1">
140 <entry key="config" type="string">! IOS Config generated on 2015-03-03 17:26
141 ! by autonetkit_0.15.0
155 service timestamps debug datetime msec
156 service timestamps log datetime msec
157 no service password-encryption
159 enable password cisco
164 transport input ssh telnet
174 ip address 192.168.0.1 255.255.255.255
176 interface GigabitEthernet0/0
177 description OOB Management
178 ! Configured on launch
184 interface GigabitEthernet0/1
186 ip address 10.0.0.5 255.255.255.252
195 network 192.168.0.1 0.0.0.0 area 0
196 log-adjacency-changes
197 passive-interface Loopback0
198 network 10.0.0.4 0.0.0.3 area 0
202 bgp router-id 192.168.0.1
207 neighbor 192.168.0.4 remote-as 1
208 neighbor 192.168.0.4 description iBGP peer iosv-2
209 neighbor 192.168.0.4 update-source Loopback0
214 network 192.168.0.1 mask 255.255.255.255
215 neighbor 192.168.0.4 activate
220 ip route 10.0.0.13 255.255.255.255 10.0.0.6
223 <entry key="AutoNetkit.mgmt_ip" type="string"></entry>
225 <interface id="0" name="GigabitEthernet0/1" ipv4="10.0.0.5" netPrefixLenV4="30"/>
227 <node name="iosv-2" type="SIMPLE" subtype="IOSv" location="741,307" ipv4="192.168.0.4">
229 <entry key="config" type="string">! IOS Config generated on 2015-03-03 17:26
230 ! by autonetkit_0.15.0
244 service timestamps debug datetime msec
245 service timestamps log datetime msec
246 no service password-encryption
248 enable password cisco
253 transport input ssh telnet
263 ip address 192.168.0.4 255.255.255.255
265 interface GigabitEthernet0/0
266 description OOB Management
267 ! Configured on launch
273 interface GigabitEthernet0/1
275 ip address 10.0.0.13 255.255.255.252
284 network 192.168.0.4 0.0.0.0 area 0
285 log-adjacency-changes
286 passive-interface Loopback0
287 network 10.0.0.12 0.0.0.3 area 0
291 bgp router-id 192.168.0.4
296 neighbor 192.168.0.1 remote-as 1
297 neighbor 192.168.0.1 description iBGP peer iosv-1
298 neighbor 192.168.0.1 update-source Loopback0
303 network 192.168.0.4 mask 255.255.255.255
304 neighbor 192.168.0.1 activate
308 ip route 10.0.0.5 255.255.255.255 10.0.0.14
312 <entry key="AutoNetkit.mgmt_ip" type="string"></entry>
314 <interface id="0" name="GigabitEthernet0/1" ipv4="10.0.0.13" netPrefixLenV4="30"/>
316 <connection dst="/virl:topology/virl:node[1]/virl:interface[1]" src="/virl:topology/virl:node[3]/virl:interface[1]"/>
317 <connection dst="/virl:topology/virl:node[2]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[2]"/>
318 <connection dst="/virl:topology/virl:node[4]/virl:interface[1]" src="/virl:topology/virl:node[2]/virl:interface[2]"/>