luci-base: support ip6ifaceid option for proto_static
authorHannu Nyman <hannu.nyman@iki.fi>
Wed, 24 May 2017 20:42:17 +0000 (23:42 +0300)
committerHannu Nyman <hannu.nyman@iki.fi>
Wed, 24 May 2017 20:42:17 +0000 (23:42 +0300)
commit10d1c5dbb3acc3dfc4f06b3528f612098e3e2db7
treec02412a87ad3b71a4a4c645ccd7f0e8fbe7547e3
parentad0585cbb42d10a9ddbe370636c5b30b1bdd0241
luci-base: support ip6ifaceid option for proto_static

Add support for 'ip6ifaceid' option for proto_static in LuCI.

Information about the option:
 The option is optional and defaults to '::1'.
 Allowed values: 'eui64', 'random', fixed value like '::1' or '::1:2'

 When IPv6 prefix (like 'a:b:c:d::') is received from a delegating
 server, the ip6ifaceid suffix (like '::1') is used to form
 the IPv6 address ('a:b:c:d::1') for the interface.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 5ca386469071d606609beb19a7f09325f3a8ed29)
modules/luci-base/luasrc/model/cbi/admin_network/proto_static.lua