44from ...utils import get_copy
55from ..base .converter import BaseConverter
66from .aaa import bridge_devname , profile_from_interface , status_from_interface
7- from .interface import autonegotiation , bridge , bssid , flowcontrol , hidden_ssid , protocol , radio , split_cidr , ssid , stp , wireless
7+ from .interface import autonegotiation , bridge , bssid , flowcontrol , hidden_ssid , protocol , radio , split_cidr , ssid , stp , vlan , wireless
88from .radius import radius_from_interface
99from .schema import default_ntp_servers
1010from .radio import radio_device_base , radio_configuration
@@ -80,11 +80,6 @@ def to_intermediate(self):
8080class Bridge (AirOsConverter ):
8181 netjson_key = 'interfaces'
8282
83- def stp_status (self , interface ):
84- if interface .get ('stp' , False ):
85- return 'enabled'
86- else :
87- return 'disabled'
8883
8984 def to_intermediate (self ):
9085 result = []
@@ -104,7 +99,7 @@ def to_intermediate(self):
10499 'devname' : interface ['name' ],
105100 'port' : bridge_ports ,
106101 'status' : status (interface ),
107- 'stp' : {'status' : self . stp_status (interface )}
102+ 'stp' : {'status' : stp (interface )}
108103 })
109104
110105 result .append (bridges )
0 commit comments