Skip to content

Commit

Permalink
take 5
Browse files Browse the repository at this point in the history
  • Loading branch information
sbyrnes committed Jan 31, 2025
1 parent a526d51 commit afff78f
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 69 deletions.
33 changes: 12 additions & 21 deletions internal-lab-setup-assets/startup-config/cisco1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,25 @@ username clab
secret 10 $6$7/293.lG/gI3....$qhqRPSKeGBilG47Ii/xlYF9xJVR1IK7bnw.7HHiVj4Aj8cb58bxiLAim8Xz.beUfJ6TQTP3vHUty3UO.4KmaL.
!
grpc
vrf {{ .Env.CLAB_MGMT_VRF }}
port 9339
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 MgmtEth0/RP0/CPU0/0
vrf management
vrf {{ .Env.CLAB_MGMT_VRF }}
address-family ipv4 unicast
!
address-family ipv6 unicast
!
!
interface Loopback0
ip address 198.51.100.1 255.255.255.255
Expand Down Expand Up @@ -64,17 +60,12 @@ route-policy PERMIT_ALL
end-policy
!
router static
vrf management
vrf {{ .Env.CLAB_MGMT_VRF }}
{{- if .MgmtIPv4Gateway }}
address-family ipv4 unicast
0.0.0.0/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv4Gateway }}
!
{{- end}}
{{- if .MgmtIPv6Gateway }}
address-family ipv6 unicast
::/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv6Gateway }}
!
{{- end}}
!
router bgp 64500
bgp router-id 198.51.100.1
Expand All @@ -97,10 +88,10 @@ router bgp 64500
use neighbor-group LAB
!
!
xml agent tty
iteration off
! xml agent tty
! iteration off
!
ssh server v2
ssh server vrf management
! ssh server netconf vrf management
ssh server vrf {{ .Env.CLAB_MGMT_VRF }}
! ssh server netconf vrf {{ .Env.CLAB_MGMT_VRF }}
end
39 changes: 15 additions & 24 deletions internal-lab-setup-assets/startup-config/cisco2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,25 @@ username clab
secret 10 $6$7/293.lG/gI3....$qhqRPSKeGBilG47Ii/xlYF9xJVR1IK7bnw.7HHiVj4Aj8cb58bxiLAim8Xz.beUfJ6TQTP3vHUty3UO.4KmaL.
!
grpc
vrf {{ .Env.CLAB_MGMT_VRF }}
port 9339
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 MgmtEth0/RP0/CPU0/0
vrf management
vrf {{ .Env.CLAB_MGMT_VRF }}
address-family ipv4 unicast
!
address-family ipv6 unicast
!
!
interface Loopback0
ip address 198.51.100.2 255.255.255.255
Expand Down Expand Up @@ -64,20 +60,15 @@ route-policy PERMIT_ALL
end-policy
!
router static
vrf management
vrf {{ .Env.CLAB_MGMT_VRF }}
{{- if .MgmtIPv4Gateway }}
address-family ipv4 unicast
0.0.0.0/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv4Gateway }}
!
{{- end}}
{{- if .MgmtIPv6Gateway }}
address-family ipv6 unicast
::/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv6Gateway }}
!
{{- end}}
!
router bgp 64500
bgp router-id 198.51.100.2
bgp router-id 198.51.100.1
address-family ipv4 unicast
redistribute connected
!
Expand All @@ -90,17 +81,17 @@ router bgp 64500
route-policy PERMIT_ALL out
!
!
neighbor 172.17.1.16
neighbor 172.17.1.17
use neighbor-group LAB
!
neighbor 172.17.1.21
neighbor 172.17.1.19
use neighbor-group LAB
!
!
xml agent tty
iteration off
! xml agent tty
! iteration off
!
ssh server v2
ssh server vrf management
! ssh server netconf vrf management
ssh server vrf {{ .Env.CLAB_MGMT_VRF }}
! ssh server netconf vrf {{ .Env.CLAB_MGMT_VRF }}
end
39 changes: 15 additions & 24 deletions internal-lab-setup-assets/startup-config/cisco3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,25 @@ username clab
secret 10 $6$7/293.lG/gI3....$qhqRPSKeGBilG47Ii/xlYF9xJVR1IK7bnw.7HHiVj4Aj8cb58bxiLAim8Xz.beUfJ6TQTP3vHUty3UO.4KmaL.
!
grpc
vrf {{ .Env.CLAB_MGMT_VRF }}
port 9339
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 MgmtEth0/RP0/CPU0/0
vrf management
vrf {{ .Env.CLAB_MGMT_VRF }}
address-family ipv4 unicast
!
address-family ipv6 unicast
!
!
interface Loopback0
ip address 198.51.100.3 255.255.255.255
Expand All @@ -54,20 +50,15 @@ route-policy PERMIT_ALL
end-policy
!
router static
vrf management
vrf {{ .Env.CLAB_MGMT_VRF }}
{{- if .MgmtIPv4Gateway }}
address-family ipv4 unicast
0.0.0.0/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv4Gateway }}
!
{{- end}}
{{- if .MgmtIPv6Gateway }}
address-family ipv6 unicast
::/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv6Gateway }}
!
{{- end}}
!
router bgp 64500
bgp router-id 198.51.100.3
bgp router-id 198.51.100.1
address-family ipv4 unicast
redistribute connected
!
Expand All @@ -80,17 +71,17 @@ router bgp 64500
route-policy PERMIT_ALL out
!
!
neighbor 172.17.1.16
neighbor 172.17.1.17
use neighbor-group LAB
!
neighbor 172.17.1.20
neighbor 172.17.1.19
use neighbor-group LAB
!
!
xml agent tty
iteration off
! xml agent tty
! iteration off
!
ssh server v2
ssh server vrf management
! ssh server netconf vrf management
ssh server vrf {{ .Env.CLAB_MGMT_VRF }}
! ssh server netconf vrf {{ .Env.CLAB_MGMT_VRF }}
end
2 changes: 2 additions & 0 deletions internal-lab-setup-assets/workshop.clab.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ topology:
kinds:
cisco_xrd:
image: ios-xr/xrd-control-plane:7.11.1
env:
CLAB_MGMT_VRF: management

nodes:
{%- set x = 2 %}
Expand Down

0 comments on commit afff78f

Please sign in to comment.