Method: Cisco::RouteMap#match_ipv4_multicast_get

Defined in:
lib/cisco_node_utils/route_map.rb

#match_ipv4_multicast_getObject

match ip multicast source 242.1.1.1/32 group 239.2.2.2/32 rp 242.1.1.1/32

rp-type ASM

match ip multicast source 242.1.1.1/32 group-range

239.1.1.1 to 239.2.2.2 rp 242.1.1.1/32 rp-type Bidir


460
461
462
463
464
465
466
467
468
469
470
# File 'lib/cisco_node_utils/route_map.rb', line 460

def match_ipv4_multicast_get
  str = config_get('route_map', 'match_ipv4_multicast', @get_args)
  return nil if str.nil?
  regexp = Regexp.new('match ip multicast *(?<src>source \S+)?'\
                      ' *(?<grp>group \S+)?'\
                      ' *(?<grp_range_start>group-range \S+)?'\
                      ' *(?<grp_range_end>to \S+)?'\
                      ' *(?<rp>rp \S+)?'\
                      ' *(?<rp_type>rp-type \S+)?')
  regexp.match(str)
end