code: def set_flowcontrol(self, name, direction, value=None, default=False,
                          disable=False):
          
          if value 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)
docs: Configures the interface flowcontrol value
  
          Args:
              name (string): The interface identifier.  It must be a full
                  interface name (ie Ethernet, not Et)
  
              direction (string): one of either 'send' or 'receive'
  
              value (boolean): True if the interface should enable flow control
                  packet handling, otherwise False
  
              default (boolean): Specifies to default the interface flow control
                  send or receive value
  
              disable (boolean): Specifies to disable the interface flow control
                  send or receive value
  
          Returns:
              True if the operation succeeds otherwise False is returned