Commit e73d4814 authored by Francis Dupont's avatar Francis Dupont

[5096] Added cql database type

parent 36c0a44a
...@@ -270,6 +270,15 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence} ...@@ -270,6 +270,15 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence}
} }
} }
\"cql\" {
switch(driver.ctx_) {
case isc::dhcp::Parser4Context::DATABASE_TYPE:
return isc::dhcp::Dhcp4Parser::make_CQL(driver.loc_);
default:
return isc::dhcp::Dhcp4Parser::make_STRING("cql", driver.loc_);
}
}
\"user\" { \"user\" {
switch(driver.ctx_) { switch(driver.ctx_) {
case isc::dhcp::Parser4Context::LEASE_DATABASE: case isc::dhcp::Parser4Context::LEASE_DATABASE:
......
...@@ -66,6 +66,7 @@ using namespace std; ...@@ -66,6 +66,7 @@ using namespace std;
MEMFILE "memfile" MEMFILE "memfile"
MYSQL "mysql" MYSQL "mysql"
POSTGRESQL "postgresql" POSTGRESQL "postgresql"
CQL "cql"
USER "user" USER "user"
PASSWORD "password" PASSWORD "password"
HOST "host" HOST "host"
...@@ -495,6 +496,7 @@ database_type: TYPE { ...@@ -495,6 +496,7 @@ database_type: TYPE {
db_type: MEMFILE { $$ = ElementPtr(new StringElement("memfile", ctx.loc2pos(@1))); } db_type: MEMFILE { $$ = ElementPtr(new StringElement("memfile", ctx.loc2pos(@1))); }
| MYSQL { $$ = ElementPtr(new StringElement("mysql", ctx.loc2pos(@1))); } | MYSQL { $$ = ElementPtr(new StringElement("mysql", ctx.loc2pos(@1))); }
| POSTGRESQL { $$ = ElementPtr(new StringElement("postgresql", ctx.loc2pos(@1))); } | POSTGRESQL { $$ = ElementPtr(new StringElement("postgresql", ctx.loc2pos(@1))); }
| CQL { $$ = ElementPtr(new StringElement("cql", ctx.loc2pos(@1))); }
; ;
user: USER { user: USER {
......
...@@ -264,6 +264,15 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence} ...@@ -264,6 +264,15 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence}
} }
} }
\"cql\" {
switch(driver.ctx_) {
case isc::dhcp::Parser6Context::DATABASE_TYPE:
return isc::dhcp::Dhcp6Parser::make_CQL(driver.loc_);
default:
return isc::dhcp::Dhcp6Parser::make_STRING("cql", driver.loc_);
}
}
\"user\" { \"user\" {
switch(driver.ctx_) { switch(driver.ctx_) {
case isc::dhcp::Parser6Context::LEASE_DATABASE: case isc::dhcp::Parser6Context::LEASE_DATABASE:
......
...@@ -59,6 +59,7 @@ using namespace std; ...@@ -59,6 +59,7 @@ using namespace std;
MEMFILE "memfile" MEMFILE "memfile"
MYSQL "mysql" MYSQL "mysql"
POSTGRESQL "postgresql" POSTGRESQL "postgresql"
CQL "cql"
USER "user" USER "user"
PASSWORD "password" PASSWORD "password"
HOST "host" HOST "host"
...@@ -485,6 +486,7 @@ database_type: TYPE { ...@@ -485,6 +486,7 @@ database_type: TYPE {
db_type: MEMFILE { $$ = ElementPtr(new StringElement("memfile", ctx.loc2pos(@1))); } db_type: MEMFILE { $$ = ElementPtr(new StringElement("memfile", ctx.loc2pos(@1))); }
| MYSQL { $$ = ElementPtr(new StringElement("mysql", ctx.loc2pos(@1))); } | MYSQL { $$ = ElementPtr(new StringElement("mysql", ctx.loc2pos(@1))); }
| POSTGRESQL { $$ = ElementPtr(new StringElement("postgresql", ctx.loc2pos(@1))); } | POSTGRESQL { $$ = ElementPtr(new StringElement("postgresql", ctx.loc2pos(@1))); }
| CQL { $$ = ElementPtr(new StringElement("cql", ctx.loc2pos(@1))); }
; ;
user: USER { user: USER {
......
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