Method: Cisco::RouterBgpAF#table_map_set
- Defined in:
- lib/cisco_node_utils/bgp_af.rb
#table_map_set(map, filter = false) ⇒ Object
Table Map (Getter/Setter/Default)
485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 |
# File 'lib/cisco_node_utils/bgp_af.rb', line 485 def table_map_set(map, filter=false) # To remove table map we can not use 'no table-map' # Dummy-map specified to work around this if filter attr = 'table_map_filter' else attr = 'table_map' end dummy_map = 'dummy' if map == default_table_map @set_args[:state] = 'no' @set_args[:map] = dummy_map else @set_args[:state] = '' @set_args[:map] = map end config_set('bgp_af', attr, @set_args) set_args_keys_default end |