[pve-devel] [PATCH V2 pve-manager 1/1] api2 : cluster: add network

Alexandre Derumier aderumier at odiso.com
Wed Apr 3 00:18:52 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..71b5071d 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::NetworkConfig;
 
 use base qw(PVE::RESTHandler);
 
@@ -56,6 +57,11 @@ __PACKAGE__->register_method ({
     path => 'acme',
 });
 
+__PACKAGE__->register_method ({
+    subclass => "PVE::API2::NetworkConfig",  
+    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