luci-app-mwan3: add new ip family param 1091/head
authorFlorian Eckert <fe@dev.tdt.de>
Fri, 31 Mar 2017 12:57:27 +0000 (14:57 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Fri, 31 Mar 2017 13:02:03 +0000 (15:02 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-mwan3/luasrc/model/cbi/mwan/interfaceconfig.lua

index 23703d4eae36767e0e4036c15351ffcf872aef86..b1820cc68af60484760cec8cfbf80104f2d78b04 100644 (file)
@@ -102,6 +102,11 @@ enabled = mwan_interface:option(ListValue, "enabled", translate("Enabled"))
        enabled:value("1", translate("Yes"))
        enabled:value("0", translate("No"))
 
+family = mwan_interface:option(ListValue, "family", translate("Internet Protocol"))
+       family.default = "ipv4"
+       family:value("ipv4", translate("IPv4"))
+       family:value("ipv6", translate("IPv6"))
+
 track_ip = mwan_interface:option(DynamicList, "track_ip", translate("Tracking IP"),
        translate("This IP address will be pinged to dermine if the link is up or down. Leave blank to assume interface is always online"))
        track_ip.datatype = "ipaddr"