Skip to content

Commit

Permalink
interface: add bpdu_filter_enable to configure_spanning_tree function
Browse files Browse the repository at this point in the history
  • Loading branch information
alagoutte committed Nov 5, 2023
1 parent 9bc019f commit d8840dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyaoscx/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2394,11 +2394,13 @@ def configure_speed_duplex(
def configure_spanning_tree(
self,
admin_edge_port_enable=None,
bpdu_filter_enable=None,
):
"""
Configure the Interface Spanning Tree Settings.
:param admin_edge_port_enable: Boolean to set admin type: admin-edge or admin-network (default)
:param bpdu_filter_enable: Boolean to set BPDU filter (disable by default)
:return: True if object changed.
"""

Expand All @@ -2412,5 +2414,8 @@ def configure_spanning_tree(
if admin_edge_port_enable is not None:
_stp_config["admin_edge_port_enable"] = admin_edge_port_enable

if bpdu_filter_enable is not None:
_stp_config["bpdu_filter_enable"] = bpdu_filter_enable

self.stp_config.update(_stp_config)
return self.apply()

0 comments on commit d8840dd

Please sign in to comment.