mirror of https://github.com/apache/cloudstack.git
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