"default-network-ipam");
NetworkIpam ipam = (NetworkIpam) apiConnector.findById(
NetworkIpam.class, ipamUuid);
SubnetUtils subnetUtils = new SubnetUtils(subnetAddr, subnetMask);
String cidr = subnetUtils.getInfo().getCidrSignature();
VnSubnetsType subnet = new VnSubnetsType();
String[] addr_pair = cidr.split("\\/");
subnet.addIpamSubnets(new VnSubnetsType.IpamSubnetType(
new SubnetType(addr_pair[0],
Integer.parseInt(addr_pair[1])), gatewayAddr,
null, UUID.randomUUID().toString(), true, null,
null, false, null, null, vn.getName() + "-subnet"));