Method: Rbeapi::Api::System#set_hostname

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

#set_hostname(opts = {}) ⇒ Boolean

Configures the system hostname value in the running-config.

Options Hash (opts):

  • value (string)

    The value to set the hostname to.

  • enable (Boolean)

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

  • default (Boolean)

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



155
156
157
158
# File 'lib/rbeapi/api/system.rb', line 155

def set_hostname(opts = {})
  cmd = command_builder('hostname', opts)
  configure(cmd)
end