Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
1bfa0d8f
Commit
1bfa0d8f
authored
Nov 11, 2016
by
Tomek Mrugalski
🛰
Browse files
[5014] mac-sources, relay-supplied-options added
parent
d31d82bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/bin/dhcp6/dhcp6_lexer.ll
View file @
1bfa0d8f
...
...
@@ -130,6 +130,8 @@ JSONString \"{JSONStringCharacter}*\"
\
"interface\"
{
return
isc:
:
dhcp:
:
Dhcp6Parser:
:make_INTERFACE
(
loc
)
; }
\
"type\"
{
return
isc:
:
dhcp:
:
Dhcp6Parser:
:make_TYPE
(
loc
)
; }
\
"code\"
{
return
isc:
:
dhcp:
:
Dhcp6Parser:
:make_CODE
(
loc
)
; }
\
"mac-sources\"
{
return
isc:
:
dhcp:
:
Dhcp6Parser:
:make_MAC_SOURCES
(
loc
)
; }
\
"relay-supplied-options\"
{
return
isc:
:
dhcp:
:
Dhcp6Parser:
:make_RELAY_SUPPLIED_OPTIONS
(
loc
)
; }
\
"Logging\"
{
return
isc:
:
dhcp:
:
Dhcp6Parser:
:make_LOGGING
(
loc
)
; }
\
"loggers\"
{
return
isc:
:
dhcp:
:
Dhcp6Parser:
:make_LOGGERS
(
loc
)
; }
...
...
src/bin/dhcp6/dhcp6_parser.yy
View file @
1bfa0d8f
...
...
@@ -66,6 +66,8 @@ using namespace std;
POOL "pool"
SUBNET "subnet"
INTERFACE "interface"
MAC_SOURCES "mac-sources"
RELAY_SUPPLIED_OPTIONS "relay-supplied-options"
LOGGING "Logging"
LOGGERS "loggers"
...
...
@@ -196,6 +198,8 @@ global_param
| subnet6_list
| interfaces_config
| lease_database
| mac_sources
| relay_supplied_options
;
preferred_lifetime: PREFERRED_LIFETIME COLON INTEGER {
...
...
@@ -253,6 +257,22 @@ lease_database_type: TYPE COLON STRING {
ctx.stack_.back()->set("type", prf);
};
mac_sources: MAC_SOURCES {
ElementPtr l(new ListElement());
ctx.stack_.back()->set("mac-sources", l);
ctx.stack_.push_back(l);
} COLON list {
ctx.stack_.pop_back();
};
relay_supplied_options: RELAY_SUPPLIED_OPTIONS {
ElementPtr l(new ListElement());
ctx.stack_.back()->set("relay-supplied-options", l);
ctx.stack_.push_back(l);
} COLON list {
ctx.stack_.pop_back();
};
// This defines subnet6 as a list of maps.
// "subnet6": [ ... ]
subnet6_list: SUBNET6 COLON LSQUARE_BRACKET {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment