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:
Michal Kelner Mishali 2018-03-08 14:12:56 +02:00 committed by Adit Sarfaty
parent b83b3de5d0
commit dbe86b248a

View File

@ -68,9 +68,8 @@ def list_metadata_networks(resource, event, trigger, **kwargs):
if tag['scope'] == 'os-neutron-net-id':
net_id = tag['tag']
break
uri = '/md-proxies/%s/%s/status' % (port['attachment']['id'],
port['logical_switch_id'])
status = nsxlib.client.get(uri)
status = nsxlib.native_md_proxy.get_md_proxy_status(
port['attachment']['id'], port['logical_switch_id'])
LOG.info("Status for MD proxy on neutron network %s (logical "
"switch %s) is %s",
net_id,