luci-app-dockerman: add bip option
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 29 Jul 2020 07:17:01 +0000 (09:17 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Wed, 29 Jul 2020 07:17:01 +0000 (09:17 +0200)
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
applications/luci-app-dockerman/luasrc/model/cbi/dockerman/overview.lua

index f1fc4f02701cfb1293e27b73d78c9bf1d10ed168..dc20125e29a49f96237126375ae2e8fa6627d860 100644 (file)
@@ -120,6 +120,14 @@ if nixio.fs.access("/usr/bin/dockerd") then
        o.placeholder = "/opt/docker/"
        o:depends("remote_endpoint", 0)
 
+       o = s:option(Value, "bip",
+               translate("Default bridge"),
+               translate("Configure the default bridge network"))
+       o.placeholder = "172.17.0.1/16"
+       o.default = "172.17.0.1/16"
+       o.datatype = "ipaddr"
+       o:depends("remote_endpoint", 0)
+
        o = s:option(DynamicList, "registry_mirrors",
                translate("Registry Mirrors"))
        o:value("https://hub-mirror.c.163.com", "https://hub-mirror.c.163.com")