]> git.puffer.fish Git - mirror/frr.git/log
mirror/frr.git
3 years agosnapcraft: Change base to Ubuntu 18.04 and libyang 2.0.7
Martin Winter [Tue, 17 Aug 2021 17:49:42 +0000 (19:49 +0200)]
snapcraft: Change base to Ubuntu 18.04 and libyang 2.0.7

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
3 years agoMerge pull request #9342 from mobash-rasool/ospfv3-asbr-summarisation
Russ White [Tue, 17 Aug 2021 14:31:29 +0000 (10:31 -0400)]
Merge pull request #9342 from mobash-rasool/ospfv3-asbr-summarisation

OSPF6d: Fixed assert at ospf6_originate_summary_lsa asbr.c:2849 and flushing of Type-7 LSAs

3 years agoMerge pull request #9366 from idryzhov/fix-plist-yang
Russ White [Tue, 17 Aug 2021 14:12:34 +0000 (10:12 -0400)]
Merge pull request #9366 from idryzhov/fix-plist-yang

yang: mark a couple of prefix-list/access-list leafs as mandatory

3 years agoMerge pull request #9365 from idryzhov/fix-plist-dup-check
Russ White [Tue, 17 Aug 2021 13:55:34 +0000 (09:55 -0400)]
Merge pull request #9365 from idryzhov/fix-plist-dup-check

lib: fix prefix-list duplication check

3 years agoMerge pull request #9385 from idryzhov/bgpd-match-evpn-default-route-crash
Russ White [Tue, 17 Aug 2021 13:54:25 +0000 (09:54 -0400)]
Merge pull request #9385 from idryzhov/bgpd-match-evpn-default-route-crash

bgpd: fix segfault when re-adding "match evpn default-route" rule

3 years agoMerge pull request #9383 from idryzhov/ospf-no-vrf-init
Russ White [Tue, 17 Aug 2021 13:53:51 +0000 (09:53 -0400)]
Merge pull request #9383 from idryzhov/ospf-no-vrf-init

ospfd: fix initialization when vrf doesn't exist yet

3 years agoMerge pull request #9411 from donaldsharp/include_update
David Lamparter [Tue, 17 Aug 2021 13:50:57 +0000 (15:50 +0200)]
Merge pull request #9411 from donaldsharp/include_update

include: Update rtnetlink.h to be correct with upstream kernels

3 years agoMerge pull request #9402 from donaldsharp/rpki_processing
Russ White [Tue, 17 Aug 2021 13:47:10 +0000 (09:47 -0400)]
Merge pull request #9402 from donaldsharp/rpki_processing

Rpki processing

3 years agoMerge pull request #9417 from ton31337/fix/bgp_rmap
Igor Ryzhov [Tue, 17 Aug 2021 13:29:05 +0000 (16:29 +0300)]
Merge pull request #9417 from ton31337/fix/bgp_rmap

bgpd: Return rmap match if large-community alias found

3 years agoMerge pull request #9413 from pguibert6WIND/rtmgetneigh_too
Donald Sharp [Tue, 17 Aug 2021 11:57:39 +0000 (07:57 -0400)]
Merge pull request #9413 from pguibert6WIND/rtmgetneigh_too

zebra: RTM_GETNEIGH messages may be used by nhrp

3 years agobgpd: Return rmap match if large-community alias found 9417/head
Donatas Abraitis [Tue, 17 Aug 2021 09:19:43 +0000 (12:19 +0300)]
bgpd: Return rmap match if large-community alias found

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
3 years agoMerge pull request #9404 from neirbowj/notcares
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

3 years agozebra: RTM_GETNEIGH messages may be used by nhrp 9413/head
Philippe Guibert [Tue, 17 Aug 2021 07:04:44 +0000 (09:04 +0200)]
zebra: RTM_GETNEIGH messages may be used by nhrp

When NHRP registers to zebra to receive link layer events related to
gre interfaces, then it is interested in receiving also RTM_GETNEIGH
messages.

Fixes ("b3b751046495") nhrpd: link layer registration to notifications

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
3 years agoinclude: Update rtnetlink.h to be correct with upstream kernels 9411/head
Donald Sharp [Mon, 16 Aug 2021 19:18:55 +0000 (15:18 -0400)]
include: Update rtnetlink.h to be correct with upstream kernels

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #9375 from idryzhov/pcep-no-commands
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

3 years agoMerge pull request #9380 from mjstapp/fix_static_lsp_cli
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

3 years agobgpd: Add code to output expire and retry interval for rpki 9402/head
Donald Sharp [Mon, 16 Aug 2021 14:59:20 +0000 (10:59 -0400)]
bgpd: Add code to output expire and retry interval for rpki

The code to output during a `show run` is missing for both
the expire_interval and the retry_interval in rpki.
Let's add it in so the end user can see what they
are set to if not set to the default.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agobgpd: Continue processing rpki nodes
Donald Sharp [Sun, 15 Aug 2021 14:22:50 +0000 (10:22 -0400)]
bgpd: Continue processing rpki nodes

