From qlyoung at cumulusnetworks.com Fri Jun 5 14:01:08 2020 From: qlyoung at cumulusnetworks.com (Quentin Young) Date: Fri, 5 Jun 2020 14:01:08 -0400 Subject: [FROG] BGPd logging BGP updates In-Reply-To: References: Message-ID: I don't believe FRR supports this. We're actively working on improving the logging experience but separate files for certain message types isn't a planned feature AFAIK. Your best bet would be a grep or a log-filter statement. Quentin On Fri, May 29, 2020 at 8:12 AM Niklas Hoglund wrote: > Hi, > > Can I make BGPd just put all (EVPN) BGP updates into a log file? > As they come and go, not just a snapshot (" dump bgp all ") in certain > intervals. > > //Niklas > > > _______________________________________________ > frog mailing list > frog at lists.frrouting.org > https://lists.frrouting.org/listinfo/frog > -------------- next part -------------- An HTML attachment was scrubbed... URL: From msingamsetty at vmware.com Fri Jun 5 14:22:53 2020 From: msingamsetty at vmware.com (Sri Mohana Singamsetty) Date: Fri, 5 Jun 2020 18:22:53 +0000 Subject: [FROG] BGPd logging BGP updates In-Reply-To: References: Message-ID: <7219EB9B-6102-4AE8-A3D4-60C09B0EDD10@vmware.com> There is no separate EVPN debug flag currently in FRR BGP, so there is no way to just filter EVPN logs into a file. We have a plan to add this flag, but can?t commit any timeline at this moment. All (Most of ) the EVPN logs from Zebra module are under zebra vxlan debug flag though. Thanks, -Mohan From: frog on behalf of Quentin Young Date: Friday, June 5, 2020 at 11:04 AM To: Niklas Hoglund Cc: frog Subject: Re: [FROG] BGPd logging BGP updates I don't believe FRR supports this. We're actively working on improving the logging experience but separate files for certain message types isn't a planned feature AFAIK. Your best bet would be a grep or a log-filter statement. Quentin On Fri, May 29, 2020 at 8:12 AM Niklas Hoglund > wrote: Hi, Can I make BGPd just put all (EVPN) BGP updates into a log file? As they come and go, not just a snapshot (" dump bgp all ") in certain intervals. //Niklas _______________________________________________ frog mailing list frog at lists.frrouting.org https://lists.frrouting.org/listinfo/frog -------------- next part -------------- An HTML attachment was scrubbed... URL: From batmanustc at gmail.com Thu Jun 11 07:28:52 2020 From: batmanustc at gmail.com (Simon Jones) Date: Thu, 11 Jun 2020 15:28:52 +0800 Subject: [FROG] Why no ecmp route? Message-ID: Hi all, Now I use quagga-0.99 as BGP stack in testbed, TOPO as bellow: ``` routerA |--- | ------- DUT | routerB |--- ``` routerA and routerB is aristaOS, its config is: ``` some static route and route-map router bgp 64600 router-id 100.1.0.29 neighbor 10.0.0.56 remote-as 65100 neighbor 10.0.0.56 description 65100 neighbor 10.0.0.56 default-originate route-map DEFAULT_ROUTES neighbor 10.0.0.56 maximum-routes 12000 neighbor fc00::71 remote-as 65100 neighbor fc00::71 description 65100 neighbor fc00::71 default-originate route-map DEFAULT_ROUTES neighbor fc00::71 maximum-routes 12000 redistribute static route-map PREPENDAS # this is used for redistribute local static route into bgp.rib and zebr.rib address-family ipv4 network 100.1.0.29/32 ! address-family ipv6 neighbor fc00::71 activate network 2064:100::1d/128 ! ``` DUT is out router, use quagga-0.99, its config is: ``` router bgp 65100 bgp router-id 10.1.0.32 bgp log-neighbor-changes no bgp default ipv4-unicast bgp bestpath as-path multipath-relax # use this for ECMP network 10.1.0.32/32 network 192.168.0.0/21 neighbor 10.0.0.57 remote-as 64600 neighbor 10.0.0.57 description ARISTA01T1 neighbor 10.0.0.57 timers 3 10 neighbor 10.0.0.57 activate neighbor 10.0.0.59 remote-as 64600 neighbor 10.0.0.59 description ARISTA02T1 neighbor 10.0.0.59 timers 3 10 neighbor 10.0.0.59 activate neighbor 10.0.0.61 remote-as 64600 neighbor 10.0.0.61 description ARISTA03T1 neighbor 10.0.0.61 timers 3 10 neighbor 10.0.0.61 activate neighbor 10.0.0.63 remote-as 64600 neighbor 10.0.0.63 description ARISTA04T1 neighbor 10.0.0.63 timers 3 10 neighbor 10.0.0.63 activate neighbor fc00::72 remote-as 64600 neighbor fc00::72 description ARISTA01T1 neighbor fc00::72 timers 3 10 neighbor fc00::76 remote-as 64600 neighbor fc00::76 description ARISTA02T1 neighbor fc00::76 timers 3 10 neighbor fc00::7a remote-as 64600 neighbor fc00::7a description ARISTA03T1 neighbor fc00::7a timers 3 10 neighbor fc00::7e remote-as 64600 neighbor fc00::7e description ARISTA04T1 neighbor fc00::7e timers 3 10 ! address-family ipv6 network fc00:1::32/128 neighbor fc00::72 activate neighbor fc00::76 activate neighbor fc00::7a activate neighbor fc00::7e activate exit-address-family ! ip forwarding ipv6 forwarding ! line vty ! end ``` But when run this testbed, I found there is no ECMP route on DUT, as bellow: ``` test-hostname(config-router)# do show ip bgp 193.7.248.128/25 BGP routing table entry for 193.7.248.128/25 Paths: (4 available, best #4, table Default-IP-Routing-Table) Advertised to non peer-group peers: 10.0.0.57 10.0.0.61 10.0.0.63 64600 65534 64791 65115 10.0.0.57 from 10.0.0.57 (100.1.0.29) Origin incomplete, localpref 100, valid, external Last update: Wed Jun 10 09:47:27 2020 64600 65534 64791 65115 10.0.0.63 from 10.0.0.63 (100.1.0.32) Origin incomplete, localpref 100, valid, external Last update: Wed Jun 10 06:33:03 2020 64600 65534 64791 65115 10.0.0.61 from 10.0.0.61 (100.1.0.31) Origin incomplete, localpref 100, valid, external Last update: Wed Jun 10 06:32:58 2020 64600 65534 64791 65115 10.0.0.59 from 10.0.0.59 (100.1.0.30) Origin incomplete, localpref 100, valid, external, best Last update: Wed Jun 10 06:32:56 2020 test-hostname(config-router)# do show ip route 193.7.248.128/25 Routing entry for 193.7.248.128/25 Known via "bgp", distance 20, metric 0, best Last update 03:15:00 ago * 10.0.0.59, via PortChannel0002 ``` Why??? Compare with another environment: ``` BJ-GH-M1F203-B02-TEST-12# show ip bgp 1.1.1.224/32 BGP routing table entry for 1.1.1.224/32 Paths: (2 available, best #1, table Default-IP-Routing-Table) Advertised to non peer-group peers: 100.0.34.222 235 224 100.0.56.223 from 100.0.56.223 (100.0.3.223) Origin IGP, localpref 100, valid, external, multipath, best Last update: Tue Jun 9 06:08:59 2020 235 224 100.0.34.222 from 100.0.34.222 (100.0.55.222) Origin IGP, localpref 100, valid, external, multipath Last update: Tue Jun 9 06:08:59 2020 BJ-GH-M1F203-B02-TEST-12# show ip route 1.1.1.224/32 Routing entry for 1.1.1.224/32 Known via "bgp", distance 20, metric 0, best Last update 1d02h19m ago * 100.0.56.223, via Ethernet53 * 100.0.34.222, via Ethernet50 ``` Why does this have ECMP??? For detail, I found there is only one difference, which is `Origin IGP` and `Origin imcomplete`. But I check code, in `bgp_path_info_cmp` function, in step 11, the `paths_eq` only depends on `BGP_FLAG_ASPATH_MULTIPATH_RELAX` and something, nothing with `Origin`. So why there is no ECMP in my testbed??? ---- Simon Jones -------------- next part -------------- An HTML attachment was scrubbed... URL: From qlyoung at cumulusnetworks.com Fri Jun 12 19:45:18 2020 From: qlyoung at cumulusnetworks.com (Quentin Young) Date: Fri, 12 Jun 2020 15:45:18 -0400 Subject: [FROG] Why no ecmp route? In-Reply-To: References: Message-ID: Unfortunately, Quagga 0.99 is about 15,000 commits behind FRR. If you can reproduce your issue on a recent version of FRR you are more likely to get help. On Fri, Jun 12, 2020 at 3:12 PM Simon Jones wrote: > Hi all, > > Now I use quagga-0.99 as BGP stack in testbed, TOPO as bellow: > ``` > routerA |--- > | > ------- DUT > | > routerB |--- > ``` > > routerA and routerB is aristaOS, its config is: > ``` > some static route and route-map > > router bgp 64600 > router-id 100.1.0.29 > neighbor 10.0.0.56 remote-as 65100 > neighbor 10.0.0.56 description 65100 > neighbor 10.0.0.56 default-originate route-map DEFAULT_ROUTES > neighbor 10.0.0.56 maximum-routes 12000 > neighbor fc00::71 remote-as 65100 > neighbor fc00::71 description 65100 > neighbor fc00::71 default-originate route-map DEFAULT_ROUTES > neighbor fc00::71 maximum-routes 12000 > redistribute static route-map PREPENDAS # this is used for redistribute > local static route into bgp.rib and zebr.rib > address-family ipv4 > network 100.1.0.29/32 > ! > address-family ipv6 > neighbor fc00::71 activate > network 2064:100::1d/128 > ! > ``` > > DUT is out router, use quagga-0.99, its config is: > ``` > router bgp 65100 > bgp router-id 10.1.0.32 > bgp log-neighbor-changes > no bgp default ipv4-unicast > bgp bestpath as-path multipath-relax # use this for ECMP > network 10.1.0.32/32 > network 192.168.0.0/21 > neighbor 10.0.0.57 remote-as 64600 > neighbor 10.0.0.57 description ARISTA01T1 > neighbor 10.0.0.57 timers 3 10 > neighbor 10.0.0.57 activate > neighbor 10.0.0.59 remote-as 64600 > neighbor 10.0.0.59 description ARISTA02T1 > neighbor 10.0.0.59 timers 3 10 > neighbor 10.0.0.59 activate > neighbor 10.0.0.61 remote-as 64600 > neighbor 10.0.0.61 description ARISTA03T1 > neighbor 10.0.0.61 timers 3 10 > neighbor 10.0.0.61 activate > neighbor 10.0.0.63 remote-as 64600 > neighbor 10.0.0.63 description ARISTA04T1 > neighbor 10.0.0.63 timers 3 10 > neighbor 10.0.0.63 activate > neighbor fc00::72 remote-as 64600 > neighbor fc00::72 description ARISTA01T1 > neighbor fc00::72 timers 3 10 > neighbor fc00::76 remote-as 64600 > neighbor fc00::76 description ARISTA02T1 > neighbor fc00::76 timers 3 10 > neighbor fc00::7a remote-as 64600 > neighbor fc00::7a description ARISTA03T1 > neighbor fc00::7a timers 3 10 > neighbor fc00::7e remote-as 64600 > neighbor fc00::7e description ARISTA04T1 > neighbor fc00::7e timers 3 10 > ! > address-family ipv6 > network fc00:1::32/128 > neighbor fc00::72 activate > neighbor fc00::76 activate > neighbor fc00::7a activate > neighbor fc00::7e activate > exit-address-family > ! > ip forwarding > ipv6 forwarding > ! > line vty > ! > end > ``` > > But when run this testbed, I found there is no ECMP route on DUT, as > bellow: > ``` > test-hostname(config-router)# do show ip bgp 193.7.248.128/25 > BGP routing table entry for 193.7.248.128/25 > Paths: (4 available, best #4, table Default-IP-Routing-Table) > Advertised to non peer-group peers: > 10.0.0.57 10.0.0.61 10.0.0.63 > 64600 65534 64791 65115 > 10.0.0.57 from 10.0.0.57 (100.1.0.29) > Origin incomplete, localpref 100, valid, external > Last update: Wed Jun 10 09:47:27 2020 > > 64600 65534 64791 65115 > 10.0.0.63 from 10.0.0.63 (100.1.0.32) > Origin incomplete, localpref 100, valid, external > Last update: Wed Jun 10 06:33:03 2020 > > 64600 65534 64791 65115 > 10.0.0.61 from 10.0.0.61 (100.1.0.31) > Origin incomplete, localpref 100, valid, external > Last update: Wed Jun 10 06:32:58 2020 > > 64600 65534 64791 65115 > 10.0.0.59 from 10.0.0.59 (100.1.0.30) > Origin incomplete, localpref 100, valid, external, best > Last update: Wed Jun 10 06:32:56 2020 > > test-hostname(config-router)# do show ip route 193.7.248.128/25 > Routing entry for 193.7.248.128/25 > Known via "bgp", distance 20, metric 0, best > Last update 03:15:00 ago > * 10.0.0.59, via PortChannel0002 > ``` > > Why??? > > Compare with another environment: > ``` > BJ-GH-M1F203-B02-TEST-12# show ip bgp 1.1.1.224/32 > BGP routing table entry for 1.1.1.224/32 > Paths: (2 available, best #1, table Default-IP-Routing-Table) > Advertised to non peer-group peers: > 100.0.34.222 > 235 224 > 100.0.56.223 from 100.0.56.223 (100.0.3.223) > Origin IGP, localpref 100, valid, external, multipath, best > Last update: Tue Jun 9 06:08:59 2020 > > 235 224 > 100.0.34.222 from 100.0.34.222 (100.0.55.222) > Origin IGP, localpref 100, valid, external, multipath > Last update: Tue Jun 9 06:08:59 2020 > > BJ-GH-M1F203-B02-TEST-12# show ip route 1.1.1.224/32 > Routing entry for 1.1.1.224/32 > Known via "bgp", distance 20, metric 0, best > Last update 1d02h19m ago > * 100.0.56.223, via Ethernet53 > * 100.0.34.222, via Ethernet50 > ``` > > Why does this have ECMP??? > > For detail, I found there is only one difference, which is `Origin IGP` > and `Origin imcomplete`. > But I check code, in `bgp_path_info_cmp` function, in step 11, the ` > paths_eq` only depends on `BGP_FLAG_ASPATH_MULTIPATH_RELAX` and > something, nothing with `Origin`. > > So why there is no ECMP in my testbed??? > > ---- > Simon Jones > _______________________________________________ > frog mailing list > frog at lists.frrouting.org > https://lists.frrouting.org/listinfo/frog > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ch at ntrv.dk Fri Jun 12 21:00:20 2020 From: ch at ntrv.dk (Chriztoffer Hansen) Date: Fri, 12 Jun 2020 23:00:20 +0200 Subject: [FROG] [dev] Ubuntu 20.04 LTS File.. In-Reply-To: References: Message-ID: On Sun, 7 Jun 2020 at 20:39, Kevin Morales wrote: > when do you are to add the file for Ubuntu 20.04 LTS (focal) on your repository? 💌 "Ubuntu 20.04 LTS (focal) - will be added shortly" - deb.frrouting.org 😃 From yanhc519 at aliyun.com Sun Jun 28 06:12:06 2020 From: yanhc519 at aliyun.com (yanhc519 at aliyun.com) Date: Sun, 28 Jun 2020 14:12:06 +0800 Subject: =?UTF-8?Q?Is_there_any_material_describ?= =?UTF-8?Q?ing_the_souce_code_of_ospd6d=EF=BC=9F?= Message-ID: <1593324723868.igqxghi3lrmwwjy2l1uv1t4f@android.mail.163.com> Hi, all. I want to read the ospf6d souce code to do a porting to an embedded platform. However, I found it difficult to understand some data structure, such as ospf6_lsdb, route_table and route_node. Is there any material describing these data structrue? Thanks York -------------- next part -------------- An HTML attachment was scrubbed... URL: From yanhc519 at aliyun.com Sun Jun 28 06:41:05 2020 From: yanhc519 at aliyun.com (yanhc519 at aliyun.com) Date: Sun, 28 Jun 2020 14:41:05 +0800 Subject: =?UTF-8?Q?Re:_[FROG]_Is_there_any_material_d?= =?UTF-8?Q?escribing_the_souce_code_of_ospd6d=EF=BC=9F?= In-Reply-To: References: Message-ID: <1593326463881.clmdqerplz4dtrmigvylfcoq@android.mail.163.com> Hi, all. I want to read the ospf6d souce code to do a porting to an embedded platform. However, I found it difficult to understand some data structure, such as ospf6_lsdb, route_table and route_node. Is there any material describing these data structrue? I dont know why there is no text in the email so I reply it with the text. Thanks York On 06/28/2020 14:12, yan via frog wrote: -------------- next part -------------- An HTML attachment was scrubbed... URL: From sustrik at anapaya.net Thu Jun 18 14:29:10 2020 From: sustrik at anapaya.net (Martin Sustrik) Date: Thu, 18 Jun 2020 16:29:10 +0200 Subject: [FROG] Retrieving all routes Message-ID: Hi all, I am running a user-space network stack. I would like to retrieve the list of current routes so that I can use the same set of routes in my stack. What's the best way to do that? Martin -------------- next part -------------- An HTML attachment was scrubbed... URL: From bmrajesh at gmail.com Mon Jun 22 19:04:27 2020 From: bmrajesh at gmail.com (bmrajesh .) Date: Tue, 23 Jun 2020 00:34:27 +0530 Subject: [FROG] FRR vtysh config command ordering Message-ID: Hi, I have noticed that FRR VTYSH sorts the config commands in alphabetical order. For example: interface gig0/1 ip address
/ mtu 9000 Is there a way to change this order, like if i want "mtu 9000" to come before "ip address..." ? One issue is if config A is dependent on config B, and if config A is saved (in frr.conf) before config B, then on restarting a process config A fails and is lost. Thanks & Regards, Rajesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From qlyoung at cumulusnetworks.com Sun Jun 28 18:18:01 2020 From: qlyoung at cumulusnetworks.com (Quentin Young) Date: Sun, 28 Jun 2020 14:18:01 -0400 Subject: [FROG] Retrieving all routes In-Reply-To: References: Message-ID: `ip route show` ? On Sun, Jun 28, 2020, 7:36 AM Martin Sustrik wrote: > Hi all, > > I am running a user-space network stack. I would like to retrieve the list > of current routes so that I can use the same set of routes in my stack. > What's the best way to do that? > > Martin > _______________________________________________ > frog mailing list > frog at lists.frrouting.org > https://lists.frrouting.org/listinfo/frog > -------------- next part -------------- An HTML attachment was scrubbed... URL: From qlyoung at cumulusnetworks.com Sun Jun 28 18:25:06 2020 From: qlyoung at cumulusnetworks.com (Quentin Young) Date: Sun, 28 Jun 2020 14:25:06 -0400 Subject: [FROG] =?utf-8?q?Is_there_any_material_describing_the_souce_code?= =?utf-8?q?_of_ospd6d=EF=BC=9F?= In-Reply-To: References: Message-ID: Sadly, no. If you have specific questions I suggest joining our community slack channel and asking in #development. On Sun, Jun 28, 2020, 2:16 AM yan via frog wrote: > > > > ---------- Forwarded message ---------- > From: > To: frog > Cc: > Bcc: > Date: Sun, 28 Jun 2020 14:12:06 +0800 > Subject: Is there any material describing the souce code of ospd6d? > Hi, all. > > I want to read the ospf6d souce code to do a porting to an embedded > platform. However, I found it difficult to understand some data structure, > such as ospf6_lsdb, route_table and route_node. Is there any material > describing these data structrue? > > Thanks > > York > > > > ---------- Forwarded message ---------- > From: yan via frog > To: frog > Cc: > Bcc: > Date: Sun, 28 Jun 2020 14:12:06 +0800 > Subject: [FROG] Is there any material describing the souce code of ospd6d? > _______________________________________________ > frog mailing list > frog at lists.frrouting.org > https://lists.frrouting.org/listinfo/frog > -------------- next part -------------- An HTML attachment was scrubbed... URL: From qlyoung at cumulusnetworks.com Sun Jun 28 18:30:27 2020 From: qlyoung at cumulusnetworks.com (Quentin Young) Date: Sun, 28 Jun 2020 14:30:27 -0400 Subject: [FROG] FRR vtysh config command ordering In-Reply-To: References: Message-ID: Generally speaking the config is not sorted alphabetically. Perhaps some small subsections are, but I don't know of any off the top of my head. However it is the case that config is not output in the same order it is input. Output is dictated by the order in which the config render functions output config lines, and there are many such functions.There are no facilities for enforcing any specific ordering scheme, partially because the current scheme should always work and not result in the behavior you described. If you're seeing a situation like you described with dependent configuration getting lost, please open an issue on GitHub so we can fix that. That is a bug independent of the ordering of frr.conf. There are also misconfigs you could have made to cause the same behavior, so please be thorough in the bug report. On Sun, Jun 28, 2020, 7:36 AM bmrajesh . wrote: > > Hi, > > I have noticed that FRR VTYSH sorts the config commands in alphabetical > order. For example: > interface gig0/1 > ip address
/ > mtu 9000 > > Is there a way to change this order, like if i want "mtu 9000" to come > before "ip address..." ? > One issue is if config A is dependent on config B, and if config A is > saved (in frr.conf) before config B, then on restarting a process config A > fails and is lost. > > Thanks & Regards, > Rajesh > > _______________________________________________ > frog mailing list > frog at lists.frrouting.org > https://lists.frrouting.org/listinfo/frog > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yanhc519 at aliyun.com Mon Jun 29 01:10:35 2020 From: yanhc519 at aliyun.com (yanhc519 at aliyun.com) Date: Mon, 29 Jun 2020 09:10:35 +0800 Subject: =?UTF-8?Q?Re:_[FROG]_Is_there_any_material_d?= =?UTF-8?Q?escribing_the_souce_code_of_ospd6d=EF=BC=9F?= In-Reply-To: References: Message-ID: <1593393034268.dy1anmke1ulg23coovtkjiag@android.mail.163.com> OK. Thanks for your advice. I will try there. On 06/29/2020 02:25, Quentin Young wrote: Sadly, no. If you have specific questions I suggest joining our community slack channel and asking in #development. On Sun, Jun 28, 2020, 2:16 AM yan via frog wrote: ---------- Forwarded message ---------- From:  To: frog Cc:  Bcc:  Date: Sun, 28 Jun 2020 14:12:06 +0800 Subject: Is there any material describing the souce code of ospd6d? Hi, all. I want to read the ospf6d souce code to do a porting to an embedded platform. However, I found it difficult to understand some data structure, such as ospf6_lsdb, route_table and route_node. Is there any material describing these data structrue? Thanks York ---------- Forwarded message ---------- From: yan via frog To: frog Cc:  Bcc:  Date: Sun, 28 Jun 2020 14:12:06 +0800 Subject: [FROG] Is there any material describing the souce code of ospd6d? _______________________________________________ frog mailing list frog at lists.frrouting.org https://lists.frrouting.org/listinfo/frog -------------- next part -------------- An HTML attachment was scrubbed... URL: