Kea  2.1.7-git
isc::dhcp::ConfigBackendPoolDHCPv6 Class Reference

Implementation of the Configuration Backend Pool for DHCPv6. More...

#include <config_backend_pool_dhcp6.h>

+ Inheritance diagram for isc::dhcp::ConfigBackendPoolDHCPv6:

Public Member Functions

virtual void createUpdateClientClass6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const ClientClassDefPtr &client_class, const std::string &follow_class_name)
 Creates or updates DHCPv6 client class. More...
 
virtual void createUpdateGlobalParameter6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const data::StampedValuePtr &value)
 Creates or updates global string parameter. More...
 
virtual void createUpdateOption6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const OptionDescriptorPtr &option)
 Creates or updates global option. More...
 
virtual void createUpdateOption6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &shared_network_name, const OptionDescriptorPtr &option)
 Creates or updates shared network level option. More...
 
virtual void createUpdateOption6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const SubnetID &subnet_id, const OptionDescriptorPtr &option)
 Creates or updates subnet level option. More...
 
virtual void createUpdateOption6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const asiolink::IOAddress &pool_start_address, const asiolink::IOAddress &pool_end_address, const OptionDescriptorPtr &option)
 Creates or updates pool level option. More...
 
virtual void createUpdateOption6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const asiolink::IOAddress &pd_pool_prefix, const uint8_t pd_pool_prefix_length, const OptionDescriptorPtr &option)
 Creates or updates prefix delegation pool level option. More...
 
virtual void createUpdateOptionDef6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const OptionDefinitionPtr &option_def)
 Creates or updates an option definition. More...
 
virtual void createUpdateServer6 (const db::BackendSelector &backend_selector, const db::ServerPtr &server)
 Creates or updates a server. More...
 
virtual void createUpdateSharedNetwork6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const SharedNetwork6Ptr &shared_network)
 Creates or updates a shared network. More...
 
virtual void createUpdateSubnet6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const Subnet6Ptr &subnet)
 Creates or updates a subnet. More...
 
virtual uint64_t deleteAllClientClasses6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector)
 Deletes all client classes. More...
 
virtual uint64_t deleteAllGlobalParameters6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector)
 Deletes all global parameters. More...
 
virtual uint64_t deleteAllOptionDefs6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector)
 Deletes all option definitions. More...
 
virtual uint64_t deleteAllServers6 (const db::BackendSelector &backend_selector)
 Deletes all servers from the backend except the logical server 'all'. More...
 
virtual uint64_t deleteAllSharedNetworks6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector)
 Deletes all shared networks. More...
 
virtual uint64_t deleteAllSubnets6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector)
 Deletes all subnets. More...
 
virtual uint64_t deleteClientClass6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &name)
 Deletes DHCPv6 client class. More...
 
virtual uint64_t deleteGlobalParameter6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &name)
 Deletes global parameter. More...
 
virtual uint64_t deleteOption6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const uint16_t code, const std::string &space)
 Deletes global option. More...
 
virtual uint64_t deleteOption6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &shared_network_name, const uint16_t code, const std::string &space)
 Deletes shared network level option. More...
 
virtual uint64_t deleteOption6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const SubnetID &subnet_id, const uint16_t code, const std::string &space)
 Deletes subnet level option. More...
 
virtual uint64_t deleteOption6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const asiolink::IOAddress &pool_start_address, const asiolink::IOAddress &pool_end_address, const uint16_t code, const std::string &space)
 Deletes pool level option. More...
 
virtual uint64_t deleteOption6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const asiolink::IOAddress &pd_pool_prefix, const uint8_t pd_pool_prefix_length, const uint16_t code, const std::string &space)
 Deletes prefix delegation pool level option. More...
 
virtual uint64_t deleteOptionDef6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const uint16_t code, const std::string &space)
 Deletes option definition. More...
 
virtual uint64_t deleteServer6 (const db::BackendSelector &backend_selector, const data::ServerTag &server_tag)
 Deletes a server from the backend. More...
 
virtual uint64_t deleteSharedNetwork6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &name)
 Deletes shared network by name. More...
 
virtual uint64_t deleteSharedNetworkSubnets6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &shared_network_name)
 Deletes all subnets belonging to a specified shared network. More...
 
virtual uint64_t deleteSubnet6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &subnet_prefix)
 Deletes subnet by prefix. More...
 
