gluon/package/gluon-next-node/files/lib/netifd/proto/static_deprecated.sh
Nils Schneider 885562c8b1 gluon-next-node: mark local-node ip6 as deprecated
Prevent the local-node ip6 from being eligible for source address
selection. This is highly undesireable in a layer 3 mesh.
2016-05-16 18:52:16 +02:00

31 lines
474 B
Bash
Executable File

#!/bin/sh
. /lib/functions.sh
. ../netifd-proto.sh
init_proto "$@"
proto_static_deprecated_init_config() {
renew_handler=1
proto_config_add_string 'ip6addr:ip6addr'
}
proto_static_deprecated_setup() {
local config="$1"
local iface="$2"
local ip6addr
json_get_vars ip6addr
proto_init_update "*" 1
proto_add_ipv6_address "$ip6addr" "" "0"
proto_send_update "$config"
}
proto_static_deprecated_teardown() {
local config="$1"
}
add_protocol static_deprecated