

def set_flowcontrol(self, name, direction, value=None, default=False, disable=False):
    "Configures the interface flowcontrol value\n\n        Args:\n            name (string): The interface identifier.  It must be a full\n                interface name (ie Ethernet, not Et)\n\n            direction (string): one of either 'send' or 'receive'\n\n            value (boolean): True if the interface should enable flow control\n                packet handling, otherwise False\n\n            default (boolean): Specifies to default the interface flow control\n                send or receive value\n\n            disable (boolean): Specifies to disable the interface flow control\n                send or receive value\n\n        Returns:\n            True if the operation succeeds otherwise False is returned\n        "
    if (direction is not None):
        if (value not in ['on', 'off']):
            raise ValueError('invalid flowcontrol value')
    if (direction not in ['send', 'receive']):
        raise ValueError('invalid direction specified')
    commands = [('interface %s' % name)]
    commands.append(self.command_builder(('flowcontrol %s' % direction), value=value, default=default, disable=disable))
    return self.configure(commands)

dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/interfaces.py EthernetInterface.set_flowcontrol/VarMisuse@30/256 `value`->`direction`