mirror of
git://git.proxmox.com/git/pve-network.git
synced 2025-01-18 10:03:54 +03:00
firewall: add endpoints for vnet-level firewall
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com> Reviewed-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
acd6a2a1b1
commit
fae1c5b630
@ -14,6 +14,7 @@ use PVE::Network::SDN::VnetPlugin;
|
|||||||
use PVE::Network::SDN::Subnets;
|
use PVE::Network::SDN::Subnets;
|
||||||
use PVE::API2::Network::SDN::Subnets;
|
use PVE::API2::Network::SDN::Subnets;
|
||||||
use PVE::API2::Network::SDN::Ips;
|
use PVE::API2::Network::SDN::Ips;
|
||||||
|
use PVE::API2::Firewall::Vnet;
|
||||||
|
|
||||||
use Storable qw(dclone);
|
use Storable qw(dclone);
|
||||||
use PVE::JSONSchema qw(get_standard_option);
|
use PVE::JSONSchema qw(get_standard_option);
|
||||||
@ -24,6 +25,11 @@ use PVE::RESTHandler;
|
|||||||
|
|
||||||
use base qw(PVE::RESTHandler);
|
use base qw(PVE::RESTHandler);
|
||||||
|
|
||||||
|
__PACKAGE__->register_method ({
|
||||||
|
subclass => "PVE::API2::Firewall::Vnet",
|
||||||
|
path => '{vnet}/firewall',
|
||||||
|
});
|
||||||
|
|
||||||
__PACKAGE__->register_method ({
|
__PACKAGE__->register_method ({
|
||||||
subclass => "PVE::API2::Network::SDN::Subnets",
|
subclass => "PVE::API2::Network::SDN::Subnets",
|
||||||
path => '{vnet}/subnets',
|
path => '{vnet}/subnets',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user