Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(eos_cli_config_gen): Add spanning_tree_guard to switched ethernet interfaces #1460

Merged
merged 5 commits into from
Feb 1, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ interface Ethernet3
mtu 1500
no switchport
no priority-flow-control
spanning-tree guard root
ip address 172.31.128.1/31
ipv6 enable
ipv6 address 2002:ABDC::1/64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ interface Ethernet3
mtu 1500
no switchport
no priority-flow-control
spanning-tree guard root
ip address 172.31.128.1/31
ipv6 enable
ipv6 address 2002:ABDC::1/64
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ ethernet_interfaces:
no_autoconfig_flag: true
priority_flow_control:
enabled: false
spanning_tree_guard: root
ccsnw marked this conversation as resolved.
Show resolved Hide resolved

Ethernet4:
description: Molecule IPv6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1014,6 +1014,7 @@ ethernet_interfaces:
cos: < cos-value >
spanning_tree_bpdufilter: < "enabled" | true | "disabled" >
spanning_tree_bpduguard: < "enabled" | true | "disabled" >
spanning_tree_guard: < loop | root | none >
ccsnw marked this conversation as resolved.
Show resolved Hide resolved
spanning_tree_portfast: < edge | network >
vmtracer: < true | false >
ptp:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,13 @@ interface {{ ethernet_interface }}
{% elif ethernet_interfaces[ethernet_interface].spanning_tree_bpdufilter is arista.avd.defined("disabled") %}
spanning-tree bpdufilter disable
{% endif %}
{% if ethernet_interfaces[ethernet_interface].spanning_tree_guard is arista.avd.defined('loop') %}
ccsnw marked this conversation as resolved.
Show resolved Hide resolved
spanning-tree guard loop
{% elif ethernet_interfaces[ethernet_interface].spanning_tree_guard is arista.avd.defined('root') %}
spanning-tree guard root
{% elif ethernet_interfaces[ethernet_interface].spanning_tree_guard is arista.avd.defined('none') %}
spanning-tree guard none
{% endif %}
{% if ethernet_interfaces[ethernet_interface].vrf is arista.avd.defined %}
vrf {{ ethernet_interfaces[ethernet_interface].vrf }}
{% endif %}
Expand Down