Changeset 6700
- Timestamp:
- 01/10/11 19:40:35 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
luci/trunk/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua
r6468 r6700 26 26 local cpu_port = 5 27 27 28 local enable_vlan4k = false 29 28 30 -- Parse some common switch properties from swconfig help output. 29 31 local swc = io.popen("swconfig dev %q help 2>/dev/null" % switch_name) … … 55 57 if is_vlan_attr then has_vlan4k = line:match(": (%w+)") end 56 58 if is_port_attr then has_ptpvid = line:match(": (%w+)") end 59 60 elseif line:match(": enable_vlan4k") then 61 enable_vlan4k = true 57 62 58 63 end … … 99 104 s:option(Flag, "enable_vlan", translate("Enable VLAN functionality")) 100 105 .cfgvalue = function(self, section) return Flag.cfgvalue(self, section) or self.enabled end 106 107 if enable_vlan4k then 108 s:option(Flag, "enable_vlan4k", translate("Enable 4K VLANs")) 109 end 101 110 102 111 s:option(Flag, "reset", translate("Reset switch during setup"))
