We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0276298 commit 104234fCopy full SHA for 104234f
1 file changed
netjsonconfig/backends/airos/converters.py
@@ -28,15 +28,12 @@ def should_run_forward(cls, config):
28
class Aaa(AirOsConverter):
29
netjson_key = 'general'
30
31
- def wpa2_personal(self):
+ @property
32
+ def bridge(self):
33
"""
- When using wpa2_personal the wifi password is written
34
- in ``aaa.1.wpa.psk`` too
+ Return all the bridge interfaces
35
36
- try:
37
- return [get_psk(i) for i in self.wireless() if is_wpa2_personal(i)][0]
38
- except IndexError:
39
- return {}
+ return bridge(get_copy(self.netjson, 'interfaces', []))
40
41
@property
42
def netmode(self):
0 commit comments