-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pim register show #11141
Pim register show #11141
Conversation
When reading the BGP_PREFIX_SID_SRV6_L3_SERVICE_SID_STRUCTURE it is possible that the length read in the packet is insufficiently large enough to read a BGP_PREFIX_SID_SRV6_L3_SERVICE_SID_STRUCTURE. Let's ensure that it is. Fixes: FRRouting#10860 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
There is no need to have an interface available to configure SRGB. Conversely, it should be possible to remove the SRGB when no interfaces are available. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
The following configuration: router ospf segment-routing global-block 16000 23999 local-block 1000 2000 ! appears in the 'show running-config' like below: router ospf local-block 1000 2000 ! When there are custom Adjacencies, display the SRGB even if SRGB has the default settings. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Problem: PIM assert is not triggered even after receiving WRONGVIF notification because of Could_assert flag not set. CouldAssert(S,G,I) = SPTbit(S,G)==TRUE AND (RPF_interface(S) != I) AND (I in ( ( joins(*,G) (-) prunes(S,G,rpt) ) (+) ( pim_include(*,G) (-) pim_exclude(S,G) ) (-) lost_assert(*,G) (+) joins(S,G) (+) pim_include(S,G) ) ) Once SPTbit is set, Could_assert has to be reevaluated Signed-off-by: plsaranya <Saranya_Panjarathina@dell.com>
That commit aim is to fix an invalid behavior when default-information is activated on ospf router without always option. Consider an ASBR with: -one default route coming from ospf, -and another default route coming from another deaemon (such BGP or static). When the daemon bgp stops advertising its default route, -ospf continues to advertise its previous default route (with aging 0), -this may create default routing loops. Expected behavior: is to update the removed external default route with MAXAGING value. Updating with MAXAGING value will notify the fact the route is currently invalid. A later removal from ospf external LSA database will be made. Analysis: all default routes have their type overwritten by a DEFAULT_ROUTE type. Thus all default routes whatever its origin (ospf, bgp, static...) is treated in a same way. But this is not pertinent for ospf originated default routes. Fix: avoid overwiting of route type when default route is ospf type. Signed-off-by: Francois Dumontet <francois.dumontet@6wind.com>
There exists code paths in the linux kernel where a dump command will be interrupted( I am not sure I understand what this really means ) and the data sent back from the kernel is wrong or incomplete. At this point in time I am not 100% certain what should be done, but let's start noticing that this has happened so we can formulate a plan or allow the end operator to know bad stuff is a foot at the circle K. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
`is_vni_param_configured()` is used to check whether RD/RT configured for specific evpn vni. There seems to be no need for this mixed check. No caller for about 5 years, just remove it. Signed-off-by: anlan_cs <vic.lan@pica8.com>
The file m4/ax_lua.m4 needs to be a part of distribution, but it is not inluded in the git repository by default becuase .gitignore file has a wildcard for all *.m4 files, while individual files that must _not_ be ignored are listed one by one as exceptions. ax_lua.m4 needs to be added to this list of exceptions too. One failure scenario is when you put a snapshot of the source tree in a new git repository (e.g. the one used for a local CI/CD), this file is not included in the repository, and subsequently build fails. This commit adds the exception into m4/.gitignore file Signed-off-by: Eugene Crosser <crosser@average.org>
``` spine1-debian-11(config-router)# bmp targets ? BMPTARGETS Name of the BMP target group ok test1 ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
These 3 values: ONE_DAY_SECOND ONE_WEEK_SECOND ONE_YEAR_SECOND Are defined based upon the number of seconds. Unfortunately doing math on these values say something like: days = t->tv_sec / ONE_DAY_SECOND; Once you go over about a day causes the order of operations to cause the multiplication to get messed up: 204 if (!t) (gdb) n 207 w = d = h = m = ms = 0; (gdb) set t->tv_sec = ONE_DAY_SECOND + 30 (gdb) n 208 memset(buf, 0, size); (gdb) 210 us = t->tv_usec; (gdb) 211 if (us >= 1000) { (gdb) 212 ms = us / 1000; (gdb) 213 us %= 1000; (gdb) 217 if (ms >= 1000) { (gdb) 222 if (t->tv_sec > ONE_WEEK_SECOND) { (gdb) 227 if (t->tv_sec > ONE_DAY_SECOND) { (gdb) 228 d = t->tv_sec / ONE_DAY_SECOND; (gdb) n 229 t->tv_sec -= d * ONE_DAY_SECOND; (gdb) n 232 if (t->tv_sec >= HOUR_IN_SECONDS) { (gdb) p d $6 = 2073600 (gdb) p t->tv_sec $7 = -179158953570 (gdb) Converting to adding paranthesis around around the ONE_DAY_SECOND causes the order of operations to work as expected. Fixes: FRRouting#10880 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
When babeld was switched over to the zapi interface up/down callbacks the interface up event was not properly put back in. Fixes: FRRouting#10893 Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Small simplification for evpn RT commands, i.e. both per-VRF and per-VNI - `bgp_evpn_vrf_rt_cmd` and `bgp_evpn_vni_rt_cmd`. Just extract the duplicated code as a common code, there are no functional changes. Additionally correct one comment for `ecommunity_free()`. Signed-off-by: anlan_cs <vic.lan@pica8.com>
When a client disconnects, we need to check & remove NHT entries for other SAFIs too. Otherwise we crash later trying to access stale data. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Just a small puzzle piece missing in zebra SAFI NHT support. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Prints the SAFI_MULTICAST NHT state in zebra. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Just pushing that SAFI_UNICAST up 1 level to the caller. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
No need to waste malloc overhead on this. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
This stops intermixing SAFI_UNICAST NHT into SAFI_MULTICAST static routes. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Signed-off-by: Nobuhiro MIKI <nmiki@yahoo-corp.jp>
…RUCTURE_LENGTH Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Signed-off-by: Nobuhiro MIKI <nmiki@yahoo-corp.jp>
Currently the PIM6d component is getting displayed under "show ip prefix-list" instead of "show ipv6 prefix-list". Fixed it. Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
When the connection goes up, the timer is not stopped and if we have a subsequent GR event we have an old timer which is not as we expect. Before: ``` spine1-debian-11# sh ip bgp 192.168.100.1/32 BGP routing table entry for 192.168.100.1/32, version 95 Paths: (1 available, best #1, table default, mark routes to be retained for a longer time. Requires support for Long-lived BGP Graceful Restart) Not advertised to any peer 65001 47583, (stale) 192.168.0.1 from 192.168.0.1 (100.100.200.100) Origin incomplete, valid, external, best (First path received) Community: llgr-stale Last update: Mon Mar 28 08:27:53 2022 Time until Long-lived stale route deleted: 23 <<<<<<<<<<<< spine1-debian-11# sh ip bgp 192.168.100.1/32 BGP routing table entry for 192.168.100.1/32, version 103 Paths: (1 available, best #1, table default) Advertised to non peer-group peers: 192.168.0.1 65001 47583 192.168.0.1 from 192.168.0.1 (100.100.200.100) Origin incomplete, valid, external, best (First path received) Last update: Mon Mar 28 08:43:29 2022 spine1-debian-11# sh ip bgp 192.168.100.1/32 BGP routing table entry for 192.168.100.1/32, version 103 Paths: (1 available, best #1, table default, mark routes to be retained for a longer time. Requires support for Long-lived BGP Graceful Restart) Not advertised to any peer 65001 47583, (stale) 192.168.0.1 from 192.168.0.1 (100.100.200.100) Origin incomplete, valid, external, best (First path received) Community: llgr-stale Last update: Mon Mar 28 08:43:30 2022 Time until Long-lived stale route deleted: 17 <<<<<<<<<<<<<<< ``` After: ``` spine1-debian-11# sh ip bgp 192.168.100.1/32 BGP routing table entry for 192.168.100.1/32, version 79 Paths: (1 available, best #1, table default, mark routes to be retained for a longer time. Requires support for Long-lived BGP Graceful Restart) Not advertised to any peer 65001 47583, (stale) 192.168.0.1 from 192.168.0.1 (0.0.0.0) Origin incomplete, valid, external, best (First path received) Community: llgr-stale Last update: Mon Mar 28 09:05:18 2022 Time until Long-lived stale route deleted: 24 <<<<<<<<<<<<<<< spine1-debian-11# sh ip bgp 192.168.100.1/32 BGP routing table entry for 192.168.100.1/32, version 87 Paths: (1 available, best #1, table default) Advertised to non peer-group peers: 192.168.0.1 65001 47583 192.168.0.1 from 192.168.0.1 (100.100.200.100) Origin incomplete, valid, external, best (First path received) Last update: Mon Mar 28 09:05:25 2022 spine1-debian-11# sh ip bgp 192.168.100.1/32 BGP routing table entry for 192.168.100.1/32, version 87 Paths: (1 available, best #1, table default, mark routes to be retained for a longer time. Requires support for Long-lived BGP Graceful Restart) Not advertised to any peer 65001 47583, (stale) 192.168.0.1 from 192.168.0.1 (100.100.200.100) Origin incomplete, valid, external, best (First path received) Community: llgr-stale Last update: Mon Mar 28 09:05:29 2022 Time until Long-lived stale route deleted: 29 <<<<<<<<<<<<<< ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
pim_sock_*() functions are adapted for IPv6 now, reenable calling them. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Lots of passing src/dst around, but it is what it is. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
A lot simpler than the TX code. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
RT value will be unique across different VNIs but the same across routers (in the same AS) for a particula VNI. It is unique, so add `break` for search procedure. Signed-off-by: anlan_cs <vic.lan@pica8.com>
Prior to this fix, the magic number (16) was used regardless of what value the user specified for func-bits. With this fix, user-specified values are handled appropriately. Signed-off-by: Nobuhiro MIKI <nmiki@yahoo-corp.jp>
``` route-map tstas permit 10 set as-path replace 1 exit ``` Before: ``` donatas-laptop(config-router-af)# do show ip bgp 10.10.10.10/32 BGP routing table entry for 10.10.10.10/32, version 13 Paths: (1 available, best #1, table default) Advertised to non peer-group peers: 192.168.10.65 65000 1 2 3 123 192.168.10.65 from 192.168.10.65 (10.10.10.11) Origin IGP, metric 0, valid, external, best (First path received) Last update: Mon Apr 25 10:39:50 2022 ``` After: ``` donatas-laptop(config-router-af)# do show ip bgp 10.10.10.10/32 BGP routing table entry for 10.10.10.10/32, version 15 Paths: (1 available, best #1, table default) Advertised to non peer-group peers: 192.168.10.65 65000 65010 2 3 123 192.168.10.65 from 192.168.10.65 (10.10.10.11) Origin IGP, metric 0, valid, external, best (First path received) Last update: Mon Apr 25 10:40:16 2022 ``` Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Some recent improvement in GCC triggers 2 new warnings, and they're actual bugs (reading beyond end of prefix_ipv6 by accessing it as prefix, which is larger.) Luckily it's only in sharpd. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Reuse %pI4/%pI6/%pIA Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
The normal flag was enabling detail messages, but what we want is the detail flag enabling normal messages. Remove the _ONLY macro while at it, it's only used for config print & that seems like a place where making the difference explicitly visible is helpful regardless. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
The flag was defined but there was no command to actually enable it. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
The logic to unlock dest if iteration completed without iterating the entire node was flawed. Specifically, if iteration terminated due to `gr_deferred == 0` then the node would not get unlocked. This change takes into account the fact that dest will be NULL only in the case when the entire table was iterated and all nodes were already unlocked. In any other case, it needs to be unlocked. Signed-off-by: Carl Baldwin <carl@ecbaldwin.net>
Signed-off-by: sarita patra <saritap@vmware.com>
Continuous Integration Result: FAILEDSee below for issues. This is a comment from an automated CI system. Get source / Pull Request: FailedCheckout code: Failed (click for details)PullReq merge failed. Please rebase your branch: |
registerTx is printing wrong value in show interface traffic