def get_vif_by_mac_address(self, context, mac_address):
"""Returns the vifs record for the mac_address."""
# NOTE(vish): This is no longer used but can't be removed until
# we major version the network_rpcapi to 2.0.
# NOTE(russellb) No need to object-ify this since
# get_vifs_by_instance() is unused and set to be removed.
vif = self.db.virtual_interface_get_by_address(context, mac_address)
if vif.get('network_id') is not None:
network = self._get_network_by_id(context, vif['network_id']) vif['net_uuid'] = network['uuid']
return vif
Hi,
Please see:
def get_vif_ by_mac_ address( self, context, mac_address): by_instance( ) is unused and set to be removed. virtual_ interface_ get_by_ address( context,
mac_address) 'network_ id') is not None: network_ by_id(context, vif['network_id'])
vif[ 'net_uuid' ] = network['uuid']
"""Returns the vifs record for the mac_address."""
# NOTE(vish): This is no longer used but can't be removed until
# we major version the network_rpcapi to 2.0.
# NOTE(russellb) No need to object-ify this since
# get_vifs_
vif = self.db.
if vif.get(
network = self._get_
return vif
I do not think that this is a bug
Thanks
Gary