mirror of
https://github.com/apache/cloudstack
synced 2026-09-01 09:29:05 +00:00
Fix public NIC NPE on broadcast URI
This commit is contained in:
parent
dc90d0b9dd
commit
e3a2762235
@ -1359,7 +1359,8 @@ public class CommandSetupHelper {
|
||||
nicTO.setMac(ipAddress.getVifMacAddress());
|
||||
nicTO.setType(ipAddress.getTrafficType());
|
||||
nicTO.setGateway(ipAddress.getVlanGateway());
|
||||
nicTO.setBroadcastUri(BroadcastDomainType.fromString(ipAddress.getBroadcastUri()));
|
||||
URI broadcastUri = ipAddress.getBroadcastUri() != null ? BroadcastDomainType.fromString(ipAddress.getBroadcastUri()) : null;
|
||||
nicTO.setBroadcastUri(broadcastUri);
|
||||
nicTO.setType(network.getTrafficType());
|
||||
nicTO.setName(_networkModel.getNetworkTag(router.getHypervisorType(), network));
|
||||
nicTO.setBroadcastType(network.getBroadcastDomainType());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user