virtual uint64_t deleteSubnet6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const SubnetID &subnet_id)
 Deletes subnet by identifier. More...
 
virtual ClientClassDictionary getAllClientClasses6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector) const
 Retrieves all client classes. More...
 
virtual data::StampedValueCollection getAllGlobalParameters6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector) const
 Retrieves all global parameters. More...
 
virtual OptionDefContainer getAllOptionDefs6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector) const
 Retrieves all option definitions. More...
 
virtual OptionContainer getAllOptions6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector) const
 Retrieves all global options. More...
 
virtual db::ServerCollection getAllServers6 (const db::BackendSelector &backend_selector) const
 Retrieves all servers from the particular backend. More...
 
virtual SharedNetwork6Collection getAllSharedNetworks6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector) const
 Retrieves all shared networks. More...
 
virtual Subnet6Collection getAllSubnets6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector) const
 Retrieves all subnets. More...
 
virtual ClientClassDefPtr getClientClass6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &name) const
 Retrieves a client class by name. More...
 
virtual data::StampedValuePtr getGlobalParameter6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &name) const
 Retrieves global parameter value. More...
 
virtual ClientClassDictionary getModifiedClientClasses6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time) const
 Retrieves client classes modified after specified time. More...
 
virtual data::StampedValueCollection getModifiedGlobalParameters6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time) const
 Retrieves global parameters modified after specified time. More...
 
virtual OptionDefContainer getModifiedOptionDefs6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time) const
 Retrieves option definitions modified after specified time. More...
 
virtual OptionContainer getModifiedOptions6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time) const
 Retrieves option modified after specified time. More...
 
virtual SharedNetwork6Collection getModifiedSharedNetworks6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time) const
 Retrieves shared networks modified after specified time. More...
 
virtual Subnet6Collection getModifiedSubnets6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time) const
 Retrieves subnets modified after specified time. More...
 
virtual OptionDescriptorPtr getOption6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const uint16_t code, const std::string &space) const
 Retrieves single option by code and space. More...
 
virtual OptionDefinitionPtr getOptionDef6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const uint16_t code, const std::string &space) const
 Retrieves single option definition by code and space. More...
 
virtual db::AuditEntryCollection getRecentAuditEntries (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const boost::posix_time::ptime &modification_time, const uint64_t &modification_id) const
 Retrieves the most recent audit entries. More...
 
virtual db::ServerPtr getServer6 (const db::BackendSelector &backend_selector, const data::ServerTag &server_tag) const
 Retrieves a server from the particular backend. More...
 
virtual SharedNetwork6Ptr getSharedNetwork6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &name) const
 Retrieves shared network by name. More...
 
virtual Subnet6Collection getSharedNetworkSubnets6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &shared_network_name) const
 Retrieves all subnets belonging to a specified shared network. More...
 
virtual Subnet6Ptr getSubnet6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const std::string &subnet_prefix) const
 Retrieves a single subnet by subnet_prefix. More...
 
virtual Subnet6Ptr getSubnet6 (const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, const SubnetID &subnet_id) const
 Retrieves a single subnet by subnet identifier. More...
 
- Public Member Functions inherited from isc::cb::BaseConfigBackendPool< ConfigBackendDHCPv6 >
virtual ~BaseConfigBackendPool ()
 Virtual destructor. More...
 
void addBackend (ConfigBackendTypePtr backend)
 Adds a backend to the pool. More...
 
bool del (const std::string &db_type, const std::string &dbaccess, bool if_unusable)
 Deletes all backends of the given type from the pool. More...
 
void delAllBackends ()
 Deletes all backends from the pool. More...
 
void delAllBackends (const std::string &db_type)
 Deletes all backends of the given type from the pool. More...
 

Additional Inherited Members

- Public Types inherited from isc::cb::BaseConfigBackendPool< ConfigBackendDHCPv6 >
typedef boost::shared_ptr< ConfigBackendDHCPv6 > ConfigBackendTypePtr
 Shared pointer to the Configuration Backend used. More...
 
- Protected Member Functions inherited from isc::cb::BaseConfigBackendPool< ConfigBackendDHCPv6 >
ReturnValue createUpdateDeleteBackendProperty (ReturnValue(ConfigBackendDHCPv6 ::*MethodPointer)(FnPtrArgs...), const db::BackendSelector &backend_selector, Args... input)
 Add, update or delete property from the backend. More...
 
