bug 7717: fix the bug that call the wrong fucntion to set netmask

status 7717: resolved fixed
This commit is contained in:
Edison Su 2010-12-31 08:01:23 -05:00
parent 924acfff40
commit 7384d1b97a
1 changed files with 1 additions and 1 deletions

View File

@ -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);