]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
3 years agoMerge pull request #9310 from mobash-rasool/ospfv2-bug-fixes-02
Russ White [Tue, 24 Aug 2021 13:40:59 +0000 (09:40 -0400)]
Merge pull request #9310 from mobash-rasool/ospfv2-bug-fixes-02

ospfd: NSSA area should not exchange Type-4 LSAs in DD

3 years agoMerge pull request #8729 from gpnaveen/ospf_route_maps
Russ White [Tue, 24 Aug 2021 13:13:57 +0000 (09:13 -0400)]
Merge pull request #8729 from gpnaveen/ospf_route_maps

tests: ospf routemap basic test cases 2.

3 years agoMerge pull request #9460 from LabNConsulting/chopps/fix-ospf-config
Igor Ryzhov [Tue, 24 Aug 2021 11:08:02 +0000 (14:08 +0300)]
Merge pull request #9460 from LabNConsulting/chopps/fix-ospf-config

tests: fix ospf json config confusion

3 years agoMerge pull request #9462 from idryzhov/snapcraft-proto
Donatas Abraitis [Tue, 24 Aug 2021 09:35:17 +0000 (12:35 +0300)]
Merge pull request #9462 from idryzhov/snapcraft-proto

snapcraft: add missing dependency

3 years agoMerge pull request #9464 from idryzhov/ospfv3-debug-doc
Renato Westphal [Tue, 24 Aug 2021 04:02:45 +0000 (01:02 -0300)]
Merge pull request #9464 from idryzhov/ospfv3-debug-doc

doc: merge duplicated ospf6d debugging sections

3 years agotests: use correct key for deleting entry.
Christian Hopps [Tue, 24 Aug 2021 01:40:38 +0000 (21:40 -0400)]
tests: use correct key for deleting entry.

OSPF mixes uses of "delete" and "del_action" depending on which library
function is called. It's a bug-prone mess that needs fixing; however, for
now we fix the one obvious incorrect use in this test.

Signed-off-by: Christian Hopps <chopps@labn.net>
3 years agotests: ospf routemap basic test cases 2.
nguggarigoud [Tue, 25 May 2021 03:16:17 +0000 (20:16 -0700)]
tests: ospf routemap basic test cases 2.

Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
3 years agodoc: merge duplicated ospf6d debugging sections
Igor Ryzhov [Mon, 23 Aug 2021 18:23:32 +0000 (21:23 +0300)]
doc: merge duplicated ospf6d debugging sections

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoMerge pull request #9446 from mobash-rasool/ospfv3-bug-fixes
Igor Ryzhov [Mon, 23 Aug 2021 16:00:23 +0000 (19:00 +0300)]
Merge pull request #9446 from mobash-rasool/ospfv3-bug-fixes

ospf6d: External LSAs reoriginates on every redistribute CLI

3 years agoMerge pull request #9337 from dlqs/lua2
Stephen Worley [Mon, 23 Aug 2021 14:20:33 +0000 (08:20 -0600)]
Merge pull request #9337 from dlqs/lua2

lib: check return on str2sockunion

3 years agoMerge pull request #9434 from anlancs/fix-zebra-mpls-cmd
Mark Stapp [Mon, 23 Aug 2021 13:02:15 +0000 (09:02 -0400)]
Merge pull request #9434 from anlancs/fix-zebra-mpls-cmd

zebra: fix wrong check of mpls command

3 years agosnapcraft: add missing dependency
Igor Ryzhov [Mon, 23 Aug 2021 12:08:05 +0000 (15:08 +0300)]
snapcraft: add missing dependency

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoospf6d: External LSAs reoriginates on every redistribute CLI
Mobashshera Rasool [Thu, 19 Aug 2021 09:34:47 +0000 (02:34 -0700)]
ospf6d: External LSAs reoriginates on every redistribute CLI

Problem Statement:
==================
Everytime redistribute CLI is executed, external LSAs are
re-originated. When there is no change in the CLI parameters
the LSAs should not get re-originated.

Fix:
=================
Check if the CLI params are same, do not re-originate the LSA.

Fixes: #9445
Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
3 years agoMerge pull request #9436 from anlancs/fix-vtysh-bfd-exit
Igor Ryzhov [Mon, 23 Aug 2021 11:30:13 +0000 (14:30 +0300)]
Merge pull request #9436 from anlancs/fix-vtysh-bfd-exit

