diff options
author | Thomas Markwalder <tmark@isc.org> | 2019-12-04 14:27:07 +0100 |
---|---|---|
committer | Thomas Markwalder <tmark@isc.org> | 2020-01-27 18:55:24 +0100 |
commit | a65be143ecd6791012df13a1f2c7a8e307bc9542 (patch) | |
tree | 9d708b36dde5c1cc7462dd468e6fec48a72e8560 /src/bin/dhcp6/tests/fqdn_unittest.cc | |
parent | [#1093] Spelling error (diff) | |
download | kea-a65be143ecd6791012df13a1f2c7a8e307bc9542.tar.xz kea-a65be143ecd6791012df13a1f2c7a8e307bc9542.zip |
[#981] Reworked DdnsParams to allow on-demand value fetching
src/lib/dhcpsrv/d2_client_cfg.*
Moved DdnsParams to srv_config.*
src/lib/dhcpsrv/network.h
respaced
src/lib/dhcpsrv/srv_config.*
DdnsParams relocated here from d2_client_cfg.*.
Added SubnetPtr member.
Added constructors from Subnet4Ptr and Subnet6Ptr
Replaced individual members with getters.
src/lib/dhcpsrv/tests/d2_client_unittest.cc
src/lib/dhcpsrv/tests/srv_config_unittest.cc
Retrofitted tests accordingly.
src/lib/dhcpsrv/alloc_engine.*
src/lib/dhcpsrv/d2_client_mgr.*
Updated DdnsParams references
src/bin/dhcp4/dhcp4_srv.cc
src/bin/dhcp4/tests/fqdn_unittest.cc
Updated DdnsParams references
src/bin/dhcp6/dhcp6_srv.cc
src/bin/dhcp6/tests/fqdn_unittest.cc
Updated DdnsParams references
Diffstat (limited to 'src/bin/dhcp6/tests/fqdn_unittest.cc')
-rw-r--r-- | src/bin/dhcp6/tests/fqdn_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/dhcp6/tests/fqdn_unittest.cc b/src/bin/dhcp6/tests/fqdn_unittest.cc index b327969b44..e8ca83a82f 100644 --- a/src/bin/dhcp6/tests/fqdn_unittest.cc +++ b/src/bin/dhcp6/tests/fqdn_unittest.cc @@ -144,7 +144,7 @@ public: return (DdnsParamsPtr(new DdnsParams())); } - return(CfgMgr::instance().getCurrentCfg()->getDdnsParams(*subnet_)); + return(CfgMgr::instance().getCurrentCfg()->getDdnsParams(subnet_)); } /// @brief Construct the DHCPv6 Client FQDN option using flags and @@ -1663,8 +1663,8 @@ TEST_F(FqdnDhcpv6SrvTest, ddnsScopeTest) { Subnet6Ptr subnet = (CfgMgr::instance().getCurrentCfg()->getCfgSubnets6()->getSubnet(2)); ASSERT_TRUE(subnet); - DdnsParamsPtr p = (CfgMgr::instance().getCurrentCfg()->getDdnsParams(*subnet)); - ASSERT_TRUE(p->enable_updates_); + DdnsParamsPtr p = (CfgMgr::instance().getCurrentCfg()->getDdnsParams(subnet)); + ASSERT_TRUE(p->getEnableUpdates()); // ddns-send-udpates for subnet 2 are enabled, verify the NCR is correct. ASSERT_EQ(1, CfgMgr::instance().getD2ClientMgr().getQueueSize()); |