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 2eaa3a2 commit 4f77d94Copy full SHA for 4f77d94
1 file changed
netjsonconfig/backends/airos/interface.py
@@ -53,8 +53,12 @@ def radio(interface):
53
return interface['wireless']['radio']
54
55
56
+def split_cidr(address):
57
"""
58
+ Return the address in dict format
59
60
+ network = ip_interface('{addr}/{mask}'.format(addr=address['address'], mask=address['mask']))
61
+ return {'ip': network.ip, 'netmask': network.netmask}
62
63
64
def ssid(interface):
0 commit comments