use of org.apache.cloudstack.api.command.user.nat.DisableStaticNatCmd in project cloudstack by apache.
the class NetworkProviderTest method deleteFloatingIp.
public void deleteFloatingIp(IPAddressVO ip) throws Exception {
BaseCmd cmd = new DisableStaticNatCmd();
BaseCmd proxy = ComponentContext.inject(cmd);
ManagementServerMock.setParameter(proxy, "ipAddressId", BaseCmd.CommandType.LONG, ip.getId());
try {
proxy.execute();
} catch (Exception e) {
s_logger.debug("DisableStaticNatCmd exception: " + e);
e.printStackTrace();
throw e;
}
}
Aggregations