Use Neutron API to list networks instead of old Nova '/os-networks'
Starting from Nova API v2.36, the request '/os-networks' is deprecated
and 404 is returned from Nova, see:
https://docs.openstack.org/api-ref/compute/#networks-os-networks-deprecated
So some tests are failing because 404 is received during setup.
Changed default to using neutron networks_client in get_tenant_network.
Proxy apis to neutron like '/os-networks' are deprecated in
microverion 2.36, and calling to them will get 404 error.
So this is to use neutron networks_client as default in get_tenant_network.
Cherry-picked from commits:
f80a1102c452e2f1246dd3e4fad48b7aea7122d2
d1b94eebea0370bd525752e772128b1037b31188
Change-Id: Ib133c6579b5c159222a34061afc4d434ff8dc54d
Related-Issue: PROD-29648
6 files changed