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