Skip to content

Commit

Permalink
fix vlan reservation for sddc backend
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jmattson authored Mar 1, 2022
1 parent 0e3a060 commit 09ba08b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public async Task<Vm> Deploy(VmTemplate template, bool privileged = false)
throw new Exception("Template disks have not been prepared.");
}

if (!host.Options.Uplink.StartsWith("nsx."))
if (!host.Options.IsNsxNetwork && !host.Options.Uplink.StartsWith("nsx."))
{
_logger.LogDebug("deploy: reserve vlans ");
_vlanman.ReserveVlans(template, host.Options.IsVCenter);
Expand Down

0 comments on commit 09ba08b

Please sign in to comment.