Hi Federico
{
"ip_rules": [
{
"src":"wan",
"enabled":"1",
"proto":"tcp",
"dest_port":"22",
"target": "ACCEPT"
}
]
}
I think it's happening because I'm using an older version of netjsonconfig
where there is still a file called renderers.py which calls ip_network for
that property (src) genrating the error I was getting.
# if rule.get('src'):
# src_net = ip_network(rule['src'])
I commented those lines from renderers.py which solved for the command line
at least which is now returning the correponding uci.
--
You received this message because you are subscribed to the Google Groups
"OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.