ReturnValue createUpdateDeleteProperty (ReturnValue(ConfigBackendDHCPv6 ::*MethodPointer)(const db::ServerSelector &, FnPtrArgs...), const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, Args... input)
 Add, update or delete property from the backend. More...
 
void getAllBackendPropertiesConst (PropertyCollectionType(ConfigBackendDHCPv6 ::*MethodPointer)() const, const db::BackendSelector &backend_selector, PropertyCollectionType &properties) const
 Get all configuration properties from the backend. More...
 
void getAllPropertiesConst (PropertyCollectionType(ConfigBackendDHCPv6 ::*MethodPointer)(const db::ServerSelector &) const, const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, PropertyCollectionType &properties) const
 Retrieve all configuration properties from the pool. More...
 
void getBackendPropertyPtrConst (PropertyType(ConfigBackendDHCPv6 ::*MethodPointer)(FnPtrArgs...) const, const db::BackendSelector &backend_selector, PropertyType &property, Args... input) const
 Retrieve a single configuration property from the backend. More...
 
void getMultiplePropertiesConst (PropertyCollectionType(ConfigBackendDHCPv6 ::*MethodPointer)(const db::ServerSelector &, FnPtrArgs...) const, const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, PropertyCollectionType &properties, Args... input) const
 Retrieve multiple configuration properties from the pool. More...
 
void getPropertyPtrConst (PropertyType(ConfigBackendDHCPv6 ::*MethodPointer)(const db::ServerSelector &, FnPtrArgs...) const, const db::BackendSelector &backend_selector, const db::ServerSelector &server_selector, PropertyType &property, Args... input) const
 Retrieve a single configuration property from the pool. More...
 
std::list< ConfigBackendTypePtrselectBackends (const db::BackendSelector &backend_selector) const
 Selects existing backends matching the selector. More...
 
- Protected Attributes inherited from isc::cb::BaseConfigBackendPool< ConfigBackendDHCPv6 >
std::list< ConfigBackendTypePtrbackends_
 Holds configuration backends belonging to the pool. More...
 

Detailed Description

Implementation of the Configuration Backend Pool for DHCPv6.

All POSIX times specified in the methods belonging to this class must be local times.

Definition at line 32 of file config_backend_pool_dhcp6.h.

Member Function Documentation

◆ createUpdateClientClass6()

void isc::dhcp::ConfigBackendPoolDHCPv6::createUpdateClientClass6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const ClientClassDefPtr client_class,
const std::string &  follow_class_name 
)
virtual

Creates or updates DHCPv6 client class.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
client_classClient class to be added or updated.
follow_class_namename of the class after which the new or updated class should be positioned. An empty value causes the class to be appended at the end of the class hierarchy.

Definition at line 358 of file config_backend_pool_dhcp6.cc.

◆ createUpdateGlobalParameter6()

void isc::dhcp::ConfigBackendPoolDHCPv6::createUpdateGlobalParameter6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const data::StampedValuePtr value 
)
virtual

Creates or updates global string parameter.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
valueValue of the global parameter.

Definition at line 349 of file config_backend_pool_dhcp6.cc.

◆ createUpdateOption6() [1/5]

void isc::dhcp::ConfigBackendPoolDHCPv6::createUpdateOption6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const OptionDescriptorPtr option 
)
virtual

Creates or updates global option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
optionOption to be added or updated.

Definition at line 295 of file config_backend_pool_dhcp6.cc.

◆ createUpdateOption6() [2/5]

void isc::dhcp::ConfigBackendPoolDHCPv6::createUpdateOption6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  shared_network_name,
const OptionDescriptorPtr option 
)
virtual

Creates or updates shared network level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
shared_network_nameName of a shared network to which option belongs.
optionOption to be added or updated.

Definition at line 304 of file config_backend_pool_dhcp6.cc.

◆ createUpdateOption6() [3/5]

void isc::dhcp::ConfigBackendPoolDHCPv6::createUpdateOption6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const SubnetID subnet_id,
const OptionDescriptorPtr option 
)
virtual

Creates or updates subnet level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnet_idIdentifier of a subnet to which option belongs.
optionOption to be added or updated.

Definition at line 315 of file config_backend_pool_dhcp6.cc.

◆ createUpdateOption6() [4/5]

void isc::dhcp::ConfigBackendPoolDHCPv6::createUpdateOption6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const asiolink::IOAddress pool_start_address,
const asiolink::IOAddress pool_end_address,
const OptionDescriptorPtr option 
)
virtual

