57 return (forward_mgr_);
63 forward_mgr_ = forward_mgr;
70 return (reverse_mgr_);
76 reverse_mgr_ = reverse_mgr;
150 return (boost::dynamic_pointer_cast<D2CfgContext>(
getContext()));
303 #endif // D2_CFG_MGR_H boost::shared_ptr< D2Params > D2ParamsPtr
Defines a pointer for D2Params instances.
boost::shared_ptr< TSIGKeyInfoMap > TSIGKeyInfoMapPtr
Defines a pointer to map of TSIGkeyInfos.
virtual isc::data::ConstElementPtr parse(isc::data::ConstElementPtr config, bool check_only)
Parses configuration of the D2.
boost::shared_ptr< DdnsDomainListMgr > DdnsDomainListMgrPtr
Defines a pointer for DdnsDomain instances.
static std::string reverseIpAddress(const std::string &address)
Generate a reverse order string for the given IP address.
boost::shared_ptr< DdnsDomain > DdnsDomainPtr
Defines a pointer for DdnsDomain instances.
Base class for all configurations.
boost::shared_ptr< Element > ElementPtr
void setReverseMgr(DdnsDomainListMgrPtr reverse_mgr)
Sets the reverse domain list manager.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
virtual std::string getConfigSummary(const uint32_t selection)
Returns configuration summary in the textual format.
const D2ParamsPtr & getD2Params()
Convenience method fetches the D2Params from context.
DdnsDomainListMgrPtr getReverseMgr()
Fetches the reverse DNS domain list manager.
TSIGKeyInfoMapPtr getKeys()
Fetches the map of TSIG keys.
virtual ~D2CfgContext()
Destructor.
virtual ~D2CfgMgr()
Destructor.
virtual process::ConfigPtr clone()
Creates a clone of this context object.
D2CfgContextPtr getD2CfgContext()
Convenience method that returns the D2 configuration context.
boost::shared_ptr< D2CfgMgr > D2CfgMgrPtr
Defines a shared pointer to D2CfgMgr.
boost::shared_ptr< const Element > ConstElementPtr
DHCP-DDNS Configuration Context.
boost::shared_ptr< D2CfgContext > D2CfgContextPtr
Pointer to a configuration context.
D2ParamsPtr & getD2Params()
Fetches a reference to the D2Params.
static std::string reverseV6Address(const isc::asiolink::IOAddress &ioaddr)
Generate a reverse order string for the given IP address.
virtual void setCfgDefaults(isc::data::ElementPtr mutable_config)
Adds default values to the given config.
static const char * IPV6_REV_ZONE_SUFFIX
Reverse zone suffix added to IPv6 addresses for reverse lookups.
Defines the logger used by the top-level component of kea-dhcp-ddns.
bool forwardUpdatesEnabled()
Returns whether or not forward updates are enabled.
void setKeys(const TSIGKeyInfoMapPtr &keys)
Sets the map of TSIG keys.
void setForwardMgr(DdnsDomainListMgrPtr forward_mgr)
Sets the forward domain list manager.
bool matchReverse(const std::string &ip_address, DdnsDomainPtr &domain)
Matches a given IP address to a reverse domain.
bool matchForward(const std::string &fqdn, DdnsDomainPtr &domain)
Matches a given FQDN to a forward domain.
D2CfgContext()
Constructor.
DdnsDomainListMgrPtr getForwardMgr()
Fetches the forward DNS domain list manager.
bool reverseUpdatesEnabled()
Returns whether or not reverse updates are enabled.
The IOAddress class represents an IP addresses (version agnostic)
A collection of classes for housing and parsing the application configuration necessary for the DHCP-...
DHCP-DDNS Configuration Manager.
virtual process::ConfigPtr createNewContext()
Creates an new, blank D2CfgContext context.
static std::string reverseV4Address(const isc::asiolink::IOAddress &ioaddr)
Generate a reverse order string for the given IP address.
static const char * IPV4_REV_ZONE_SUFFIX
Reverse zone suffix added to IPv4 addresses for reverse lookups.
ConfigPtr & getContext()
Fetches the configuration context.
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the SrvConfig.