| Kea 3.0.2-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
15 namespace isc {
16 namespace subnet_cmds {
17
18 class SubnetCmdsImpl;
19
25 class SubnetCmds {
26 public:
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
992 private:
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:318
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:1754
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:1657
isc::subnet_cmds::SubnetCmds::SubnetCmds
SubnetCmds()
Constructor.
Definition subnet_cmds.cc:1561
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:1646
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:1603
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:1779
isc::subnet_cmds::SubnetCmds::getSubnet6
data::ConstElementPtr getSubnet6(const data::ConstElementPtr &arguments) const
Returns a response to 'subnet6-get' command.
Definition subnet_cmds.cc:1585
isc::subnet_cmds::SubnetCmds::getNetwork6
data::ConstElementPtr getNetwork6(const data::ConstElementPtr &arguments) const
Returns a response to 'network6-get' command.
Definition subnet_cmds.cc:1712
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:1622
isc::subnet_cmds::SubnetCmds::getSubnet4
data::ConstElementPtr getSubnet4(const data::ConstElementPtr &arguments) const
Returns a response to 'subnet4-get' command.
Definition subnet_cmds.cc:1578
isc::subnet_cmds::SubnetCmds::getNetwork4List
data::ConstElementPtr getNetwork4List() const
Returns a response to a 'network4-list' command.
Definition subnet_cmds.cc:1694
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:1772
isc::subnet_cmds::SubnetCmds::getNetwork4
data::ConstElementPtr getNetwork4(const data::ConstElementPtr &arguments) const
Returns a response to 'network4-get' command.
Definition subnet_cmds.cc:1706
isc::subnet_cmds::SubnetCmds::getNetwork6List
data::ConstElementPtr getNetwork6List() const
Returns a response to a 'network6-list' command.
Definition subnet_cmds.cc:1700
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:1639
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:1738
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:1612
isc::subnet_cmds::SubnetCmds::getSubnet6List
data::ConstElementPtr getSubnet6List() const
Returns a response to a 'subnet6-list' command.
Definition subnet_cmds.cc:1572
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:1729
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:1720
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:1746
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:1594
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:1668
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:1763
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:1679
isc::subnet_cmds::SubnetCmds::getSubnet4List
data::ConstElementPtr getSubnet4List() const
Returns a response to a 'subnet4-list' command.
Definition subnet_cmds.cc:1566
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:1632
data.h
exceptions.h
isc::data::ConstElementPtr
boost::shared_ptr< const Element > ConstElementPtr
Definition data.h:29
isc::subnet_cmds
Definition subnet_cmds.cc:32
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148
subnet_id.h