Skip to content
This repository was archived by the owner on Aug 21, 2018. It is now read-only.

Commit 195743e

Browse files
author
darien-hirotsu
committed
module03 and module06 code examples
1 parent ac299dc commit 195743e

39 files changed

+73337
-0
lines changed

NWPLab/EEM/cl-cdp.virl

Lines changed: 312 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,312 @@
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">
3+
<extensions>
4+
<entry key="AutoNetkit.enable_cdp" type="Boolean">true</entry>
5+
</extensions>
6+
<node name="cdp-rtr" type="SIMPLE" subtype="IOSv" location="837,356" vmImage="IOSv" vmFlavor="IOSv" ipv4="192.168.0.1">
7+
<extensions>
8+
<entry key="config" type="string">!
9+
! Last configuration change at 16:44:34 UTC Sat May 23 2015
10+
!
11+
version 15.5
12+
service timestamps debug datetime msec
13+
service timestamps log datetime msec
14+
no service password-encryption
15+
!
16+
hostname cdp-rtr
17+
!
18+
boot-start-marker
19+
boot-end-marker
20+
!
21+
!
22+
enable password cisco
23+
!
24+
no aaa new-model
25+
ethernet lmi ce
26+
!
27+
!
28+
!
29+
bsd-client server url https://cloudsso.cisco.com/as/token.oauth2
30+
mmi polling-interval 60
31+
no mmi auto-configure
32+
no mmi pvc
33+
mmi snmp-timeout 180
34+
!
35+
!
36+
!
37+
!
38+
!
39+
!
40+
!
41+
!
42+
!
43+
!
44+
!
45+
no ip domain lookup
46+
ip cef
47+
ipv6 unicast-routing
48+
ipv6 cef
49+
!
50+
multilink bundle-name authenticated
51+
!
52+
!
53+
cts logging verbose
54+
!
55+
!
56+
!
57+
redundancy
58+
!
59+
!
60+
!
61+
!
62+
!
63+
!
64+
!
65+
!
66+
!
67+
!
68+
!
69+
!
70+
!
71+
!
72+
!
73+
interface Loopback0
74+
description Loopback
75+
ip address 192.168.0.1 255.255.255.255
76+
!
77+
interface GigabitEthernet0/0
78+
description OOB Management
79+
ip address 10.255.0.21 255.255.0.0
80+
duplex auto
81+
speed auto
82+
media-type rj45
83+
!
84+
interface GigabitEthernet0/1
85+
description to iosv-2
86+
ip address 10.0.0.5 255.255.255.252
87+
ip ospf cost 1
88+
duplex auto
89+
speed auto
90+
media-type rj45
91+
!
92+
router ospf 1
93+
passive-interface Loopback0
94+
network 10.0.0.4 0.0.0.3 area 0
95+
network 192.168.0.1 0.0.0.0 area 0
96+
!
97+
router bgp 1
98+
bgp router-id 192.168.0.1
99+
bgp log-neighbor-changes
100+
neighbor 192.168.0.2 remote-as 1
101+
neighbor 192.168.0.2 description iBGP peer iosv-2
102+
neighbor 192.168.0.2 update-source Loopback0
103+
!
104+
address-family ipv4
105+
network 192.168.0.1 mask 255.255.255.255
106+
neighbor 192.168.0.2 activate
107+
exit-address-family
108+
!
109+
ip forward-protocol nd
110+
!
111+
!
112+
no ip http server
113+
no ip http secure-server
114+
!
115+
!
116+
!
117+
!
118+
control-plane
119+
!
120+
banner exec `
121+
**************************************************************************
122+
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
123+
* education. IOSv is provided as-is and is not supported by Cisco's *
124+
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
125+
* of the IOSv Software or Documentation to any third party for any *
126+
* purposes is expressly prohibited except as otherwise authorized by *
127+
* Cisco in writing. *
128+
**************************************************************************`
129+
banner incoming `
130+
**************************************************************************
131+
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
132+
* education. IOSv is provided as-is and is not supported by Cisco's *
133+
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
134+
* of the IOSv Software or Documentation to any third party for any *
135+
* purposes is expressly prohibited except as otherwise authorized by *
136+
* Cisco in writing. *
137+
**************************************************************************`
138+
banner login `
139+
**************************************************************************
140+
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
141+
* education. IOSv is provided as-is and is not supported by Cisco's *
142+
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
143+
* of the IOSv Software or Documentation to any third party for any *
144+
* purposes is expressly prohibited except as otherwise authorized by *
145+
* Cisco in writing. *
146+
**************************************************************************`
147+
!
148+
line con 0
149+
password cisco
150+
line aux 0
151+
line vty 0 4
152+
exec-timeout 720 0
153+
password cisco
154+
login
155+
transport input telnet ssh
156+
!
157+
no scheduler allocate
158+
!
159+
end</entry>
160+
<entry key="AutoNetkit.mgmt_ip" type="string"></entry>
161+
</extensions>
162+
<interface id="0" name="GigabitEthernet0/1"/>
163+
</node>
164+
<node name="cdp-sw" type="SIMPLE" subtype="IOSv" location="616,375" vmImage="IOSvL2" vmFlavor="IOSvL2" ipv4="192.168.0.2">
165+
<extensions>
166+
<entry key="config" type="string">!
167+
! Last configuration change at 16:45:19 UTC Sat May 23 2015
168+
!
169+
version 15.2
170+
service timestamps debug datetime msec
171+
service timestamps log datetime msec
172+
no service password-encryption
173+
service compress-config
174+
!
175+
hostname cdp-sw
176+
!
177+
boot-start-marker
178+
boot-end-marker
179+
!
180+
!
181+
enable password cisco
182+
!
183+
no aaa new-model
184+
!
185+
!
186+
!
187+
!
188+
!
189+
!
190+
!
191+
!
192+
no ip domain-lookup
193+
ip cef
194+
ipv6 unicast-routing
195+
ipv6 cef
196+
!
197+
!
198+
spanning-tree mode pvst
199+
spanning-tree extend system-id
200+
!
201+
vlan internal allocation policy ascending
202+
!
203+
!
204+
!
205+
!
206+
!
207+
!
208+
!
209+
!
210+
!
211+
!
212+
!
213+
!
214+
!
215+
interface Loopback0
216+
description Loopback
217+
ip address 192.168.0.2 255.255.255.255
218+
!
219+
interface GigabitEthernet0/1
220+
media-type rj45
221+
negotiation auto
222+
!
223+
interface GigabitEthernet0/2
224+
media-type rj45
225+
negotiation auto
226+
!
227+
interface GigabitEthernet0/3
228+
media-type rj45
229+
negotiation auto
230+
!
231+
interface GigabitEthernet0/0
232+
description OOB Management
233+
no switchport
234+
ip address 10.255.0.22 255.255.0.0
235+
negotiation auto
236+
!
237+
router ospf 1
238+
passive-interface Loopback0
239+
network 10.0.0.4 0.0.0.3 area 0
240+
network 192.168.0.2 0.0.0.0 area 0
241+
!
242+
router bgp 1
243+
bgp router-id 192.168.0.2
244+
bgp log-neighbor-changes
245+
neighbor 192.168.0.1 remote-as 1
246+
neighbor 192.168.0.1 description iBGP peer iosv-1
247+
neighbor 192.168.0.1 update-source Loopback0
248+
!
249+
address-family ipv4
250+
network 192.168.0.2 mask 255.255.255.255
251+
neighbor 192.168.0.1 activate
252+
exit-address-family
253+
!
254+
ip forward-protocol nd
255+
!
256+
no ip http server
257+
no ip http secure-server
258+
!
259+
!
260+
!
261+
!
262+
!
263+
!
264+
control-plane
265+
!
266+
banner exec `
267+
**************************************************************************
268+
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
269+
* education. IOSv is provided as-is and is not supported by Cisco's *
270+
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
271+
* of the IOSv Software or Documentation to any third party for any *
272+
* purposes is expressly prohibited except as otherwise authorized by *
273+
* Cisco in writing. *
274+
**************************************************************************`
275+
banner incoming `
276+
**************************************************************************
277+
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
278+
* education. IOSv is provided as-is and is not supported by Cisco's *
279+
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
280+
* of the IOSv Software or Documentation to any third party for any *
281+
* purposes is expressly prohibited except as otherwise authorized by *
282+
* Cisco in writing. *
283+
**************************************************************************`
284+
banner login `
285+
**************************************************************************
286+
* IOSv is strictly limited to use for evaluation, demonstration and IOS *
287+
* education. IOSv is provided as-is and is not supported by Cisco's *
288+
* Technical Advisory Center. Any use or disclosure, in whole or in part, *
289+
* of the IOSv Software or Documentation to any third party for any *
290+
* purposes is expressly prohibited except as otherwise authorized by *
291+
* Cisco in writing. *
292+
**************************************************************************`
293+
!
294+
line con 0
295+
password cisco
296+
line aux 0
297+
line vty 0 4
298+
exec-timeout 720 0
299+
password cisco
300+
login
301+
transport input telnet ssh
302+
!
303+
!
304+
end</entry>
305+
<entry key="AutoNetkit.mgmt_ip" type="string"></entry>
306+
</extensions>
307+
<interface id="0" name="GigabitEthernet0/1"/>
308+
<interface id="1" name="GigabitEthernet0/2"/>
309+
<interface id="2" name="GigabitEthernet0/3"/>
310+
</node>
311+
<connection dst="/virl:topology/virl:node[1]/virl:interface[1]" src="/virl:topology/virl:node[2]/virl:interface[1]"/>
312+
</topology>

0 commit comments

Comments
 (0)