vtysh: add "exit" for bfd's profile node

3 years agoMerge pull request #9456 from proelbtn/fix-running-config
Igor Ryzhov [Mon, 23 Aug 2021 11:24:03 +0000 (14:24 +0300)]
Merge pull request #9456 from proelbtn/fix-running-config

fix some SRv6 configuration isn't saved correctly

3 years agoMerge pull request #9426 from pguibert6WIND/evpn_igp_metric
Donatas Abraitis [Sun, 22 Aug 2021 18:45:11 +0000 (21:45 +0300)]
Merge pull request #9426 from pguibert6WIND/evpn_igp_metric

bgpd: imported evpn rt5 routes copy igpmetric

3 years agoMerge pull request #9455 from LabNConsulting/chopps/fix-zebtest-fixed-sleep
David Lamparter [Sun, 22 Aug 2021 18:35:29 +0000 (20:35 +0200)]
Merge pull request #9455 from LabNConsulting/chopps/fix-zebtest-fixed-sleep

tests: use std polling for results in zebra_rib test

3 years agoMerge pull request #9441 from wesleycoakley/staticd-warn-nonexistent-route
Igor Ryzhov [Sat, 21 Aug 2021 20:11:29 +0000 (23:11 +0300)]
Merge pull request #9441 from wesleycoakley/staticd-warn-nonexistent-route

staticd: warn on attempted delete of non-existent route

3 years agotests: use std polling for results in zebra_rib test
Christian Hopps [Sat, 21 Aug 2021 17:37:42 +0000 (13:37 -0400)]
tests: use std polling for results in zebra_rib test

In particular, the fixed 2 second sleep here was not long enough.
Switch to standard run_and_expect polling to make test more robust.

Signed-off-by: Christian Hopps <chopps@labn.net>
3 years agoMerge pull request #9453 from LabNConsulting/chopps/fix-netns-vrfs
Donald Sharp [Sat, 21 Aug 2021 16:24:42 +0000 (12:24 -0400)]
Merge pull request #9453 from LabNConsulting/chopps/fix-netns-vrfs

tests: uniq vrf names when using netns

3 years agotests: uniq vrf names when using netns
Christian Hopps [Sat, 21 Aug 2021 07:04:42 +0000 (03:04 -0400)]
tests: uniq vrf names when using netns

- In order to run tests in parallel the netns-based vrfs need to
have unique names primarily bc they are all tracked/looked-up in
`/run/netns` which is not network namespace nesting friendly

- use ip(8) exclusively rather than a mix of `ip` and `ifconfig`
and `vconfig`, reducing required pkg count by a couple.

Signed-off-by: Christian Hopps <chopps@labn.net>
3 years agoMerge pull request #9450 from LabNConsulting/chopps/fix-bgp-gr-test
Donald Sharp [Fri, 20 Aug 2021 20:18:19 +0000 (16:18 -0400)]
Merge pull request #9450 from LabNConsulting/chopps/fix-bgp-gr-test

tests: fix broken bgp GR test (non-deterministic)

3 years agotests: fix broken bgp GR test (non-deterministic)
Christian Hopps [Fri, 20 Aug 2021 12:24:23 +0000 (08:24 -0400)]
tests: fix broken bgp GR test (non-deterministic)

- bugs in the support library function `verify_gr_address_family`
allowed this test to pass depending on ordering of python dictinoary
keys. Fix the bugs, fix the test.

Signed-off-by: Christian Hopps <chopps@labn.net>
3 years agoMerge pull request #9447 from donaldsharp/ipset_entry_notify
Renato Westphal [Fri, 20 Aug 2021 02:58:39 +0000 (23:58 -0300)]
Merge pull request #9447 from donaldsharp/ipset_entry_notify

zebra: Fix usage to enum in notify functions

3 years agoMerge pull request #8935 from rgirada/ospfv3_gr_helper
Renato Westphal [Thu, 19 Aug 2021 18:01:34 +0000 (15:01 -0300)]
Merge pull request #8935 from rgirada/ospfv3_gr_helper

ospf6d: Support for ospfv3  graceful restart  helper functionality

