mirror of https://github.com/apache/cloudstack.git
bug 7717: fix the bug that call the wrong fucntion to set netmask
status 7717: resolved fixed
This commit is contained in:
parent
924acfff40
commit
7384d1b97a
|
|
@ -94,7 +94,7 @@ public class PodBasedNetworkGuru extends AdapterBase implements NetworkGuru {
|
|||
nic.setMacAddress(NetUtils.long2Mac(ip.second()));
|
||||
nic.setGateway(pod.getGateway());
|
||||
nic.setFormat(AddressFormat.Ip4);
|
||||
String netmask = NetUtils.getCidrSubNet(pod.getCidrAddress(), pod.getCidrSize());
|
||||
String netmask = NetUtils.getCidrNetmask(pod.getCidrSize());
|
||||
nic.setNetmask(netmask);
|
||||
nic.setBroadcastType(BroadcastDomainType.Native);
|
||||
nic.setBroadcastUri(null);
|
||||
|
|
|
|||
Loading…
Reference in New Issue