|
|
|
@ -18,14 +18,15 @@ proto_dhcpv6_init_config() { |
|
|
|
|
proto_config_add_string 'sourcerouting:bool' |
|
|
|
|
proto_config_add_string "userclass" |
|
|
|
|
proto_config_add_string "vendorclass" |
|
|
|
|
proto_config_add_boolean delegate |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
proto_dhcpv6_setup() { |
|
|
|
|
local config="$1" |
|
|
|
|
local iface="$2" |
|
|
|
|
|
|
|
|
|
local reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid sourcerouting userclass vendorclass |
|
|
|
|
json_get_vars reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid sourcerouting userclass vendorclass |
|
|
|
|
local reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid sourcerouting userclass vendorclass delegate |
|
|
|
|
json_get_vars reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid sourcerouting userclass vendorclass delegate |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Configure |
|
|
|
@ -56,6 +57,7 @@ proto_dhcpv6_setup() { |
|
|
|
|
[ -n "$ip6prefix" ] && proto_export "USERPREFIX=$ip6prefix" |
|
|
|
|
[ -n "$iface_dslite" ] && proto_export "IFACE_DSLITE=$iface_dslite" |
|
|
|
|
[ "$sourcerouting" != "0" ] && proto_export "SOURCE_ROUTING=1" |
|
|
|
|
[ "$delegate" = "0" ] && proto_export "IFACE_DSLITE_DELEGATE=0" |
|
|
|
|
|
|
|
|
|
proto_export "INTERFACE=$config" |
|
|
|
|
proto_run_command "$config" odhcp6c \ |
|
|
|
|