mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 09:14:18 +00:00
vm_start : vm-network-scripts: add_dhcp_reservation
Signed-off-by: Stefan Hanreich <s.hanreich@proxmox.com> Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
c944fef885
commit
6a6b668cf3
@ -10,6 +10,7 @@ use PVE::Network;
|
||||
my $have_sdn;
|
||||
eval {
|
||||
require PVE::Network::SDN::Zones;
|
||||
require PVE::Network::SDN::Vnets;
|
||||
$have_sdn = 1;
|
||||
};
|
||||
|
||||
@ -44,6 +45,7 @@ my $net = PVE::QemuServer::parse_net($netconf);
|
||||
die "unable to parse network config '$netid'\n" if !$net;
|
||||
|
||||
if ($have_sdn) {
|
||||
PVE::Network::SDN::Vnets::add_dhcp_mapping($net->{bridge}, $net->{macaddr});
|
||||
PVE::Network::SDN::Zones::tap_create($iface, $net->{bridge});
|
||||
PVE::Network::SDN::Zones::tap_plug($iface, $net->{bridge}, $net->{tag}, $net->{firewall}, $net->{trunks}, $net->{rate});
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user