Creates or updates pool level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
pool_start_addressLower bound address of the pool to which the option belongs.
pool_end_addressUpper bound address of the pool to which the option belongs.
optionOption to be added or updated.

Definition at line 325 of file config_backend_pool_dhcp6.cc.

◆ createUpdateOption6() [5/5]

void isc::dhcp::ConfigBackendPoolDHCPv6::createUpdateOption6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const asiolink::IOAddress pd_pool_prefix,
const uint8_t  pd_pool_prefix_length,
const OptionDescriptorPtr option 
)
virtual

Creates or updates prefix delegation pool level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
pd_pool_prefixAddress part of the prefix of the prefix delegation pool to which the option belongs.
pd_pool_prefix_lengthPrefix length of the prefix delegation pool to which the option belongs.
optionOption to be added or updated.

Definition at line 337 of file config_backend_pool_dhcp6.cc.

◆ createUpdateOptionDef6()

void isc::dhcp::ConfigBackendPoolDHCPv6::createUpdateOptionDef6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const OptionDefinitionPtr option_def 
)
virtual

Creates or updates an option definition.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
option_defOption definition to be added or updated.

Definition at line 286 of file config_backend_pool_dhcp6.cc.

◆ createUpdateServer6()

void isc::dhcp::ConfigBackendPoolDHCPv6::createUpdateServer6 ( const db::BackendSelector backend_selector,
const db::ServerPtr server 
)
virtual

Creates or updates a server.

Parameters
backend_selectorBackend selector.
serverInstance of the server to be stored.

Definition at line 368 of file config_backend_pool_dhcp6.cc.

◆ createUpdateSharedNetwork6()

void isc::dhcp::ConfigBackendPoolDHCPv6::createUpdateSharedNetwork6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const SharedNetwork6Ptr shared_network 
)
virtual

Creates or updates a shared network.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
shared_networkShared network to be added or updated.

Definition at line 277 of file config_backend_pool_dhcp6.cc.

◆ createUpdateSubnet6()

void isc::dhcp::ConfigBackendPoolDHCPv6::createUpdateSubnet6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const Subnet6Ptr subnet 
)
virtual

Creates or updates a subnet.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnetSubnet to be added or updated.

Definition at line 268 of file config_backend_pool_dhcp6.cc.

◆ deleteAllClientClasses6()

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteAllClientClasses6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
)
virtual

Deletes all client classes.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Number of deleted client classes.

Definition at line 528 of file config_backend_pool_dhcp6.cc.

◆ deleteAllGlobalParameters6()

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteAllGlobalParameters6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
)
virtual

Deletes all global parameters.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Number of deleted global parameters.

Definition at line 511 of file config_backend_pool_dhcp6.cc.

◆ deleteAllOptionDefs6()

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteAllOptionDefs6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
)
virtual

Deletes all option definitions.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Number of deleted option definitions.

Definition at line 436 of file config_backend_pool_dhcp6.cc.

◆ deleteAllServers6()

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteAllServers6 ( const db::BackendSelector backend_selector)
virtual

Deletes all servers from the backend except the logical server 'all'.

Parameters
backend_selectorBackend selector.
Returns
Number of deleted servers.

Definition at line 543 of file config_backend_pool_dhcp6.cc.

◆ deleteAllSharedNetworks6()

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteAllSharedNetworks6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
)
virtual

Deletes all shared networks.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Number of deleted shared networks.

Definition at line 419 of file config_backend_pool_dhcp6.cc.

◆ deleteAllSubnets6()

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteAllSubnets6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
)
virtual

Deletes all subnets.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Number of deleted subnets.

Definition at line 394 of file config_backend_pool_dhcp6.cc.

◆ deleteClientClass6()

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteClientClass6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  name 
)
virtual

Deletes DHCPv6 client class.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
nameName of the class to be deleted.
Returns
Number of deleted client classes.

Definition at line 519 of file config_backend_pool_dhcp6.cc.

◆ deleteGlobalParameter6()

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteGlobalParameter6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  name 
)
virtual

Deletes global parameter.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
nameName of the global parameter to be deleted.
Returns
Number of deleted global parameters.

Definition at line 502 of file config_backend_pool_dhcp6.cc.

◆ deleteOption6() [1/5]

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteOption6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const uint16_t  code,
const std::string &  space 
)
virtual

Deletes global option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
codeCode of the option to be deleted.
spaceOption space of the option to be deleted.
Returns
Number of deleted options.

