Skip to content

Commit

Permalink
apparently cAPiTals mAtTer
Browse files Browse the repository at this point in the history
  • Loading branch information
sbyrnes committed Jan 31, 2025
1 parent 0997eba commit 67298d9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions internal-lab-setup-assets/startup-config/cisco1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cdp
lldp
!
interface MgmtEth0/RP0/CPU0/0
{{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
{{ if .mgmt_vrf }} vrf {{ .mgmt_vrf }}{{end}}
!
interface Loopback0
ip address 198.51.100.1 255.255.255.255
Expand Down Expand Up @@ -64,7 +64,7 @@ route-policy PERMIT_ALL
end-policy
!
router static
{{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
{{ if .mgmt_vrf }} vrf {{ .mgmt_vrf }}{{end}}
{{- if .MgmtIPv4Gateway }}
address-family ipv4 unicast
0.0.0.0/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv4Gateway }}
Expand Down
4 changes: 2 additions & 2 deletions internal-lab-setup-assets/startup-config/cisco2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cdp
lldp
!
interface MgmtEth0/RP0/CPU0/0
{{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
{{ if .mgmt_vrf }} vrf {{ .mgmt_vrf }}{{end}}
!
interface Loopback0
ip address 198.51.100.2 255.255.255.255
Expand Down Expand Up @@ -64,7 +64,7 @@ route-policy PERMIT_ALL
end-policy
!
router static
{{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
{{ if .mgmt_vrf }} vrf {{ .mgmt_vrf }}{{end}}
{{- if .MgmtIPv4Gateway }}
address-family ipv4 unicast
0.0.0.0/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv4Gateway }}
Expand Down
4 changes: 2 additions & 2 deletions internal-lab-setup-assets/startup-config/cisco3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ cdp
lldp
!
interface MgmtEth0/RP0/CPU0/0
{{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
{{ if .mgmt_vrf }} vrf {{ .mgmt_vrf }}{{end}}
!
interface Loopback0
ip address 198.51.100.3 255.255.255.255
Expand All @@ -54,7 +54,7 @@ route-policy PERMIT_ALL
end-policy
!
router static
{{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
{{ if .mgmt_vrf }} vrf {{ .mgmt_vrf }}{{end}}
{{- if .MgmtIPv4Gateway }}
address-family ipv4 unicast
0.0.0.0/0 MgmtEth0/RP0/CPU0/0 {{ .MgmtIPv4Gateway }}
Expand Down
3 changes: 1 addition & 2 deletions internal-lab-setup-assets/workshop.clab.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
mgmt-ipv4: 172.16.{{id}}.{{x}}
ports:
- 2{{"%02d" % id}}{{x}}:22
env:
CLAB_MGMT_VRF: management
mgmt_vrf: management
{%- endmacro -%}
name: automation-workshop-{{"%02d" % id}}

Expand Down

0 comments on commit 67298d9

Please sign in to comment.