File tree Expand file tree Collapse file tree
netjsonconfig/backends/airos Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66
77from wpasupplicant import available_mode_authentication
88
9+
910def status (config , key = 'disabled' ):
1011 if config .get (key ):
1112 return 'disabled'
@@ -46,7 +47,7 @@ def is_wpa2_personal(interface):
4647 return interface ['encryption' ]['protocol' ] == 'wpa2_personal'
4748
4849 try :
49- return [ get_psk (i ) for i in wireless if is_wpa2_personal (i )][0 ]
50+ return [get_psk (i ) for i in wireless if is_wpa2_personal (i )][0 ]
5051 except IndexError :
5152 return {}
5253
@@ -268,7 +269,7 @@ def to_intermediate(self):
268269 }
269270
270271 # handle interface type quirks
271- if interface ['type' ] == 'ethernet' and not '.' in interface ['name' ]:
272+ if interface ['type' ] == 'ethernet' and '.' not in interface ['name' ]:
272273 base ['autoneg' ] = 'enabled'
273274 base ['flowcontrol' ] = {
274275 'rx' : {
@@ -424,7 +425,7 @@ def nameserver(self):
424425 'status' : 'enabled' ,
425426 })
426427
427- return { 'nameserver' : t }
428+ return {'nameserver' : t }
428429
429430 def to_intermediate (self ):
430431 result = []
You can’t perform that action at this time.
0 commit comments