From 2a3d65e097cf1f5965e4c930cf0462eca519dd45 Mon Sep 17 00:00:00 2001 From: Sunny Verma Date: Tue, 16 Feb 2016 18:43:47 -0500 Subject: [PATCH] added log statement --- hooks/neutron_api_hooks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hooks/neutron_api_hooks.py b/hooks/neutron_api_hooks.py index 635cbf0b..9b3a0178 100755 --- a/hooks/neutron_api_hooks.py +++ b/hooks/neutron_api_hooks.py @@ -202,7 +202,7 @@ def install(): [open_port(port) for port in determine_ports()] @hooks.hook('vsd-rest-api-relation-joined') -def relation_set_vsd(rid=None): +def relation_set_nuage_cms_name(rid=None): relation_data = { 'vsd-cms-name': '{}'.format(config('vsd-cms-name')) } @@ -222,6 +222,7 @@ def vsd_changed(relation_id=None, remote_unit=None): 'config', 'neutron') log('vsd-rest-api-relation-changed: ip address:{}'.format(vsd_address)) log('vsd-rest-api-relation-changed:{}'.format(nuage_config_file)) + log("nuage-vsd-api-relation-changed : cms_id:{}".format(cms_id)) CONFIGS.write(nuage_config_file)