protocols: fix various interface patterns
The virtual interface match patterns of various protocols were improperly quoted, causing them to over- or undermatch. Follow up of #1435. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
e0a7227a0c
commit
932bae9873
9 changed files with 9 additions and 9 deletions
|
@ -37,4 +37,4 @@ function proto.contains_interface(self, ifc)
|
|||
return (netmod:ifnameof(ifc) == self:ifname())
|
||||
end
|
||||
|
||||
netmod:register_pattern_virtual("^ipip-%w")
|
||||
netmod:register_pattern_virtual("^ipip%-%w")
|
||||
|
|
|
@ -46,5 +46,5 @@ for _, p in ipairs({"6in4", "6to4", "6rd"}) do
|
|||
return (netmod:ifnameof(ifc) == self:ifname())
|
||||
end
|
||||
|
||||
netmod:register_pattern_virtual("^%s-%%w" % p)
|
||||
netmod:register_pattern_virtual("^%s%%-%%w" % p)
|
||||
end
|
||||
|
|
|
@ -46,4 +46,4 @@ function proto.contains_interface(self, ifname)
|
|||
end
|
||||
end
|
||||
|
||||
netmod:register_pattern_virtual("^aiccu-%%w")
|
||||
netmod:register_pattern_virtual("^aiccu%-%w")
|
||||
|
|
|
@ -58,4 +58,4 @@ function proto.contains_interface(self, ifc)
|
|||
return (netmod:ifnameof(ifc) == self:ifname())
|
||||
end
|
||||
|
||||
netmod:register_pattern_virtual("^ncm-%%w")
|
||||
netmod:register_pattern_virtual("^ncm%-%w")
|
||||
|
|
|
@ -42,4 +42,4 @@ function proto.contains_interface(self, ifc)
|
|||
|
||||
end
|
||||
|
||||
netmod:register_pattern_virtual("^vpn-%w")
|
||||
netmod:register_pattern_virtual("^vpn%-%w")
|
||||
|
|
|
@ -90,5 +90,5 @@ for _, p in ipairs({"ppp", "pptp", "pppoe", "pppoa", "3g", "l2tp", "pppossh"}) d
|
|||
end
|
||||
end
|
||||
|
||||
netmod:register_pattern_virtual("^%s-%%w" % p)
|
||||
netmod:register_pattern_virtual("^%s%%-%%w" % p)
|
||||
end
|
||||
|
|
|
@ -48,4 +48,4 @@ function proto.contains_interface(self, ifc)
|
|||
return (netmod:ifnameof(ifc) == self:ifname())
|
||||
end
|
||||
|
||||
netmod:register_pattern_virtual("^qmi-%w")
|
||||
netmod:register_pattern_virtual("^qmi%-%w")
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
local netmod = luci.model.network
|
||||
local device = luci.util.class(netmod.interface)
|
||||
|
||||
netmod:register_pattern_virtual("^relay-%w")
|
||||
netmod:register_pattern_virtual("^relay%-%w")
|
||||
|
||||
local proto = netmod:register_protocol("relay")
|
||||
|
||||
|
|
|
@ -42,5 +42,5 @@ function proto.contains_interface(self, ifc)
|
|||
|
||||
end
|
||||
|
||||
netmod:register_pattern_virtual("^vpn-%w")
|
||||
netmod:register_pattern_virtual("^vpn%-%w")
|
||||
|
||||
|
|
Loading…
Reference in a new issue