--- PVE/API2/Network/SDN/Subnets.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/PVE/API2/Network/SDN/Subnets.pm b/PVE/API2/Network/SDN/Subnets.pm index 3ef1d11..d18cf90 100644 --- a/PVE/API2/Network/SDN/Subnets.pm +++ b/PVE/API2/Network/SDN/Subnets.pm @@ -24,6 +24,7 @@ my $api_sdn_subnets_config = sub { my $scfg = dclone(PVE::Network::SDN::Subnets::sdn_subnets_config($cfg, $id)); $scfg->{subnet} = $id; + $scfg->{cidr} = $id =~ s/-/\//r; $scfg->{digest} = $cfg->{digest}; return $scfg; @@ -112,7 +113,8 @@ __PACKAGE__->register_method ({ my ($param) = @_; my $type = extract_param($param, 'type'); - my $id = extract_param($param, 'subnet'); + my $cidr = extract_param($param, 'subnet'); + my $id = $cidr =~ s/\//-/r; # create /etc/pve/sdn directory PVE::Cluster::check_cfs_quorum(); -- 2.20.1 _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel