Kea 2.7.5
isc::dhcp::CfgSharedNetworks4 Class Reference

Represents configuration of IPv4 shared networks. More...

#include <cfg_shared_networks.h>

+ Inheritance diagram for isc::dhcp::CfgSharedNetworks4:

Public Member Functions

bool hasNetworkWithServerId (const asiolink::IOAddress &server_id) const
 Checks if specified server identifier has been specified for any network.
 
- Public Member Functions inherited from isc::dhcp::CfgSharedNetworks< SharedNetwork4Ptr, SharedNetwork4Collection >
void add (const SharedNetwork4Ptr &network)
 Adds new shared network to the configuration.
 
void del (const std::string &name)
 Deletes shared network from the configuration.
 
uint64_t del (const uint64_t id)
 Deletes shared networks from the configuration by id.
 
const SharedNetwork4CollectiongetAll () const
 Returns pointer to all configured shared networks.
 
SharedNetwork4Ptr getByName (const std::string &name) const
 Retrieves shared network by name.
 
void merge (CfgOptionDefPtr cfg_def, CfgSharedNetworks &other)
 Merges specified shared network configuration into this configuration.
 
virtual data::ElementPtr toElement () const
 Unparses shared networks configuration.
 
- Public Member Functions inherited from isc::data::CfgToElement
virtual ~CfgToElement ()
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from isc::dhcp::CfgSharedNetworks< SharedNetwork4Ptr, SharedNetwork4Collection >
SharedNetwork4Collection networks_
 Multi index container holding shared networks.
 

Detailed Description

Represents configuration of IPv4 shared networks.

Definition at line 219 of file cfg_shared_networks.h.

Member Function Documentation

◆ hasNetworkWithServerId()

bool isc::dhcp::CfgSharedNetworks4::hasNetworkWithServerId ( const asiolink::IOAddress & server_id) const

Checks if specified server identifier has been specified for any network.

Parameters
server_idServer identifier.
Returns
true if there is a network with a specified server identifier.

Definition at line 16 of file cfg_shared_networks.cc.

References isc::dhcp::CfgSharedNetworks< SharedNetwork4Ptr, SharedNetwork4Collection >::networks_.


The documentation for this class was generated from the following files: