diff --git a/pyaoscx/interface.py b/pyaoscx/interface.py index e819fbf..cc13043 100644 --- a/pyaoscx/interface.py +++ b/pyaoscx/interface.py @@ -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. """ @@ -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()