Method: Rbeapi::Api::EthernetInterface#set_sflow

Defined in:
lib/rbeapi/api/interfaces.rb

#set_sflow(name, opts = {}) ⇒ Boolean

set_sflow configures the administrative state of sflow on the interface. Setting the enable keyword to true enables sflow on the interface and setting enable to false disables sflow on the interface. If the default keyword is set to true, then the sflow value is defaulted using the default keyword. The default keyword takes precedence over the enable keyword

Parameters:

  • name (String)

    The interface name to apply the configuration values to. The name must be the full interface identifier.

  • opts (Hash) (defaults to: {})

    Optional keyword arguments.

Options Hash (opts):

  • enable (Boolean)

    Enables sflow if the value is true or disables sflow on the interface if false. Default is true.

  • default (Boolean)

    Configures the sflow value on the interface using the default keyword.

Returns:

  • (Boolean)

    Returns true if the command completed successfully.

Since:

  • eos_version 4.13.7M



675
676
677
678
# File 'lib/rbeapi/api/interfaces.rb', line 675

def set_sflow(name, opts = {})
  commands = command_builder('sflow enable', opts)
  configure_interface(name, commands)
end