7 #ifndef SHARED_NETWORKS_LIST_PARSER_H
8 #define SHARED_NETWORKS_LIST_PARSER_H
28 template<
typename SharedNetworkParserType>
52 template<
typename CfgSharedNetworksTypePtr>
53 void parse(CfgSharedNetworksTypePtr& cfg,
57 const std::vector<data::ElementPtr>& networks_list =
58 shared_networks_list_data->listValue();
60 for (
auto network_element = networks_list.cbegin();
61 network_element != networks_list.cend(); ++network_element) {
63 auto network = parser.parse(*network_element);
72 }
catch (
const std::exception& ex) {
76 << shared_networks_list_data->getPosition() <<
")");
95 #endif // SHARED_NETWORKS_LIST_PARSER_H
SharedNetworksListParser< SharedNetwork6Parser > SharedNetworks6ListParser
Type of the shared networks list parser for IPv6.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
To be removed. Please use ConfigError instead.
Parser for a list of shared networks.
boost::shared_ptr< const Element > ConstElementPtr
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
Defines the logger used by the top-level component of kea-dhcp-ddns.
void parse(CfgSharedNetworksTypePtr &cfg, const data::ConstElementPtr &shared_networks_list_data)
Parses a list of shared networks.
SharedNetworksListParser(bool check_iface=true)
Constructor.
SharedNetworksListParser< SharedNetwork4Parser > SharedNetworks4ListParser
Type of the shared networks list parser for IPv4.
bool check_iface_
Check if the specified interface exists in the system.