diff options
author | Oskari Rauta <oskari.rauta@gmail.com> | 2023-11-30 07:35:48 +0200 |
---|---|---|
committer | Hannu Nyman <hannu.nyman@iki.fi> | 2023-11-30 10:02:32 +0200 |
commit | 0dd348c87f590861c252194b1720921d8779b4a1 (patch) | |
tree | 7eb621fc623e6c9bfd77a979c5687a541b658187 /protocols/luci-proto-cni/htdocs/luci-static/resources/protocol | |
parent | 1a1e63af4512f2db5b441f7cedda1f536395fc10 (diff) |
luci-proto-external: migrate from support to cni-protocol to external-protocol
As previously introduced cni protocol support (for netifd) has evolved more
to a multipurpose protocol useful for cni/netavark/some vpn/etc connections
I have decided to rename it from cni-protocol to external-protocol.
That's why also it's luci companion, luci-proto-cni, should be renamed
to luci-proto-external and migrated to support external-protocol.
This patch also adds support for new option in external-protocol, delay.
This closes promise made in #22702 on openwrt packages repository.
Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
Diffstat (limited to 'protocols/luci-proto-cni/htdocs/luci-static/resources/protocol')
-rw-r--r-- | protocols/luci-proto-cni/htdocs/luci-static/resources/protocol/cni.js | 42 |
1 files changed, 0 insertions, 42 deletions
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 deleted file mode 100644 index 273067fd43..0000000000 --- a/protocols/luci-proto-cni/htdocs/luci-static/resources/protocol/cni.js +++ /dev/null @@ -1,42 +0,0 @@ -'use strict'; -'require form'; -'require network'; - -return network.registerProtocol('cni', { - getI18n: function () { - return _('CNI (Externally managed interface)'); - }, - - getOpkgPackage: function() { - return "cni-protocol"; - }, - - isFloating: function() { - return true; - }, - - isVirtual: function() { - return true; - }, - - getDevices: function() { - return null; - }, - - renderFormOptions: function(s) { - var o; - - o = s.taboption('general', form.Value, '_device', _('Device')); - o.ucioption = 'device'; - o.optional = false; - o.rmempty = false; - - o = s.taboption('general', form.Value, '_delay', _('Delay'), _('Afer making changes to network using CNI protocol, network must be manually restarted.')); - o.ucioption = 'delay'; - o.placeholder = '10'; - o.datatype = 'min(1)'; - o.optional = true; - o.rmempty = true; - } - -}); |