AdminUtil: V3 refactor get md_proxy_status
Depends-on: I9b4e8520965878c949bee5129fa5c20a4b80671d Change-Id: Iafb8f2b5ab7af089e41fcc86fe21509f3da03f88 Signed-off-by: Michal Kelner Mishali <mkelnermishal@vmware.com>
This commit is contained in:
committed by
Adit Sarfaty
parent
b83b3de5d0
commit
dbe86b248a
@@ -68,9 +68,8 @@ def list_metadata_networks(resource, event, trigger, **kwargs):
|
|||||||
if tag['scope'] == 'os-neutron-net-id':
|
if tag['scope'] == 'os-neutron-net-id':
|
||||||
net_id = tag['tag']
|
net_id = tag['tag']
|
||||||
break
|
break
|
||||||
uri = '/md-proxies/%s/%s/status' % (port['attachment']['id'],
|
status = nsxlib.native_md_proxy.get_md_proxy_status(
|
||||||
port['logical_switch_id'])
|
port['attachment']['id'], port['logical_switch_id'])
|
||||||
status = nsxlib.client.get(uri)
|
|
||||||
LOG.info("Status for MD proxy on neutron network %s (logical "
|
LOG.info("Status for MD proxy on neutron network %s (logical "
|
||||||
"switch %s) is %s",
|
"switch %s) is %s",
|
||||||
net_id,
|
net_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user