added neutron_api_context..cms name
This commit is contained in:
parent
8448b39f28
commit
42949ea0a7
@ -185,11 +185,12 @@ class NeutronCCContext(context.NeutronContext):
|
|||||||
for unit in related_units(rid):
|
for unit in related_units(rid):
|
||||||
rdata = relation_get(rid=rid, unit=unit)
|
rdata = relation_get(rid=rid, unit=unit)
|
||||||
vsd_ip = rdata.get('vsd-ip-address')
|
vsd_ip = rdata.get('vsd-ip-address')
|
||||||
cmd_id_value = rdata.get('nuage-cms-id')
|
cms_id_value = rdata.get('nuage-cms-id')
|
||||||
log('relation data:vsd-ip-address: {}'.format(vsd_ip))
|
log('relation data:vsd-ip-address: {}'.format(vsd_ip))
|
||||||
|
log('relation data:cms_id: {}'.format(cms_id_value))
|
||||||
if vsd_ip is not None:
|
if vsd_ip is not None:
|
||||||
ctxt['vsd_server'] = '{}:8443'.format(vsd_ip)
|
ctxt['vsd_server'] = '{}:8443'.format(vsd_ip)
|
||||||
if cmd_id_value is not None:
|
if cms_id_value is not None:
|
||||||
ctxt['cms_id'] = '{}'.format(cms_id_value)
|
ctxt['cms_id'] = '{}'.format(cms_id_value)
|
||||||
if 'vsd_server' not in ctxt:
|
if 'vsd_server' not in ctxt:
|
||||||
ctxt['vsd_server'] = '1.1.1.1:8443'
|
ctxt['vsd_server'] = '1.1.1.1:8443'
|
||||||
|
Loading…
Reference in New Issue
Block a user