Definition at line 443 of file config_backend_pool_dhcp6.cc.

◆ deleteOption6() [2/5]

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteOption6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  shared_network_name,
const uint16_t  code,
const std::string &  space 
)
virtual

Deletes shared network level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
shared_network_nameName of the shared network which option belongs to.
codeCode of the option to be deleted.
spaceOption space of the option to be deleted.

Definition at line 453 of file config_backend_pool_dhcp6.cc.

◆ deleteOption6() [3/5]

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteOption6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const SubnetID subnet_id,
const uint16_t  code,
const std::string &  space 
)
virtual

Deletes subnet level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnet_idIdentifier of the subnet to which deleted option belongs.
codeCode of the deleted option.
spaceOption space of the deleted option.
Returns
Number of deleted options.

Definition at line 465 of file config_backend_pool_dhcp6.cc.

◆ deleteOption6() [4/5]

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteOption6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const asiolink::IOAddress pool_start_address,
const asiolink::IOAddress pool_end_address,
const uint16_t  code,
const std::string &  space 
)
virtual

Deletes pool level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
pool_start_addressLower bound address of the pool to which deleted option belongs.
pool_end_addressUpper bound address of the pool to which the deleted option belongs.
codeCode of the deleted option.
spaceOption space of the deleted option.
Returns
Number of deleted options.

Definition at line 476 of file config_backend_pool_dhcp6.cc.

◆ deleteOption6() [5/5]

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteOption6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const asiolink::IOAddress pd_pool_prefix,
const uint8_t  pd_pool_prefix_length,
const uint16_t  code,
const std::string &  space 
)
virtual

Deletes prefix delegation pool level option.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
pd_pool_prefixAddress part of the prefix of the prefix delegation pool to which the deleted option belongs.
pd_pool_prefix_lengthPrefix length of the prefix delegation pool to which the deleted option belongs.
codeCode of the deleted option.
spaceOption space of the deleted option.
Returns
Number of deleted options.

Definition at line 489 of file config_backend_pool_dhcp6.cc.

◆ deleteOptionDef6()

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteOptionDef6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const uint16_t  code,
const std::string &  space 
)
virtual

Deletes option definition.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
codeCode of the option to be deleted.
spaceOption space of the option to be deleted.
Returns
Number of deleted option definitions.

Definition at line 426 of file config_backend_pool_dhcp6.cc.

◆ deleteServer6()

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteServer6 ( const db::BackendSelector backend_selector,
const data::ServerTag server_tag 
)
virtual

Deletes a server from the backend.

Parameters
backend_selectorBackend selector.
server_tagTag of the server to be deleted.
Returns
Number of deleted servers.

Definition at line 535 of file config_backend_pool_dhcp6.cc.

◆ deleteSharedNetwork6()

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteSharedNetwork6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  name 
)
virtual

Deletes shared network by name.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
nameName of the shared network to be deleted.
Returns
Number of deleted shared networks.

Definition at line 410 of file config_backend_pool_dhcp6.cc.

◆ deleteSharedNetworkSubnets6()

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteSharedNetworkSubnets6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  shared_network_name 
)
virtual

Deletes all subnets belonging to a specified shared network.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
shared_network_nameName of the shared network for which the subnets should be deleted.
Returns
Number of deleted subnets.

Definition at line 401 of file config_backend_pool_dhcp6.cc.

◆ deleteSubnet6() [1/2]

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteSubnet6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  subnet_prefix 
)
virtual

Deletes subnet by prefix.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnet_prefixPrefix of the subnet to be deleted.
Returns
Number of deleted subnets.

Definition at line 376 of file config_backend_pool_dhcp6.cc.

◆ deleteSubnet6() [2/2]

uint64_t isc::dhcp::ConfigBackendPoolDHCPv6::deleteSubnet6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const SubnetID subnet_id 
)
virtual

Deletes subnet by identifier.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnet_idIdentifier of the subnet to be deleted.
Returns
Number of deleted subnets.

Definition at line 385 of file config_backend_pool_dhcp6.cc.

◆ getAllClientClasses6()

ClientClassDictionary isc::dhcp::ConfigBackendPoolDHCPv6::getAllClientClasses6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
) const
virtual

Retrieves all client classes.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Collection of client classes.

Definition at line 215 of file config_backend_pool_dhcp6.cc.

◆ getAllGlobalParameters6()

