<div dir="auto"><div><span style="font-family:sans-serif">>I would highly recommend upgrading from Quagga 0.99.ANYTHING to the latest</span><span style="font-family:sans-serif"> FRR release. There has been substantial improvements and bug fixes</span></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">Including multiple security fixes.</font></div><div dir="auto"><font face="sans-serif"><br></font></div><div dir="auto"><font face="sans-serif">To expound on Donald's routemap comment a bit - you're probably seeing this because you're using separate config files for each daemon. If you use quagga.conf (or frr.conf) and apply that with vtysh, vtysh will handle distributing daemon specific config to just the daemons that understand it.</font></div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Tue, Apr 21, 2020, 9:42 AM Donald Sharp <<a href="mailto:sharpd@cumulusnetworks.com">sharpd@cumulusnetworks.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Simon -<br>
<br>
I would highly recommend upgrading from Quagga 0.99.ANYTHING to the<br>
latest FRR release. There has been substantial improvements and bug<br>
fixes in the intervening 5 years.<br>
<br>
Having said that. Both zebra and bgp are going to have different ideas<br>
of what the routemap is ( hence the show route-map command showing<br>
everyone's view of it. ).<br>
<br>
donald<br>
<br>
On Mon, Apr 20, 2020 at 9:38 PM Simon Jones <<a href="mailto:batmanustc@gmail.com" target="_blank" rel="noreferrer">batmanustc@gmail.com</a>> wrote:<br>
><br>
> Hi all,<br>
><br>
> I'm using quagga-0.99, I set a route-map by vtysh like this:<br>
><br>
>> vtysh# prefix-list ARP2HOST_PL3 ...<br>
>> vtysh# route-map ARP2HOST_RM2 deny sequence 6<br>
>> vtysh# match interface lo<br>
>> vtysh# route-map ARP2HOST_RM2, permit, sequence 10<br>
>> vtysh# match ip address prefix-list ARP2HOST_PL3<br>
><br>
><br>
> But I found there are two SAME route-map exist in zebra and bgpd, like this:<br>
><br>
>> vtysh# show route-map<br>
>> ZEBRA:<br>
>> route-map ARP2HOST_RM2, deny, sequence 6<br>
>> Match clauses:<br>
>> interface eth0<br>
>> Set clauses:<br>
>> Call clause:<br>
>> Action:<br>
>> Exit routemap<br>
>> route-map ARP2HOST_RM2, permit, sequence 10<br>
>> Match clauses:<br>
>> ip address prefix-list ARP2HOST_PL3<br>
>> Set clauses:<br>
>> Call clause:<br>
>> Action:<br>
>> Exit routemap<br>
>> BGP:<br>
>> route-map ARP2HOST_RM2, deny, sequence 6<br>
>> Match clauses:<br>
>> Set clauses:<br>
>> Call clause:<br>
>> Action:<br>
>> Exit routemap<br>
>> route-map ARP2HOST_RM2, permit, sequence 10<br>
>> Match clauses:<br>
>> ip address prefix-list ARP2HOST_PL3<br>
>> Set clauses:<br>
>> metric 13<br>
>> community 0:100<br>
>> Call clause:<br>
>> Action:<br>
>> Exit routemap<br>
><br>
><br>
> And when I use command<br>
>><br>
>> vtysh# redistribute static route-map ARP2HOST_RM2<br>
><br>
> the redistribute will NOT process any static route SOMETIME, not always !!!<br>
><br>
> Then I compare by add route-map through zebra.conf and bgpd.conf, like this:<br>
>><br>
>> zebra.conf:<br>
>> route-map ARP2HOST_RM2 deny sequence 6<br>
>> match interface lo<br>
><br>
><br>
>><br>
>> bgpd.conf:<br>
>> prefix-list ARP2HOST_PL3 ...<br>
>> route-map ARP2HOST_RM2, permit, sequence 10<br>
>> match ip address prefix-list ARP2HOST_PL3<br>
><br>
><br>
> And show route-map result beome:<br>
>><br>
>> vtysh# show route-map<br>
>> ZEBRA:<br>
>> route-map ARP2HOST_RM2, deny, sequence 6<br>
>> Match clauses:<br>
>> interface eth0<br>
>> Set clauses:<br>
>> Call clause:<br>
>> Action:<br>
>> Exit routemap<br>
>> BGP:<br>
>> route-map ARP2HOST_RM2, permit, sequence 10<br>
>> Match clauses:<br>
>> ip address prefix-list ARP2HOST_PL3<br>
>> Set clauses:<br>
>> metric 13<br>
>> community 0:100<br>
>> Call clause:<br>
>> Action:<br>
>> Exit routemap<br>
><br>
><br>
> Then the redistribute will work.<br>
><br>
> focus on code, I guess ALL of zebra(zebra_routemap.c) and bgpd(bgp_routemap.c) will process route-map from vtysh command, which cause this bug?<br>
><br>
> If it is, how to set route-map correctly by vtysh?<br>
><br>
> Thanks !!!<br>
><br>
> ----<br>
> Simon Jones<br>
> _______________________________________________<br>
> frog mailing list<br>
> <a href="mailto:frog@lists.frrouting.org" target="_blank" rel="noreferrer">frog@lists.frrouting.org</a><br>
> <a href="https://lists.frrouting.org/listinfo/frog" rel="noreferrer noreferrer" target="_blank">https://lists.frrouting.org/listinfo/frog</a><br>
<br>
_______________________________________________<br>
frog mailing list<br>
<a href="mailto:frog@lists.frrouting.org" target="_blank" rel="noreferrer">frog@lists.frrouting.org</a><br>
<a href="https://lists.frrouting.org/listinfo/frog" rel="noreferrer noreferrer" target="_blank">https://lists.frrouting.org/listinfo/frog</a><br>
</blockquote></div></div></div>