summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2019-09-13 22:38:33 +0200
committerMikael Magnusson <mikma@users.sourceforge.net>2019-09-13 22:38:33 +0200
commitae27901c888a8c4565be25c5e36904654739c089 (patch)
tree86e586b1795fc88586f5c491ec4f30778432152e /modules/luci-mod-network
parent98cde82e4d585e432efcb468a3e4cdc52b685a25 (diff)
WIP from 2018-11-28multiplipv6prefixes
Diffstat (limited to 'modules/luci-mod-network')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/iface_status.js6
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/network.js6
-rw-r--r--modules/luci-mod-network/luasrc/controller/admin/network.lua1
3 files changed, 11 insertions, 2 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/iface_status.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/iface_status.js
index 88f48d189a..dbde0beab2 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/iface_status.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/iface_status.js
@@ -30,7 +30,11 @@ requestAnimationFrame(function() {
_('IPv6'), ifc.ip6addrs ? ifc.ip6addrs[7] : null,
_('IPv6'), ifc.ip6addrs ? ifc.ip6addrs[8] : null,
_('IPv6'), ifc.ip6addrs ? ifc.ip6addrs[9] : null,
- _('IPv6-PD'), ifc.ip6prefix,
+ _('IPv6-PD'), ifc.ip6prefixes ? ifc.ip6prefixes[0] : null,
+ _('IPv6-PD'), ifc.ip6prefixes ? ifc.ip6prefixes[1] : null,
+ _('IPv6-PD'), ifc.ip6prefixes ? ifc.ip6prefixes[2] : null,
+ _('IPv6-PD'), ifc.ip6prefixes ? ifc.ip6prefixes[3] : null,
+ _('IPv6-PD'), ifc.ip6prefixes ? ifc.ip6prefixes[4] : null,
null, ifc.ifname ? null : E('em', _('Interface not present or not connected yet.'))
]);
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/network.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/network.js
index acca7cf8a5..4bce1ecb89 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/network.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/network.js
@@ -101,7 +101,11 @@ L.poll(5, L.url('admin/network/iface_status', networks.join(',')), null,
_('IPv6'), ifc.ip6addrs ? ifc.ip6addrs[7] : null,
_('IPv6'), ifc.ip6addrs ? ifc.ip6addrs[8] : null,
_('IPv6'), ifc.ip6addrs ? ifc.ip6addrs[9] : null,
- _('IPv6-PD'), ifc.ip6prefix,
+ _('IPv6-PD'), ifc.ip6prefixes ? ifc.ip6prefixes[0] : null,
+ _('IPv6-PD'), ifc.ip6prefixes ? ifc.ip6prefixes[1] : null,
+ _('IPv6-PD'), ifc.ip6prefixes ? ifc.ip6prefixes[2] : null,
+ _('IPv6-PD'), ifc.ip6prefixes ? ifc.ip6prefixes[3] : null,
+ _('IPv6-PD'), ifc.ip6prefixes ? ifc.ip6prefixes[4] : null,
_('Error'), ifc.errors ? ifc.errors[0] : null,
_('Error'), ifc.errors ? ifc.errors[1] : null,
_('Error'), ifc.errors ? ifc.errors[2] : null,
diff --git a/modules/luci-mod-network/luasrc/controller/admin/network.lua b/modules/luci-mod-network/luasrc/controller/admin/network.lua
index 1da5eac464..6d3e3026d0 100644
--- a/modules/luci-mod-network/luasrc/controller/admin/network.lua
+++ b/modules/luci-mod-network/luasrc/controller/admin/network.lua
@@ -203,6 +203,7 @@ function iface_status(ifaces)
ip6addrs = net:ip6addrs(),
dnsaddrs = net:dnsaddrs(),
ip6prefix = net:ip6prefix(),
+ ip6prefixes= net:ip6prefixes(),
errors = net:errors(),
name = device:shortname(),
type = device:type(),