s_logger.info("Virtual machine: " + vmName + " host: " + hostName
+ " create notification NOT sent");
return;
}
try {
ContrailVRouterApi vrouterApi = vrouterApiMap.get(vrouterIpAddress);
if (vrouterApi == null) {
vrouterApi = new ContrailVRouterApi(
InetAddress.getByName(vrouterIpAddress),
vrouterApiPort, false);
vrouterApiMap.put(vrouterIpAddress, vrouterApi);
}
vrouterApi.AddPort(UUID.fromString(vmiUuid),
UUID.fromString(vmUuid), vmInterface.getName(),
InetAddress.getByName(vmIpAddress),
Utils.parseMacAddress(macAddress),
UUID.fromString(vnUuid), isolatedVlanId, primaryVlanId);
s_logger.debug("VRouterAPi Add Port success - port name: " + vmInterface.getName() + "(" + vmInterface.getDisplayName() + ")");