Skip to content

Commit

Permalink
interface: add link_type parameter to configure_spanning_tree function
Browse files Browse the repository at this point in the history
can be auto/point_to_point/shared (auto by default
  • Loading branch information
alagoutte committed Dec 5, 2023
1 parent c549b3a commit aeee08d
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 @@ -2396,6 +2396,7 @@ def configure_spanning_tree(
admin_edge_port_enable=None,
bpdu_filter_enable=None,
bpdu_guard_enable=None,
link_type=None,
loop_guard_enable=None,
root_guard_enable=None,
):
Expand All @@ -2405,6 +2406,7 @@ def configure_spanning_tree(
: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)
:param bpdu_guard_enable: Boolean to set BPDU guard (disable by default)
:param link_type: string to set link-type(auto/point_to_point/shared) (auto 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 Down Expand Up @@ -2432,5 +2434,8 @@ def configure_spanning_tree(
if root_guard_enable is not None:
_stp_config["root_guard_enable"] = root_guard_enable

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

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

0 comments on commit aeee08d

Please sign in to comment.