'Sets vf feature
Checks if the feature is not supported or there\'s some
general error during ip link invocation and raises
exception accordingly.
:param vf_index: vf index
:param feature: name of a feature to be passed to ip link,
such as \'state\' or \'spoofchk\'
:param value: value of the feature setting'

def _set_feature(self, vf_index, feature, value):

    try:
        self._as_root([], 'link', ('set', self.dev_name, 'vf', str(vf_index), feature, value))
    except Exception as e:
        if (self.IP_LINK_OP_NOT_SUPPORTED in str(e)):
            raise exc.IpCommandOperationNotSupportedError(dev_name=self.dev_name)
        else:
            raise exc.IpCommandDeviceError(dev_name=self.dev_name, reason=str(e))
