summaryrefslogtreecommitdiff
path: root/PVE/API2/Network/SDN
diff options
context:
space:
mode:
Diffstat (limited to 'PVE/API2/Network/SDN')
-rw-r--r--PVE/API2/Network/SDN/Content.pm10
-rw-r--r--PVE/API2/Network/SDN/Status.pm12
2 files changed, 11 insertions, 11 deletions
diff --git a/PVE/API2/Network/SDN/Content.pm b/PVE/API2/Network/SDN/Content.pm
index f6b59ec..1b45ce5 100644
--- a/PVE/API2/Network/SDN/Content.pm
+++ b/PVE/API2/Network/SDN/Content.pm
@@ -17,18 +17,18 @@ use PVE::Network::SDN;
use base qw(PVE::RESTHandler);
__PACKAGE__->register_method ({
- name => 'index',
+ name => 'index',
path => '',
method => 'GET',
description => "List transportzone content.",
-# permissions => {
+# permissions => {
# check => ['perm', '/sdn/{sdn}', ['SDN.Audit'], any => 1],
# },
protected => 1,
proxyto => 'node',
parameters => {
additionalProperties => 0,
- properties => {
+ properties => {
node => get_standard_option('pve-node'),
sdn => get_standard_option('pve-sdn-id', {
completion => \&PVE::Network::SDN::complete_sdn,
@@ -39,7 +39,7 @@ __PACKAGE__->register_method ({
type => 'array',
items => {
type => "object",
- properties => {
+ properties => {
vnet => {
description => "Vnet identifier.",
type => 'string',
@@ -74,7 +74,7 @@ __PACKAGE__->register_method ({
}
}
- return $res;
+ return $res;
}});
1;
diff --git a/PVE/API2/Network/SDN/Status.pm b/PVE/API2/Network/SDN/Status.pm
index 073b18a..7f23214 100644
--- a/PVE/API2/Network/SDN/Status.pm
+++ b/PVE/API2/Network/SDN/Status.pm
@@ -17,16 +17,16 @@ use PVE::Exception qw(raise_param_exc);
use base qw(PVE::RESTHandler);
__PACKAGE__->register_method ({
- subclass => "PVE::API2::Network::SDN::Content",
+ subclass => "PVE::API2::Network::SDN::Content",
path => '{sdn}/content',
});
__PACKAGE__->register_method ({
- name => 'index',
+ name => 'index',
path => '',
method => 'GET',
description => "Get status for all transportzones.",
- permissions => {
+ permissions => {
description => "Only list entries where you have 'SDN.Audit'",
user => 'all',
},
@@ -75,10 +75,10 @@ __PACKAGE__->register_method ({
__PACKAGE__->register_method ({
name => 'diridx',
- path => '{sdn}',
+ path => '{sdn}',
method => 'GET',
description => "",
-# permissions => {
+# permissions => {
# check => ['perm', '/sdn/{sdn}', ['SDN.Audit'], any => 1],
# },
parameters => {
@@ -103,7 +103,7 @@ __PACKAGE__->register_method ({
my $res = [
{ subdir => 'content' },
];
-
+
return $res;
}});