|
|
|
@ -14,6 +14,7 @@ proto_dhcpv6_init_config() { |
|
|
|
|
proto_config_add_string 'norelease:bool' |
|
|
|
|
proto_config_add_string 'ip6prefix:ip6addr' |
|
|
|
|
proto_config_add_string iface_dslite |
|
|
|
|
proto_config_add_string zone_dslite |
|
|
|
|
proto_config_add_string 'ifaceid:ip6addr' |
|
|
|
|
proto_config_add_string 'sourcerouting:bool' |
|
|
|
|
proto_config_add_string "userclass" |
|
|
|
@ -25,8 +26,8 @@ proto_dhcpv6_setup() { |
|
|
|
|
local config="$1" |
|
|
|
|
local iface="$2" |
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
local reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid sourcerouting userclass vendorclass delegate zone_dslite |
|
|
|
|
json_get_vars reqaddress reqprefix clientid reqopts noslaaconly forceprefix norelease ip6prefix iface_dslite ifaceid sourcerouting userclass vendorclass delegate zone_dslite |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Configure |
|
|
|
@ -58,6 +59,7 @@ proto_dhcpv6_setup() { |
|
|
|
|
[ -n "$iface_dslite" ] && proto_export "IFACE_DSLITE=$iface_dslite" |
|
|
|
|
[ "$sourcerouting" != "0" ] && proto_export "SOURCE_ROUTING=1" |
|
|
|
|
[ "$delegate" = "0" ] && proto_export "IFACE_DSLITE_DELEGATE=0" |
|
|
|
|
[ -n "$zone_dslite" ] && proto_export "ZONE_DSLITE=$zone_dslite" |
|
|
|
|
|
|
|
|
|
proto_export "INTERFACE=$config" |
|
|
|
|
proto_run_command "$config" odhcp6c \ |
|
|
|
|