'Parses vf link show command output line.
@param vf_line: link show vf line'

def _parse_vf_link_show(self, vf_line):

    vf_details = {}
    pattern_match = self.VF_DETAILS_REG_EX.match(vf_line)
    if pattern_match:
        vf_details['vf'] = int(pattern_match.group('vf_index'))
        vf_details['MAC'] = pattern_match.group('mac')
        vf_details['link-state'] = pattern_match.group('state')
    else:
        LOG.warning(_LW('failed    to    parse    vf    link    show    line    %(line)s:    for    %(device)s'), {'line': vf_line, 'device': self.dev_name})
    return vf_details
