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 16:35:10 +0000
commit6ac610dd796ac39a211a39e54af95f810c0ff813 (patch)
tree024d8deaa00564aa4d7f8773fbb30f3e925f081c /sfc/lib/openstack_tacker.py
parent93021a983853d260d8e48ba6279c7c45bfe3fe0a (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> (cherry picked from commit f19a910411260203ff33d290e7460a296f5786fc)
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 a407774..474cabf 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))