Method: Cisco::RouteMap#set_extcommunity_rt_set
- Defined in:
- lib/cisco_node_utils/route_map.rb
#set_extcommunity_rt_set(asn, add) ⇒ Object
set extcommunity rt additive set extcommunity rt 11:22 12.22.22.22:12 123.256:543 set extcommunity rt 11:22 12.22.22.22:12 123.256:543 additive
2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 |
# File 'lib/cisco_node_utils/route_map.rb', line 2406 def set_extcommunity_rt_set(asn, add) str = '' # reset first set_args_keys(state: 'no', string: str) config_set('route_map', 'set_extcommunity_rt', @set_args) return unless add || !asn.empty? asn.each do |elem| str.concat(elem + ' ') end str.concat('additive') if add set_args_keys(state: '', string: str) config_set('route_map', 'set_extcommunity_rt', @set_args) end |