We are prematurely stopping processing of bgp_path_info's
when bgp_update returns a -1.  The only place that this
happens when we cross some prefix limit.  But we still
need to continiue processing other nodes in the list too.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agobgpd: Limit processing to what is needed in rpki validation
Donald Sharp [Sun, 15 Aug 2021 14:15:38 +0000 (10:15 -0400)]
bgpd: Limit processing to what is needed in rpki validation

The processing was looping over all bgp instances then
over all peers then over all safi's to find a match
for a prefix received in order to validate it.

Suppose you have 100 peers each sending you the same
prefix.  This code will cause it to look at each node 100
times since we look at for each peer.  This is especially
egregarious because we never ever do anything with the peer
when we are looping over them.

Remove the peer loop, significantly reduce processing.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #9395 from donaldsharp/pim_memory_leak
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

3 years agoMerge pull request #9369 from idryzhov/comm-alias-memleaks
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

3 years agoMerge pull request #9265 from ton31337/fix/extcommunity_lb_route-map_persistent
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

3 years agoMerge pull request #9350 from ton31337/feature/autocomplete_for_community_lists
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)

3 years agoMerge pull request #9391 from mougams/master
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

3 years agoMerge pull request #9399 from ton31337/fix/doc_zebraBANDIWDTH
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

3 years agoMerge pull request #9400 from ton31337/fix/rename_topotest_dirs
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

3 years agolib: Scan lib/resolver.c only when c-ares is installed 9404/head
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>
3 years agotests: Get rid off `-` for directories 9400/head
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>
3 years agodoc: Replace typo BANDIWDTH to BANDWIDTH 9399/head
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>
3 years agoMerge pull request #9271 from opensourcerouting/workflow-release-sched
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

3 years agoMerge pull request #9394 from dslicenc/bgp-prepend-lastas
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

3 years agoMerge pull request #9338 from idryzhov/static-nb-err
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

3 years agoMerge pull request #9389 from mjstapp/fix_netlink_if_name_sa
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

3 years agopimd: Prevent memory leak 9395/head
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>
3 years agozebra: interface name must be a valid string 9389/head
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>
3 years agobgpd: Stop prepending peer-as if self-originated and lastas configured 9394/head
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>
3 years agoMerge pull request #9361 from qlyoung/upstream-8857
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

3 years agobgpd: fix memory leaks in bgp_show_table 9369/head
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>
3 years agobgpd: fix memory leaks in route_match_alias
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>
3 years agoMerge pull request #9371 from donaldsharp/zebra_evpn_getl
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

3 years agotests: add feature to not run ospfd test when opted out 9391/head
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>
3 years agoospf6d: JSON output for database dump show command 9361/head
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>
3 years agolib: add frrstr_hex to hexdump buffers
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>
3 years agoMerge pull request #9374 from mjstapp/fix_nhg_add_leak
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

3 years agozebra: Ensure stream is long enough 9371/head
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>
3 years agobgpd: fix segfault when re-adding "match evpn default-route" rule 9385/head
Igor Ryzhov [Thu, 12 Aug 2021 16:07:53 +0000 (19:07 +0300)]
bgpd: fix segfault when re-adding "match evpn default-route" rule

When using "match evpn default-route" rule, match_arg is NULL and strcmp
is not happy with that. There's already a special function named rulecmp
that handles such situations.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoMerge pull request #9304 from donaldsharp/zebra_random_stuff
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

3 years agozebra: mpls validation and static lsp fixes 9380/head
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>
3 years agoospfd: fix initialization when vrf doesn't exist yet 9383/head
Igor Ryzhov [Thu, 12 Aug 2021 12:49:54 +0000 (15:49 +0300)]
ospfd: fix initialization when vrf doesn't exist yet

There are a couple of things that are not initialized if the OSPF router
is created in a non-existent VRF:
- ospf_lsa_maxage_walker
- ospf_lsa_refresh_walker
- ospf_opaque_type11_lsa_init

Rearrange some code to always initialize them and make it easier to find
similar problems in the future.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoMerge pull request #9376 from idryzhov/doc-fixes
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

3 years agoMerge pull request #9370 from opensourcerouting/rpm-keep-config-master
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

3 years agodoc: fix ospf6 nssa area command description 9376/head
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>
3 years agodoc: move ospf6 debugging section to the end of the doc
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>
3 years agodoc: move ospf6 area commands to the appropriate section
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>
3 years agovtysh, pathd: fix pcep node-entering commands 9375/head
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>
3 years agozebra: clean up nhg allocations in error path 9374/head
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>
3 years agoworkflow: document release scheduling discussed 9271/head
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>
3 years agoMerge pull request #9363 from mobash-rasool/ospfv2-bug-fixes-04
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

3 years agoMerge pull request #9367 from mjstapp/fix_rt_netlink_af
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

