aboutsummaryrefslogtreecommitdiffstats
path: root/sfc/lib/openstack_tacker.py
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2017-10-17 16:34:26 +0200
committerManuel Buil <mbuil@suse.com>2017-10-17 18:28:50 +0200
commitf19a910411260203ff33d290e7460a296f5786fc (patch)
tree38ca19bea7e17be03114105e1ee92da633436a34 /sfc/lib/openstack_tacker.py
parent017e0e890bf2dfb6a8fe4661e46b2db37d8112e6 (diff)
Produce more logs if things fail
Apex deployment shows a problem when creating the SFC config in ODL and it is impossible to know what might be going on Change-Id: If8d33d1c60daaf9cd9773a5cb9c7e47f64e1caa9 Signed-off-by: Manuel Buil <mbuil@suse.com>
Diffstat (limited to 'sfc/lib/openstack_tacker.py')
-rw-r--r--sfc/lib/openstack_tacker.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/sfc/lib/openstack_tacker.py b/sfc/lib/openstack_tacker.py
index a4077744..474cabf8 100644
--- a/sfc/lib/openstack_tacker.py
+++ b/sfc/lib/openstack_tacker.py
@@ -358,3 +358,12 @@ def delete_vim(tacker_client, vim_id=None, vim_name=None):
logger.error("Error [delete_vim(tacker_client, '%s', '%s')]: %s"
% (vim_id, vim_name, e))
return None
+
+
+def get_tacker_items():
+ tacker_client = get_tacker_client()
+ logger.debug("VIMs: %s" % list_vims(tacker_client))
+ logger.debug("VNFDs: %s" % list_vnfds(tacker_client))
+ logger.debug("VNFs: %s" % list_vnfs(tacker_client))
+ logger.debug("VNFFGDs: %s" % list_vnffgds(tacker_client))
+ logger.debug("VNFFGs: %s" % list_vnffgs(tacker_client))