Skip to content

Commit

Permalink
enabler: Update for Cisco-only
Browse files Browse the repository at this point in the history
  • Loading branch information
sbyrnes committed Mar 14, 2024
1 parent 8d4e367 commit d6a42e9
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
*.bak
internal-lab-setup-assets/images/*
!internal-lab-setup-assets/images/README.md
6 changes: 3 additions & 3 deletions internal-lab-setup-assets/startup-config/cisco1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ interface Loopback1
ipv4 address 10.0.1.1 255.255.255.0
!
interface GigabitEthernet0/0/0/0
description NOT_IN_USE
description -> CISCO3
shutdown
!
interface GigabitEthernet0/0/0/1
description foobar
description -> CISCO2
ip address 172.17.1.16 255.255.255.254
!
interface GigabitEthernet0/0/0/1.100
Expand All @@ -49,7 +49,7 @@ interface GigabitEthernet0/0/0/1.200
ip address 192.0.2.1 255.255.255.0
!
interface GigabitEthernet0/0/0/2
description NOT_IN_USE
description -> UBUNTU
shutdown
!
route-policy PERMIT_ALL
Expand Down
22 changes: 22 additions & 0 deletions internal-lab-setup-assets/startup-config/cisco2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,28 @@ netconf-yang agent
cdp
lldp
!
interface GigabitEthernet0/0/0/0
description -> CISCO3
shutdown
!
interface GigabitEthernet0/0/0/1
description -> CISCO1
ip address 172.17.1.17 255.255.255.254
!
interface GigabitEthernet0/0/0/1.100
description bar to foo
encapsulation dot1Q 100
ip address 198.51.100.2 255.255.255.0
!
interface GigabitEthernet0/0/0/1.200
description foo to biz
encapsulation dot1Q 200
ip address 192.0.2.2 255.255.255.0
!
interface GigabitEthernet0/0/0/2
description -> UBUNTU
shutdown
!
router static
address-family ipv4 unicast
0.0.0.0/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv4Gateway }}
Expand Down
54 changes: 54 additions & 0 deletions internal-lab-setup-assets/startup-config/cisco3.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
hostname {{ .ShortName }}
username clab
group root-lr
group cisco-support
secret 10 $6$7/293.lG/gI3....$qhqRPSKeGBilG47Ii/xlYF9xJVR1IK7bnw.7HHiVj4Aj8cb58bxiLAim8Xz.beUfJ6TQTP3vHUty3UO.4KmaL.
!
grpc
no-tls
address-family dual
!
line default
transport input ssh
!
call-home
service active
contact smart-licensing
profile CiscoTAC-1
active
destination transport-method email disable
destination transport-method http
!
!
netconf-yang agent
ssh
!
cdp
lldp
!
interface GigabitEthernet0/0/0/0
description -> CISCO1
shutdown
!
interface GigabitEthernet0/0/0/1
description -> CISCO2
shutdown
!
interface GigabitEthernet0/0/0/2
description -> UBUNTU
shutdown
!
router static
address-family ipv4 unicast
0.0.0.0/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv4Gateway }}
!
address-family ipv6 unicast
::/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv6Gateway }}
!
!
xml agent tty
iteration off
!
ssh server v2
ssh server netconf vrf default
end
7 changes: 4 additions & 3 deletions internal-lab-setup-assets/workshop.clab.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ topology:
CX23_LAB_PASSWORD: Self-Nose-Reasonable-Dust-{{"%02d" % id}}

links:
- endpoints: ["cisco1:Gi0-0-0-0", "cisco2:Gi0-0-0-0"]
- endpoints: ["cisco1:Gi0-0-0-1", "cisco3:Gi0-0-0-0"]
- endpoints: ["cisco2:Gi0-0-0-1", "cisco3:Gi0-0-0-1"]
- endpoints: ["cisco1:Gi0-0-0-0", "cisco3:Gi0-0-0-0"]
- endpoints: ["cisco1:Gi0-0-0-1", "cisco2:Gi0-0-0-1"]
- endpoints: ["cisco2:Gi0-0-0-0", "cisco3:Gi0-0-0-1"]
- endpoints: ["ubuntu:eth1", "cisco1:Gi0-0-0-2"]
- endpoints: ["ubuntu:eth2", "cisco2:Gi0-0-0-2"]
- endpoints: ["ubuntu:eth3", "cisco3:Gi0-0-0-2"]

0 comments on commit d6a42e9

Please sign in to comment.