

def set_sflow(self, name, value=None, default=False, disable=False):
    'Configures the sFlow state on the interface\n\n        Args:\n            name (string): The interface identifier.  It must be a full\n                interface name (ie Ethernet, not Et)\n\n            value (boolean): True if sFlow should be enabled otherwise False\n\n            default (boolean): Specifies the default value for sFlow\n\n            disable (boolean): Specifies to disable sFlow\n\n        Returns:\n            True if the operation succeeds otherwise False is returned\n        '
    if (value not in [True, False, None]):
        raise ValueError
    commands = [('interface %s' % name)]
    commands.append(self.command_builder('sflow enable', value=value, default=default, disable=disable))
    return self.configure(commands)

dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/interfaces.py EthernetInterface.set_sflow/original