From: Francis Dupont Date: Sat, 4 Mar 2017 14:59:46 +0000 (+0100) Subject: [5145b] Removed unused allow-client-update X-Git-Tag: fdunparse2_base~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a20ee8b1fa516d9137cde0b48c7e2a302c198091;p=thirdparty%2Fkea.git [5145b] Removed unused allow-client-update --- diff --git a/src/bin/dhcp4/dhcp4_lexer.ll b/src/bin/dhcp4/dhcp4_lexer.ll index 6297b5c3e5..3cd550c120 100644 --- a/src/bin/dhcp4/dhcp4_lexer.ll +++ b/src/bin/dhcp4/dhcp4_lexer.ll @@ -1018,15 +1018,6 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence} } } -\"allow-client-update\" { - switch(driver.ctx_) { - case isc::dhcp::Parser4Context::DHCP_DDNS: - return isc::dhcp::Dhcp4Parser::make_ALLOW_CLIENT_UPDATE(driver.loc_); - default: - return isc::dhcp::Dhcp4Parser::make_STRING("allow-client-update", driver.loc_); - } -} - \"override-no-update\" { switch(driver.ctx_) { case isc::dhcp::Parser4Context::DHCP_DDNS: diff --git a/src/bin/dhcp4/dhcp4_parser.yy b/src/bin/dhcp4/dhcp4_parser.yy index db1c98031f..e78331eaa3 100644 --- a/src/bin/dhcp4/dhcp4_parser.yy +++ b/src/bin/dhcp4/dhcp4_parser.yy @@ -155,7 +155,6 @@ using namespace std; NCR_PROTOCOL "ncr-protocol" NCR_FORMAT "ncr-format" ALWAYS_INCLUDE_FQDN "always-include-fqdn" - ALLOW_CLIENT_UPDATE "allow-client-update" OVERRIDE_NO_UPDATE "override-no-update" OVERRIDE_CLIENT_UPDATE "override-client-update" REPLACE_CLIENT_NAME "replace-client-name" @@ -1487,7 +1486,6 @@ dhcp_ddns_param: enable_updates | ncr_protocol | ncr_format | always_include_fqdn - | allow_client_update | override_no_update | override_client_update | replace_client_name @@ -1564,11 +1562,6 @@ always_include_fqdn: ALWAYS_INCLUDE_FQDN COLON BOOLEAN { ctx.stack_.back()->set("always-include-fqdn", b); }; -allow_client_update: ALLOW_CLIENT_UPDATE COLON BOOLEAN { - ElementPtr b(new BoolElement($3, ctx.loc2pos(@3))); - ctx.stack_.back()->set("allow-client-update", b); -}; - override_no_update: OVERRIDE_NO_UPDATE COLON BOOLEAN { ElementPtr b(new BoolElement($3, ctx.loc2pos(@3))); ctx.stack_.back()->set("override-no-update", b); diff --git a/src/bin/dhcp4/tests/config_parser_unittest.cc b/src/bin/dhcp4/tests/config_parser_unittest.cc index cbb7c9bbab..61844b2978 100644 --- a/src/bin/dhcp4/tests/config_parser_unittest.cc +++ b/src/bin/dhcp4/tests/config_parser_unittest.cc @@ -3414,7 +3414,6 @@ TEST_F(Dhcp4ParserTest, d2ClientConfig) { " \"ncr-protocol\" : \"UDP\", " " \"ncr-format\" : \"JSON\", " " \"always-include-fqdn\" : true, " - " \"allow-client-update\" : true, " " \"override-no-update\" : true, " " \"override-client-update\" : true, " " \"replace-client-name\" : \"when-present\", " @@ -3476,7 +3475,6 @@ TEST_F(Dhcp4ParserTest, invalidD2ClientConfig) { " \"ncr-protocol\" : \"UDP\", " " \"ncr-format\" : \"JSON\", " " \"always-include-fqdn\" : true, " - " \"allow-client-update\" : true, " " \"override-no-update\" : true, " " \"override-client-update\" : true, " " \"replace-client-name\" : \"when-present\", " diff --git a/src/bin/dhcp4/tests/d2_unittest.cc b/src/bin/dhcp4/tests/d2_unittest.cc index 840e79403a..3fbd5eb5bd 100644 --- a/src/bin/dhcp4/tests/d2_unittest.cc +++ b/src/bin/dhcp4/tests/d2_unittest.cc @@ -109,7 +109,6 @@ Dhcp4SrvD2Test::configureD2(bool enable_d2, const bool exp_result, " \"ncr-protocol\" : \"UDP\", " " \"ncr-format\" : \"JSON\", " " \"always-include-fqdn\" : true, " - " \"allow-client-update\" : true, " " \"override-no-update\" : true, " " \"override-client-update\" : true, " " \"replace-client-name\" : \"when-present\", " diff --git a/src/bin/dhcp6/dhcp6_lexer.ll b/src/bin/dhcp6/dhcp6_lexer.ll index de6dc51fbe..0677ae2189 100644 --- a/src/bin/dhcp6/dhcp6_lexer.ll +++ b/src/bin/dhcp6/dhcp6_lexer.ll @@ -263,15 +263,6 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence} } } -\"allow-client-update\" { - switch(driver.ctx_) { - case isc::dhcp::Parser6Context::DHCP_DDNS: - return isc::dhcp::Dhcp6Parser::make_ALLOW_CLIENT_UPDATE(driver.loc_); - default: - return isc::dhcp::Dhcp6Parser::make_STRING("allow-client-update", driver.loc_); - } -} - \"override-no-update\" { switch(driver.ctx_) { case isc::dhcp::Parser6Context::DHCP_DDNS: diff --git a/src/bin/dhcp6/dhcp6_parser.yy b/src/bin/dhcp6/dhcp6_parser.yy index b42602357b..34cbda1a9d 100644 --- a/src/bin/dhcp6/dhcp6_parser.yy +++ b/src/bin/dhcp6/dhcp6_parser.yy @@ -161,7 +161,6 @@ using namespace std; NCR_PROTOCOL "ncr-protocol" NCR_FORMAT "ncr-format" ALWAYS_INCLUDE_FQDN "always-include-fqdn" - ALLOW_CLIENT_UPDATE "allow-client-update" OVERRIDE_NO_UPDATE "override-no-update" OVERRIDE_CLIENT_UPDATE "override-client-update" REPLACE_CLIENT_NAME "replace-client-name" @@ -1575,7 +1574,6 @@ dhcp_ddns_param: enable_updates | ncr_protocol | ncr_format | always_include_fqdn - | allow_client_update | override_no_update | override_client_update | replace_client_name @@ -1652,11 +1650,6 @@ always_include_fqdn: ALWAYS_INCLUDE_FQDN COLON BOOLEAN { ctx.stack_.back()->set("always-include-fqdn", b); }; -allow_client_update: ALLOW_CLIENT_UPDATE COLON BOOLEAN { - ElementPtr b(new BoolElement($3, ctx.loc2pos(@3))); - ctx.stack_.back()->set("allow-client-update", b); -}; - override_no_update: OVERRIDE_NO_UPDATE COLON BOOLEAN { ElementPtr b(new BoolElement($3, ctx.loc2pos(@3))); ctx.stack_.back()->set("override-no-update", b); diff --git a/src/bin/dhcp6/tests/config_parser_unittest.cc b/src/bin/dhcp6/tests/config_parser_unittest.cc index e00d783f50..93f8c047af 100644 --- a/src/bin/dhcp6/tests/config_parser_unittest.cc +++ b/src/bin/dhcp6/tests/config_parser_unittest.cc @@ -3954,7 +3954,6 @@ TEST_F(Dhcp6ParserTest, d2ClientConfig) { " \"ncr-protocol\" : \"UDP\", " " \"ncr-format\" : \"JSON\", " " \"always-include-fqdn\" : true, " - " \"allow-client-update\" : true, " " \"override-no-update\" : true, " " \"override-client-update\" : true, " " \"replace-client-name\" : \"when-present\", " @@ -4015,7 +4014,6 @@ TEST_F(Dhcp6ParserTest, invalidD2ClientConfig) { " \"ncr-protocol\" : \"UDP\", " " \"ncr-format\" : \"JSON\", " " \"always-include-fqdn\" : true, " - " \"allow-client-update\" : true, " " \"override-no-update\" : true, " " \"override-client-update\" : true, " " \"replace-client-name\" : \"when-present\", " diff --git a/src/bin/dhcp6/tests/d2_unittest.cc b/src/bin/dhcp6/tests/d2_unittest.cc index 5112ff4fc3..d1f1c26b7e 100644 --- a/src/bin/dhcp6/tests/d2_unittest.cc +++ b/src/bin/dhcp6/tests/d2_unittest.cc @@ -114,7 +114,6 @@ Dhcp6SrvD2Test::configureD2(bool enable_d2, const bool exp_result, " \"ncr-protocol\" : \"UDP\", " " \"ncr-format\" : \"JSON\", " " \"always-include-fqdn\" : true, " - " \"allow-client-update\" : true, " " \"override-no-update\" : true, " " \"override-client-update\" : true, " " \"replace-client-name\" : \"when-present\", " diff --git a/src/lib/dhcpsrv/parsers/dhcp_parsers.cc b/src/lib/dhcpsrv/parsers/dhcp_parsers.cc index 72921df067..f139696a56 100644 --- a/src/lib/dhcpsrv/parsers/dhcp_parsers.cc +++ b/src/lib/dhcpsrv/parsers/dhcp_parsers.cc @@ -1028,8 +1028,6 @@ D2ClientConfigParser::parse(isc::data::ConstElementPtr client_config) { bool always_include_fqdn = getBoolean(client_config, "always-include-fqdn"); - // bool allow_client_update; (unused) - bool override_no_update = getBoolean(client_config, "override-no-update"); diff --git a/src/lib/dhcpsrv/parsers/dhcp_parsers.h b/src/lib/dhcpsrv/parsers/dhcp_parsers.h index 1ef5667481..6f43a8f013 100644 --- a/src/lib/dhcpsrv/parsers/dhcp_parsers.h +++ b/src/lib/dhcpsrv/parsers/dhcp_parsers.h @@ -753,7 +753,6 @@ public: /// -# ncr-protocol /// -# ncr-format /// -# always-include-fqdn - /// -# allow-client-update /// -# override-no-update /// -# override-client-update /// -# replace-client-name