def get_nm_ethtool_ring(name): """ Translate ethtool ring option into NetworkManager attribute name :param name: Name of the ring :type name: str :returns: Name of the setting to be used by `NM.SettingEthtool.set_ring()` :rtype: str """ name = ETHTOOL_RING_PREFIX + name.upper() ring = getattr(Util.NM(), name, None) return ring
def get_nm_ethtool_feature(name): """ Translate ethtool feature into Network Manager name :param name: Name of the feature :type name: str :returns: Name of the feature to be used by `NM.SettingEthtool.set_feature()` :rtype: str """ name = ETHTOOL_FEATURE_PREFIX + name.upper() feature = getattr(Util.NM(), name, None) return feature
def get_nm_ethtool_coalesce(name): """ Translate ethtool coalesce into Network Manager name :param name: Name of the coalesce :type name: str :returns: Name of the setting to be used by `NM.SettingEthtool.set_coalesce()` :rtype: str """ name = ETHTOOL_COALESCE_PREFIX + name.upper() coalesce = getattr(Util.NM(), name, None) return coalesce