try:
iface = self._test_create_interface(server)
except lib_exc.BadRequest as e:
msg = ('Multiple possible networks found, use a Network ID to be ' 'more specific.')
if not CONF.compute.fixed_network_name and six.text_type(e) == msg: raise
else: ifs.append(iface)
It looks like that tempest test is actually expecting the error:
https:/ /opendev. org/openstack/ tempest/ src/branch/ master/ tempest/ api/compute/ servers/ test_attach_ interfaces. py#L236
try: create_ interface( server)
'more specific.') fixed_network_ name and six.text_type(e) == msg:
raise
ifs. append( iface)
iface = self._test_
except lib_exc.BadRequest as e:
msg = ('Multiple possible networks found, use a Network ID to be '
if not CONF.compute.
else: