summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-dockerman/luasrc/model
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-08-05 15:42:33 +0200
committerFlorian Eckert <fe@dev.tdt.de>2020-08-11 12:55:42 +0200
commit16316b3c2f5e285c40ab5cc11aea455d4b9e52fc (patch)
tree0d77b4244ea0f2dde0b810a3ee4eea9d4cdc6ac3 /applications/luci-app-dockerman/luasrc/model
parent04a14ed3700147a6cb2d48c9493f634279e0a1a2 (diff)
luci-app-dockerman: improve newnetwork view
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-dockerman/luasrc/model')
-rw-r--r--applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newnetwork.lua32
1 files changed, 16 insertions, 16 deletions
diff --git a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newnetwork.lua b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newnetwork.lua
index f4cfea5bc5..58ad0eaa93 100644
--- a/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newnetwork.lua
+++ b/applications/luci-app-dockerman/luasrc/model/cbi/dockerman/newnetwork.lua
@@ -24,41 +24,41 @@ s = m:section(SimpleSection, translate("New Network"))
s.addremove = true
s.anonymous = true
-o = s:option(Value, "name", translate("Network Name"))
+o = s:option(Value, "name",
+ translate("Network Name"),
+ translate("Name of the network that can be selected during container creation"))
o.rmempty = true
o = s:option(ListValue, "dirver", translate("Driver"))
o.rmempty = true
-o:value("bridge", "bridge")
-o:value("macvlan", "macvlan")
-o:value("ipvlan", "ipvlan")
-o:value("overlay", "overlay")
+o:value("bridge", translate("Bridge device"))
+o:value("macvlan", translate("MAC VLAN"))
+o:value("ipvlan", translate("IP VLAN"))
+o:value("overlay", translate("Overlay network"))
-o = s:option(Value, "parent", translate("Parent Interface"))
+o = s:option(Value, "parent", translate("Base device"))
o.rmempty = true
o:depends("dirver", "macvlan")
local interfaces = luci.sys and luci.sys.net and luci.sys.net.devices() or {}
for _, v in ipairs(interfaces) do
o:value(v, v)
end
-o.default="br-lan"
-o.placeholder="br-lan"
-o = s:option(Value, "macvlan_mode", translate("Macvlan Mode"))
+o = s:option(ListValue, "macvlan_mode", translate("Mode"))
o.rmempty = true
o:depends("dirver", "macvlan")
o.default="bridge"
-o:value("bridge", "bridge")
-o:value("private", "private")
-o:value("vepa", "vepa")
-o:value("passthru", "passthru")
+o:value("bridge", translate("Bridge (Support direct communication between MAC VLANs)"))
+o:value("private", translate("Private (Prevent communication between MAC VLANs)"))
+o:value("vepa", translate("VEPA (Virtual Ethernet Port Aggregator)"))
+o:value("passthru", translate("Pass-through (Mirror physical device to single MAC VLAN)"))
-o = s:option(Value, "ipvlan_mode", translate("Ipvlan Mode"))
+o = s:option(ListValue, "ipvlan_mode", translate("Ipvlan Mode"))
o.rmempty = true
o:depends("dirver", "ipvlan")
o.default="l3"
-o:value("l2", "l2")
-o:value("l3", "l3")
+o:value("l2", translate("L2 bridge"))
+o:value("l3", translate("L3 bridge"))
o = s:option(Flag, "ingress",
translate("Ingress"),