From 228a998ba3f48417c6859da3a8c3b4b6401c3f5b Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 6 May 2014 11:27:10 +0200 Subject: [PATCH] depend on pve-firewall, add firewall API for VMs --- PVE/API2/Qemu.pm | 7 +++++++ control.in | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/PVE/API2/Qemu.pm b/PVE/API2/Qemu.pm index c06e5c7..e01b2e9 100644 --- a/PVE/API2/Qemu.pm +++ b/PVE/API2/Qemu.pm @@ -18,6 +18,7 @@ use PVE::RPCEnvironment; use PVE::AccessControl; use PVE::INotify; use PVE::Network; +use PVE::API2::Firewall::VM; use Data::Dumper; # fixme: remove @@ -495,11 +496,17 @@ __PACKAGE__->register_method({ { subdir => 'snapshot' }, { subdir => 'spiceproxy' }, { subdir => 'sendkey' }, + { subdir => 'firewall' }, ]; return $res; }}); +__PACKAGE__->register_method ({ + subclass => "PVE::API2::Firewall::VM", + path => '{vmid}/firewall', +}); + __PACKAGE__->register_method({ name => 'rrd', path => '{vmid}/rrd', diff --git a/control.in b/control.in index 7bcc58e..ddfe309 100644 --- a/control.in +++ b/control.in @@ -3,7 +3,7 @@ Version: @@VERSION@@-@@PKGRELEASE@@ Section: admin Priority: optional Architecture: @@ARCH@@ -Depends: libc6 (>= 2.7-18), perl (>= 5.10.0-19), libterm-readline-gnu-perl, pve-qemu-kvm (>= 1.7-1), netcat-traditional, libpve-access-control, libpve-storage-perl, pve-cluster, redhat-cluster-pve, libjson-perl, libjson-xs-perl, libio-multiplex-perl, libnet-ssleay-perl, socat +Depends: libc6 (>= 2.7-18), perl (>= 5.10.0-19), libterm-readline-gnu-perl, pve-qemu-kvm (>= 1.7-1), netcat-traditional, libpve-access-control, libpve-storage-perl, pve-cluster, redhat-cluster-pve, libjson-perl, libjson-xs-perl, libio-multiplex-perl, libnet-ssleay-perl, socat, pve-firewall Conflicts: netcat-openbsd Maintainer: Proxmox Support Team Description: Qemu Server Tools -- 2.39.2