'Get assigned mac addresses for vf list.
@param vf_list: list of vf indexes
@return: dict mapping of vf to mac'

def get_assigned_macs(self, vf_list):

    try:
        out = self._as_root([], 'link', ('show', self.dev_name))
    except Exception as e:
        LOG.exception(_LE('Failed    executing    ip    command'))
        raise exc.IpCommandDeviceError(dev_name=self.dev_name, reason=e)
    vf_to_mac_mapping = {}
    vf_lines = self._get_vf_link_show(vf_list, out)
    if vf_lines:
        for vf_line in vf_lines:
            vf_details = self._parse_vf_link_show(vf_line)
            if vf_details:
                vf_num = vf_details.get('vf')
                vf_mac = vf_details.get('MAC')
                vf_to_mac_mapping[vf_num] = vf_mac
    return vf_to_mac_mapping
