Method: Cisco::RouterBgpAF#client_to_client=

Defined in:
lib/cisco_node_utils/bgp_af.rb

#client_to_client=(state) ⇒ Object

Client to client (Getter/Setter/Default)



103
104
105
106
107
108
109
110
# File 'lib/cisco_node_utils/bgp_af.rb', line 103

def client_to_client=(state)
  # IOS XR uses "client-to-client reflection disable",
  #     so turning it "on" means disabling it.
  # Thus we invert the desired state before telling the CLI what to do:
  state = !state if ios_xr?
  set_args_keys(state: (state ? '' : 'no'))
  config_set('bgp_af', 'client_to_client', @set_args)
end