<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Aug 12, 2016 at 10:13 AM, Matt Riedemann <span dir="ltr"><<a href="mailto:mriedem@linux.vnet.ibm.com" target="_blank">mriedem@linux.vnet.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Another idea is the base functional test that sets up the client just checks the keystone service catalog for a 'network' service entry, somewhere in here:<br></blockquote><div><br></div><div>This is exactly the route OSC takes for those CLI commands that work against both nova-network and neutron.  It's only been released since earlier this year but appears to be working well in the field.  It boils down to:</div><div><br></div><div>  if 'network' in service_catalog.get_endpoints():</div><div>      # neutron</div><div>  else:</div><div>      # nova-net</div></div><div class="gmail_extra"><br></div>(service_catalog is from KSA's AccessInfo class)<br clear="all"><div><br></div><div>dt</div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><br>Dean Troyer<br><a href="mailto:dtroyer@gmail.com" target="_blank">dtroyer@gmail.com</a><br></div>
</div></div>