Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian Schrader
Kea
Commits
1bfa0d8f
Commit
1bfa0d8f
authored
Nov 11, 2016
by
Tomek Mrugalski
🛰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[5014] mac-sources, relay-supplied-options added
parent
d31d82bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
src/bin/dhcp6/dhcp6_lexer.ll
src/bin/dhcp6/dhcp6_lexer.ll
+2
-0
src/bin/dhcp6/dhcp6_parser.yy
src/bin/dhcp6/dhcp6_parser.yy
+20
-0
No files found.
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