[quagga-dev 16742] Problem in route map operation - Important! - UPDATE

Marcin Kabiesz admin at hostcenter.eu
Sun Oct 14 15:42:49 BST 2018


W dniu 2018-09-17 o 14:19, admin at hostcenter.eu pisze:
> Hello,
> in all versions released after version 0.99.24.1, ie from 1.x to 
> current 1.2.4, there is a problem with route map initiation. This is 
> manifested in the fact that when the session and / or service, e.g. 
> bgpd, is restarted, the network addressed to the route-map is not 
> processed. Only after compiling the session and adding this network to 
> use the route map can you see it in advertised-routes. Below I am 
> sending the configuration of the client session on the side of the 
> service bgpd so that you can test it and possibly write / release the 
> appropriate patch.
>
> 0.99.24.1 -> stable and working
> 1.x to 1.2.4 (current) -> not working
>
> This is an example of a configuration that should simulate the error 
> by switching between stable version 0.99.24.1 on which it works and 
> some newer version from version 1.x.
>
> !
> ! Zebra configuration saved from vty
> !   2018/09/17 13:32:31
> !
> hostname bgpd
> password 8 md5-password
> enable password 8 md5-password
> log file /var/log/quagga/bgpd.log
> service password-encryption
> !
> router bgp 64512
>  bgp router-id 192.168.0.1
>  bgp log-neighbor-changes
>  bgp always-compare-med
>  network 192.168.0.0/24
>  network 192.168.1.0/24 route-map testing-routemap
>  neighbor x.x.x.x remote-as 64513
>  neighbor x.x.x.x timers 30 90
>  neighbor x.x.x.x next-hop-self
>  neighbor x.x.x.x soft-reconfiguration inbound
>  neighbor x.x.x.x route-map customer-routemap-in in
>  neighbor x.x.x.x route-map customer-routemap-out out
> !
> route-map customer-routemap-in permit 10
> !
> route-map customer-routemap-out permit 10
> !
> route-map testing-routemap permit 10
> !
> line vty
> !
>
> The correct result:
>
> bgpd> show ip bgp neighbors x.x.x.x advertised-routes
> BGP table version is 0, local router ID is 192.168.0.1
> Status codes: s suppressed, d damped, h history, * valid, > best, i - 
> internal,
>               r RIB-failure, S Stale, R Removed
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
>    Network          Next Hop            Metric LocPrf Weight Path
> *> 192.168.0.0/24   x.x.x.x             0             32768 i
> *> 192.168.1.0/24   x.x.x.x             0             32768 i
>
> Total number of prefixes 2
>
>
> Incorrect result:
>
> bgpd> show ip bgp neighbors x.x.x.x advertised-routes
> BGP table version is 0, local router ID is 192.168.0.1
> Status codes: s suppressed, d damped, h history, * valid, > best, i - 
> internal,
>               r RIB-failure, S Stale, R Removed
> Origin codes: i - IGP, e - EGP, ? - incomplete
>
>    Network          Next Hop            Metric LocPrf Weight Path
> *> 192.168.0.0/24   x.x.x.x             0             32768 i
>
> Total number of prefixes 1
>
>
> Please, do not ignore the problem. If the message has reached the 
> wrong place, please give it to the appropriate person responsible for 
> the Quagga package and its source code.
>
>
> Best Regards/Pozdrawiam
> Marcin Kabiesz
Hello,
I carried out additional tracking in which exactly the version of Quagga 
route-map in the bgp protocol with the network command stopped working. 
It follows from the herring that after the quagga-1.0.20161017 version 
the quagga-1.1.0 version was released and at this point the route-map 
works differently than it was previously expected. I am asking you to 
take this information into account in order to speed up and help fix the 
problem.

from quagga-0.XX > to quagga-1.0.20161017 = working
from quagga-1.1.0 > to quagga-1.2.4 = not working


The problem concerns the following line which is not processed correctly 
in new versions of Quagga, which results in the lack of appearance in 
the routing table on the other side.
"network 192.168.1.0/24 route-map testing-routemap"

"network 192.168.0.0/24" = working advertised
"network 192.168.1.0/24 route-map testing-routemap" = not working advertised

Best Regards/Pozdrawiam
Marcin Kabiesz



More information about the Quagga-dev mailing list