summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiexiang Yue <yueliexiang@chinamobile.com>2019-05-17 11:34:20 +0800
committerLiexiang Yue <yueliexiang@chinamobile.com>2019-05-17 11:34:20 +0800
commit44e6dc6b8157fe6695807d157500b0c05abcd3fd (patch)
tree2d6e4e6ed1e168539f1d8bd27adcb9e4c5dfb4fb
parent357c5d3d7190cb629cb3ce9059de2b1016dfba3e (diff)
Fix FCAPS integraton bugs
Issue-ID: MULTICLOUD-499 Change-Id: I167de99a84caa1bc727029b8c5f708adde821856 Signed-off-by: Liexiang Yue <yueliexiang@chinamobile.com>
-rw-r--r--fcaps/fcaps/vesagent/vesagent_ctrl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fcaps/fcaps/vesagent/vesagent_ctrl.py b/fcaps/fcaps/vesagent/vesagent_ctrl.py
index c332d485..97d7863a 100644
--- a/fcaps/fcaps/vesagent/vesagent_ctrl.py
+++ b/fcaps/fcaps/vesagent/vesagent_ctrl.py
@@ -24,6 +24,7 @@ from django.conf import settings
from common.msapi import extsys
from fcaps.vesagent.tasks import scheduleBacklogs
from fcaps.vesagent.event_domain import fault_vm
+from fcaps.vesagent.event_domain import pm_vm
from django.core.cache import cache
@@ -392,6 +393,8 @@ class VesAgentCtrl(APIView):
try:
if backlog_input["domain"] == "fault" and backlog_input["type"] == "vm":
return fault_vm.buildBacklog_fault_vm(vimid, backlog_input)
+ elif backlog_input["domain"] == "pm" and backlog_input["type"] == "vm":
+ return pm_vm.buildBacklog_pm_vm(vimid, backlog_input)
else:
self._logger.warn("return with failure: unsupported backlog domain:%s, type:%s"
% (backlog_input["domain"], backlog_input["type"] == "vm"))