7#ifndef SHARED_NETWORKS_LIST_PARSER_H
8#define SHARED_NETWORKS_LIST_PARSER_H
28template<
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 const& network_element : networks_list) {
62 auto network = parser.parse(network_element);
71 }
catch (
const std::exception& ex) {
75 << shared_networks_list_data->getPosition() <<
")");
virtual const char * what() const
Returns a C-style character string of the cause of the exception.
To be removed. Please use ConfigError instead.
Parser for a list of shared networks.
void parse(CfgSharedNetworksTypePtr &cfg, const data::ConstElementPtr &shared_networks_list_data)
Parses a list of shared networks.
SharedNetworksListParser(bool check_iface=true)
Constructor.
bool check_iface_
Check if the specified interface exists in the system.
#define isc_throw(type, stream)
A shortcut macro to insert known values into exception arguments.
boost::shared_ptr< const Element > ConstElementPtr
SharedNetworksListParser< SharedNetwork4Parser > SharedNetworks4ListParser
Type of the shared networks list parser for IPv4.
SharedNetworksListParser< SharedNetwork6Parser > SharedNetworks6ListParser
Type of the shared networks list parser for IPv6.
Defines the logger used by the top-level component of kea-lfc.