[pve-devel] [PATCH V3 pve-manager 1/1] api2 : cluster: add network
Alexandre Derumier
aderumier at odiso.com
Wed Apr 3 15:42:10 CEST 2019
---
PVE/API2/Cluster.pm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/PVE/API2/Cluster.pm b/PVE/API2/Cluster.pm
index c72a075b..649b5859 100644
--- a/PVE/API2/Cluster.pm
+++ b/PVE/API2/Cluster.pm
@@ -23,6 +23,7 @@ use PVE::Firewall;
use PVE::API2::Firewall::Cluster;
use PVE::API2::ReplicationConfig;
use PVE::API2::ACMEAccount;
+use PVE::API2::Network::Network;
use base qw(PVE::RESTHandler);
@@ -56,6 +57,11 @@ __PACKAGE__->register_method ({
path => 'acme',
});
+__PACKAGE__->register_method ({
+ subclass => "PVE::API2::Network::Network",
+ path => 'network',
+ });
+
my $dc_schema = PVE::Cluster::get_datacenter_schema();
my $dc_properties = {
delete => {
@@ -102,6 +108,7 @@ __PACKAGE__->register_method ({
{ name => 'firewall' },
{ name => 'config' },
{ name => 'acme' },
+ { name => 'network' },
];
return $result;
--
2.11.0
More information about the pve-devel
mailing list