Kea: subnet_cmds.h Source File

| Kea 3.2.0-git

subnet_cmds.h
Go to the documentation of this file.
1// Copyright (C) 2017-2025 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef SUBNET_CMDS_H
8#define SUBNET_CMDS_H
9
10#include <exceptions/exceptions.h>
11#include <cc/data.h>
12#include <dhcpsrv/subnet_id.h>
13#include <boost/shared_ptr.hpp>
14
15namespace isc {
16namespace subnet_cmds {
17
18class SubnetCmdsImpl;
19
25 class SubnetCmds {
26public:
27
31 SubnetCmds();
32
58 data::ConstElementPtr getSubnet4List() const;
59
85 data::ConstElementPtr getSubnet6List() const;
86
118 data::ConstElementPtr getSubnet4(const data::ConstElementPtr& arguments) const;
119
151 data::ConstElementPtr getSubnet6(const data::ConstElementPtr& arguments) const;
152
197 data::ConstElementPtr addSubnet4(const data::ConstElementPtr& arguments);
198
243 data::ConstElementPtr addSubnet6(const data::ConstElementPtr& arguments);
244
290 data::ConstElementPtr updateSubnet4(const data::ConstElementPtr& arguments);
291
338 data::ConstElementPtr updateSubnet6(const data::ConstElementPtr& arguments);
339
368 data::ConstElementPtr delSubnet4(const data::ConstElementPtr& arguments);
369
398 data::ConstElementPtr delSubnet6(const data::ConstElementPtr& arguments);
399
445 data::ConstElementPtr addSubnet4Delta(const data::ConstElementPtr& arguments);
446
492 data::ConstElementPtr addSubnet6Delta(const data::ConstElementPtr& arguments);
493
539 data::ConstElementPtr delSubnet4Delta(const data::ConstElementPtr& arguments);
540
586 data::ConstElementPtr delSubnet6Delta(const data::ConstElementPtr& arguments);
587
588 // --- shared network commands ---------------------------------------------
589
613 data::ConstElementPtr getNetwork4List() const;
614
638 data::ConstElementPtr getNetwork6List() const;
639
673 data::ConstElementPtr getNetwork4(const data::ConstElementPtr& arguments) const;
674
708 data::ConstElementPtr getNetwork6(const data::ConstElementPtr& arguments) const;
709
756 data::ConstElementPtr addNetwork4(const data::ConstElementPtr& arguments);
757
804 data::ConstElementPtr addNetwork6(const data::ConstElementPtr& arguments);
805
835 data::ConstElementPtr delNetwork4(const data::ConstElementPtr& arguments);
836
866 data::ConstElementPtr delNetwork6(const data::ConstElementPtr& arguments);
867
897 data::ConstElementPtr addNetwork4Subnet(const data::ConstElementPtr& arguments);
898
928 data::ConstElementPtr addNetwork6Subnet(const data::ConstElementPtr& arguments);
929
959 data::ConstElementPtr delNetwork4Subnet(const data::ConstElementPtr& arguments);
960
990 data::ConstElementPtr delNetwork6Subnet(const data::ConstElementPtr& arguments);
991
992private:
993
995 boost::shared_ptr<SubnetCmdsImpl> impl_;
996
997};
998
999} // end of namespace isc::subnet_cmds
1000} // end of namespace isc
1001
1002#endif // SUBNET_CMDS_H
isc::subnet_cmds::SubnetCmdsImpl
Implementation of the SubnetCmds class.
Definition subnet_cmds.cc:317
isc::subnet_cmds::SubnetCmds::addNetwork4Subnet
data::ConstElementPtr addNetwork4Subnet(const data::ConstElementPtr &arguments)
Processes and returns a response to 'network4-subnet-add' command.
Definition subnet_cmds.cc:1753
isc::subnet_cmds::SubnetCmds::addSubnet6Delta
data::ConstElementPtr addSubnet6Delta(const data::ConstElementPtr &arguments)
Processes and returns a response to 'subnet6-delta-add' command.
Definition subnet_cmds.cc:1656
isc::subnet_cmds::SubnetCmds::SubnetCmds
SubnetCmds()
Constructor.
Definition subnet_cmds.cc:1560
isc::subnet_cmds::SubnetCmds::addSubnet4Delta
data::ConstElementPtr addSubnet4Delta(const data::ConstElementPtr &arguments)
Processes and returns a response to 'subnet4-delta-add' command.
Definition subnet_cmds.cc:1645
isc::subnet_cmds::SubnetCmds::addSubnet6
data::ConstElementPtr addSubnet6(const data::ConstElementPtr &arguments)
Processes and returns a response to 'subnet6-add' command.
Definition subnet_cmds.cc:1602
isc::subnet_cmds::SubnetCmds::delNetwork6Subnet
data::ConstElementPtr delNetwork6Subnet(const data::ConstElementPtr &arguments)
Processes and returns a response to 'network6-subnet-del' command.
Definition subnet_cmds.cc:1778
isc::subnet_cmds::SubnetCmds::getSubnet6
data::ConstElementPtr getSubnet6(const data::ConstElementPtr &arguments) const
Returns a response to 'subnet6-get' command.
Definition subnet_cmds.cc:1584
isc::subnet_cmds::SubnetCmds::getNetwork6
data::ConstElementPtr getNetwork6(const data::ConstElementPtr &arguments) const
Returns a response to 'network6-get' command.
Definition subnet_cmds.cc:1711
isc::subnet_cmds::SubnetCmds::updateSubnet6
data::ConstElementPtr updateSubnet6(const data::ConstElementPtr &arguments)
Processes and returns a response to 'subnet6-update' command.
Definition subnet_cmds.cc:1621
isc::subnet_cmds::SubnetCmds::getSubnet4
data::ConstElementPtr getSubnet4(const data::ConstElementPtr &arguments) const
Returns a response to 'subnet4-get' command.
Definition subnet_cmds.cc:1577
isc::subnet_cmds::SubnetCmds::getNetwork4List
data::ConstElementPtr getNetwork4List() const
Returns a response to a 'network4-list' command.
Definition subnet_cmds.cc:1693
isc::subnet_cmds::SubnetCmds::delNetwork4Subnet
data::ConstElementPtr delNetwork4Subnet(const data::ConstElementPtr &arguments)
Processes and returns a response to 'network4-subnet-del' command.
Definition subnet_cmds.cc:1771
isc::subnet_cmds::SubnetCmds::getNetwork4
data::ConstElementPtr getNetwork4(const data::ConstElementPtr &arguments) const
Returns a response to 'network4-get' command.
Definition subnet_cmds.cc:1705
isc::subnet_cmds::SubnetCmds::getNetwork6List
data::ConstElementPtr getNetwork6List() const
Returns a response to a 'network6-list' command.
Definition subnet_cmds.cc:1699
isc::subnet_cmds::SubnetCmds::delSubnet6
data::ConstElementPtr delSubnet6(const data::ConstElementPtr &arguments)
Processes and returns a response to 'subnet6-del' command.
Definition subnet_cmds.cc:1638
isc::subnet_cmds::SubnetCmds::delNetwork4
data::ConstElementPtr delNetwork4(const data::ConstElementPtr &arguments)
Processes and returns a response to 'network4-del' command.
Definition subnet_cmds.cc:1737
isc::subnet_cmds::SubnetCmds::updateSubnet4
data::ConstElementPtr updateSubnet4(const data::ConstElementPtr &arguments)
Processes and returns a response to 'subnet4-update' command.
Definition subnet_cmds.cc:1611
isc::subnet_cmds::SubnetCmds::getSubnet6List
data::ConstElementPtr getSubnet6List() const
Returns a response to a 'subnet6-list' command.
Definition subnet_cmds.cc:1571
isc::subnet_cmds::SubnetCmds::addNetwork6
data::ConstElementPtr addNetwork6(const data::ConstElementPtr &arguments)
Processes and returns a response to 'network6-add' command.
Definition subnet_cmds.cc:1728
isc::subnet_cmds::SubnetCmds::addNetwork4
data::ConstElementPtr addNetwork4(const data::ConstElementPtr &arguments)
Processes and returns a response to 'network4-add' command.
Definition subnet_cmds.cc:1719
isc::subnet_cmds::SubnetCmds::delNetwork6
data::ConstElementPtr delNetwork6(const data::ConstElementPtr &arguments)
Processes and returns a response to 'network6-del' command.
Definition subnet_cmds.cc:1745
isc::subnet_cmds::SubnetCmds::addSubnet4
data::ConstElementPtr addSubnet4(const data::ConstElementPtr &arguments)
Processes and returns a response to 'subnet4-add' command.
Definition subnet_cmds.cc:1593
isc::subnet_cmds::SubnetCmds::delSubnet4Delta
data::ConstElementPtr delSubnet4Delta(const data::ConstElementPtr &arguments)
Processes and returns a response to 'subnet4-delta-del' command.
Definition subnet_cmds.cc:1667
isc::subnet_cmds::SubnetCmds::addNetwork6Subnet
data::ConstElementPtr addNetwork6Subnet(const data::ConstElementPtr &arguments)
Processes and returns a response to 'network6-subnet-add' command.
Definition subnet_cmds.cc:1762
isc::subnet_cmds::SubnetCmds::delSubnet6Delta
data::ConstElementPtr delSubnet6Delta(const data::ConstElementPtr &arguments)
Processes and returns a response to 'subnet6-delta-del' command.
Definition subnet_cmds.cc:1678
isc::subnet_cmds::SubnetCmds::getSubnet4List
data::ConstElementPtr getSubnet4List() const
Returns a response to a 'subnet4-list' command.
Definition subnet_cmds.cc:1565
isc::subnet_cmds::SubnetCmds::delSubnet4
data::ConstElementPtr delSubnet4(const data::ConstElementPtr &arguments)
Processes and returns a response to 'subnet4-del' command.
Definition subnet_cmds.cc:1631
data.h
exceptions.h
isc::data::ConstElementPtr
boost::shared_ptr< const Element > ConstElementPtr
Definition data.h:30
isc::subnet_cmds
Definition subnet_cmds.cc:32
isc
Defines the logger used by the top-level component of kea-lfc.
Definition check_exists_add.cc:18
subnet_id.h