Method: Rbeapi::Api::VarpInterfaces#remove_address

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

#remove_address(name, value) ⇒ Boolean

The remove_address method removes one virtual IPv4 address.

Parameters:

  • name (String)

    The name of the interface. The name argument must be the full interface name. Valid interfaces are restricted to VLAN interfaces.

  • value (string)

    The virtual router address to remove.

Returns:

  • (Boolean)

    True if the commands succeeds otherwise False.



258
259
260
261
# File 'lib/rbeapi/api/varp.rb', line 258

def remove_address(name, value)
  configure(["interface #{name}",
             "no ip virtual-router address #{value}"])
end