Method: Rbeapi::Api::Ospf#set_maximum_paths

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

#set_maximum_paths(pid, opts = {}) ⇒ Boolean

set_maximum_paths sets router ospf maximum-paths with pid and options.

Parameters:

  • pid (String)

    The router ospf name.

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

    Optional keyword arguments.

Options Hash (opts):

  • enable (Boolean)

    If false then the command is negated. Default is true.

  • default (Boolean)

    Configure the maximum-paths to default.

Returns:

  • (Boolean)

    Returns true if the command completed successfully.



219
220
221
222
223
# File 'lib/rbeapi/api/ospf.rb', line 219

def set_maximum_paths(pid, opts = {})
  cmd = command_builder('maximum-paths', opts)
  cmds = ["router ospf #{pid}", cmd]
  configure cmds
end