diff options
| author | Stefan Hanreich <s.hanreich@proxmox.com> | 2025-07-16 15:08:10 +0200 | 
|---|---|---|
| committer | Thomas Lamprecht <t.lamprecht@proxmox.com> | 2025-07-17 00:10:44 +0200 | 
| commit | c570570f38accb2c11065a92891c3c73a76923d4 (patch) | |
| tree | cf5e524741d677944d9fd56e28dbf3d2f7aa5f2f /src/PVE/API2/Network/SDN/Fabrics.pm | |
| parent | 21d2ad3f7b6d37a8974127aabc07459ba5166b1f (diff) | |
api: fabrics: add fabric submodule
This API module provides CRUD functionality for fabrics. The list
endpoint works analogous to the existing SDN endpoints with their
pending / running parameters.
Co-authored-by: Gabriel Goller <g.goller@proxmox.com>
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com>
Link: https://lore.proxmox.com/20250716130837.585796-50-g.goller@proxmox.com
Diffstat (limited to 'src/PVE/API2/Network/SDN/Fabrics.pm')
| -rw-r--r-- | src/PVE/API2/Network/SDN/Fabrics.pm | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/src/PVE/API2/Network/SDN/Fabrics.pm b/src/PVE/API2/Network/SDN/Fabrics.pm index a4a972d..18e51a9 100644 --- a/src/PVE/API2/Network/SDN/Fabrics.pm +++ b/src/PVE/API2/Network/SDN/Fabrics.pm @@ -8,10 +8,17 @@ use PVE::Tools qw(extract_param);  use PVE::Network::SDN;  use PVE::Network::SDN::Fabrics; +use PVE::API2::Network::SDN::Fabrics::Fabric; +  use PVE::RESTHandler;  use base qw(PVE::RESTHandler);  __PACKAGE__->register_method({ +    subclass => "PVE::API2::Network::SDN::Fabrics::Fabric", +    path => 'fabric', +}); + +__PACKAGE__->register_method({      name => 'index',      path => '',      method => 'GET', @@ -36,7 +43,7 @@ __PACKAGE__->register_method({          my ($param) = @_;          my $res = [ -            { subdir => 'all' }, +            { subdir => 'fabric' }, { subdir => 'all' },          ];          return $res;  | 
