extend the ubus interface to allow adding/removing hotplug interfaces
[project/netifd.git] / config / network
index 0a02e89..2b4549d 100644 (file)
@@ -9,7 +9,8 @@ config interface loopback
 config device
        option name             br-lan
        option type     bridge
-       option ifname   "eth0.1 eth0.2"
+       list ifname             eth0.1
+       list ifname             eth0.2
        option mtu              1500
 
 config device
@@ -21,11 +22,15 @@ config interface lan
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0
 
+config interface dummy
+       option ifname   eth0.4
+       option proto    none
 
 config interface lan2
-       option ifname   eth0.3
+       option ifname   "eth0.3 eth0.5"
        option type             bridge
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0
+       option gateway  192.168.1.2