Skip to content

Commit

Permalink
moar darts. Also default clab config wants port 9339 for grpc but tha…
Browse files Browse the repository at this point in the history
…t's not in the valid range
  • Loading branch information
sbyrnes committed Jan 31, 2025
1 parent fd84a1a commit 936e566
Showing 1 changed file with 43 additions and 36 deletions.
79 changes: 43 additions & 36 deletions internal-lab-setup-assets/startup-config/cisco1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,43 @@ username clab
secret 10 $6$7/293.lG/gI3....$qhqRPSKeGBilG47Ii/xlYF9xJVR1IK7bnw.7HHiVj4Aj8cb58bxiLAim8Xz.beUfJ6TQTP3vHUty3UO.4KmaL.
!
grpc
vrf {{ .Env.CLAB_MGMT_VRF }}
port 9339
{{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
no-tls
address-family dual
!
!
{{- if .Env.CLAB_MGMT_VRF }}
vrf {{ .Env.CLAB_MGMT_VRF }}
address-family ipv4 unicast
!
address-family ipv6 unicast
!
{{- end}}
!
line default
transport input ssh
!
! netconf-yang agent
! ssh
netconf-yang agent
ssh
!
cdp
lldp
!
vrf {{ .Env.CLAB_MGMT_VRF }}
interface MgmtEth0/RP0/CPU0/0
{{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
!
router static
{{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
{{- if .MgmtIPv4Gateway }}
address-family ipv4 unicast
!
0.0.0.0/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv4Gateway }}
!
{{- end}}
{{- if .MgmtIPv6Gateway }}
address-family ipv6 unicast
!
!
interface MgmtEth0/RP0/CPU0/0
no ip address
vrf {{ .Env.CLAB_MGMT_VRF }}
ip address {{ .MgmtIPv4Addr }} {{ .MgmtIPv4SubnetMask }}
::/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv6Gateway }}
!
{{- end}}
!
interface Loopback0
ip address 198.51.100.1 255.255.255.255
Expand Down Expand Up @@ -64,39 +77,33 @@ route-policy PERMIT_ALL
pass
end-policy
!
router static
vrf {{ .Env.CLAB_MGMT_VRF }}
{{- if .MgmtIPv4Gateway }}
address-family ipv4 unicast
0.0.0.0/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv4Gateway }}
!
{{- end}}
!
router bgp 64500
bgp router-id 198.51.100.1
address-family ipv4 unicast
redistribute connected
!router bgp 64500
! bgp router-id 198.51.100.1
! address-family ipv4 unicast
! redistribute connected
!
neighbor-group LAB
remote-as 64500
password encrypted 15140403062B39
update-source Loopback0
address-family ipv4 unicast
route-policy PERMIT_ALL in
route-policy PERMIT_ALL out
! neighbor-group LAB
! remote-as 64500
! password encrypted 15140403062B39
! update-source Loopback0
! address-family ipv4 unicast
! route-policy PERMIT_ALL in
! route-policy PERMIT_ALL out
!
!
neighbor 172.17.1.17
use neighbor-group LAB
! neighbor 172.17.1.17
! use neighbor-group LAB
!
neighbor 172.17.1.19
use neighbor-group LAB
! neighbor 172.17.1.19
! use neighbor-group LAB
!
!
! xml agent tty
! iteration off
!
ssh server v2
{{- if .Env.CLAB_MGMT_VRF }}
ssh server vrf {{ .Env.CLAB_MGMT_VRF }}
! ssh server netconf vrf {{ .Env.CLAB_MGMT_VRF }}
{{- end}}
ssh server netconf {{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
end

0 comments on commit 936e566

Please sign in to comment.