Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
sbyrnes committed Feb 1, 2025
1 parent 2d9735a commit b1406ad
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 96 deletions.
8 changes: 6 additions & 2 deletions internal-lab-setup-assets/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# .phony: gen

FILES=$(wildcard workshop[0-9]*.clab.yml)

clab-install:
dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
dnf config-manager --add-repo https://yum.fury.io/netdevops/
Expand Down Expand Up @@ -38,11 +42,11 @@ inspect-all:

docker-stop-all:
# This allows the destruction of all running docker containers, regardless of if clab topology file exists
docker stop $(docker ps -a -q)
docker stop $$(docker ps -a -q)

docker-remove-all:
# This allows the removal of all running docker containers, regardless of if clab topology file exists
docker rm $(docker ps -a -q)
docker rm $$(docker ps -a -q)

container:
docker build -t internet2/getting_started -f Containerfile .
Expand Down
37 changes: 6 additions & 31 deletions internal-lab-setup-assets/startup-config/cisco1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ vrf {{ .Env.CLAB_MGMT_VRF }}
line default
transport input ssh
!
netconf-yang agent
ssh
!
cdp
lldp
!
Expand Down Expand Up @@ -73,37 +70,15 @@ interface GigabitEthernet0/0/0/2.100
ipv4 helper-address vrf default 192.168.100.100
ip address 10.1.0.1 255.255.255.0
!
route-policy PERMIT_ALL
pass
end-policy
!
!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 172.17.1.17
! 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 }}
{{- end}}
!
{{- if .Env.ENABLE_NETCONF }}
netconf-yang agent
ssh
!
ssh server netconf {{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
{{- end}}
end
37 changes: 6 additions & 31 deletions internal-lab-setup-assets/startup-config/cisco2.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ vrf {{ .Env.CLAB_MGMT_VRF }}
line default
transport input ssh
!
netconf-yang agent
ssh
!
cdp
lldp
!
Expand Down Expand Up @@ -73,37 +70,15 @@ interface GigabitEthernet0/0/0/2.100
ipv4 helper-address vrf default 10.2.3.4
ip address 10.2.0.1 255.255.255.0
!
route-policy PERMIT_ALL
pass
end-policy
!
!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 172.17.1.17
! 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 }}
{{- end}}
!
{{- if .Env.ENABLE_NETCONF }}
netconf-yang agent
ssh
!
ssh server netconf {{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
{{- end}}
end
38 changes: 7 additions & 31 deletions internal-lab-setup-assets/startup-config/cisco3.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ vrf {{ .Env.CLAB_MGMT_VRF }}
line default
transport input ssh
!
netconf-yang agent
ssh
!
cdp
lldp
!
Expand Down Expand Up @@ -63,37 +60,16 @@ interface GigabitEthernet0/0/0/2.100
ipv4 helper-address vrf default 10.2.3.4
ip address 10.3.0.1 255.255.255.0
!
route-policy PERMIT_ALL
pass
end-policy
!
!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 172.17.1.17
! 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 }}
{{- end}}
!
{{- if .Env.ENABLE_NETCONF }}
netconf-yang agent
ssh
!
ssh server netconf {{ if .Env.CLAB_MGMT_VRF }} vrf {{ .Env.CLAB_MGMT_VRF }}{{end}}
{{- end}}
end
end
2 changes: 1 addition & 1 deletion internal-lab-setup-assets/workshop.clab.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ topology:
image: internet2/getting_started
{{- shared_node_settings(x) }}
env:
LAB_PASSWORD: Ninja-{{"%02d" % id}}-Turtle
LAB_PASSWORD: Ninja-Turtle-{{"%02d" % id}}

links:
- endpoints: ["cisco1:Gi0-0-0-0", "cisco3:Gi0-0-0-0"]
Expand Down

0 comments on commit b1406ad

Please sign in to comment.