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

cli_config_gen: support bpduguard on ethernet-interface and port-channel interfaces #149

Merged
merged 1 commit into from
Jun 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
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 @@ -527,6 +527,7 @@ port_channel_interfaces:
vlans: "< list of vlans as string >"
mode: < access | dot1q-tunnel | trunk >
spanning_tree_bpdufilter: < true | false >
spanning_tree_bpduguard: < true | false >
spanning_tree_portfast: < portfast_mode >
vmtracer: < true | false >
< Port-Channel_interface_3 >:
Expand Down Expand Up @@ -604,6 +605,7 @@ ethernet_interfaces:
qos:
trust: < cos | dscp >
spanning_tree_bpdufilter: < true | false >
spanning_tree_bpduguard: < true | false >
spanning_tree_portfast: < portfast_mode >
vmtracer: < true | false >
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ interface {{ ethernet_interface }}
{% if ethernet_interfaces[ethernet_interface].spanning_tree_bpdufilter is defined and ethernet_interfaces[ethernet_interface].spanning_tree_bpdufilter == true %}
spanning-tree bpdufilter enable
{% endif%}
{% if ethernet_interfaces[ethernet_interface].spanning_tree_bpduguard is defined and ethernet_interfaces[ethernet_interface].spanning_tree_bpduguard == true %}
spanning-tree bpduguard enable
{% endif%}
{% if ethernet_interfaces[ethernet_interface].vrf is defined and ethernet_interfaces[ethernet_interface].vrf is not none %}
vrf {{ ethernet_interfaces[ethernet_interface].vrf }}
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ interface {{ port_channel_interface }}
{% if port_channel_interfaces[port_channel_interface].spanning_tree_bpdufilter is defined and port_channel_interfaces[port_channel_interface].spanning_tree_bpdufilter == true %}
spanning-tree bpdufilter enable
{% endif%}
{% if port_channel_interfaces[port_channel_interface].spanning_tree_bpduguard is defined and port_channel_interfaces[port_channel_interface].spanning_tree_bpduguard == true %}
spanning-tree bpduguard enable
{% endif%}
{% if port_channel_interfaces[port_channel_interface].vrf is defined and port_channel_interfaces[port_channel_interface].vrf is not none %}
vrf {{ port_channel_interfaces[port_channel_interface].vrf }}
{% endif %}
Expand Down