luci-mod-network: fix handling of optional RA/NDP options
authorHannu Nyman <hannu.nyman@iki.fi>
Tue, 20 Apr 2021 18:06:42 +0000 (21:06 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Tue, 20 Apr 2021 18:06:42 +0000 (21:06 +0300)
commitb7dd10da0fcdc9c69857d848ce1d47243998a22c
tree0c03db81bab6d83e0b2c3819c4dbb5274c314a68
parentc05bd1990fc9df234b24141ddd10cd91c5e067f6
luci-mod-network: fix handling of optional RA/NDP options

Fix the handling of optional IPv6 RA and NDP options
that were exposed to LuCI with 504bdb23f

Commit 504bdb23f defined them optional but provided default values.
Those values might get unnecessarily written to /etc/config dhcp when
the the user modifies some other values. Remove the default values,
but provide placeholder for some of them.

Add the missing optional definition to 'ndproxy_routing'.
(It is a flag, so optional default values do not get written to
the config file.)

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
modules/luci-mod-network/htdocs/luci-static/resources/view/network/interfaces.js