Method: Cisco::RouteMap#set_community_asn
- Defined in:
- lib/cisco_node_utils/route_map.rb
#set_community_asn ⇒ Object
2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 |
# File 'lib/cisco_node_utils/route_map.rb', line 2263 def set_community_asn str = config_get('route_map', 'set_community', @get_args) return default_set_community_asn if str.nil? || !str.include?(':') str.sub!('set community', '') str.sub!('internet', '') str.sub!('additive', '') str.sub!('local-AS', '') str.sub!('no-export', '') str.sub!('no-advertise', '') str.split end |