}
}
+\"allow-static-leases\" {
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser4Context::DHCP4:
+ case isc::dhcp::Parser4Context::SUBNET4:
+ case isc::dhcp::Parser4Context::SHARED_NETWORK:
+ return isc::dhcp::Dhcp4Parser::make_ALLOW_STATIC_LEASES(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp4Parser::make_STRING("allow-static-leases", driver.loc_);
+ }
+}
+
\"decline-probation-period\" {
switch(driver.ctx_) {
case isc::dhcp::Parser4Context::DHCP4:
MAX_VALID_LIFETIME "max-valid-lifetime"
RENEW_TIMER "renew-timer"
REBIND_TIMER "rebind-timer"
+ ALLOW_STATIC_LEASES "allow-static-leases"
CALCULATE_TEE_TIMES "calculate-tee-times"
T1_PERCENT "t1-percent"
T2_PERCENT "t2-percent"
| loggers
| hostname_char_set
| hostname_char_replacement
+ | allow_static_leases
| unknown_map_entry
;
ctx.stack_.back()->set("rebind-timer", prf);
};
+allow_static_leases: ALLOW_STATIC_LEASES COLON BOOLEAN {
+ ElementPtr asl(new BoolElement($3, ctx.loc2pos(@3)));
+ ctx.stack_.back()->set("allow-static-leases", asl);
+};
+
calculate_tee_times: CALCULATE_TEE_TIMES COLON BOOLEAN {
ElementPtr ctt(new BoolElement($3, ctx.loc2pos(@3)));
ctx.stack_.back()->set("calculate-tee-times", ctt);
| calculate_tee_times
| t1_percent
| t2_percent
+ | allow_static_leases
| unknown_map_entry
;
| calculate_tee_times
| t1_percent
| t2_percent
+ | allow_static_leases
| unknown_map_entry
;
}
}
+\"allow-static-leases\" {
+ switch(driver.ctx_) {
+ case isc::dhcp::Parser6Context::DHCP6:
+ case isc::dhcp::Parser6Context::SUBNET6:
+ case isc::dhcp::Parser6Context::SHARED_NETWORK:
+ return isc::dhcp::Dhcp6Parser::make_ALLOW_STATIC_LEASES(driver.loc_);
+ default:
+ return isc::dhcp::Dhcp6Parser::make_STRING("allow-static-leases", driver.loc_);
+ }
+}
+
\"decline-probation-period\" {
switch(driver.ctx_) {
case isc::dhcp::Parser6Context::DHCP6:
MAX_VALID_LIFETIME "max-valid-lifetime"
RENEW_TIMER "renew-timer"
REBIND_TIMER "rebind-timer"
+ ALLOW_STATIC_LEASES "allow-static-leases"
CALCULATE_TEE_TIMES "calculate-tee-times"
T1_PERCENT "t1-percent"
T2_PERCENT "t2-percent"
| loggers
| hostname_char_set
| hostname_char_replacement
+ | allow_static_leases
| unknown_map_entry
;
ctx.stack_.back()->set("rebind-timer", prf);
};
+allow_static_leases: ALLOW_STATIC_LEASES COLON BOOLEAN {
+ ElementPtr asl(new BoolElement($3, ctx.loc2pos(@3)));
+ ctx.stack_.back()->set("allow-static-leases", asl);
+};
+
calculate_tee_times: CALCULATE_TEE_TIMES COLON BOOLEAN {
ElementPtr ctt(new BoolElement($3, ctx.loc2pos(@3)));
ctx.stack_.back()->set("calculate-tee-times", ctt);
| calculate_tee_times
| t1_percent
| t2_percent
+ | allow_static_leases
| unknown_map_entry
;
| calculate_tee_times
| t1_percent
| t2_percent
+ | allow_static_leases
| unknown_map_entry
;