-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support for switch port toggle on/off
- Loading branch information
1 parent
1d22706
commit 109834c
Showing
12 changed files
with
362 additions
and
300 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
cmd/internal/switcher/templates/test_down_interfaces/conf_with_downports.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
name: leaf01 | ||
loglevel: warnings | ||
loopback: 10.0.0.10 | ||
asn: 4200000010 | ||
metalcorecidr: 10.255.255.2/24 | ||
ports: | ||
vrfs: | ||
vrf1: | ||
vni: 1 | ||
vlanid: 2 | ||
neighbors: | ||
- swp3 | ||
cidrs: | ||
- 10.255.255.1/28 | ||
eth0: | ||
addresscidr: 192.168.0.11 | ||
gateway: 192.168.0.254 | ||
underlay: | ||
- swp31 | ||
- swp32 | ||
unprovisioned: | ||
- swp1 | ||
- swp2 | ||
downports: | ||
swp3: True |
87 changes: 87 additions & 0 deletions
87
cmd/internal/switcher/templates/test_down_interfaces/interfaces_with_downports
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
# This file describes the network interfaces available on your system | ||
# and how to activate them. For more information, see interfaces(5). | ||
|
||
source /etc/network/interfaces.d/*.intf | ||
|
||
# The loopback network interface | ||
auto lo | ||
iface lo inet loopback | ||
address 10.0.0.10/32 | ||
|
||
# The primary network interface | ||
auto eth0 | ||
iface eth0 | ||
address 192.168.0.11 | ||
gateway 192.168.0.254 | ||
vrf mgmt | ||
|
||
auto mgmt | ||
iface mgmt | ||
address 127.0.0.1/8 | ||
vrf-table auto | ||
|
||
auto swp31 | ||
iface swp31 | ||
mtu 9216 | ||
|
||
auto swp32 | ||
iface swp32 | ||
mtu 9216 | ||
|
||
auto bridge | ||
iface bridge | ||
bridge-ports vni104000 swp1 swp2 vni1 | ||
bridge-vids 4000 2 | ||
bridge-vlan-aware yes | ||
|
||
# Tenants | ||
|
||
auto vrf1 | ||
iface vrf1 | ||
vrf-table auto | ||
|
||
auto vlan2 | ||
iface vlan2 | ||
mtu 9000 | ||
vlan-id 2 | ||
vlan-raw-device bridge | ||
vrf vrf1 | ||
|
||
auto vni1 | ||
iface vni1 | ||
mtu 9000 | ||
bridge-access 2 | ||
bridge-arp-nd-suppress on | ||
bridge-learning off | ||
mstpctl-bpduguard yes | ||
mstpctl-portbpdufilter yes | ||
vxlan-id 1 | ||
vxlan-local-tunnelip 10.0.0.10 | ||
|
||
# PXE-Config | ||
auto vlan4000 | ||
iface vlan4000 | ||
mtu 9000 | ||
address 10.255.255.2/24 | ||
vlan-id 4000 | ||
vlan-raw-device bridge | ||
|
||
auto vni104000 | ||
iface vni104000 | ||
mtu 9000 | ||
bridge-access 4000 | ||
bridge-learning off | ||
mstpctl-bpduguard yes | ||
mstpctl-portbpdufilter yes | ||
vxlan-id 104000 | ||
vxlan-local-tunnelip 10.0.0.10 | ||
|
||
auto swp1 | ||
iface swp1 | ||
mtu 9000 | ||
bridge-access 4000 | ||
|
||
auto swp2 | ||
iface swp2 | ||
mtu 9000 | ||
bridge-access 4000 |
Oops, something went wrong.