Skip to content

Commit 104234f

Browse files
committed
[airos] added bridge property to aaa converter
1 parent 0276298 commit 104234f

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

netjsonconfig/backends/airos/converters.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,12 @@ def should_run_forward(cls, config):
2828
class Aaa(AirOsConverter):
2929
netjson_key = 'general'
3030

31-
def wpa2_personal(self):
31+
@property
32+
def bridge(self):
3233
"""
33-
When using wpa2_personal the wifi password is written
34-
in ``aaa.1.wpa.psk`` too
34+
Return all the bridge interfaces
3535
"""
36-
try:
37-
return [get_psk(i) for i in self.wireless() if is_wpa2_personal(i)][0]
38-
except IndexError:
39-
return {}
36+
return bridge(get_copy(self.netjson, 'interfaces', []))
4037

4138
@property
4239
def netmode(self):

0 commit comments

Comments
 (0)