An example of what I think might work:
set routemap TestRM id 10 on
set routemap TestRM id 10 allow
set routemap TestRM id 10 match as 65012 on
set routemap TestRM id 10 match neighbor 172.28.1.xx on
set routemap TestRM id 10 match network 192.168.56.0/22 exact
set routemap TestRM id 10 match network 192.168.182.0/23 all
set routemap TestRM id 10 match network 172.22.0.0/16 all
set routemap TestRM id 10 match network 172.23.0.0/16 all
set routemap TestRM id 10 match protocol bgp
set routemap TestRM id 10 action preference 50
set routemap TestRM id 11 on
set routemap TestRM id 11 allow
set routemap TestRM id 11 match as 65012 on
set routemap TestRM id 11 match neighbor 172.28.1.xx on
set routemap TestRM id 11 match network 192.168.56.0/22 exact
set routemap TestRM id 11 match network 192.168.182.0/23 all
set routemap TestRM id 11 match network 172.22.0.0/16 all
set routemap TestRM id 11 match network 172.23.0.0/16 all
set routemap TestRM id 11 match protocol bgp
set routemap TestRM id 11 action preference 100
Is the above routemap equivalent to the following prefix-list/routemap combination?
set prefix-list TestPL sequence-number 10 prefix 192.168.56.0/22 exact
set prefix-list TestPL sequence-number 20 prefix 192.168.182.0/23 all
set prefix-list TestPL sequence-number 30 prefix 172.22.0.0/16 all
set prefix-list TestPL sequence-number 40 prefix 172.23.0.0/16 all
set prefix-list TestPL sequence-number 50 prefix 172.24.0.0/16 all
set routemap RM_TestRM id 10 on
set routemap RM_TestRM id 10 allow
set routemap RM_TestRM id 10 match as 65012 on
set routemap RM_TestRM id 10 match neighbor 172.28.1.18 on
set routemap RM_TestRM id 10 match prefix-list TestPL preference 50 on
set routemap RM_TestRM id 10 match protocol bgp
set routemap RM_TestRM id 11 on
set routemap RM_TestRM id 11 allow
set routemap RM_TestRM id 11 match as 65012 on
set routemap RM_TestRM id 11 match neighbor 172.28.1.28 on
set routemap RM_TestRM id 11 match prefix-list TestPL preference 100 on
set routemap RM_TestRM id 11 match protocol bgp
NOTE: Additional networks being added during redesign
The restrict command that can be at the end of each of those prefix-list lines is not clear as to if I need to provide it or not and is restrict off equivalent of not providing it?