aboutsummaryrefslogtreecommitdiffstats
path: root/sfc/lib
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2018-10-26 17:00:41 +0200
committerManuel Buil <mbuil@suse.com>2018-10-26 15:31:13 +0000
commit30dc33c1dc2c511c5d879ddd4aff8a60dbcdfd99 (patch)
treee72be617cf625aa47c834a697b8ec51ac0fde778 /sfc/lib
parent3803460f8338aacb7fc331963e83e30347c2e998 (diff)
Add a bit more data to the logging message
In case of failures, it is hard to understand for what vnf the port pair was being created when things went wrong Change-Id: I1cfa2553318d910535d45910b2a46d75b2f7926a Signed-off-by: Manuel Buil <mbuil@suse.com> (cherry picked from commit fe7d96a708927b299ddb939f854b09b3452c5304)
Diffstat (limited to 'sfc/lib')
-rw-r--r--sfc/lib/openstack_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfc/lib/openstack_utils.py b/sfc/lib/openstack_utils.py
index dbb217d6..7915e77d 100644
--- a/sfc/lib/openstack_utils.py
+++ b/sfc/lib/openstack_utils.py
@@ -293,7 +293,7 @@ class OpenStackSFC:
'''
Creates a networking-sfc port pair and group
'''
- logger.info("Creating the port pairs...")
+ logger.info("Creating the port pairs for %s" % vm_instance.name)
port_pair = dict()
port_pair['name'] = vm_instance.name + '-connection-points'
port_pair['description'] = 'port pair for ' + vm_instance.name
@@ -316,7 +316,7 @@ class OpenStackSFC:
{'vnf': vm_instance.name})
return None
- logger.info("Creating the port pair groups...")
+ logger.info("Creating the port pair groups for %s" % vm_instance.name)
port_pair_group = {}
port_pair_group['name'] = vm_instance.name + '-port-pair-group'
port_pair_group['description'] = \