summaryrefslogtreecommitdiffhomepage
path: root/protocols/luci-proto-cni
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/luci-proto-cni')
-rw-r--r--protocols/luci-proto-cni/Makefile8
-rw-r--r--protocols/luci-proto-cni/htdocs/luci-static/resources/protocol/cni.js8
2 files changed, 16 insertions, 0 deletions
diff --git a/protocols/luci-proto-cni/Makefile b/protocols/luci-proto-cni/Makefile
new file mode 100644
index 0000000000..6405fca0fd
--- /dev/null
+++ b/protocols/luci-proto-cni/Makefile
@@ -0,0 +1,8 @@
+include $(TOPDIR)/rules.mk
+
+LUCI_TITLE:=Support for CNI protocol
+LUCI_DEPENDS:=+cni-protocol
+
+include ../../luci.mk
+
+# call BuildPackage - OpenWrt buildroot signature
diff --git a/protocols/luci-proto-cni/htdocs/luci-static/resources/protocol/cni.js b/protocols/luci-proto-cni/htdocs/luci-static/resources/protocol/cni.js
new file mode 100644
index 0000000000..7e22398485
--- /dev/null
+++ b/protocols/luci-proto-cni/htdocs/luci-static/resources/protocol/cni.js
@@ -0,0 +1,8 @@
+'use strict';
+'require network';
+
+return network.registerProtocol('cni', {
+ getI18n: function () {
+ return _('CNI (Externally managed interface)');
+ }
+});