Method: Rbeapi::Api::AaaGroups#remove_server

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

#remove_server(name, server, opts = {}) ⇒ Boolean

remove_server deletes an existing server from the specified aaa server group. If the specified server is not configured in the specified server group, this method will still return true.

eos_version 4.13.7M

Commands

aaa group server [radius | tacacs+] <name>
no server <server>

Parameters:

  • name (String)

    The name of the aaa group server to remove.

  • server (String)

    The IP address or host name of the server.

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

    Optional configuration parameters.

Returns:

  • (Boolean)

    returns true if the commands complete successfully.



434
435
436
437
438
439
440
# File 'lib/rbeapi/api/aaa.rb', line 434

def remove_server(name, server, opts = {})
  type = find_type(name)
  return false unless type
  server = "no server #{server} "
  server << "vrf #{opts[:vrf]}" if opts[:vrf]
  configure ["aaa group server #{type} #{name}", server, 'exit']
end