65 return (forward_mgr_);
72 forward_mgr_ = forward_mgr;
79 return (reverse_mgr_);
86 reverse_mgr_ = reverse_mgr;
107 return (unix_control_socket_);
114 unix_control_socket_ = control_socket;
121 return (http_control_socket_);
128 http_control_socket_ = control_socket;
135 return (hooks_config_);
142 return (hooks_config_);
211 return (boost::dynamic_pointer_cast<D2CfgContext>(
getContext()));
263 const std::string& reverse_zone =
"");
283 const std::string& reverse_zone =
"");
The IOAddress class represents an IP addresses (version agnostic).
DHCP-DDNS Configuration Context.
void setForwardMgr(DdnsDomainListMgrPtr forward_mgr)
Sets the forward domain list manager.
virtual ~D2CfgContext()
Destructor.
D2ParamsPtr & getD2Params()
Fetches a reference to the D2Params.
void setUnixControlSocketInfo(const isc::data::ConstElementPtr &control_socket)
Sets information about the UNIX control socket.
void setReverseMgr(DdnsDomainListMgrPtr reverse_mgr)
Sets the reverse domain list manager.
const isc::data::ConstElementPtr getHttpControlSocketInfo() const
Returns information about HTTP/HTTPS control socket.
virtual isc::data::ElementPtr toElement() const
Unparse a configuration object.
DdnsDomainListMgrPtr getReverseMgr()
Fetches the reverse DNS domain list manager.
isc::hooks::HooksConfig & getHooksConfig()
Returns non-const reference to configured hooks libraries.
DdnsDomainListMgrPtr getForwardMgr()
Fetches the forward DNS domain list manager.
virtual process::ConfigPtr clone()
Creates a clone of this context object.
TSIGKeyInfoMapPtr getKeys()
Fetches the map of TSIG keys.
D2CfgContext()
Constructor.
const isc::hooks::HooksConfig & getHooksConfig() const
Returns const reference to configured hooks libraries.
void setHttpControlSocketInfo(const isc::data::ConstElementPtr &control_socket)
Sets information about the HTTP/HTTPS control socket.
const isc::data::ConstElementPtr getUnixControlSocketInfo() const
Returns information about UNIX control socket.
void setKeys(const TSIGKeyInfoMapPtr &keys)
Sets the map of TSIG keys.
DHCP-DDNS Configuration Manager.
static std::string reverseV4Address(const isc::asiolink::IOAddress &ioaddr, const std::string &reverse_zone)
Generate a reverse order string for the given IP address.
static const char * IPV6_REV_ZONE_SUFFIX
Reverse zone suffix added to IPv6 addresses for reverse lookups.
virtual ~D2CfgMgr()
Destructor.
static std::string reverseV6Address(const isc::asiolink::IOAddress &ioaddr, const std::string &reverse_zone)
Generate a reverse order string for the given IP address.
bool matchForward(const std::string &fqdn, DdnsDomainPtr &domain)
Matches a given FQDN to a forward domain.
const isc::data::ConstElementPtr getHttpControlSocketInfo()
Convenience method fetches information about HTTP/HTTPS control socket from context.
virtual process::ConfigPtr createNewContext() override
Creates an new, blank D2CfgContext context.
static const char * IPV4_REV_ZONE_SUFFIX
Reverse zone suffix added to IPv4 addresses for reverse lookups.
const isc::data::ConstElementPtr getUnixControlSocketInfo()
Convenience method fetches information about UNIX control socket from context.
D2CfgContextPtr getD2CfgContext()
Convenience method that returns the D2 configuration context.
bool reverseUpdatesEnabled()
Returns whether or not reverse updates are enabled.
bool matchReverse(const std::string &ip_address, DdnsDomainPtr &domain, const std::string &reverse_zone="")
Matches a given IP address to a reverse domain.
virtual void setCfgDefaults(isc::data::ElementPtr mutable_config) override
Adds default values to the given config.
std::list< std::list< std::string > > jsonPathsToRedact() const final override
Return a list of all paths that contain passwords or secrets.
bool forwardUpdatesEnabled()
Returns whether or not forward updates are enabled.
virtual std::string getConfigSummary(const uint32_t selection) override
Returns configuration summary in the textual format.
static std::string reverseIpAddress(const std::string &address, const std::string &reverse_zone="")
Generate a reverse order string for the given IP address.
const D2ParamsPtr & getD2Params()
Convenience method fetches the D2Params from context.
virtual isc::data::ConstElementPtr parse(isc::data::ConstElementPtr config, bool check_only) override
Parses configuration of the D2.
Wrapper class that holds hooks libraries configuration.
Base class for all configurations.
ConfigPtr & getContext()
Fetches the configuration context.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< Element > ElementPtr
A collection of classes for housing and parsing the application configuration necessary for the DHCP-...
boost::shared_ptr< DdnsDomainListMgr > DdnsDomainListMgrPtr
Defines a pointer for DdnsDomain instances.
const std::string DDNS_REV_ZONE_DEFAULT6
Default reverse DNS domain for V6.
boost::shared_ptr< DdnsDomain > DdnsDomainPtr
Defines a pointer for DdnsDomain instances.
boost::shared_ptr< D2CfgMgr > D2CfgMgrPtr
Defines a shared pointer to D2CfgMgr.
const std::string DDNS_REV_ZONE_DEFAULT4
Default reverse DNS domain for V4.
boost::shared_ptr< D2CfgContext > D2CfgContextPtr
Pointer to a configuration context.
boost::shared_ptr< D2Params > D2ParamsPtr
Defines a pointer for D2Params instances.
boost::shared_ptr< TSIGKeyInfoMap > TSIGKeyInfoMapPtr
Defines a pointer to map of TSIGkeyInfos.
boost::shared_ptr< const Element > ConstElementPtr
boost::shared_ptr< Element > ElementPtr
boost::shared_ptr< ConfigBase > ConfigPtr
Non-const pointer to the ConfigBase.
Defines the logger used by the top-level component of kea-lfc.