3 years agozebra: Fix usage to enum in notify functions
Donald Sharp [Thu, 19 Aug 2021 15:31:05 +0000 (11:31 -0400)]
zebra: Fix usage to enum in notify functions

For some reason commit #ef524230a6baa decided
to remove enums and switch to uint16_t.  Which
is not the right thing to do.  Put it back

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #9218 from LabNConsulting/chopps/pim-timers
Donald Sharp [Thu, 19 Aug 2021 11:35:45 +0000 (07:35 -0400)]
Merge pull request #9218 from LabNConsulting/chopps/pim-timers

Improve pim timers

3 years agobpgd: add missing sid setting in address-family
Ryoga Saito [Thu, 19 Aug 2021 05:41:13 +0000 (05:41 +0000)]
bpgd: add missing sid setting in address-family

current bgpd doesn't write sid setting, resulting to fail to save
configuration correctly.

Signed-off-by: Ryoga Saito <contact@proelbtn.com>
3 years agobpgd: add "exit" at the end of bgp srv6 setting
Ryoga Saito [Thu, 19 Aug 2021 05:37:18 +0000 (05:37 +0000)]
bpgd: add "exit" at the end of bgp srv6 setting

without "exit", when frr is starting up, frr fails to load
address-family setting correctly.

Signed-off-by: Ryoga Saito <contact@proelbtn.com>
3 years agotests: reduce multicast timer values
Christian Hopps [Wed, 28 Jul 2021 10:31:13 +0000 (10:31 +0000)]
tests: reduce multicast timer values

- completes change made in #9190
- also lowers other pim and igmp timer values to speed things up.

Signed-off-by: Christian Hopps <chopps@labn.net>
3 years agotests: Add global pim join-prune-interval json config option
Christian Hopps [Thu, 29 Jul 2021 03:32:33 +0000 (03:32 +0000)]
tests: Add global pim join-prune-interval json config option

- cleanup pim configuration code

Signed-off-by: Christian Hopps <chopps@labn.net>
3 years agopimd: fix register suppress timer code
Christian Hopps [Thu, 19 Aug 2021 01:48:28 +0000 (21:48 -0400)]
pimd: fix register suppress timer code

Signed-off-by: Christian Hopps <chopps@labn.net>
3 years agopimd: change ranges to 1..max, type align with IETF YANG.
Christian Hopps [Tue, 3 Aug 2021 22:22:09 +0000 (22:22 +0000)]
pimd: change ranges to 1..max, type align with IETF YANG.

While defaults are good picks for "reasonable" guesses, min and max
range values really aren't. Operators and experimenters often like to
configure "unreasonable" values to stress test, tests boundary
conditions and explore innovations.

With that in mind, change all ranges to 1..max (of type).

While we're here add optional ignored values in the "no" CLI forms.

Signed-off-by: Christian Hopps <chopps@labn.net>
3 years agostaticd: warn on attempted delete of non-existent route
Wesley Coakley [Tue, 15 Dec 2020 01:01:24 +0000 (20:01 -0500)]
staticd: warn on attempted delete of non-existent route

Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
3 years agozebra: fix wrong check of mpls command
anlan_cs [Wed, 18 Aug 2021 05:58:54 +0000 (01:58 -0400)]
zebra: fix wrong check of mpls command

Maybe with empty nexthop to call zebra_mpls_transit_lsp():
"no mpls lsp (16-1048575)".

So just remove this "gate_str" check. If without "gate" in command, "gtype" is
set to NEXTHOP_TYPE_BLACKHOLE for subsequent processing.

Signed-off-by: anlan_cs <anlan_cs@tom.com>
3 years agoMerge pull request #9431 from opensourcerouting/snap-1804-master
Donald Sharp [Wed, 18 Aug 2021 13:37:06 +0000 (09:37 -0400)]
Merge pull request #9431 from opensourcerouting/snap-1804-master

Snap update to 18.04 base

3 years agoMerge pull request #9341 from LabNConsulting/chopps/ospf-support-bundle
Igor Ryzhov [Wed, 18 Aug 2021 11:40:08 +0000 (14:40 +0300)]
Merge pull request #9341 from LabNConsulting/chopps/ospf-support-bundle

