dpdk: Add support for Mellanox ConnectX-4 devices
[vpp.git] / src / scripts / vnet / virl / ip6sr.virl
1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
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">\r
3     <extensions>\r
4         <entry key="management_network" type="String">flat</entry>\r
5         <entry key="AutoNetkit.address_family" type="String">dual_stack</entry>\r
6         <entry key="AutoNetkit.enable_routing" type="Boolean">false</entry>\r
7     </extensions>\r
8     <node name="iosv-1" type="SIMPLE" subtype="IOSv" location="195,78" ipv4="192.168.0.2" ipv6="::b:1:0:0:2">\r
9         <extensions>\r
10             <entry key="config" type="string">!\r
11 ! Last configuration change at 16:41:18 UTC Fri Mar 27 2015\r
12 !\r
13 version 15.4\r
14 service timestamps debug datetime msec\r
15 service timestamps log datetime msec\r
16 no service password-encryption\r
17 !\r
18 hostname iosv-1\r
19 !\r
20 boot-start-marker\r
21 boot-end-marker\r
22 !\r
23 !\r
24 enable password cisco\r
25 !\r
26 no aaa new-model\r
27 !\r
28 !\r
29 !\r
30 mmi polling-interval 60\r
31 no mmi auto-configure\r
32 no mmi pvc\r
33 mmi snmp-timeout 180\r
34 !\r
35 !\r
36 !\r
37 !\r
38 !\r
39 !\r
40 !\r
41 !\r
42 !\r
43 !\r
44 !\r
45 !\r
46 !\r
47 no ip domain lookup\r
48 ip cef\r
49 ipv6 unicast-routing\r
50 ipv6 cef\r
51 !\r
52 multilink bundle-name authenticated\r
53 !\r
54 !\r
55 cts logging verbose\r
56 !\r
57 !\r
58 !\r
59 redundancy\r
60 !\r
61 !\r
62\r
63 !\r
64 !\r
65 !\r
66 !\r
67 !\r
68 !\r
69 !\r
70 !\r
71 !\r
72 !\r
73 !\r
74 !\r
75 interface Loopback0\r
76  description Loopback\r
77  ip address 192.168.0.2 255.255.255.255\r
78  ipv6 address ::B:1:0:0:2/128\r
79 !\r
80 interface GigabitEthernet0/0\r
81  description OOB Management\r
82  ip address 172.16.1.193 255.255.255.0\r
83  duplex auto\r
84  speed auto\r
85  media-type rj45\r
86 !\r
87 interface GigabitEthernet0/1\r
88  description to vpp-1\r
89  ip address 10.0.0.5 255.255.255.252\r
90  duplex auto\r
91  speed auto\r
92  media-type rj45\r
93  ipv6 address ::A:1:1:0:6/126\r
94 !\r
95 ip forward-protocol nd\r
96 !\r
97 !\r
98 no ip http server\r
99 no ip http secure-server\r
100 !\r
101 ! route to iosv-2\r
102 ipv6 route ::A:1:1:0:16/128 ::A:1:1:0:7\r
103 ! route to iosv-4\r
104 ipv6 route ::A:1:1:0:22/128 ::A:1:1:0:7\r
105 !\r
106 !\r
107 !\r
108 control-plane\r
109 !\r
110 banner exec `\r
111 **************************************************************************\r
112 * IOSv is strictly limited to use for evaluation, demonstration and IOS  *\r
113 * education. IOSv is provided as-is and is not supported by Cisco's      *\r
114 * Technical Advisory Center. Any use or disclosure, in whole or in part, *\r
115 * of the IOSv Software or Documentation to any third party for any       *\r
116 * purposes is expressly prohibited except as otherwise authorized by     *\r
117 * Cisco in writing.                                                      *\r
118 **************************************************************************`\r
119 banner incoming `\r
120 **************************************************************************\r
121 * IOSv is strictly limited to use for evaluation, demonstration and IOS  *\r
122 * education. IOSv is provided as-is and is not supported by Cisco's      *\r
123 * Technical Advisory Center. Any use or disclosure, in whole or in part, *\r
124 * of the IOSv Software or Documentation to any third party for any       *\r
125 * purposes is expressly prohibited except as otherwise authorized by     *\r
126 * Cisco in writing.                                                      *\r
127 **************************************************************************`\r
128 banner login `\r
129 **************************************************************************\r
130 * IOSv is strictly limited to use for evaluation, demonstration and IOS  *\r
131 * education. IOSv is provided as-is and is not supported by Cisco's      *\r
132 * Technical Advisory Center. Any use or disclosure, in whole or in part, *\r
133 * of the IOSv Software or Documentation to any third party for any       *\r
134 * purposes is expressly prohibited except as otherwise authorized by     *\r
135 * Cisco in writing.                                                      *\r
136 **************************************************************************`\r
137 !\r
138 line con 0\r
139  password cisco\r
140 line aux 0\r
141 line vty 0 4\r
142  exec-timeout 720 0\r
143  password cisco\r
144  login\r
145  transport input telnet ssh\r
146 !\r
147 no scheduler allocate\r
148 !\r
149 end</entry>\r
150             <entry key="AutoNetkit.mgmt_ip" type="string"></entry>\r
151         </extensions>\r
152         <interface id="0" name="GigabitEthernet0/1" ipv4="10.0.0.5" ipv6="::a:1:1:0:6" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
153     </node>\r
154     <node name="iosv-2" type="SIMPLE" subtype="IOSv" location="667,82" ipv4="192.168.0.3" ipv6="::b:1:0:0:3">\r
155         <extensions>\r
156             <entry key="config" type="string">!\r
157 ! Last configuration change at 16:41:10 UTC Fri Mar 27 2015\r
158 !\r
159 version 15.4\r
160 service timestamps debug datetime msec\r
161 service timestamps log datetime msec\r
162 no service password-encryption\r
163 !\r
164 hostname iosv-2\r
165 !\r
166 boot-start-marker\r
167 boot-end-marker\r
168 !\r
169 !\r
170 enable password cisco\r
171 !\r
172 no aaa new-model\r
173 !\r
174 !\r
175 !\r
176 mmi polling-interval 60\r
177 no mmi auto-configure\r
178 no mmi pvc\r
179 mmi snmp-timeout 180\r
180 !\r
181 !\r
182 !\r
183 !\r
184 !\r
185 !\r
186 !\r
187 !\r
188 !\r
189 !\r
190 !\r
191 !\r
192 !\r
193 no ip domain lookup\r
194 ip cef\r
195 ipv6 unicast-routing\r
196 ipv6 cef\r
197 !\r
198 multilink bundle-name authenticated\r
199 !\r
200 !\r
201 cts logging verbose\r
202 !\r
203 !\r
204 !\r
205 redundancy\r
206 !\r
207 !\r
208\r
209 !\r
210 !\r
211 !\r
212 !\r
213 !\r
214 !\r
215 !\r
216 !\r
217 !\r
218 !\r
219 !\r
220 !\r
221 interface Loopback0\r
222  description Loopback\r
223  ip address 192.168.0.3 255.255.255.255\r
224  ipv6 address ::B:1:0:0:3/128\r
225 !\r
226 interface GigabitEthernet0/0\r
227  description OOB Management\r
228  ip address 172.16.1.191 255.255.255.0\r
229  duplex auto\r
230  speed auto\r
231  media-type rj45\r
232 !\r
233 interface GigabitEthernet0/1\r
234  description to vpp-2\r
235  ip address 10.0.0.21 255.255.255.252\r
236  duplex auto\r
237  speed auto\r
238  media-type rj45\r
239  ipv6 address ::A:1:1:0:16/126\r
240 !\r
241 ip forward-protocol nd\r
242 !\r
243 !\r
244 no ip http server\r
245 no ip http secure-server\r
246 !\r
247 ipv6 route ::A:1:1:0:6/128 ::A:1:1:0:17\r
248 !\r
249 !\r
250 !\r
251 control-plane\r
252 !\r
253 banner exec `\r
254 **************************************************************************\r
255 * IOSv is strictly limited to use for evaluation, demonstration and IOS  *\r
256 * education. IOSv is provided as-is and is not supported by Cisco's      *\r
257 * Technical Advisory Center. Any use or disclosure, in whole or in part, *\r
258 * of the IOSv Software or Documentation to any third party for any       *\r
259 * purposes is expressly prohibited except as otherwise authorized by     *\r
260 * Cisco in writing.                                                      *\r
261 **************************************************************************`\r
262 banner incoming `\r
263 **************************************************************************\r
264 * IOSv is strictly limited to use for evaluation, demonstration and IOS  *\r
265 * education. IOSv is provided as-is and is not supported by Cisco's      *\r
266 * Technical Advisory Center. Any use or disclosure, in whole or in part, *\r
267 * of the IOSv Software or Documentation to any third party for any       *\r
268 * purposes is expressly prohibited except as otherwise authorized by     *\r
269 * Cisco in writing.                                                      *\r
270 **************************************************************************`\r
271 banner login `\r
272 **************************************************************************\r
273 * IOSv is strictly limited to use for evaluation, demonstration and IOS  *\r
274 * education. IOSv is provided as-is and is not supported by Cisco's      *\r
275 * Technical Advisory Center. Any use or disclosure, in whole or in part, *\r
276 * of the IOSv Software or Documentation to any third party for any       *\r
277 * purposes is expressly prohibited except as otherwise authorized by     *\r
278 * Cisco in writing.                                                      *\r
279 **************************************************************************`\r
280 !\r
281 line con 0\r
282  password cisco\r
283 line aux 0\r
284 line vty 0 4\r
285  exec-timeout 720 0\r
286  password cisco\r
287  login\r
288  transport input telnet ssh\r
289 !\r
290 no scheduler allocate\r
291 !\r
292 end</entry>\r
293             <entry key="AutoNetkit.mgmt_ip" type="string"></entry>\r
294         </extensions>\r
295         <interface id="0" name="GigabitEthernet0/1" ipv4="10.0.0.21" ipv6="::a:1:1:0:16" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
296     </node>\r
297     <node name="iosv-3" type="SIMPLE" subtype="IOSv" location="194,186" ipv4="192.168.0.6" ipv6="::b:1:0:0:4">\r
298         <extensions>\r
299             <entry key="config" type="string">!\r
300 ! Last configuration change at 16:27:43 UTC Fri Mar 27 2015\r
301 !\r
302 version 15.4\r
303 service timestamps debug datetime msec\r
304 service timestamps log datetime msec\r
305 no service password-encryption\r
306 !\r
307 hostname iosv-3\r
308 !\r
309 boot-start-marker\r
310 boot-end-marker\r
311 !\r
312 !\r
313 enable password cisco\r
314 !\r
315 no aaa new-model\r
316 !\r
317 !\r
318 !\r
319 mmi polling-interval 60\r
320 no mmi auto-configure\r
321 no mmi pvc\r
322 mmi snmp-timeout 180\r
323 !\r
324 !\r
325 !\r
326 !\r
327 !\r
328 !\r
329 !\r
330 !\r
331 !\r
332 !\r
333 !\r
334 !\r
335 !\r
336 no ip domain lookup\r
337 ip cef\r
338 ipv6 unicast-routing\r
339 ipv6 cef\r
340 !\r
341 multilink bundle-name authenticated\r
342 !\r
343 !\r
344 cts logging verbose\r
345 !\r
346 !\r
347 !\r
348 redundancy\r
349 !\r
350 !\r
351\r
352 !\r
353 !\r
354 !\r
355 !\r
356 !\r
357 !\r
358 !\r
359 !\r
360 !\r
361 !\r
362 !\r
363 !\r
364 interface Loopback0\r
365  description Loopback\r
366  ip address 192.168.0.6 255.255.255.255\r
367  ipv6 address ::B:1:0:0:4/128\r
368 !\r
369 interface GigabitEthernet0/0\r
370  description OOB Management\r
371  ip address 172.16.1.192 255.255.255.0\r
372  duplex auto\r
373  speed auto\r
374  media-type rj45\r
375 !\r
376 interface GigabitEthernet0/1\r
377  description to vpp-1\r
378  ip address 10.0.0.9 255.255.255.252\r
379  duplex auto\r
380  speed auto\r
381  media-type rj45\r
382  ipv6 address ::A:1:1:0:A/126\r
383 !\r
384 ip forward-protocol nd\r
385 !\r
386 !\r
387 no ip http server\r
388 no ip http secure-server\r
389 !\r
390 !\r
391 !\r
392 !\r
393 control-plane\r
394 !\r
395 banner exec `\r
396 **************************************************************************\r
397 * IOSv is strictly limited to use for evaluation, demonstration and IOS  *\r
398 * education. IOSv is provided as-is and is not supported by Cisco's      *\r
399 * Technical Advisory Center. Any use or disclosure, in whole or in part, *\r
400 * of the IOSv Software or Documentation to any third party for any       *\r
401 * purposes is expressly prohibited except as otherwise authorized by     *\r
402 * Cisco in writing.                                                      *\r
403 **************************************************************************`\r
404 banner incoming `\r
405 **************************************************************************\r
406 * IOSv is strictly limited to use for evaluation, demonstration and IOS  *\r
407 * education. IOSv is provided as-is and is not supported by Cisco's      *\r
408 * Technical Advisory Center. Any use or disclosure, in whole or in part, *\r
409 * of the IOSv Software or Documentation to any third party for any       *\r
410 * purposes is expressly prohibited except as otherwise authorized by     *\r
411 * Cisco in writing.                                                      *\r
412 **************************************************************************`\r
413 banner login `\r
414 **************************************************************************\r
415 * IOSv is strictly limited to use for evaluation, demonstration and IOS  *\r
416 * education. IOSv is provided as-is and is not supported by Cisco's      *\r
417 * Technical Advisory Center. Any use or disclosure, in whole or in part, *\r
418 * of the IOSv Software or Documentation to any third party for any       *\r
419 * purposes is expressly prohibited except as otherwise authorized by     *\r
420 * Cisco in writing.                                                      *\r
421 **************************************************************************`\r
422 !\r
423 line con 0\r
424  password cisco\r
425 line aux 0\r
426 line vty 0 4\r
427  exec-timeout 720 0\r
428  password cisco\r
429  login\r
430  transport input telnet ssh\r
431 !\r
432 no scheduler allocate\r
433 !\r
434 end</entry>\r
435             <entry key="AutoNetkit.mgmt_ip" type="string"></entry>\r
436         </extensions>\r
437         <interface id="0" name="GigabitEthernet0/1" ipv4="10.0.0.9" ipv6="::a:1:1:0:a" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
438     </node>\r
439     <node name="iosv-4" type="SIMPLE" subtype="IOSv" location="668,193" ipv4="192.168.0.8" ipv6="::b:1:0:0:5">\r
440         <extensions>\r
441             <entry key="config" type="string">!\r
442 ! Last configuration change at 16:27:43 UTC Fri Mar 27 2015\r
443 !\r
444 version 15.4\r
445 service timestamps debug datetime msec\r
446 service timestamps log datetime msec\r
447 no service password-encryption\r
448 !\r
449 hostname iosv-4\r
450 !\r
451 boot-start-marker\r
452 boot-end-marker\r
453 !\r
454 !\r
455 enable password cisco\r
456 !\r
457 no aaa new-model\r
458 !\r
459 !\r
460 !\r
461 mmi polling-interval 60\r
462 no mmi auto-configure\r
463 no mmi pvc\r
464 mmi snmp-timeout 180\r
465 !\r
466 !\r
467 !\r
468 !\r
469 !\r
470 !\r
471 !\r
472 !\r
473 !\r
474 !\r
475 !\r
476 !\r
477 !\r
478 no ip domain lookup\r
479 ip cef\r
480 ipv6 unicast-routing\r
481 ipv6 cef\r
482 !\r
483 multilink bundle-name authenticated\r
484 !\r
485 !\r
486 cts logging verbose\r
487 !\r
488 !\r
489 !\r
490 redundancy\r
491 !\r
492 !\r
493\r
494 !\r
495 !\r
496 !\r
497 !\r
498 !\r
499 !\r
500 !\r
501 !\r
502 !\r
503 !\r
504 !\r
505 !\r
506 interface Loopback0\r
507  description Loopback\r
508  ip address 192.168.0.8 255.255.255.255\r
509  ipv6 address ::B:1:0:0:5/128\r
510 !\r
511 interface GigabitEthernet0/0\r
512  description OOB Management\r
513  ip address 172.16.1.194 255.255.255.0\r
514  duplex auto\r
515  speed auto\r
516  media-type rj45\r
517 !\r
518 interface GigabitEthernet0/1\r
519  description to vpp-2\r
520  ip address 10.0.0.33 255.255.255.252\r
521  duplex auto\r
522  speed auto\r
523  media-type rj45\r
524  ipv6 address ::A:1:1:0:22/126\r
525 !\r
526 ! Route to iosv-1\r
527 ipv6 route ::A:1:1:0:6/128 ::A:1:1:0:23\r
528 ip forward-protocol nd\r
529 !\r
530 !\r
531 no ip http server\r
532 no ip http secure-server\r
533 !\r
534 !\r
535 !\r
536 !\r
537 control-plane\r
538 !\r
539 banner exec `\r
540 **************************************************************************\r
541 * IOSv is strictly limited to use for evaluation, demonstration and IOS  *\r
542 * education. IOSv is provided as-is and is not supported by Cisco's      *\r
543 * Technical Advisory Center. Any use or disclosure, in whole or in part, *\r
544 * of the IOSv Software or Documentation to any third party for any       *\r
545 * purposes is expressly prohibited except as otherwise authorized by     *\r
546 * Cisco in writing.                                                      *\r
547 **************************************************************************`\r
548 banner incoming `\r
549 **************************************************************************\r
550 * IOSv is strictly limited to use for evaluation, demonstration and IOS  *\r
551 * education. IOSv is provided as-is and is not supported by Cisco's      *\r
552 * Technical Advisory Center. Any use or disclosure, in whole or in part, *\r
553 * of the IOSv Software or Documentation to any third party for any       *\r
554 * purposes is expressly prohibited except as otherwise authorized by     *\r
555 * Cisco in writing.                                                      *\r
556 **************************************************************************`\r
557 banner login `\r
558 **************************************************************************\r
559 * IOSv is strictly limited to use for evaluation, demonstration and IOS  *\r
560 * education. IOSv is provided as-is and is not supported by Cisco's      *\r
561 * Technical Advisory Center. Any use or disclosure, in whole or in part, *\r
562 * of the IOSv Software or Documentation to any third party for any       *\r
563 * purposes is expressly prohibited except as otherwise authorized by     *\r
564 * Cisco in writing.                                                      *\r
565 **************************************************************************`\r
566 !\r
567 line con 0\r
568  password cisco\r
569 line aux 0\r
570 line vty 0 4\r
571  exec-timeout 720 0\r
572  password cisco\r
573  login\r
574  transport input telnet ssh\r
575 !\r
576 no scheduler allocate\r
577 !\r
578 end</entry>\r
579             <entry key="AutoNetkit.mgmt_ip" type="string"></entry>\r
580         </extensions>\r
581         <interface id="0" name="GigabitEthernet0/1" ipv4="10.0.0.33" ipv6="::a:1:1:0:22" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
582     </node>\r
583     <node name="vpp-1" type="SIMPLE" subtype="vPP" location="302,140">\r
584         <extensions>\r
585             <entry key="config" type="string">#cloud-config\r
586 bootcmd:\r
587 - ln -s -t /etc/rc.d /etc/rc.local\r
588 hostname: vpp-1\r
589 manage_etc_hosts: true\r
590 runcmd:\r
591 - start ttyS0\r
592 - systemctl start getty@ttyS0.service\r
593 - systemctl start rc-local\r
594 - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config\r
595 - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config\r
596 - service ssh restart\r
597 - service sshd restart\r
598 - sed -i 's/no-pci//' /cisco/etc/qn.conf\r
599 - sed -i 's/1024/1024 decimal-interface-names/g' /cisco/etc/qn.conf\r
600 users:\r
601 - default\r
602 - gecos: User configured by VIRL Configuration Engine 0.15.3\r
603   lock-passwd: false\r
604   name: cisco\r
605   plain-text-passwd: cisco\r
606   shell: /bin/bash\r
607   ssh-authorized-keys:\r
608   - VIRL-USER-SSH-PUBLIC-KEY\r
609   sudo: ALL=(ALL) ALL\r
610 write_files:\r
611 - path: /etc/init/ttyS0.conf\r
612   owner: root:root\r
613   content: |\r
614     # ttyS0 - getty\r
615     # This service maintains a getty on ttyS0 from the point the system is\r
616     # started until it is shut down again.\r
617     start on stopped rc or RUNLEVEL=[12345]\r
618     stop on runlevel [!12345]\r
619     respawn\r
620     exec /sbin/getty -L 115200 ttyS0 vt102\r
621   permissions: '0644'\r
622 - path: /etc/systemd/system/dhclient@.service\r
623   content: |\r
624     [Unit]\r
625     Description=Run dhclient on %i interface\r
626     After=network.target\r
627     [Service]\r
628     Type=oneshot\r
629     ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease\r
630     RemainAfterExit=yes\r
631   owner: root:root\r
632   permissions: '0644'\r
633 - path: /cisco/etc/vpp-server.conf\r
634   owner: root:root\r
635   permissions: '0644'\r
636   content: |-\r
637     set interface ip address GigabitEthernet0/4/0 10.0.0.6/30\r
638     set interface ip address GigabitEthernet0/4/0 ::a:1:1:0:7/126\r
639     set interface state GigabitEthernet0/4/0 up\r
640     set interface ip address GigabitEthernet0/5/0 10.0.0.10/30\r
641     set interface ip address GigabitEthernet0/5/0 ::a:1:1:0:b/126\r
642     set interface state GigabitEthernet0/5/0 up\r
643     set interface ip address GigabitEthernet0/6/0 10.0.0.13/30\r
644     set interface ip address GigabitEthernet0/6/0 ::a:1:1:0:e/126\r
645     set interface state GigabitEthernet0/6/0 up\r
646     set interface ip address GigabitEthernet0/7/0 10.0.0.17/30\r
647     set interface ip address GigabitEthernet0/7/0 ::a:1:1:0:12/126\r
648     set interface state GigabitEthernet0/7/0 up\r
649     sr tunnel src 0::a:1:1:0:6 dst 0::a:1:1:0:16/128 next 0::a:1:1:0:f next 0::a:1:1:0:1a next 0::a:1:1:0:16 tag 0::a:1:1:0:7 InPE 1 clean\r
650     sr tunnel src 0::a:1:1:0:6 dst 0::a:1:1:0:22/128 next 0::a:1:1:0:f next 0::a:1:1:0:1a next 0::a:1:1:0:22 tag 0::a:1:1:0:7 InPE 1 clean\r
651 </entry>\r
652         </extensions>\r
653         <interface id="0" name="GigabitEthernet0/4/0" ipv4="10.0.0.6" ipv6="::a:1:1:0:7" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
654         <interface id="1" name="GigabitEthernet0/5/0" ipv4="10.0.0.10" ipv6="::a:1:1:0:b" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
655         <interface id="2" name="GigabitEthernet0/6/0" ipv4="10.0.0.13" ipv6="::a:1:1:0:e" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
656         <interface id="3" name="GigabitEthernet0/7/0" ipv4="10.0.0.17" ipv6="::a:1:1:0:12" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
657     </node>\r
658     <node name="vpp-2" type="SIMPLE" subtype="vPP" location="541,147">\r
659         <extensions>\r
660             <entry key="config" type="string">#cloud-config\r
661 bootcmd:\r
662 - ln -s -t /etc/rc.d /etc/rc.local\r
663 hostname: vpp-2\r
664 manage_etc_hosts: true\r
665 runcmd:\r
666 - start ttyS0\r
667 - systemctl start getty@ttyS0.service\r
668 - systemctl start rc-local\r
669 - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config\r
670 - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config\r
671 - service ssh restart\r
672 - service sshd restart\r
673 - sed -i 's/no-pci//' /cisco/etc/qn.conf\r
674 - sed -i 's/1024/1024 decimal-interface-names/g' /cisco/etc/qn.conf\r
675 users:\r
676 - default\r
677 - gecos: User configured by VIRL Configuration Engine 0.15.3\r
678   lock-passwd: false\r
679   name: cisco\r
680   plain-text-passwd: cisco\r
681   shell: /bin/bash\r
682   ssh-authorized-keys:\r
683   - VIRL-USER-SSH-PUBLIC-KEY\r
684   sudo: ALL=(ALL) ALL\r
685 write_files:\r
686 - path: /etc/init/ttyS0.conf\r
687   owner: root:root\r
688   content: |\r
689     # ttyS0 - getty\r
690     # This service maintains a getty on ttyS0 from the point the system is\r
691     # started until it is shut down again.\r
692     start on stopped rc or RUNLEVEL=[12345]\r
693     stop on runlevel [!12345]\r
694     respawn\r
695     exec /sbin/getty -L 115200 ttyS0 vt102\r
696   permissions: '0644'\r
697 - path: /etc/systemd/system/dhclient@.service\r
698   content: |\r
699     [Unit]\r
700     Description=Run dhclient on %i interface\r
701     After=network.target\r
702     [Service]\r
703     Type=oneshot\r
704     ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease\r
705     RemainAfterExit=yes\r
706   owner: root:root\r
707   permissions: '0644'\r
708 - path: /cisco/etc/vpp-server.conf\r
709   owner: root:root\r
710   permissions: '0644'\r
711   content: |-\r
712     set interface ip address GigabitEthernet0/4/0 10.0.0.25/30\r
713     set interface ip address GigabitEthernet0/4/0 ::a:1:1:0:1a/126\r
714     set interface state GigabitEthernet0/4/0 up\r
715     set interface ip address GigabitEthernet0/5/0 10.0.0.29/30\r
716     set interface ip address GigabitEthernet0/5/0 ::a:1:1:0:1e/126\r
717     set interface state GigabitEthernet0/5/0 up\r
718     set interface ip address GigabitEthernet0/6/0 10.0.0.22/30\r
719     set interface ip address GigabitEthernet0/6/0 ::a:1:1:0:17/126\r
720     set interface state GigabitEthernet0/6/0 up\r
721     set interface ip address GigabitEthernet0/7/0 10.0.0.34/30\r
722     set interface ip address GigabitEthernet0/7/0 ::a:1:1:0:23/126\r
723     set interface state GigabitEthernet0/7/0 up\r
724     sr tunnel src 0::a:1:1:0:16 dst 0::a:1:1:0:6/128 next 0::a:1:1:0:1b next 0::a:1:1:0:e next 0::a:1:1:0:6 tag 0::a:1:1:0:17 InPE 1 clean\r
725 </entry>\r
726         </extensions>\r
727         <interface id="0" name="GigabitEthernet0/4/0" ipv4="10.0.0.25" ipv6="::a:1:1:0:1a" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
728         <interface id="1" name="GigabitEthernet0/5/0" ipv4="10.0.0.29" ipv6="::a:1:1:0:1e" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
729         <interface id="2" name="GigabitEthernet0/6/0" ipv4="10.0.0.22" ipv6="::a:1:1:0:17" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
730         <interface id="3" name="GigabitEthernet0/7/0" ipv4="10.0.0.34" ipv6="::a:1:1:0:23" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
731     </node>\r
732     <node name="vpp-3" type="SIMPLE" subtype="vPP" location="415,89">\r
733         <extensions>\r
734             <entry key="config" type="string">#cloud-config\r
735 bootcmd:\r
736 - ln -s -t /etc/rc.d /etc/rc.local\r
737 hostname: vpp-3\r
738 manage_etc_hosts: true\r
739 runcmd:\r
740 - start ttyS0\r
741 - systemctl start getty@ttyS0.service\r
742 - systemctl start rc-local\r
743 - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config\r
744 - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config\r
745 - service ssh restart\r
746 - service sshd restart\r
747 - sed -i 's/no-pci//' /cisco/etc/qn.conf\r
748 - sed -i 's/1024/1024 decimal-interface-names/g' /cisco/etc/qn.conf\r
749 users:\r
750 - default\r
751 - gecos: User configured by VIRL Configuration Engine 0.15.3\r
752   lock-passwd: false\r
753   name: cisco\r
754   plain-text-passwd: cisco\r
755   shell: /bin/bash\r
756   ssh-authorized-keys:\r
757   - VIRL-USER-SSH-PUBLIC-KEY\r
758   sudo: ALL=(ALL) ALL\r
759 write_files:\r
760 - path: /etc/init/ttyS0.conf\r
761   owner: root:root\r
762   content: |\r
763     # ttyS0 - getty\r
764     # This service maintains a getty on ttyS0 from the point the system is\r
765     # started until it is shut down again.\r
766     start on stopped rc or RUNLEVEL=[12345]\r
767     stop on runlevel [!12345]\r
768     respawn\r
769     exec /sbin/getty -L 115200 ttyS0 vt102\r
770   permissions: '0644'\r
771 - path: /etc/systemd/system/dhclient@.service\r
772   content: |\r
773     [Unit]\r
774     Description=Run dhclient on %i interface\r
775     After=network.target\r
776     [Service]\r
777     Type=oneshot\r
778     ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease\r
779     RemainAfterExit=yes\r
780   owner: root:root\r
781   permissions: '0644'\r
782 - path: /cisco/etc/vpp-server.conf\r
783   owner: root:root\r
784   permissions: '0644'\r
785   content: |-\r
786     set interface ip address GigabitEthernet0/4/0 10.0.0.14/30\r
787     set interface ip address GigabitEthernet0/4/0 ::a:1:1:0:f/126\r
788     set interface state GigabitEthernet0/4/0 up\r
789     set interface ip address GigabitEthernet0/5/0 10.0.0.26/30\r
790     set interface ip address GigabitEthernet0/5/0 ::a:1:1:0:1b/126\r
791     set interface state GigabitEthernet0/5/0 up\r
792     comment { fix src rpf drop screws}\r
793     ip route add ::a:1:1:0:6/128 via drop\r
794     ip route add ::a:1:1:0:16/128 via drop\r
795     ip route add ::a:1:1:0:22/128 via drop\r
796 </entry>\r
797         </extensions>\r
798         <interface id="0" name="GigabitEthernet0/4/0" ipv4="10.0.0.14" ipv6="::a:1:1:0:f" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
799         <interface id="1" name="GigabitEthernet0/5/0" ipv4="10.0.0.26" ipv6="::a:1:1:0:1b" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
800     </node>\r
801     <node name="vpp-4" type="SIMPLE" subtype="vPP" location="419,216">\r
802         <extensions>\r
803             <entry key="config" type="string">#cloud-config\r
804 bootcmd:\r
805 - ln -s -t /etc/rc.d /etc/rc.local\r
806 hostname: vpp-4\r
807 manage_etc_hosts: true\r
808 runcmd:\r
809 - start ttyS0\r
810 - systemctl start getty@ttyS0.service\r
811 - systemctl start rc-local\r
812 - sed -i '/^\s*PasswordAuthentication\s\+no/d' /etc/ssh/sshd_config\r
813 - echo "UseDNS no" &gt;&gt; /etc/ssh/sshd_config\r
814 - service ssh restart\r
815 - service sshd restart\r
816 - sed -i 's/no-pci//' /cisco/etc/qn.conf\r
817 - sed -i 's/1024/1024 decimal-interface-names/g' /cisco/etc/qn.conf\r
818 users:\r
819 - default\r
820 - gecos: User configured by VIRL Configuration Engine 0.15.3\r
821   lock-passwd: false\r
822   name: cisco\r
823   plain-text-passwd: cisco\r
824   shell: /bin/bash\r
825   ssh-authorized-keys:\r
826   - VIRL-USER-SSH-PUBLIC-KEY\r
827   sudo: ALL=(ALL) ALL\r
828 write_files:\r
829 - path: /etc/init/ttyS0.conf\r
830   owner: root:root\r
831   content: |\r
832     # ttyS0 - getty\r
833     # This service maintains a getty on ttyS0 from the point the system is\r
834     # started until it is shut down again.\r
835     start on stopped rc or RUNLEVEL=[12345]\r
836     stop on runlevel [!12345]\r
837     respawn\r
838     exec /sbin/getty -L 115200 ttyS0 vt102\r
839   permissions: '0644'\r
840 - path: /etc/systemd/system/dhclient@.service\r
841   content: |\r
842     [Unit]\r
843     Description=Run dhclient on %i interface\r
844     After=network.target\r
845     [Service]\r
846     Type=oneshot\r
847     ExecStart=/sbin/dhclient %i -pf /var/run/dhclient.%i.pid -lf /var/lib/dhclient/dhclient.%i.lease\r
848     RemainAfterExit=yes\r
849   owner: root:root\r
850   permissions: '0644'\r
851 - path: /cisco/etc/vpp-server.conf\r
852   owner: root:root\r
853   permissions: '0644'\r
854   content: |-\r
855     set interface ip address GigabitEthernet0/4/0 10.0.0.18/30\r
856     set interface ip address GigabitEthernet0/4/0 ::a:1:1:0:13/126\r
857     set interface state GigabitEthernet0/4/0 up\r
858     set interface ip address GigabitEthernet0/5/0 10.0.0.30/30\r
859     set interface ip address GigabitEthernet0/5/0 ::a:1:1:0:1f/126\r
860     set interface state GigabitEthernet0/5/0 up\r
861 </entry>\r
862         </extensions>\r
863         <interface id="0" name="GigabitEthernet0/4/0" ipv4="10.0.0.18" ipv6="::a:1:1:0:13" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
864         <interface id="1" name="GigabitEthernet0/5/0" ipv4="10.0.0.30" ipv6="::a:1:1:0:1f" netPrefixLenV4="30" netPrefixLenV6="126"/>\r
865     </node>\r
866     <connection dst="/virl:topology/virl:node[5]/virl:interface[1]" src="/virl:topology/virl:node[1]/virl:interface[1]"/>\r
867     <connection dst="/virl:topology/virl:node[5]/virl:interface[2]" src="/virl:topology/virl:node[3]/virl:interface[1]"/>\r
868     <connection dst="/virl:topology/virl:node[7]/virl:interface[1]" src="/virl:topology/virl:node[5]/virl:interface[3]"/>\r
869     <connection dst="/virl:topology/virl:node[8]/virl:interface[1]" src="/virl:topology/virl:node[5]/virl:interface[4]"/>\r
870     <connection dst="/virl:topology/virl:node[6]/virl:interface[1]" src="/virl:topology/virl:node[7]/virl:interface[2]"/>\r
871     <connection dst="/virl:topology/virl:node[6]/virl:interface[2]" src="/virl:topology/virl:node[8]/virl:interface[2]"/>\r
872     <connection dst="/virl:topology/virl:node[2]/virl:interface[1]" src="/virl:topology/virl:node[6]/virl:interface[3]"/>\r
873     <connection dst="/virl:topology/virl:node[4]/virl:interface[1]" src="/virl:topology/virl:node[6]/virl:interface[4]"/>\r
874 </topology>\r