summaryrefslogtreecommitdiff
path: root/PVE/API2/Network/SDN/Vnets.pm
diff options
context:
space:
mode:
authorAlexandre Derumier <aderumier@odiso.com>2020-01-20 12:01:22 +0100
committerThomas Lamprecht <t.lamprecht@proxmox.com>2020-01-21 07:50:55 +0100
commit3834801f5d5c7afeb632e0846cfef13e57a5692c (patch)
treecc4ae7ef46a6db7f880f325a0688d7fa336efec2 /PVE/API2/Network/SDN/Vnets.pm
parentcdf2c8194ba47cc42a4e1a61c61edebc0b57d9ae (diff)
API2: Vnets: fix update
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Diffstat (limited to 'PVE/API2/Network/SDN/Vnets.pm')
-rw-r--r--PVE/API2/Network/SDN/Vnets.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/PVE/API2/Network/SDN/Vnets.pm b/PVE/API2/Network/SDN/Vnets.pm
index 80fc3c6..cef631c 100644
--- a/PVE/API2/Network/SDN/Vnets.pm
+++ b/PVE/API2/Network/SDN/Vnets.pm
@@ -183,12 +183,8 @@ __PACKAGE__->register_method ({
PVE::SectionConfig::assert_if_modified($cfg, $digest);
- my $scfg = PVE::Network::SDN::Vnets::sdn_vnets_config($cfg, $id);
my $opts = PVE::Network::SDN::VnetPlugin->check_config($id, $param, 0, 1);
-
- foreach my $k (%$opts) {
- $scfg->{$k} = $opts->{$k};
- }
+ $cfg->{ids}->{$id} = $opts;
PVE::Network::SDN::VnetPlugin->on_update_hook($id, $cfg);