1 -- Copyright 2011 Jo-Philipp Wich <jow@openwrt.org>
2 -- Copyright 2013 Steven Barth <steven@midlink.org>
3 -- Licensed to the public under the Apache License 2.0.
5 local netmod = luci.model.network
8 for _, p in ipairs({"dslite"}) do
10 local proto = netmod:register_protocol(p)
12 function proto.get_i18n(self)
14 return luci.i18n.translate("Dual-Stack Lite (RFC6333)")
18 function proto.ifname(self)
19 return p .. "-" .. self.sid
22 function proto.opkg_package(self)
28 function proto.is_installed(self)
29 return nixio.fs.access("/lib/netifd/proto/" .. p .. ".sh")
32 function proto.is_floating(self)
36 function proto.is_virtual(self)
40 function proto.get_interfaces(self)
44 function proto.contains_interface(self, ifname)
45 return (netmod:ifnameof(ifc) == self:ifname())
48 netmod:register_pattern_virtual("^%s-%%w" % p)