mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
removing some commented out code related to the old API framework that is no longer necessary.
This commit is contained in:
parent
091b28a6b3
commit
83820075b3
@ -4502,22 +4502,6 @@ public class ManagementServerImpl implements ManagementServer {
|
|||||||
NetworkRuleConfigVO netRule = new NetworkRuleConfigVO(securityGroupId, port, privatePort, protocol);
|
NetworkRuleConfigVO netRule = new NetworkRuleConfigVO(securityGroupId, port, privatePort, protocol);
|
||||||
netRule.setCreateStatus(AsyncInstanceCreateStatus.Creating);
|
netRule.setCreateStatus(AsyncInstanceCreateStatus.Creating);
|
||||||
rule = _networkRuleConfigDao.persist(netRule);
|
rule = _networkRuleConfigDao.persist(netRule);
|
||||||
|
|
||||||
/* FIXME: async job needs to be hooked up...
|
|
||||||
// check if we are within context of async-execution
|
|
||||||
AsyncJobExecutor asyncExecutor = BaseAsyncJobExecutor.getCurrentExecutor();
|
|
||||||
if (asyncExecutor != null) {
|
|
||||||
AsyncJobVO job = asyncExecutor.getJob();
|
|
||||||
|
|
||||||
if (s_logger.isInfoEnabled())
|
|
||||||
s_logger.info("Created a new port forwarding service rule instance " + rule.getId() + ", update async job-" + job.getId() + " progress status");
|
|
||||||
|
|
||||||
_asyncMgr.updateAsyncJobAttachment(job.getId(), "network_rule_config", rule.getId());
|
|
||||||
_asyncMgr.updateAsyncJobStatus(job.getId(), BaseCmd.PROGRESS_INSTANCE_CREATED, rule.getId());
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
// rule = createNetworkRuleConfig(userId, securityGroupId, port, privatePort, protocol);
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (e instanceof NetworkRuleConflictException) {
|
if (e instanceof NetworkRuleConflictException) {
|
||||||
throw (NetworkRuleConflictException) e;
|
throw (NetworkRuleConflictException) e;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user