Method: Rbeapi::Api::Ospf#set_passive_interface_default
- Defined in:
- lib/rbeapi/api/ospf.rb
#set_passive_interface_default(pid, opts = {}) ⇒ Boolean
set_passive_interface_default sets router ospf passive-interface default with pid and options. If the passive-interface default keyword is false, then the passive-interface default is disabled. If the enable keyword is true, then the passive-interface default is enabled. If the default keyword is set to true, then the passive-interface default is configured using the default keyword. The default keyword takes precedence ver the enable keyword if both are provided.
to default.
246 247 248 249 250 251 252 |
# File 'lib/rbeapi/api/ospf.rb', line 246 def set_passive_interface_default(pid, opts = {}) opts[:enable] = opts[:value] | false opts[:value] = nil cmd = command_builder('passive-interface default', opts) cmds = ["router ospf #{pid}", cmd] configure cmds end |