3 years agoredhat: Install frr.conf only if no per daemon config exists 9370/head
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>
3 years agobgpd: fix memory leaks in bgp_alias2community_str
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>
3 years agoMerge pull request #9330 from idryzhov/vtysh-srv6
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

3 years agoyang: mark a couple of prefix-list/access-list leafs as mandatory 9366/head
Igor Ryzhov [Tue, 10 Aug 2021 19:10:56 +0000 (22:10 +0300)]
yang: mark a couple of prefix-list/access-list leafs as mandatory

The code assumes that these leafs always exist when their complementary
leafs exist. For example, when processing `ipv4-exact-match`, the code
always expects to have access to `ipv4-prefix`. If those leafs are not
provided, code crashes. It doesn't happen when using the CLI because it
always does the right thing, but it can happen when using other
frontends.

Also fix incorrect description for prefix-list sequence leaf.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agolib: fix prefix-list duplication check 9365/head
Igor Ryzhov [Tue, 10 Aug 2021 18:46:37 +0000 (21:46 +0300)]
lib: fix prefix-list duplication check

Currently, when we check the new prefix-list entry for duplication, we
only take filled in fields into account and ignore optional fields.
For example, if we already have `ip prefix-list A 0.0.0.0/0 le 32` and
we try to add `ip prefix-list A 0.0.0.0/0`, it is treated as duplicate.
We should always compare all prefix-list fields when doing the check.

Fixes #9355.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoospfd: ospf redistribute originating LSA internal connected routes 9363/head
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>
3 years agozebra: ignore unknown address-family in netlink route msg 9367/head
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>
3 years agoMerge pull request #9236 from AnuradhaKaruppiah/v6-nh-rmac
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

3 years agoMerge pull request #9348 from dlqs/consecutive
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

3 years agoMerge pull request #9290 from ranjanyash54/ecmp_delete_route
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

3 years agoMerge pull request #9300 from donaldsharp/ospf_header
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

3 years agoMerge pull request #9328 from donaldsharp/peer_deletion
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

3 years agoMerge pull request #9343 from ton31337/fix/dont_convert_by_default_to_alias
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

3 years agoMerge pull request #9321 from donaldsharp/no_leak_re
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

3 years agobgpd: Auto-complete for `show bgp <afi> <safi> large-community-list` 9350/head
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>
3 years agobgpd: Auto-complete for `show bgp <afi> <safi> community-list`
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>
3 years agobgpd: Auto-complete for community lists
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>
3 years agoMerge pull request #9219 from mobash-rasool/ospfv2-bug-fixes
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

3 years agotests: Make sure BGP filters by community lists work with community alias 9343/head
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>
3 years agobgpd: BGP extended [l]community-list regexp match must work with aliases
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>
3 years agodoc: fix unrelated typo 9348/head
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>
3 years agodoc: Update for consecutive frrscript_call
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>
3 years agolib: Enable consecutive frrscript_call
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>
3 years agotests: Add test consecutive frrscript_call
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>
3 years agoMerge pull request #9299 from donaldsharp/zebra_should_continue
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

3 years agoospf6d: Remove Type-7 LSA when Type-5 LSA is removed 9342/head
Mobashshera Rasool [Mon, 9 Aug 2021 11:57:11 +0000 (04:57 -0700)]
ospf6d: Remove Type-7 LSA when Type-5 LSA is removed

Fix:
When summarised Type-5 LSA is removed, the corresponding Type-7
LSAs also need to be removed from area.

Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
3 years agoospf6d: Remove assert and fix LSA removal in ASBR summarisation
Mobashshera Rasool [Mon, 9 Aug 2021 11:24:32 +0000 (04:24 -0700)]
ospf6d: Remove assert and fix LSA removal in ASBR summarisation

Fix:
1. The assert at line ospf6_asbr.c:2849 is not required.
2. When Individual LSAs are present and summarisation is configured
we need to remove such LSAs and originate the summarised ones.

Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
3 years agoMerge pull request #9273 from dlqs/luadofilefix
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

3 years agozebra: Properly note add/update for rib_add_multipath_nhe 9321/head
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>
3 years agozebra: Prevent memory leak if route is rejected early
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>
3 years agostaticd: replace NB checks with assert 9338/head
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>
3 years agoMerge pull request #9324 from donaldsharp/bgp_info_cmp
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

3 years agoMerge pull request #9305 from proelbtn/patch-1
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

3 years agoMerge pull request #9325 from anlancs/fix-lib-warning
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

3 years agovtysh: fix daemon for srv6 commands 9330/head
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>
3 years agobgpd: bgp_packet_process_error can access peer after deletion 9328/head
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>
3 years agoMerge pull request #8262 from reubendowle/fixes/nhrp-misc-fixes
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

3 years agoMerge pull request #8870 from anlancs/master-fix-reload-service
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

3 years agolib: Fix coverity warning of return value 9325/head
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>
3 years agobgpd: Store distance received from a redistribute statement 9324/head
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>
3 years agoMerge pull request #9283 from ton31337/fix/documentation_for_aggregate-address
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