Commit 9fccdbf5 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[5017] 4o6-interface-id support implemented

parent 1c5c1354
...@@ -842,6 +842,15 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence} ...@@ -842,6 +842,15 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence}
} }
} }
\"4o6-interface-id\" {
switch(driver.ctx_) {
case isc::dhcp::Parser4Context::SUBNET4:
return isc::dhcp::Dhcp4Parser::make_SUBNET_4O6_INTERFACE_ID(driver.loc_);
default:
return isc::dhcp::Dhcp4Parser::make_STRING("4o6-interface-id", driver.loc_);
}
}
\"4o6-subnet\" { \"4o6-subnet\" {
switch(driver.ctx_) { switch(driver.ctx_) {
case isc::dhcp::Parser4Context::SUBNET4: case isc::dhcp::Parser4Context::SUBNET4:
......
...@@ -75,6 +75,7 @@ using namespace std; ...@@ -75,6 +75,7 @@ using namespace std;
DECLINE_PROBATION_PERIOD "decline-probation-period" DECLINE_PROBATION_PERIOD "decline-probation-period"
SUBNET4 "subnet4" SUBNET4 "subnet4"
SUBNET_4O6_INTERFACE "4o6-interface" SUBNET_4O6_INTERFACE "4o6-interface"
SUBNET_4O6_INTERFACE_ID "4o6-interface-id"
SUBNET_4O6_SUBNET "4o6-subnet" SUBNET_4O6_SUBNET "4o6-subnet"
OPTION_DEF "option-def" OPTION_DEF "option-def"
OPTION_DATA "option-data" OPTION_DATA "option-data"
...@@ -726,7 +727,10 @@ subnet4_param: valid_lifetime ...@@ -726,7 +727,10 @@ subnet4_param: valid_lifetime
| reservations | reservations
| reservation_mode | reservation_mode
| relay | relay
| match_client_id
| next_server
| subnet_4o6_interface | subnet_4o6_interface
| subnet_4o6_interface_id
| subnet_4o6_subnet | subnet_4o6_subnet
| unknown_map_entry | unknown_map_entry
; ;
...@@ -747,6 +751,14 @@ subnet_4o6_interface: SUBNET_4O6_INTERFACE { ...@@ -747,6 +751,14 @@ subnet_4o6_interface: SUBNET_4O6_INTERFACE {
ctx.leave(); ctx.leave();
}; };
subnet_4o6_interface_id: SUBNET_4O6_INTERFACE_ID {
ctx.enter(ctx.NO_KEYWORD);
} COLON STRING {
ElementPtr iface(new StringElement($4, ctx.loc2pos(@4)));
ctx.stack_.back()->set("4o6-interface-id", iface);
ctx.leave();
};
subnet_4o6_subnet: SUBNET_4O6_SUBNET { subnet_4o6_subnet: SUBNET_4O6_SUBNET {
ctx.enter(ctx.NO_KEYWORD); ctx.enter(ctx.NO_KEYWORD);
} COLON STRING { } COLON STRING {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment