Can you try using the configuration UI in the openwisp web app to do this?

It should work.

Federico

On Fri, Dec 21, 2018 at 4:49 PM henriqsc <henrique.posu...@gmail.com> wrote:

> Need to generate some configuration but I'm finding some issues. I need
> tot bridge both eth0 and eth1 in a lan. As well as disable the existing wan
> (eth1).  Openwisp/netjsonconfig does not accept the following line:
>
> "name": "eth0 eth1", like in:
>
> {
>     "interfaces": [
>         {
>             "type": "bridge",
>             "disabled": false,
>             "autostart": true,
>             "network": "lan",
>             "name": "eth1 eth0",
>             "mtu": 1500,
>             "auto": "1",
>             "addresses": [
>                 {
>                     "proto": "dhcp",
>                     "family": "ipv4"
>                 }
>             ]
>         }
>     ]
> }
>
> which returns;
> .interfaces[0].type should be equal to one of: "ethernet", "virtual",
> "loopback", "other"
> .interfaces[0].name should match pattern "^[^\s]*$"
>
> So I tried the general netjsonconfig with config_name/config for the
> bridge. I tried:
>
> {
>     "interface": [
>         {
>         "config_name": "interface",
>         "config_value": "lan",
>         "type": "bridge",
>         "proto": "dhcp",
>         "name": "eth0 eth1",
>         "auto": "1",
>         "mtu": "1500",
>         "enabled": "1"
>          },
>           {
>         "config_name": "interface",
>         "config_value": "wan",
>         "proto": "dhcp",
>         "enabled": "0"
>          }
>      ]
> }
>
> This works fine but generates a file called interface instead the file
> network, I also tried network and other options without success. Any help?
> I'm sorry that apparently in the forum I'm the only one that finds hard to
> generate ucis form netjsonconfig in some situations.
>
>
>
>
> --
> 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 openwisp+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 openwisp+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to