]>
git.puffer.fish Git - mirror/frr.git/log
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>
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
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 [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>
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>
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>
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
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>
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>
Igor Ryzhov [Thu, 5 Aug 2021 20:47:27 +0000 (23:47 +0300)]
pathd: fix indentation and redundant space in index config
Before:
```
segment-routing
traffic-eng
segment-list SL1
index 10 mpls label 16010
```
After:
```
segment-routing
traffic-eng
segment-list SL1
index 10 mpls label 16010
```
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Thu, 5 Aug 2021 20:45:44 +0000 (23:45 +0300)]
pathd: fix indentation for mpls-te config
Before:
```
segment-routing
traffic-eng
mpls-te on
mpls-te import ospfv2
```
After:
```
segment-routing
traffic-eng
mpls-te on
mpls-te import ospfv2
```
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Mark Stapp [Thu, 5 Aug 2021 18:39:38 +0000 (14:39 -0400)]
Merge pull request #9302 from ton31337/fix/comments
bgpd: Fix misleading comments for some parts
Donald Sharp [Thu, 5 Aug 2021 13:38:00 +0000 (09:38 -0400)]
Merge pull request #9023 from idryzhov/static-nb
staticd: simplify the northbound code
Donatas Abraitis [Thu, 5 Aug 2021 13:29:52 +0000 (16:29 +0300)]
bgpd: Fix misleading comments for some parts
Mostly just retrun => return and misleading comments at all.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Donatas Abraitis [Wed, 4 Aug 2021 07:41:02 +0000 (10:41 +0300)]
doc: Specify how aggregate-address works for BGP
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
anlan_cs [Wed, 4 Aug 2021 12:47:45 +0000 (08:47 -0400)]
ospfd: fix coverity warning of one field initialization
Add the initialization of prefixlen field in struct prefix.
Signed-off-by: anlan_cs <anlan_cs@tom.com>
Mark Stapp [Wed, 4 Aug 2021 20:17:30 +0000 (16:17 -0400)]
Merge pull request #9050 from LabNConsulting/chopps/reset-parallel
Chopps/reset parallel
Sri Mohana Singamsetty [Wed, 4 Aug 2021 19:44:37 +0000 (12:44 -0700)]
Merge pull request #9261 from vivek-cumulus/fix_evpn_quick_flap
bgpd: Handle quick flaps of an EVPN prefix properly
Donald Sharp [Wed, 4 Aug 2021 17:38:25 +0000 (13:38 -0400)]
zebra: prevent crash when nhlfe is NULL
There exists a call path where the nhlfe_alloc can return NULL
for blackhole nexthops. In this case we were still trying
to save the nhlfe pointer causing a crash when we attempted
to add it to a self-contained list.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Wed, 4 Aug 2021 17:29:48 +0000 (13:29 -0400)]
lib: Blackhole nexthops cannot be used as part of label generation
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Wed, 4 Aug 2021 17:19:36 +0000 (13:19 -0400)]
zebra: don't use default case when switching over enum nexthop
Do not use the `default` case when switching over an enumerated
type. This allows the code to fail to compile when we add a
new enumeration. Thus allowing us developers to know all
the places in the code we'll need to touch.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Mark Stapp [Wed, 4 Aug 2021 16:54:25 +0000 (12:54 -0400)]
Merge pull request #9291 from donaldsharp/fix_long_sleep
tests: Remove sleep(200) from bgp-evpn-overlay-index-gateway
Donald Sharp [Wed, 4 Aug 2021 15:13:26 +0000 (11:13 -0400)]
lib: Convert assert to error and record it instead of aborting
When we get a bad value for the opaque data length, instead
of stopping the program, discard the data and move on.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Donald Sharp [Wed, 4 Aug 2021 12:48:06 +0000 (08:48 -0400)]
Merge pull request #8182 from mjstapp/topotest_start_tgen
tests: make the topogen object available when starting daemons
Donald Sharp [Wed, 4 Aug 2021 12:05:12 +0000 (08:05 -0400)]
tests: Remove sleep(200) from bgp-evpn-overlay-index-gateway
Remove a 200 second sleep from bgp-evpn-overlay-index-gateway.
There does not seem to be any evidence that this is needed
and I cannot make the test fail without it.
Fixes: #9035
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Yash Ranjan [Wed, 4 Aug 2021 11:53:10 +0000 (04:53 -0700)]
ospf6d: Check the cost only when asbr_present for ECMP routes
For ECMP routes, the metric cost and metric type are compared
even when the asbr entry is not present. This stops the routes
from getting removed when max age LSAs are received for the
ECMP routes.
Signed-off-by: Yash Ranjan <ranjany@vmware.com>
Donald Sharp [Wed, 4 Aug 2021 01:21:14 +0000 (21:21 -0400)]
Merge pull request #9085 from mobash-rasool/pim-upst-4
pimd: memory leak fix and issue fix
Donald Sharp [Wed, 4 Aug 2021 01:18:21 +0000 (21:18 -0400)]
Merge pull request #9092 from rgirada/rmap
ospfd: OSPF hello packets not sent with configured hello timer
Donald Sharp [Wed, 4 Aug 2021 01:15:12 +0000 (21:15 -0400)]
Merge pull request #9108 from opensourcerouting/ospf6d-range-fixes
ospf6d: fix argument processing in the "area ... range" command
Igor Ryzhov [Fri, 14 May 2021 12:36:24 +0000 (15:36 +0300)]
Revert "tests/bgpd: initialized candidate_config to vtysh"
This reverts commit
64fb3f86661c0f5ac2f9017a7b6b999dbcb8e2e4 .
Igor Ryzhov [Fri, 14 May 2021 00:06:04 +0000 (03:06 +0300)]
Revert "tests: add bgp yang module registery to attr test"
This reverts commit
15cbc382061ee8807dbe79827c96ae94a4aa90c6 .
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Thu, 13 May 2021 23:57:30 +0000 (02:57 +0300)]
Revert "bgpd: register northbound callbacks to bootstrap"
This reverts commit
e4a464160dee2b53f2851879b2c736139061e74c .
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Thu, 13 May 2021 23:21:54 +0000 (02:21 +0300)]
Revert "bgpd: bgp northbound callbacks prototypes"
This reverts commit
a1950c80a570e721503de4cf86de7a247e900781 .
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Thu, 13 May 2021 23:20:04 +0000 (02:20 +0300)]
Revert "bgpd: convert global config to transactional cli"
This reverts commit
ff8a8a7ac10b3211d5586c29dfcc5a3b32841029 .
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Thu, 13 May 2021 23:16:29 +0000 (02:16 +0300)]
Revert "bgpd: register nb routing hook"
This reverts commit
374069da83f5f00f53156e1886372391c3f00b3f .
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Thu, 13 May 2021 23:15:46 +0000 (02:15 +0300)]
Revert "bgpd: shorten northbound callback names"
This reverts commit
906ebeec9800d3aef0eddb70ce74b48e370cb5ce .
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Igor Ryzhov [Thu, 13 May 2021 23:13:40 +0000 (02:13 +0300)]
Revert "bgpd: correct bgp global context"
This reverts commit
87ce25646be36bb9a27e75d177615e3d19a07df0 .
Igor Ryzhov [Thu, 13 May 2021 23:13:20 +0000 (02:13 +0300)]
Revert "bgpd: move router bgp nb callback"
This reverts commit
5e42cb2fb088a28202e60ec57a4116f3d1f0afd5 .
Igor Ryzhov [Thu, 13 May 2021 23:13:15 +0000 (02:13 +0300)]
Revert "bgpd: no router bgp check candidate config"
This reverts commit
4b63e358bc213bfa9d1baeda6fbbdfa39df60d2e .
Igor Ryzhov [Thu, 13 May 2021 23:12:55 +0000 (02:12 +0300)]
Revert "bgpd: fix SA warnings in bgp northbound"
This reverts commit
082de39e7155e958416564f65286d4b57434ce4a .
Igor Ryzhov [Thu, 13 May 2021 23:12:49 +0000 (02:12 +0300)]
Revert "bgpd: Use default VRF name if using `router bgp` command"
This reverts commit
5ce106b72bac1c45567159c4dfcc9276164bd18b .
Igor Ryzhov [Thu, 13 May 2021 23:12:33 +0000 (02:12 +0300)]
Revert "bgpd: rename router bgp callbacks"
This reverts commit
feded4118b89eba5a1629f45cfe623277612e404 .
Igor Ryzhov [Thu, 13 May 2021 23:12:29 +0000 (02:12 +0300)]
Revert "bgpd: fix crash in bgp instance creation"
This reverts commit
a5ab756f2483594a19837e0c30f6184cd966940f .
Igor Ryzhov [Thu, 13 May 2021 23:12:24 +0000 (02:12 +0300)]
Revert "bgpd: use common api in bgp_get"
This reverts commit
bdaadb91e8adc103197d8f57a6a3358ff313a23c .