]> git.proxmox.com Git - pve-manager.git/blobdiff - PVE/API2/Nodes.pm
depend on pve-firewall, connect firewall API
[pve-manager.git] / PVE / API2 / Nodes.pm
index e29082e7bd4dcfe1dad2e2dce8f606a389970dc9..fdecdcf1aa78ad7f89a6fd738025157ad0ba17eb 100644 (file)
@@ -19,6 +19,7 @@ use PVE::RPCEnvironment;
 use PVE::JSONSchema qw(get_standard_option);
 use PVE::AccessControl;
 use PVE::Storage;
+use PVE::Firewall;
 use PVE::OpenVZ;
 use PVE::APLInfo;
 use PVE::QemuServer;
@@ -33,6 +34,7 @@ use PVE::API2::OpenVZ;
 use PVE::API2::VZDump;
 use PVE::API2::APT;
 use PVE::API2::Ceph;
+use PVE::API2::Firewall::Host;
 use JSON;
 
 use base qw(PVE::RESTHandler);
@@ -92,6 +94,11 @@ __PACKAGE__->register_method ({
     path => 'apt',
 });
 
+__PACKAGE__->register_method ({
+    subclass => "PVE::API2::Firewall::Host",  
+    path => 'firewall',
+});
+
 __PACKAGE__->register_method ({
     name => 'index', 
     path => '', 
@@ -142,6 +149,7 @@ __PACKAGE__->register_method ({
            { name => 'startall' },
            { name => 'stopall' },
            { name => 'netstat' },
+           { name => 'firewall' },
            ];
 
        return $result;