Method: Rbeapi::Api::System#set_iprouting

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

#set_iprouting(opts = {}) ⇒ Boolean

Configures the state of global ip routing.

Parameters:

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

    The configuration parameters.

Options Hash (opts):

  • enable (Boolean)

    True if ip routing should be enabled or False if ip routing should be disabled. Default is true.

  • default (Boolean)

    If true configure the command using the default keyword. Default is false.

Returns:

  • (Boolean)

    Returns true if the command completed successfully.



172
173
174
175
# File 'lib/rbeapi/api/system.rb', line 172

def set_iprouting(opts = {})
  cmd = command_builder('ip routing', opts)
  configure(cmd)
end