summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-tayga/luasrc/model/network/proto_tayga.lua
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/luci-proto-tayga/luasrc/model/network/proto_tayga.lua')
-rw-r--r--protocols/luci-proto-tayga/luasrc/model/network/proto_tayga.lua27
1 files changed, 27 insertions, 0 deletions
diff --git a/protocols/luci-proto-tayga/luasrc/model/network/proto_tayga.lua b/protocols/luci-proto-tayga/luasrc/model/network/proto_tayga.lua
new file mode 100644
index 000000000..9f6bb14c9
--- /dev/null
+++ b/protocols/luci-proto-tayga/luasrc/model/network/proto_tayga.lua
@@ -0,0 +1,27 @@
+-- Licensed to the public under the Apache License 2.0.
+
+local proto = luci.model.network:register_protocol("tayga")
+
+function proto.get_i18n(self)
+ return luci.i18n.translate("NAT64 (TAYGA)")
+end
+
+function proto.opkg_package(self)
+ return "tayga"
+end
+
+function proto.is_installed(self)
+ return nixio.fs.access("/lib/netifd/proto/tayga.sh")
+end
+
+function proto.is_floating(self)
+ return true
+end
+
+function proto.is_virtual(self)
+ return true
+end
+
+function proto.get_interfaces(self)
+ return nil
+end