Skip to content

Commit

Permalink
interface: add root_guard_enable parameter to configure_spanning_tree…
Browse files Browse the repository at this point in the history
… function
  • Loading branch information
alagoutte committed Dec 1, 2023
1 parent 2e6885d commit c549b3a
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 @@ -2397,6 +2397,7 @@ def configure_spanning_tree(
bpdu_filter_enable=None,
bpdu_guard_enable=None,
loop_guard_enable=None,
root_guard_enable=None,
):
"""
Configure the Interface Spanning Tree Settings.
Expand All @@ -2405,6 +2406,7 @@ def configure_spanning_tree(
:param bpdu_filter_enable: Boolean to set BPDU filter (disable by default)
:param bpdu_guard_enable: Boolean to set BPDU guard (disable by default)
:param loop_guard_enable: Boolean to set Loop guard (disable by default)
:param root_guard_enable: Boolean to set Root guard (disable by default)
:return: True if object changed.
"""

Expand All @@ -2427,5 +2429,8 @@ def configure_spanning_tree(
if loop_guard_enable is not None:
_stp_config["loop_guard_enable"] = loop_guard_enable

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

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

0 comments on commit c549b3a

Please sign in to comment.