]>
git.puffer.fish Git - mirror/frr.git/log
Igor Ryzhov [Tue, 17 Aug 2021 08:28:22 +0000 (11:28 +0300)]
Merge pull request #9404 from neirbowj/notcares
Scan lib/resolver.c only when c-ares is installed
Mark Stapp [Mon, 16 Aug 2021 16:57:53 +0000 (12:57 -0400)]
Merge pull request #9375 from idryzhov/pcep-no-commands
vtysh, pathd: fix pcep node-entering commands
Renato Westphal [Mon, 16 Aug 2021 15:06:01 +0000 (12:06 -0300)]
Merge pull request #9380 from mjstapp/fix_static_lsp_cli
zebra: mpls validation and static lsp fixes
Renato Westphal [Mon, 16 Aug 2021 15:01:49 +0000 (12:01 -0300)]
Merge pull request #9395 from donaldsharp/pim_memory_leak
pimd: Prevent memory leak
Donatas Abraitis [Mon, 16 Aug 2021 14:24:21 +0000 (17:24 +0300)]
Merge pull request #9369 from idryzhov/comm-alias-memleaks
bgpd: fix various memleaks when using community aliases
Igor Ryzhov [Mon, 16 Aug 2021 09:26:25 +0000 (12:26 +0300)]
Merge pull request #9265 from ton31337/fix/extcommunity_lb_route-map_persistent
bgpd: Extended community bandwidth fixes
Igor Ryzhov [Mon, 16 Aug 2021 09:02:13 +0000 (12:02 +0300)]
Merge pull request #9350 from ton31337/feature/autocomplete_for_community_lists
bgpd: Auto-complete for community lists (show commands)
Igor Ryzhov [Mon, 16 Aug 2021 08:54:55 +0000 (11:54 +0300)]
Merge pull request #9391 from mougams/master
tests: add feature to not run ospfd test when opted out
Igor Ryzhov [Mon, 16 Aug 2021 08:52:34 +0000 (11:52 +0300)]
Merge pull request #9399 from ton31337/fix/doc_zebraBANDIWDTH
doc: Replace typo BANDIWDTH to BANDWIDTH
Igor Ryzhov [Mon, 16 Aug 2021 08:51:51 +0000 (11:51 +0300)]
Merge pull request #9400 from ton31337/fix/rename_topotest_dirs
tests: Get rid off `-` for directories
John W. O'Brien [Sun, 15 Aug 2021 16:46:30 +0000 (12:46 -0400)]
lib: Scan lib/resolver.c only when c-ares is installed
Scan lib/resolver.c only when c-ares is installed
Signed-off-by: John W. O'Brien <john@saltant.com>
Donatas Abraitis [Sun, 15 Aug 2021 08:12:56 +0000 (11:12 +0300)]
tests: Get rid off `-` for directories
Related: http://docs.frrouting.org/projects/dev-guide/en/latest/topotests.html
Directory name for a new topotest must not contain hyphen (-) characters.
To separate words, use underscores (_). For example, tests/topotests/bgp_new_example.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Donatas Abraitis [Sun, 15 Aug 2021 08:10:22 +0000 (11:10 +0300)]
doc: Replace typo BANDIWDTH to BANDWIDTH
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Donald Sharp [Sat, 14 Aug 2021 13:06:23 +0000 (09:06 -0400)]
Merge pull request #9271 from opensourcerouting/workflow-release-sched
workflow: document release scheduling discussed
Donatas Abraitis [Sat, 14 Aug 2021 08:26:14 +0000 (11:26 +0300)]
Merge pull request #9394 from dslicenc/bgp-prepend-lastas
bgpd: Stop prepending peer-as if self-originated and lastas configured
Renato Westphal [Sat, 14 Aug 2021 01:17:31 +0000 (22:17 -0300)]
Merge pull request #9338 from idryzhov/static-nb-err
staticd: replace NB checks with assert
Igor Ryzhov [Fri, 13 Aug 2021 23:14:44 +0000 (02:14 +0300)]
Merge pull request #9389 from mjstapp/fix_netlink_if_name_sa
zebra: interface name must be a valid string
Donald Sharp [Fri, 13 Aug 2021 21:24:21 +0000 (17:24 -0400)]
pimd: Prevent memory leak
When we decide that we do not need a item on the partial_bsrp_list
don't just drop the memory on the floor, free it up.
This was happening when we decided that a pending item has
a hold time of 0.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Mark Stapp [Thu, 12 Aug 2021 20:45:38 +0000 (16:45 -0400)]
zebra: interface name must be a valid string
Validate incoming netlink interface name strings.
Signed-off-by: Mark Stapp <mjs.ietf@gmail.com>
Don Slice [Wed, 11 Aug 2021 12:45:23 +0000 (08:45 -0400)]
bgpd: Stop prepending peer-as if self-originated and lastas configured
Problem seen where if "set aspath-prepend last-as" configured and
applied outbound, we prepend the peer's asn which causes our self-
originated routes to be denied.
Signed-off-by: Don Slice <dslice@nvidia.com>
Igor Ryzhov [Fri, 13 Aug 2021 17:10:02 +0000 (20:10 +0300)]
Merge pull request #9361 from qlyoung/upstream-8857
ospf6d: JSON output for database dump show command
Igor Ryzhov [Wed, 11 Aug 2021 09:22:21 +0000 (12:22 +0300)]
bgpd: fix memory leaks in bgp_show_table
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Wed, 11 Aug 2021 09:21:46 +0000 (12:21 +0300)]
bgpd: fix memory leaks in route_match_alias
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Fri, 13 Aug 2021 11:06:37 +0000 (14:06 +0300)]
Merge pull request #9371 from donaldsharp/zebra_evpn_getl
zebra: Ensure stream is long enough
Basha Mougamadou [Fri, 13 Aug 2021 07:45:34 +0000 (09:45 +0200)]
tests: add feature to not run ospfd test when opted out
Signed-off-by: Basha Mougamadou <b.mougamadou@criteo.com>
Quentin Young [Tue, 10 Aug 2021 15:42:52 +0000 (11:42 -0400)]
ospf6d: JSON output for database dump show command
Added missing output to "show ipv6 ospf6 databse dump json" VTY shell
command.
Co-authored-by: David Schweizer dschweizer@opensourcerouting.org
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Quentin Young [Tue, 10 Aug 2021 15:42:19 +0000 (11:42 -0400)]
lib: add frrstr_hex to hexdump buffers
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
Donald Sharp [Thu, 12 Aug 2021 19:34:07 +0000 (15:34 -0400)]
Merge pull request #9374 from mjstapp/fix_nhg_add_leak
zebra: clean up nhg allocations in error path
Donald Sharp [Wed, 11 Aug 2021 12:00:03 +0000 (08:00 -0400)]
zebra: Ensure stream is long enough
In zebra_evpn_proc_remote_nh if we do not pass in a long
enough stream, the stream reads will fail. Ensure that
we have enough data.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Mark Stapp [Thu, 12 Aug 2021 14:16:46 +0000 (10:16 -0400)]
Merge pull request #9304 from donaldsharp/zebra_random_stuff
Zebra random stuff
Mark Stapp [Wed, 11 Aug 2021 17:58:13 +0000 (13:58 -0400)]
zebra: mpls validation and static lsp fixes
Handle TYPE_IFINDEX nexthops more consistently in a few places;
be more specific about a few integer return values that were
being treated as booleans.
Signed-off-by: Mark Stapp <mjs.ietf@gmail.com>
Mark Stapp [Thu, 12 Aug 2021 12:49:41 +0000 (08:49 -0400)]
Merge pull request #9376 from idryzhov/doc-fixes
a couple of ospf6 doc fixes
Quentin Young [Wed, 11 Aug 2021 16:36:36 +0000 (12:36 -0400)]
Merge pull request #9370 from opensourcerouting/rpm-keep-config-master
redhat: Install frr.conf only if no per daemon config exists
Igor Ryzhov [Wed, 11 Aug 2021 15:22:06 +0000 (18:22 +0300)]
doc: fix ospf6 nssa area command description
Currently the NSSA support is a separate section, but it should actually
be a description of the corresponding CLI command.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Wed, 11 Aug 2021 15:00:00 +0000 (18:00 +0300)]
doc: move ospf6 debugging section to the end of the doc
Currently the debugging section is placed in the middle of the section
with various configuration commands.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Wed, 11 Aug 2021 14:55:12 +0000 (17:55 +0300)]
doc: move ospf6 area commands to the appropriate section
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Wed, 11 Aug 2021 14:46:31 +0000 (17:46 +0300)]
vtysh, pathd: fix pcep node-entering commands
pce-config, pce and pcc node-entering commands in vtysh include no-form,
which is incorrect. Currently, when user passes a no-form command like
`no pcc`, vtysh enters the node while pathd deletes the node and this
leads to a desynchronization.
Regular and no-form commands should be defined separately to fix this.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Mark Stapp [Wed, 11 Aug 2021 14:41:53 +0000 (10:41 -0400)]
zebra: clean up nhg allocations in error path
Clean up allocated nhgs in error path in zread_nhg_add().
Signed-off-by: Mark Stapp <mjs.ietf@gmail.com>
David Lamparter [Tue, 3 Aug 2021 17:15:01 +0000 (19:15 +0200)]
workflow: document release scheduling discussed
As discussed in the weekly meeting today, this is what we're trying to
work with for the time being.
(Date calculator included as a bonus goodie ;)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Igor Ryzhov [Wed, 11 Aug 2021 13:49:52 +0000 (16:49 +0300)]
Merge pull request #9363 from mobash-rasool/ospfv2-bug-fixes-04
ospfd: ospf redistribute originating LSA internal connected routes
Donald Sharp [Wed, 11 Aug 2021 12:11:39 +0000 (08:11 -0400)]
Merge pull request #9367 from mjstapp/fix_rt_netlink_af
zebra: ignore unknown address-family in netlink route msg
Martin Winter [Mon, 9 Aug 2021 23:52:05 +0000 (01:52 +0200)]
redhat: Install frr.conf only if no per daemon config exists
Install frr.conf template as a template file, but only install it
as a config file if no per daemon file exists. This will use the
integrated config with new setups, but keeps the per-daemon config
for existing users
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Igor Ryzhov [Wed, 11 Aug 2021 09:09:15 +0000 (12:09 +0300)]
bgpd: fix memory leaks in bgp_alias2community_str
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Mark Stapp [Tue, 10 Aug 2021 20:06:29 +0000 (16:06 -0400)]
Merge pull request #9330 from idryzhov/vtysh-srv6
vtysh: fix daemon for srv6 commands
Mobashshera Rasool [Tue, 10 Aug 2021 16:24:47 +0000 (09:24 -0700)]
ospfd: ospf redistribute originating LSA internal connected routes
When OSPF is disabled on interface and enabled again, the IP which is
not matching the prefix-list is getting originated as External LSA.
Fixes: #9362
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
Mark Stapp [Tue, 10 Aug 2021 15:44:08 +0000 (11:44 -0400)]
zebra: ignore unknown address-family in netlink route msg
Ignore AFs we don't handle in incoming netlink route
updates.
Signed-off-by: Mark Stapp <mjs.ietf@gmail.com>
Sri Mohana Singamsetty [Tue, 10 Aug 2021 15:20:55 +0000 (08:20 -0700)]
Merge pull request #9236 from AnuradhaKaruppiah/v6-nh-rmac
zebra: use a separate dummy prefix for referencing v6 nexthops
Donald Sharp [Tue, 10 Aug 2021 14:11:35 +0000 (10:11 -0400)]
Merge pull request #9348 from dlqs/consecutive
lib: lua: consecutive script calls
Russ White [Tue, 10 Aug 2021 13:57:52 +0000 (09:57 -0400)]
Merge pull request #9290 from ranjanyash54/ecmp_delete_route
ospf6d: Check the cost only when asbr_present for ECMP routes
Russ White [Tue, 10 Aug 2021 13:50:50 +0000 (09:50 -0400)]
Merge pull request #9300 from donaldsharp/ospf_header
ospfd: Cleanup ospf_interface.h to work with our standards
Russ White [Tue, 10 Aug 2021 13:33:58 +0000 (09:33 -0400)]
Merge pull request #9328 from donaldsharp/peer_deletion
bgpd: bgp_packet_process_error can access peer after deletion
Russ White [Tue, 10 Aug 2021 13:33:08 +0000 (09:33 -0400)]
Merge pull request #9343 from ton31337/fix/dont_convert_by_default_to_alias
bgpd: Fix bgp routes filtering by [l]community-list
Igor Ryzhov [Tue, 10 Aug 2021 08:39:30 +0000 (11:39 +0300)]
Merge pull request #9321 from donaldsharp/no_leak_re
zebra: Prevent memory leak if route is rejected early
Donatas Abraitis [Tue, 10 Aug 2021 08:04:57 +0000 (11:04 +0300)]
bgpd: Auto-complete for `show bgp <afi> <safi> large-community-list`
```
exit1-debian-9# show ip bgp large-community-list
(1-500) large-community-list number
LCOMMUNITY_LIST_NAME large-community-list name
large-testas
```
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Donatas Abraitis [Tue, 10 Aug 2021 08:02:50 +0000 (11:02 +0300)]
bgpd: Auto-complete for `show bgp <afi> <safi> community-list`
```
exit1-debian-9# show ip bgp community-list ?
(1-500) community-list number
COMMUNITY_LIST_NAME community-list name
testas
```
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Donatas Abraitis [Tue, 10 Aug 2021 07:23:52 +0000 (10:23 +0300)]
bgpd: Auto-complete for community lists
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Christian Hopps [Tue, 10 Aug 2021 07:14:43 +0000 (03:14 -0400)]
Merge pull request #9219 from mobash-rasool/ospfv2-bug-fixes
tools: Add ospfv2 and ospfv3 commands in support bundle
Donatas Abraitis [Mon, 9 Aug 2021 12:37:37 +0000 (15:37 +0300)]
tests: Make sure BGP filters by community lists work with community alias
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Donatas Abraitis [Mon, 9 Aug 2021 10:34:57 +0000 (13:34 +0300)]
bgpd: BGP extended [l]community-list regexp match must work with aliases
We have to convert BGP alias to numerical format to compare in regexp.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Donald Lee [Mon, 9 Aug 2021 23:28:29 +0000 (07:28 +0800)]
doc: fix unrelated typo
Signed-off-by: Donald Lee <dlqs@gmx.com>
Donald Lee [Mon, 9 Aug 2021 23:27:58 +0000 (07:27 +0800)]
doc: Update for consecutive frrscript_call
Signed-off-by: Donald Lee <dlqs@gmx.com>
Donald Lee [Mon, 9 Aug 2021 23:07:06 +0000 (07:07 +0800)]
lib: Enable consecutive frrscript_call
Previous:
- frrscript_load: push Lua function onto stack
- frrscript_call: calls Lua function
Now:
- frrscript_load: checks Lua function
- frrscript_call: pushes and calls Lua function (first clear the stack)
So now we just need one frrscript_load for consecutive frrscript_call.
frrscript_call does not recompile or reload the script file, it just
keys it from the global Lua table (where it should already be).
Signed-off-by: Donald Lee <dlqs@gmx.com>
Donald Lee [Mon, 9 Aug 2021 22:29:19 +0000 (06:29 +0800)]
tests: Add test consecutive frrscript_call
Signed-off-by: Donald Lee <dlqs@gmx.com>
Mark Stapp [Mon, 9 Aug 2021 17:16:10 +0000 (13:16 -0400)]
Merge pull request #9299 from donaldsharp/zebra_should_continue
Zebra should continue
Quentin Young [Mon, 9 Aug 2021 13:55:35 +0000 (09:55 -0400)]
Merge pull request #9273 from dlqs/luadofilefix
lib: Fix dead code from lua_dofile
Donald Sharp [Mon, 9 Aug 2021 12:01:06 +0000 (08:01 -0400)]
zebra: Properly note add/update for rib_add_multipath_nhe
When calling rib_add_multipath_nhe ensure that we have
well aligned return codes that mean something so that
interersted parties can properly handle the situation.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Fri, 6 Aug 2021 20:00:32 +0000 (16:00 -0400)]
zebra: Prevent memory leak if route is rejected early
When receiving a route via zapi, if the route is rejected
there exists a code path where we would not free the corresponding
re created.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Igor Ryzhov [Mon, 9 Aug 2021 09:48:38 +0000 (12:48 +0300)]
staticd: replace NB checks with assert
If there's no route table in a VRF, it's a hard bug - staticd will crash
on any subsequent action with this route anyway. So let's assert the
existence of a route table instead of returning an unrecoverable error.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Donatas Abraitis [Mon, 9 Aug 2021 07:36:43 +0000 (10:36 +0300)]
Merge pull request #9324 from donaldsharp/bgp_info_cmp
bgpd: Store distance received from a redistribute statement
Donatas Abraitis [Mon, 9 Aug 2021 07:35:10 +0000 (10:35 +0300)]
Merge pull request #9305 from proelbtn/patch-1
bgpd: fix typo in ensure_vrf_tovpn_sid
Donatas Abraitis [Mon, 9 Aug 2021 07:34:38 +0000 (10:34 +0300)]
Merge pull request #9325 from anlancs/fix-lib-warning
lib: Fix coverity warning of return value
Igor Ryzhov [Sun, 8 Aug 2021 19:41:10 +0000 (22:41 +0300)]
vtysh: fix daemon for srv6 commands
All these commands are zebra-only. We shouldn't send them to pathd.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Donald Sharp [Sun, 8 Aug 2021 12:23:24 +0000 (08:23 -0400)]
bgpd: bgp_packet_process_error can access peer after deletion
in bgp_io.c upon packet read of some error we are storing
the peer pointer on a thread to call bgp_packet_process_error.
In this case an event is generated that is not guaranteed to be
run immediately. It could come in *after* the peer data structure
is deleted and as such we now are writing into memory that we
no longer possibly own as a peer data structure.
Modify the code so that the peer can track the thread associated
with the read error and then it can wisely kill that thread
when deleting the peer data structure.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Sun, 8 Aug 2021 11:27:41 +0000 (07:27 -0400)]
Merge pull request #8262 from reubendowle/fixes/nhrp-misc-fixes
nhrp misc fixes
Donald Sharp [Sun, 8 Aug 2021 11:21:10 +0000 (07:21 -0400)]
Merge pull request #8870 from anlancs/master-fix-reload-service
tools: add "vni" to oneline list
anlan_cs [Sun, 8 Aug 2021 01:34:29 +0000 (21:34 -0400)]
lib: Fix coverity warning of return value
Suppress coverity warning on unchecked str2sockunion's return value.
Signed-off-by: anlan_cs <anlan_cs@tom.com>
Donald Sharp [Fri, 6 Aug 2021 15:24:18 +0000 (11:24 -0400)]
bgpd: Store distance received from a redistribute statement
When bgp receives the admin distance from a redistribution statement
let's store that distance for later usage.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Sat, 7 Aug 2021 20:07:34 +0000 (16:07 -0400)]
Merge pull request #9283 from ton31337/fix/documentation_for_aggregate-address
doc: Specify how aggregate-address works for BGP
Donatas Abraitis [Sat, 7 Aug 2021 19:49:25 +0000 (22:49 +0300)]
Merge pull request #9253 from donaldsharp/igmp_no
pimd: Allow more permisive versions of some no commands
Donald Sharp [Sat, 7 Aug 2021 19:12:02 +0000 (15:12 -0400)]
Merge pull request #9313 from idryzhov/bgp-zebra-opaque
BGP opaque data improvements
Donald Sharp [Sat, 7 Aug 2021 19:10:05 +0000 (15:10 -0400)]
Merge pull request #9315 from idryzhov/pathd-cli-fixes
pathd: a couple of cli/doc fixes
Christian Hopps [Fri, 6 Aug 2021 17:34:52 +0000 (13:34 -0400)]
Merge pull request #9312 from opensourcerouting/topo-small-fixes
topotests: small fixes for two tests
Igor Ryzhov [Thu, 5 Aug 2021 20:57:24 +0000 (23:57 +0300)]
doc: fix pathd example config
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Donald Sharp [Wed, 4 Aug 2021 22:41:19 +0000 (18:41 -0400)]
ospfd: Cleanup ospf_interface.h to work with our standards
When declaring functions we must name the variables as part
of our standard.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Fri, 6 Aug 2021 14:46:09 +0000 (10:46 -0400)]
Merge pull request #9256 from idryzhov/dampening-revert
BGP per-peer dampening revert
Donald Sharp [Fri, 6 Aug 2021 14:45:59 +0000 (10:45 -0400)]
Merge pull request #9280 from idryzhov/bgp-nb-revert-master
BGP NB revert
Donald Sharp [Fri, 6 Aug 2021 14:33:08 +0000 (10:33 -0400)]
Merge pull request #9294 from anlancs/fix-ospfd-init
ospfd: fix coverity warning
Igor Ryzhov [Fri, 6 Aug 2021 14:09:46 +0000 (17:09 +0300)]
bgpd: add protection against too large opaque data structure
BGP opaque data shouldn't be larger than zebra's buffer.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Fri, 6 Aug 2021 14:06:39 +0000 (17:06 +0300)]
bgpd: use longer aspath string in opaque data
32 bytes are not enough to carry relatively long AS paths so let's make
the buffer larger.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Donald Sharp [Thu, 5 Aug 2021 19:04:56 +0000 (15:04 -0400)]
zebra: Delete rib_lookup_and_dump since it is not used
The rib_lookup_and_dump function is never used, remove
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Thu, 5 Aug 2021 18:49:29 +0000 (14:49 -0400)]
zebra: Remove rib_lookup_and_pushup function
The rib_lookup_and_pushup function, from what I can tell, was
used more when static route processing and connected routes were
more closely integrated in zebra. The goal was when we were adding
a new address to remove the connected route and then allow processing
of the new address. With the re-org a few years ago to seperate
out connected routes as well as static routes, I believe this is
no longer needed.
on BSD, without this code change we have this log:
2021/08/05 14:33:38 ZEBRA: [QEVVE-G3FQQ] rib_meta_queue_add: (0:0):10.40.30.0/24: queued rn 0x802022bb0 into sub-queue 4
2021/08/05 14:33:38 ZEBRA: [ZPR30-5G1FB] Kernel: Len: 200 Type: RTM_DELETE
2021/08/05 14:33:38 ZEBRA: [V3NSB-BPKBD] Kernel: GATEWAY DONE PROTO1
2021/08/05 14:33:38 ZEBRA: [HDTM1-ENZNM] Kernel: message seq 15
2021/08/05 14:33:38 ZEBRA: [MJD4M-0AAAR] Kernel: pid 53305, rtm_addrs {DST,GATEWAY,NETMASK}
2021/08/05 14:33:38 ZEBRA: [Y9Y5K-JJ7NT] rtm_read: got rtm of type 2 (RTM_DELETE) addrs {DST,GATEWAY,NETMASK}
2021/08/05 14:33:38 ZEBRA: [V17DT-1FJEN] kernel_rtm: 10.40.30.0/24: successfully did NH 9.8.6.7
2021/08/05 14:33:38 ZEBRA: [ZPR30-5G1FB] Kernel: Len: 164 Type: RTM_NEWADDR
2021/08/05 14:33:38 ZEBRA: [V3NSB-BPKBD] Kernel:
2021/08/05 14:33:38 ZEBRA: [HDTM1-ENZNM] Kernel: message seq 4664
2021/08/05 14:33:38 ZEBRA: [MJD4M-0AAAR] Kernel: pid 0, rtm_addrs {DST}
2021/08/05 14:33:38 ZEBRA: [M09CX-TKB4N] ifam_read_mesg: ifindex 1, ifname vtnet0, ifam_addrs {NETMASK,IFP,IFA,BRD}, ifam_flags 0x0, addr 10.40.30.1/24 broad 10.40.30.255 dst (unspec) gateway (unspec)
2021/08/05 14:33:38 ZEBRA: [MFYWV-KH3MC] rib_add_multipath_nhe: (0:0):10.40.30.0/24: Inserting route rn 0x802022bb0, re 0x8032973a0 (connected) existing 0x0, same_count 0
2021/08/05 14:33:38 ZEBRA: [Q4T2G-E2SQF] rib_add_multipath_nhe: dumping RE entry 0x8032973a0 for 10.40.30.0/24 vrf default(0)
2021/08/05 14:33:38 ZEBRA: [M5M58-9PD2R] 10.40.30.0/24: uptime ==
1379355 , type == 2, instance == 0, table == 0
2021/08/05 14:33:38 ZEBRA: [RVZMM-N7DME] 10.40.30.0/24: metric == 1, mtu == 0, distance == 0, flags == None status == None
2021/08/05 14:33:38 ZEBRA: [Q1NW5-NWY7P] 10.40.30.0/24: nexthop_num == 1, nexthop_active_num == 0
2021/08/05 14:33:38 ZEBRA: [TFHQ8-TC30H] 10.40.30.0/24: NH vtnet0[1] vrf default(0) with flags
2021/08/05 14:33:38 ZEBRA: [SCETK-GQ9E4] 10.40.30.0/24: dump complete
2021/08/05 14:33:38 ZEBRA: [QEVVE-G3FQQ] rib_meta_queue_add: (0:0):10.40.30.0/24: queued rn 0x802022bb0 into sub-queue 2
2021/08/05 14:33:38 ZEBRA: [MFYWV-KH3MC] rib_add_multipath_nhe: (0:?):10.40.30.0/24 (MRIB): Inserting route rn 0x802022f30, re 0x803297340 (connected) existing 0x0, same_count 0
2021/08/05 14:33:38 ZEBRA: [Q4T2G-E2SQF] rib_add_multipath_nhe: dumping RE entry 0x803297340 for 10.40.30.0/24 vrf default(0)
2021/08/05 14:33:38 ZEBRA: [M5M58-9PD2R] 10.40.30.0/24: uptime ==
1379355 , type == 2, instance == 0, table == 0
2021/08/05 14:33:38 ZEBRA: [RVZMM-N7DME] 10.40.30.0/24: metric == 1, mtu == 0, distance == 0, flags == None status == None
2021/08/05 14:33:38 ZEBRA: [Q1NW5-NWY7P] 10.40.30.0/24: nexthop_num == 1, nexthop_active_num == 0
2021/08/05 14:33:38 ZEBRA: [TFHQ8-TC30H] 10.40.30.0/24: NH vtnet0[1] vrf default(0) with flags
2021/08/05 14:33:38 ZEBRA: [SCETK-GQ9E4] 10.40.30.0/24: dump complete
2021/08/05 14:33:38 ZEBRA: [GCGMT-SQR82] rib_link: (0:?):10.40.30.0/24 (MRIB): rn 0x802022f30 adding dest
2021/08/05 14:33:38 ZEBRA: [QEVVE-G3FQQ] rib_meta_queue_add: (0:0):10.40.30.0/24 (MRIB): queued rn 0x802022f30 into sub-queue 2
2021/08/05 14:33:38 ZEBRA: [ZPR30-5G1FB] Kernel: Len: 240 Type: RTM_ADD
2021/08/05 14:33:38 ZEBRA: [V3NSB-BPKBD] Kernel: UP PINNED
2021/08/05 14:33:38 ZEBRA: [HDTM1-ENZNM] Kernel: message seq 0
2021/08/05 14:33:38 ZEBRA: [MJD4M-0AAAR] Kernel: pid 0, rtm_addrs {DST,GATEWAY,NETMASK}
2021/08/05 14:33:38 ZEBRA: [K0KVE-2GJA1] default(0:0):10.40.30.0/24: Processing rn 0x802022bb0
2021/08/05 14:33:38 ZEBRA: [RWCK7-TX4HT] default(0:0):10.40.30.0/24: Examine re 0x8032973a0 (connected) status: Changed flags: None dist 0 metric 1
2021/08/05 14:33:38 ZEBRA: [RWCK7-TX4HT] default(0:0):10.40.30.0/24: Examine re 0x8032970a0 (static) status: None flags: Recursion RR Distance dist 1 metric 0
2021/08/05 14:33:38 ZEBRA: [NYYJJ-0Q8QG] default(0:0):10.40.30.0/24: After processing: old_selected 0x0 new_selected 0x8032973a0 old_fib 0x0 new_fib 0x8032973a0
2021/08/05 14:33:38 ZEBRA: [RT9DY-ZS2KN] default(0:0):10.40.30.0/24: Adding route rn 0x802022bb0, re 0x8032973a0 (connected)
2021/08/05 14:33:38 ZEBRA: [PP3BZ-RABJN] default(0:0):10.40.30.0/24: rn 0x802022bb0 dequeued from sub-queue 2
2021/08/05 14:33:38 ZEBRA: [K0KVE-2GJA1] default(0:0):10.40.30.0/24: Processing rn 0x802022f30
2021/08/05 14:33:38 ZEBRA: [RWCK7-TX4HT] default(0:0):10.40.30.0/24: Examine re 0x803297340 (connected) status: Changed flags: None dist 0 metric 1
2021/08/05 14:33:38 ZEBRA: [NYYJJ-0Q8QG] default(0:0):10.40.30.0/24: After processing: old_selected 0x0 new_selected 0x803297340 old_fib 0x0 new_fib 0x803297340
2021/08/05 14:33:38 ZEBRA: [RT9DY-ZS2KN] default(0:0):10.40.30.0/24: Adding route rn 0x802022f30, re 0x803297340 (connected)
2021/08/05 14:33:38 ZEBRA: [PP3BZ-RABJN] default(0:0):10.40.30.0/24: rn 0x802022f30 dequeued from sub-queue 2
2021/08/05 14:33:38 ZEBRA: [K0KVE-2GJA1] default(0:0):10.40.30.0/24: Processing rn 0x802022bb0
2021/08/05 14:33:38 ZEBRA: [RWCK7-TX4HT] default(0:0):10.40.30.0/24: Examine re 0x8032973a0 (connected) status: Queued flags: Selected dist 0 metric 1
2021/08/05 14:33:38 ZEBRA: [RWCK7-TX4HT] default(0:0):10.40.30.0/24: Examine re 0x8032970a0 (static) status: None flags: Recursion RR Distance dist 1 metric 0
2021/08/05 14:33:38 ZEBRA: [NYYJJ-0Q8QG] default(0:0):10.40.30.0/24: After processing: old_selected 0x8032973a0 new_selected 0x8032973a0 old_fib 0x8032973a0 new_fib 0x8032973a0
2021/08/05 14:33:38 ZEBRA: [PP3BZ-RABJN] default(0:0):10.40.30.0/24: rn 0x802022bb0 dequeued from sub-queue 4
2021/08/05 14:33:38 ZEBRA: [GHWHS-ZKQM5] update_from_ctx: default(0:0):10.40.30.0/24: SELECTED, re 0x8032973a0
2021/08/05 14:33:38 ZEBRA: [TS3SH-1276M] default(0:0):10.40.30.0/24 update_from_ctx(): no fib nhg
2021/08/05 14:33:38 ZEBRA: [HKQXC-4STSK] default(0:0):10.40.30.0/24 update_from_ctx(): rib nhg matched, changed 'false'
2021/08/05 14:33:38 ZEBRA: [HBZNK-5H1X0] (0:0):10.40.30.0/24: Redist update re 0x8032973a0 (connected), old 0x0 (None)
2021/08/05 14:33:38 ZEBRA: [GHWHS-ZKQM5] update_from_ctx: default(0:0):10.40.30.0/24: SELECTED, re 0x8032973a0
2021/08/05 14:33:38 ZEBRA: [TS3SH-1276M] default(0:0):10.40.30.0/24 update_from_ctx(): no fib nhg
2021/08/05 14:33:38 ZEBRA: [HKQXC-4STSK] default(0:0):10.40.30.0/24 update_from_ctx(): rib nhg matched, changed 'false'
2021/08/05 14:33:38 ZEBRA: [HBZNK-5H1X0] (0:0):10.40.30.0/24: Redist update re 0x8032973a0 (connected), old 0x0 (None)
With this code change:
2021/08/05 14:41:24 ZEBRA: [MFYWV-KH3MC] rib_add_multipath_nhe: (0:?):10.10.40.0/24: Inserting route rn 0x802022f30, re 0x8021cbe60 (static) existing 0x0, same_count 0
2021/08/05 14:41:24 ZEBRA: [RT9DY-ZS2KN] default(0:0):10.10.40.0/24: Adding route rn 0x802022f30, re 0x8021cbe60 (static)
2021/08/05 14:41:24 ZEBRA: [V17DT-1FJEN] kernel_rtm: 10.10.40.0/24: successfully did NH 9.8.6.7
2021/08/05 14:41:24 ZEBRA: [ZPR30-5G1FB] Kernel: Len: 200 Type: RTM_ADD
2021/08/05 14:41:24 ZEBRA: [V3NSB-BPKBD] Kernel: UP GATEWAY DONE PROTO1
2021/08/05 14:41:24 ZEBRA: [HDTM1-ENZNM] Kernel: message seq 0
2021/08/05 14:41:24 ZEBRA: [MJD4M-0AAAR] Kernel: pid 60818, rtm_addrs {DST,GATEWAY,NETMASK}
2021/08/05 14:41:24 ZEBRA: [Y9Y5K-JJ7NT] rtm_read: got rtm of type 1 (RTM_ADD) addrs {DST,GATEWAY,NETMASK}
2021/08/05 14:41:24 ZEBRA: [TS3SH-1276M] default(0:0):10.10.40.0/24 update_from_ctx(): no fib nhg
2021/08/05 14:41:24 ZEBRA: [HKQXC-4STSK] default(0:0):10.10.40.0/24 update_from_ctx(): rib nhg matched, changed 'true'
2021/08/05 14:41:24 ZEBRA: [HBZNK-5H1X0] (0:0):10.10.40.0/24: Redist update re 0x8021cbe60 (static), old 0x0 (None)
2021/08/05 14:42:06 ZEBRA: [ZJ4AV-JEMJ3] dplane_intf_addr_set
2021/08/05 14:42:06 ZEBRA: [ZPR30-5G1FB] Kernel: Len: 164 Type: RTM_NEWADDR
2021/08/05 14:42:06 ZEBRA: [V3NSB-BPKBD] Kernel:
2021/08/05 14:42:06 ZEBRA: [HDTM1-ENZNM] Kernel: message seq 4664
2021/08/05 14:42:06 ZEBRA: [MJD4M-0AAAR] Kernel: pid 0, rtm_addrs {DST}
2021/08/05 14:42:06 ZEBRA: [M09CX-TKB4N] ifam_read_mesg: ifindex 1, ifname vtnet0, ifam_addrs {NETMASK,IFP,IFA,BRD}, ifam_flags 0x0, addr 10.10.40.3/24 broad 10.10.40.255 dst (unspec) gateway (unspec)
2021/08/05 14:42:06 ZEBRA: [MFYWV-KH3MC] rib_add_multipath_nhe: (0:0):10.10.40.0/24: Inserting route rn 0x802022f30, re 0x80308c4c0 (connected) existing 0x0, same_count 0
2021/08/05 14:42:06 ZEBRA: [MFYWV-KH3MC] rib_add_multipath_nhe: (0:?):10.10.40.0/24 (MRIB): Inserting route rn 0x802023160, re 0x80308c460 (connected) existing 0x0, same_count 0
2021/08/05 14:42:06 ZEBRA: [ZPR30-5G1FB] Kernel: Len: 240 Type: RTM_ADD
2021/08/05 14:42:06 ZEBRA: [V3NSB-BPKBD] Kernel: UP PINNED
2021/08/05 14:42:06 ZEBRA: [HDTM1-ENZNM] Kernel: message seq 0
2021/08/05 14:42:06 ZEBRA: [MJD4M-0AAAR] Kernel: pid 0, rtm_addrs {DST,GATEWAY,NETMASK}
2021/08/05 14:42:06 ZEBRA: [RG9Y6-E93A0] default(0:0):10.10.40.0/24: Updating route rn 0x802022f30, re 0x80308c4c0 (connected) old 0x8021cbe60 (static)
2021/08/05 14:42:06 ZEBRA: [RT9DY-ZS2KN] default(0:0):10.10.40.0/24: Adding route rn 0x802023160, re 0x80308c460 (connected)
2021/08/05 14:42:06 ZEBRA: [THSYN-E2XFY][EC
100663299 ] rtm_write: write : Address already in use (48)
2021/08/05 14:42:06 ZEBRA: [RV5F2-MQGZG][EC
100663303 ] kernel_rtm: 10.10.40.0/24: rtm_write() unexpectedly returned -5 for command RTM_DELETE
2021/08/05 14:42:06 ZEBRA: [ZPR30-5G1FB] Kernel: Len: 200 Type: RTM_DELETE
2021/08/05 14:42:06 ZEBRA: [V3NSB-BPKBD] Kernel: UP PROTO1
2021/08/05 14:42:06 ZEBRA: [HDTM1-ENZNM] Kernel: message seq 1
2021/08/05 14:42:06 ZEBRA: [MJD4M-0AAAR] Kernel: pid 60818, rtm_addrs {DST,GATEWAY,NETMASK}
2021/08/05 14:42:06 ZEBRA: [XASXT-GF69Y] kernel_rtm: No useful nexthops were found in RIB prefix 10.10.40.0/24
2021/08/05 14:42:06 ZEBRA: [TS3SH-1276M] default(0:0):10.10.40.0/24 update_from_ctx(): no fib nhg
2021/08/05 14:42:06 ZEBRA: [HKQXC-4STSK] default(0:0):10.10.40.0/24 update_from_ctx(): rib nhg matched, changed 'false'
2021/08/05 14:42:06 ZEBRA: [HBZNK-5H1X0] (0:0):10.10.40.0/24: Redist update re 0x80308c4c0 (connected), old 0x8021cbe60 (static)
netstat -rn:
10.10.40.0/24 link#1 U vtnet0
10.10.40.3 link#1 UHS lo0
show ip route:
C>* 10.10.40.0/24 [0/1] is directly connected, vtnet0, 00:18:48
S 10.10.40.0/24 [1/0] via 9.8.6.7, vtnet0, weight 1, 00:19:30
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Thu, 5 Aug 2021 18:02:16 +0000 (14:02 -0400)]
zebra: `debug zebra kernel msgdump` is linux specific
The command `debug zebra kernel msgdump is netlink specific.
There is no point at all to allow this to be configed on non
netlink platforms.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Thu, 5 Aug 2021 14:25:35 +0000 (10:25 -0400)]
zebra: Convert srcdest_rnode2str to %pRN in zebra_rib.c
There were a bunch of places where we converted the
route node to a prefix string via srcdest_rnode2str when
we should have been using %pRN in zebra_rib.c. Just
convert over the ones we should to use it.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Thu, 5 Aug 2021 14:10:37 +0000 (10:10 -0400)]
zebra: short-circuit rib_process when nothing to do
When we are calling rib_process and the route_node
in question has no dest, there is no work to do here
at all. As such we should just return before
attempting to do any other work. This is just a tiny bit
of simplification being done.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Rafael Zalamena [Tue, 27 Jul 2021 12:47:03 +0000 (09:47 -0300)]
topotests: reduce convergence check frequency
Check for convergence less frequently to reduce resources usage.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Tue, 27 Jul 2021 12:46:12 +0000 (09:46 -0300)]
topotests: skip daemons without configuration
Lets not start daemons without configurations.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Tue, 27 Jul 2021 12:45:41 +0000 (09:45 -0300)]
topotests: remove code that checks for version
We version the tests with FRR so we no longer need to check for version.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Tue, 27 Jul 2021 12:44:41 +0000 (09:44 -0300)]
topotests: use new OSPFv3 interface area syntax
The old one is not VRF aware and is being deprecated.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Rafael Zalamena [Fri, 6 Aug 2021 13:35:45 +0000 (10:35 -0300)]
topotests: reduce MSDP topology
Meanwhile we don't get all MSDP features (MSDP route validation via BGP
AS Path as described in RFC 4611 Section 2), kill one of the links of
the topology to avoid intermittent test failures due to different
traffic route.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Ryoga [Fri, 6 Aug 2021 02:51:44 +0000 (11:51 +0900)]
bgpd: fix typo in ensure_vrf_tovpn_sid
In eusure_vrf_tovpn_sid, there is a check to ensure not to select both
SID index and SID auto mode. But, this current check is wrong and not
meaningful.
Signed-off-by: proelbtn <contact@proelbtn.com>