tools: add ospfd support bundle commands

3 years agovtysh: add "exit" for bfd's profile node
anlan_cs [Wed, 18 Aug 2021 07:19:07 +0000 (03:19 -0400)]
vtysh: add "exit" for bfd's profile node

Since no "exit-bfd-profile", need add "exit" for profile node.

Signed-off-by: anlan_cs <anlan_cs@tom.com>
3 years agoMerge pull request #9408 from mobash-rasool/ospfv2-bug-fixes-03
Igor Ryzhov [Wed, 18 Aug 2021 07:18:32 +0000 (10:18 +0300)]
Merge pull request #9408 from mobash-rasool/ospfv2-bug-fixes-03

ospfd: Summarised External LSA is not flushed in one scenario

3 years agosnapcraft: Add pathd to FRR snap daemons
Martin Winter [Tue, 17 Aug 2021 19:24:47 +0000 (21:24 +0200)]
snapcraft: Add pathd to FRR snap daemons

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
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 agobgpd: imported evpn rt5 routes copy igpmetric
Philippe Guibert [Tue, 17 Aug 2021 14:43:37 +0000 (16:43 +0200)]
bgpd: imported evpn rt5 routes copy igpmetric

when doing BGP over an IGP platform, the expectation is that
the path calculation for a given prefix takes into account the
igpmetric given by IGP.
This is true with prefixes obtained in a given BGP instance where
peering occurs. For instance, ipv4 unicast entries or l2vpn evpn
entries work this way. The igpmetric is obtained through nexthop
tracking, like below:

south-vm# show bgp nexthop
Current BGP nexthop cache:
 1.1.1.1 valid [IGP metric 10], #paths 1, peer 1.1.1.1
 2.2.2.2 valid [IGP metric 20], #paths 1, peer 2.2.2.2

The igp metric is taken into account when doing best path
selection, and only the entry with lowest igp wins.

[..]
*>i[5]:[0]:[32]:[5.5.5.5]
                    1.1.1.1                  0    100      0 ?
                    RT:65400:268435556 ET:8 Rmac:2e:22:6c:67:bb:73
* i                 2.2.2.2                  0    100      0 ?
                    RT:65400:268435556 ET:8 Rmac:f2:d3:68:4e:f4:ed

however, for imported EVPN RT5 entries, the igpmetric was not
copied from the parent path info. Fix it. In this way, the
imported route entries use the igpmetric of the parent pi.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
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
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 agoospfd: Summarised External LSA is not flushed in one scenario
Mobashshera Rasool [Mon, 16 Aug 2021 11:27:45 +0000 (04:27 -0700)]
ospfd: Summarised External LSA is not flushed in one scenario

Fix CI Failure test_ospf_type5_summary_tc45_p0

Problem Statement:
==================
Summarised LSA is not flushed in OSPFv2 in below scenario:
1. Configure summary-address in ospfv2
2. redistribute static and connected.
3. Check the LSAs are received on neighbor.
4. Now remove all OSPFv2 configs, so neighbor will still have the summarised LSA.
5. Configure router ospf with redistribute static and connected.
6. Check the DB, summarised LSA is present although the configuration is not present.
7. Now configure the summary-address and remove the configuration after sometime.
8. The summarised LSA will be still present.

RCA:
==================
When self originated LSA is received from the neighbor and that
LSA is summarised one, the LSA is refreshed but a flag is not set
due to which it was not able to remove it later.

Fix:
==================
Set the originated flag when refreshing summarised LSA.

Signed-off-by: Mobashshera Rasool <mrasool@vmware.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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 agoospf6d: GR helper configurations
rgirada [Thu, 1 Jul 2021 14:09:38 +0000 (07:09 -0700)]
ospf6d: GR helper configurations

Description:
Adding the following cli commands to enable/disable GR helper
functionality.
1. [no] graceful-restart helper-only [A.B.C.D]
2. [no] graceful-restart helper lsa-check-disable
3. [no] graceful-restart helper planned-only
4. [no] graceful-restart helper supported-grace-time (10-1800)

show commands:
show ipv6 ospf6 graceful-restart helper [detail] [json]

Signed-off-by: Rajesh Girada <rgirada@vmware.com>
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
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
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
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
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>