StampedValueCollection isc::dhcp::ConfigBackendPoolDHCPv6::getAllGlobalParameters6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
) const
virtual

Retrieves all global parameters.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.

Definition at line 182 of file config_backend_pool_dhcp6.cc.

◆ getAllOptionDefs6()

OptionDefContainer isc::dhcp::ConfigBackendPoolDHCPv6::getAllOptionDefs6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
) const
virtual

Retrieves all option definitions.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Collection of option definitions or empty collection if no option definition found.

Definition at line 117 of file config_backend_pool_dhcp6.cc.

◆ getAllOptions6()

OptionContainer isc::dhcp::ConfigBackendPoolDHCPv6::getAllOptions6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
) const
virtual

Retrieves all global options.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Collection of global options or empty collection if no option found.

Definition at line 150 of file config_backend_pool_dhcp6.cc.

◆ getAllServers6()

ServerCollection isc::dhcp::ConfigBackendPoolDHCPv6::getAllServers6 ( const db::BackendSelector backend_selector) const
virtual

Retrieves all servers from the particular backend.

This method returns the list of servers excluding the logical server 'all'.

Parameters
backend_selectorBackend selector.
Returns
Collection of servers from the backend.

Definition at line 250 of file config_backend_pool_dhcp6.cc.

◆ getAllSharedNetworks6()

SharedNetwork6Collection isc::dhcp::ConfigBackendPoolDHCPv6::getAllSharedNetworks6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
) const
virtual

Retrieves all shared networks.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Collection of shared network or empty collection if no shared network found.

Definition at line 83 of file config_backend_pool_dhcp6.cc.

◆ getAllSubnets6()

Subnet6Collection isc::dhcp::ConfigBackendPoolDHCPv6::getAllSubnets6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector 
) const
virtual

Retrieves all subnets.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
Returns
Collection of subnets or empty collection if no subnet found.

Definition at line 40 of file config_backend_pool_dhcp6.cc.

◆ getClientClass6()

ClientClassDefPtr isc::dhcp::ConfigBackendPoolDHCPv6::getClientClass6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  name 
) const
virtual

Retrieves a client class by name.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
nameClient class name.
Returns
Pointer to the retrieved client class.

Definition at line 204 of file config_backend_pool_dhcp6.cc.

◆ getGlobalParameter6()

StampedValuePtr isc::dhcp::ConfigBackendPoolDHCPv6::getGlobalParameter6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  name 
) const
virtual

Retrieves global parameter value.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
nameName of the global parameter to be retrieved.
Returns
Value of the global parameter.

Definition at line 171 of file config_backend_pool_dhcp6.cc.

◆ getModifiedClientClasses6()

ClientClassDictionary isc::dhcp::ConfigBackendPoolDHCPv6::getModifiedClientClasses6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time 
) const
virtual

Retrieves client classes modified after specified time.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeModification time.
Returns
Collection of client classes.

Definition at line 226 of file config_backend_pool_dhcp6.cc.

◆ getModifiedGlobalParameters6()

StampedValueCollection isc::dhcp::ConfigBackendPoolDHCPv6::getModifiedGlobalParameters6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time 
) const
virtual

Retrieves global parameters modified after specified time.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeLower bound subnet modification time.
Returns
Collection of modified global parameters.

Definition at line 193 of file config_backend_pool_dhcp6.cc.

◆ getModifiedOptionDefs6()

OptionDefContainer isc::dhcp::ConfigBackendPoolDHCPv6::getModifiedOptionDefs6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time 
) const
virtual

Retrieves option definitions modified after specified time.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeLower bound option definition modification time.
Returns
Collection of option definitions or empty collection if no option definition found.

Definition at line 127 of file config_backend_pool_dhcp6.cc.

◆ getModifiedOptions6()

OptionContainer isc::dhcp::ConfigBackendPoolDHCPv6::getModifiedOptions6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time 
) const
virtual

Retrieves option modified after specified time.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeLower bound option modification time.
Returns
Collection of global options or empty collection if no option found.

Definition at line 160 of file config_backend_pool_dhcp6.cc.

◆ getModifiedSharedNetworks6()

SharedNetwork6Collection isc::dhcp::ConfigBackendPoolDHCPv6::getModifiedSharedNetworks6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time 
) const
virtual

Retrieves shared networks modified after specified time.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeLower bound shared network modification time.
Returns
Collection of shared network or empty collection if no shared network found.

Definition at line 94 of file config_backend_pool_dhcp6.cc.

