Kea  2.1.7-git
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. More...
 
- Public Member Functions inherited from isc::dhcp::CfgSharedNetworks< SharedNetwork4Ptr, SharedNetwork4Collection >
void add (const SharedNetwork4Ptr &network)
 Adds new shared network to the configuration. More...
 
void del (const std::string &name)
 Deletes shared network from the configuration. More...
 
uint64_t del (const uint64_t id)
 Deletes shared networks from the configuration by id. More...
 
const SharedNetwork4CollectiongetAll () const
 Returns pointer to all configured shared networks. More...
 
SharedNetwork4Ptr getByName (const std::string &name) const
 Retrieves shared network by name. More...
 
void merge (CfgOptionDefPtr cfg_def, CfgSharedNetworks &other)
 Merges specified shared network configuration into this configuration. More...
 
virtual data::ElementPtr toElement () const
 Unparses shared networks configuration. More...
 
- Public Member Functions inherited from isc::data::CfgToElement
virtual ~CfgToElement ()
 Destructor. More...
 

Additional Inherited Members

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

Detailed Description

Represents configuration of IPv4 shared networks.

Definition at line 216 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.


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