use of com.cloud.api.response.DomainRouterResponse in project CloudStack-archive by CloudStack-extras.
the class UpgradeRouterCmd method execute.
@Override
public void execute() {
VirtualRouter router = _routerService.upgradeRouter(this);
if (router != null) {
DomainRouterResponse routerResponse = _responseGenerator.createDomainRouterResponse(router);
routerResponse.setResponseName(getCommandName());
this.setResponseObject(routerResponse);
} else {
throw new ServerApiException(BaseCmd.INTERNAL_ERROR, "Failed to upgrade router");
}
}
Aggregations