◆ getModifiedSubnets6()

Subnet6Collection isc::dhcp::ConfigBackendPoolDHCPv6::getModifiedSubnets6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time 
) const
virtual

Retrieves subnets modified after specified time.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeLower bound subnet modification time.
Returns
Collection of subnets or empty collection if no subnet found.

Definition at line 50 of file config_backend_pool_dhcp6.cc.

◆ getOption6()

OptionDescriptorPtr isc::dhcp::ConfigBackendPoolDHCPv6::getOption6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const uint16_t  code,
const std::string &  space 
) const
virtual

Retrieves single option by code and space.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
codeOption code.
spaceOption space.
Returns
Pointer to the retrieved option descriptor or null if no option was found.

Definition at line 138 of file config_backend_pool_dhcp6.cc.

◆ getOptionDef6()

OptionDefinitionPtr isc::dhcp::ConfigBackendPoolDHCPv6::getOptionDef6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const uint16_t  code,
const std::string &  space 
) const
virtual

Retrieves single option definition by code and space.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
codeCode of the option to be retrieved.
spaceOption space of the option to be retrieved.
Returns
Pointer to the option definition or NULL if not found.

Definition at line 105 of file config_backend_pool_dhcp6.cc.

◆ getRecentAuditEntries()

AuditEntryCollection isc::dhcp::ConfigBackendPoolDHCPv6::getRecentAuditEntries ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const boost::posix_time::ptime &  modification_time,
const uint64_t &  modification_id 
) const
virtual

Retrieves the most recent audit entries.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
modification_timeTimestamp being a lower limit for the returned result set, i.e. entries later than specified time are returned.
modification_idIdentifier being a lower limit for the returned result set, used when two (or more) entries have the same modification_time.
Returns
Collection of audit entries.

Definition at line 238 of file config_backend_pool_dhcp6.cc.

◆ getServer6()

ServerPtr isc::dhcp::ConfigBackendPoolDHCPv6::getServer6 ( const db::BackendSelector backend_selector,
const data::ServerTag server_tag 
) const
virtual

Retrieves a server from the particular backend.

Parameters
backend_selectorBackend selector.
server_tagTag of the server to be retrieved.
Returns
Pointer to the server instance or null pointer if no server with the particular tag was found.

Definition at line 258 of file config_backend_pool_dhcp6.cc.

◆ getSharedNetwork6()

SharedNetwork6Ptr isc::dhcp::ConfigBackendPoolDHCPv6::getSharedNetwork6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  name 
) const
virtual

Retrieves shared network by name.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
nameName of the shared network to be retrieved.
Returns
Pointer to the shared network or NULL if not found.

Definition at line 72 of file config_backend_pool_dhcp6.cc.

◆ getSharedNetworkSubnets6()

Subnet6Collection isc::dhcp::ConfigBackendPoolDHCPv6::getSharedNetworkSubnets6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  shared_network_name 
) const
virtual

Retrieves all subnets belonging to a specified shared network.

Note
: Returning a Subnet6Collection instead of a Subnet6SimpleCollection can be considered as overkilling but makes this code far simpler.
Parameters
backend_selectorBackend selector.
server_selectorServer selector.
shared_network_nameName of the shared network for which the subnets should be retrieved.
Returns
Collection of subnets or empty collection if no subnet found.

Definition at line 61 of file config_backend_pool_dhcp6.cc.

◆ getSubnet6() [1/2]

Subnet6Ptr isc::dhcp::ConfigBackendPoolDHCPv6::getSubnet6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const std::string &  subnet_prefix 
) const
virtual

Retrieves a single subnet by subnet_prefix.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnet_prefixPrefix of the subnet to be retrieved.
Returns
Pointer to the retrieved subnet or NULL if not found.

Definition at line 18 of file config_backend_pool_dhcp6.cc.

◆ getSubnet6() [2/2]

Subnet6Ptr isc::dhcp::ConfigBackendPoolDHCPv6::getSubnet6 ( const db::BackendSelector backend_selector,
const db::ServerSelector server_selector,
const SubnetID subnet_id 
) const
virtual

Retrieves a single subnet by subnet identifier.

Parameters
backend_selectorBackend selector.
server_selectorServer selector.
subnet_idIdentifier of a subnet to be retrieved.
Returns
Pointer to the retrieved subnet or NULL if not found.

Definition at line 29 of file config_backend_pool_dhcp6.cc.


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