diff options
| author | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2019-09-03 08:25:00 +0200 |
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2019-09-03 08:25:00 +0200 |
| commit | 7d35eaf55137f12c1ba1d4569d345ceac03c88dc (patch) | |
| tree | 69d11e4b516c3c571258c9f0ab3965c3af206d61 /PVE/API2/Network/SDN.pm | |
| parent | d0b4e1c2ca586a1a39406a6b9425f5854807e332 (diff) | |
trailing whitespace cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Diffstat (limited to 'PVE/API2/Network/SDN.pm')
| -rw-r--r-- | PVE/API2/Network/SDN.pm | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/PVE/API2/Network/SDN.pm b/PVE/API2/Network/SDN.pm index 7ca5a5d..043aa0d 100644 --- a/PVE/API2/Network/SDN.pm +++ b/PVE/API2/Network/SDN.pm @@ -33,20 +33,20 @@ my $api_sdn_config = sub { }; __PACKAGE__->register_method ({ - name => 'index', + name => 'index', path => '', method => 'GET', description => "SDN index.", - permissions => { + permissions => { description => "Only list entries where you have 'SDN.Audit' or 'SDN.Allocate' permissions on '/cluster/sdn/<sdn>'", user => 'all', }, parameters => { additionalProperties => 0, properties => { - type => { + type => { description => "Only list sdn of specific type", - type => 'string', + type => 'string', enum => $sdn_type_enum, optional => 1, }, @@ -84,11 +84,11 @@ __PACKAGE__->register_method ({ }}); __PACKAGE__->register_method ({ - name => 'read', + name => 'read', path => '{sdn}', method => 'GET', description => "Read sdn configuration.", -# permissions => { +# permissions => { # check => ['perm', '/cluster/sdn/{sdn}', ['SDN.Allocate']], # }, @@ -110,10 +110,10 @@ __PACKAGE__->register_method ({ __PACKAGE__->register_method ({ name => 'create', protected => 1, - path => '', + path => '', method => 'POST', description => "Create a new sdn object.", -# permissions => { +# permissions => { # check => ['perm', '/cluster/sdn', ['SDN.Allocate']], # }, parameters => PVE::Network::SDN::Plugin->createSchema(), @@ -149,7 +149,7 @@ __PACKAGE__->register_method ({ } PVE::Network::SDN::write_config($cfg); - + }, "create sdn object failed"); return undef; @@ -161,7 +161,7 @@ __PACKAGE__->register_method ({ path => '', method => 'PUT', description => "Apply sdn changes.", -# permissions => { +# permissions => { # check => ['perm', '/cluster/sdn', ['SDN.Allocate']], # }, parameters => { @@ -185,7 +185,7 @@ __PACKAGE__->register_method ({ path => '', method => 'DELETE', description => "Revert sdn changes.", -# permissions => { +# permissions => { # check => ['perm', '/cluster/sdn', ['SDN.Allocate']], # }, parameters => { @@ -207,7 +207,7 @@ __PACKAGE__->register_method ({ path => '{sdn}', method => 'PUT', description => "Update sdn object configuration.", -# permissions => { +# permissions => { # check => ['perm', '/cluster/sdn', ['SDN.Allocate']], # }, parameters => PVE::Network::SDN::Plugin->updateSchema(), @@ -256,12 +256,12 @@ __PACKAGE__->register_method ({ path => '{sdn}', method => 'DELETE', description => "Delete sdn object configuration.", -# permissions => { +# permissions => { # check => ['perm', '/cluster/sdn', ['SDN.Allocate']], # }, parameters => { additionalProperties => 0, - properties => { + properties => { sdn => get_standard_option('pve-sdn-id', { completion => \&PVE::Network::SDN::complete_sdn, }), |
