NeutronPortsNorthboundAction configurePort = new NeutronPortsNorthboundAction(controllerUrl, controllerUsername, controllerPassword);
try {
configurePort.deleteNeutronPort(cmd.getPortId().toString());
} catch (NeutronRestApiException e) {
s_logger.error("deleteNeutronPort failed", e);
return new DestroyPortAnswer(cmd, e);
}
return new DestroyPortAnswer(cmd, true, "Port " + cmd.getPortId().toString() + " deleted");
}