]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
3 years agoMerge pull request #7866 from kishorekunal01/fpm_dump_issue
Mark Stapp [Thu, 14 Jan 2021 19:13:31 +0000 (14:13 -0500)]
Merge pull request #7866 from kishorekunal01/fpm_dump_issue

zebra: Scale setup RMAC is send multiple time to fpm

3 years agoMerge pull request #7821 from donaldsharp/evpn_flag_dump
Mark Stapp [Thu, 14 Jan 2021 18:02:21 +0000 (13:02 -0500)]
Merge pull request #7821 from donaldsharp/evpn_flag_dump

Evpn flag dump

3 years agozebra: Scale setup RMAC is send multiple time to fpm
Kishore Kunal [Wed, 13 Jan 2021 22:16:34 +0000 (22:16 +0000)]
zebra: Scale setup RMAC is send multiple time to fpm

Thread zfpm_conn_up_thread_cb can Yield and send RMAC multiple
times to FPM.

Signed-off-by: Kishore Kunal <kishorekunal01@broadcom.com>
3 years agoMerge pull request #7712 from dslicenc/frr-reload-prefix-list-acl
Mark Stapp [Thu, 14 Jan 2021 14:11:30 +0000 (09:11 -0500)]
Merge pull request #7712 from dslicenc/frr-reload-prefix-list-acl

tools: ignore missing seq nums in prefix and access lists in frr-relo…

3 years agoMerge pull request #7746 from donaldsharp/eigrp_cleanup
Russ White [Wed, 13 Jan 2021 18:53:55 +0000 (13:53 -0500)]
Merge pull request #7746 from donaldsharp/eigrp_cleanup

Eigrp cleanup

3 years agoMerge pull request #7837 from ckishimo/tests_ospf
Donald Sharp [Wed, 13 Jan 2021 18:31:32 +0000 (13:31 -0500)]
Merge pull request #7837 from ckishimo/tests_ospf

tests: fix redistribute key in ospf tests

3 years agozebra: in zebra_evpn_mac.c use size_t for buffer length
Donald Sharp [Wed, 6 Jan 2021 13:40:16 +0000 (08:40 -0500)]
zebra: in zebra_evpn_mac.c use size_t for buffer length

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agozebra: Create a dump function for mac->flags and use it
Donald Sharp [Wed, 6 Jan 2021 13:37:52 +0000 (08:37 -0500)]
zebra: Create a dump function for mac->flags and use it

Create a function that can dump the mac->flags in human readable
output and convert all debugs to use it.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agozebra: Create function to dump MACIP flags
Donald Sharp [Tue, 5 Jan 2021 23:25:10 +0000 (18:25 -0500)]
zebra: Create function to dump MACIP flags

Create a function to dump MACIP flags and to use it.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7819 from donaldsharp/more_data_for_debug_dumps
Mark Stapp [Wed, 13 Jan 2021 18:06:23 +0000 (13:06 -0500)]
Merge pull request #7819 from donaldsharp/more_data_for_debug_dumps

zebra: Add ability to display human readable format re->flags and status

3 years agoMerge pull request #7818 from donaldsharp/ip_proto_denied
Mark Stapp [Wed, 13 Jan 2021 15:33:33 +0000 (10:33 -0500)]
Merge pull request #7818 from donaldsharp/ip_proto_denied

zebra: notify installing protocol when nexthops cannot be resolved

3 years agozebra: Add ability to display in human readable format re->flags and status
Donald Sharp [Tue, 5 Jan 2021 22:21:20 +0000 (17:21 -0500)]
zebra: Add ability to display in human readable format re->flags and status

The re->flags and re->status in debugs were being dumped as hex values.
I can never quickly decode this.  Here is an idea.  Let's let FRR do
it for me.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #6853 from mjstapp/fix_rib_dups
Donald Sharp [Wed, 13 Jan 2021 14:42:34 +0000 (09:42 -0500)]
Merge pull request #6853 from mjstapp/fix_rib_dups

zebra: reduce impact of route-update overload

3 years agotools: ignore missing seq nums in prefix and access lists in frr-reload.py
Don Slice [Tue, 12 Jan 2021 16:05:23 +0000 (11:05 -0500)]
tools: ignore missing seq nums in prefix and access lists in frr-reload.py

If frr.conf contains a prefix-list or access-list without a seq number,
frr-reload needs to be aware that it should not delete/add if the running
config contains a seq number.

Ticket: CM-32623
Signed-off-by: Don Slice <dslice@nvidia.com>
3 years agotools: apply black formatting changes to frr-reload.py
Don Slice [Tue, 12 Jan 2021 15:41:17 +0000 (10:41 -0500)]
tools: apply black formatting changes to frr-reload.py

Since new workflow instructions state to run black against
python change and it found formatting changes required that
were not part of my change set, committing those changes
separately.

Signed-off-by: Don Slice <dslice@nvidia.com>
3 years agoMerge pull request #7849 from gpnaveen/static_rte_test
Donatas Abraitis [Wed, 13 Jan 2021 07:09:38 +0000 (09:09 +0200)]
Merge pull request #7849 from gpnaveen/static_rte_test

tests: Static route cases with admin dist and tag.

3 years agoMerge pull request #7861 from mjstapp/fix_dev_doc_index_no
Donatas Abraitis [Wed, 13 Jan 2021 07:07:59 +0000 (09:07 +0200)]
Merge pull request #7861 from mjstapp/fix_dev_doc_index_no

doc: fix several issues, remind about 'no' in cli index statements

3 years agoMerge pull request #7748 from adrianomarto/bgp-listen-on-multiple-addresses
Donatas Abraitis [Wed, 13 Jan 2021 06:57:38 +0000 (08:57 +0200)]
Merge pull request #7748 from adrianomarto/bgp-listen-on-multiple-addresses

BGP daemon listen for connections on multiple addresses

3 years agodoc: fix sphinx warnings
Mark Stapp [Tue, 12 Jan 2021 18:31:07 +0000 (13:31 -0500)]
doc: fix sphinx warnings

Fix a couple of sphinx source processing warnings.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agodoc: add missing files to index.rst and subdir.am
Mark Stapp [Tue, 12 Jan 2021 18:30:14 +0000 (13:30 -0500)]
doc: add missing files to index.rst and subdir.am

Some missing doc files, add them.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agodoc: remind not to include 'no' in cli doc index statements
Mark Stapp [Tue, 12 Jan 2021 18:29:08 +0000 (13:29 -0500)]
doc: remind not to include 'no' in cli doc index statements

Remind folks not to include the 'no' in cli doc index lines.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agoMerge pull request #7707 from opensourcerouting/isisd-rlfa
Olivier Dugeon [Tue, 12 Jan 2021 18:25:15 +0000 (19:25 +0100)]
Merge pull request #7707 from opensourcerouting/isisd-rlfa

isisd, ldpd: add Remote LFA support

3 years agoMerge pull request #7439 from opensourcerouting/bgp-damp-profile2
Donald Sharp [Tue, 12 Jan 2021 16:45:41 +0000 (11:45 -0500)]
Merge pull request #7439 from opensourcerouting/bgp-damp-profile2

bgpd: BGP route-flap dampening profiles for peers and peer groups

3 years agodoc: remove 'no' from doc 'index' lines
Mark Stapp [Tue, 12 Jan 2021 16:34:42 +0000 (11:34 -0500)]
doc: remove 'no' from doc 'index' lines

Index based on the cli commands, not the possible 'no' form.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agoMerge pull request #7247 from ton31337/feature/enhanced_route_refresh_capability
Russ White [Tue, 12 Jan 2021 16:27:11 +0000 (11:27 -0500)]
Merge pull request #7247 from ton31337/feature/enhanced_route_refresh_capability

bgpd: Enhanced Route Refresh capability

3 years agoMerge pull request #7860 from mjstapp/fix_exec_perms
Quentin Young [Tue, 12 Jan 2021 16:26:39 +0000 (11:26 -0500)]
Merge pull request #7860 from mjstapp/fix_exec_perms

libs,nhrpd: remove exec perm

3 years agoMerge pull request #7733 from rgirada/ospf_json
Russ White [Tue, 12 Jan 2021 16:23:03 +0000 (11:23 -0500)]
Merge pull request #7733 from rgirada/ospf_json

ospfd: Adding authentication details to ospf interafce command o/p

3 years agoMerge pull request #7841 from volta-networks/fix_isis_mstyle_routes
Donald Sharp [Tue, 12 Jan 2021 13:51:07 +0000 (08:51 -0500)]
Merge pull request #7841 from volta-networks/fix_isis_mstyle_routes

isisd: ignore routes with incompatible metric style

3 years agoMerge pull request #7850 from mjstapp/build_dplane_plugin
Donald Sharp [Tue, 12 Jan 2021 13:43:53 +0000 (08:43 -0500)]
Merge pull request #7850 from mjstapp/build_dplane_plugin

zebra: build the sample dataplane plugin

3 years agolibs,nhrpd: remove exec perm
Mark Stapp [Tue, 12 Jan 2021 13:20:10 +0000 (08:20 -0500)]
libs,nhrpd: remove exec perm

Some source files got the exec bit set in a recent commit - undo
that.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agoMerge pull request #7687 from gpnaveen/ospf_p2mp
Russ White [Tue, 12 Jan 2021 13:03:33 +0000 (08:03 -0500)]
Merge pull request #7687 from gpnaveen/ospf_p2mp

tests: Adding ospf p2mp basic test.

3 years agoeigrpd: Cleanup eigrp_packet.h to our proper formatting
Donald Sharp [Tue, 12 Jan 2021 12:59:04 +0000 (07:59 -0500)]
eigrpd: Cleanup eigrp_packet.h to our proper formatting

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoeigrpd: Introduce eigrp_metric.[ch] and eigrp_types.h
Donnie Savage [Fri, 11 Dec 2020 22:05:59 +0000 (17:05 -0500)]
eigrpd: Introduce eigrp_metric.[ch] and eigrp_types.h

Add these file and introduce some new fundamental types

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Donnie Savage <diivious@hotmail.com>
3 years agoeigrpd: Rename nexthop_entry and prefix_entry to better names
Donnie Savage [Fri, 11 Dec 2020 21:09:47 +0000 (16:09 -0500)]
eigrpd: Rename nexthop_entry and prefix_entry to better names

Rename struct eigrp_nexthop_entry to struct eigrp_route_descriptor
Rename struct eigrp_prefix_entry to struct eigrp_prefix_descriptor

Fix all the associated function names as well.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Donnie SAvage <diivious@hotmail.com>
3 years agoeigrpd: Create eigrp_yang.h and move stuff around
Donnie Savage [Fri, 11 Dec 2020 20:27:17 +0000 (15:27 -0500)]
eigrpd: Create eigrp_yang.h and move stuff around

Move the prototypes for eigrp_yang that are in eigrpd.h
into eigrp_yang.h.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Donnie Savage <diivious@hotmail.com>
3 years agoeigrpd: Create eigrp_cli.h and move forward declarations
Donnie Savage [Fri, 11 Dec 2020 20:24:02 +0000 (15:24 -0500)]
eigrpd: Create eigrp_cli.h and move forward declarations

Move the forward declarations for eigrp_cli.c from eigrpd.h
into eigrp_cli.h.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Donnie Savage <diivious@hotmail.com>
3 years agoeigrpd: Move `struct eigrp_master` to eigrpd.h
Donnie Savage [Fri, 11 Dec 2020 20:16:58 +0000 (15:16 -0500)]
eigrpd: Move `struct eigrp_master` to eigrpd.h

The `struct eigrp_master` data structure belongs in the
eigrpd.h file.  Move it over, in addition start forward
thinking about the different TLV versions so we can
track them better in the future.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Signed-off-by: Donnie Savage <diivious@hotmail.com>
3 years agoMerge pull request #7670 from ton31337/fix/bgpd_nexhop_handling_for_zebra
Russ White [Tue, 12 Jan 2021 12:32:19 +0000 (07:32 -0500)]
Merge pull request #7670 from ton31337/fix/bgpd_nexhop_handling_for_zebra

bgpd: Handle IPv6 prefixes with IPv4 nexthops for zebra

3 years agotests: Static route cases with admin dist and tag.
nguggarigoud [Mon, 11 Jan 2021 13:35:05 +0000 (19:05 +0530)]
tests: Static route cases with admin dist and tag.

1. Adding api to verify ip nht command.
2. 5 cases of static routes with admin dist and tag
3. Run time = 89Secs

Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
3 years agotests: move redistribute function into lib
ckishimo [Fri, 8 Jan 2021 15:10:38 +0000 (16:10 +0100)]
tests: move redistribute function into lib

Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
3 years agotests: fix ospf cosmetic output
ckishimo [Thu, 7 Jan 2021 22:30:32 +0000 (23:30 +0100)]
tests: fix ospf cosmetic output

Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
3 years agotests: remove old def for redistribution in ospf
ckishimo [Fri, 8 Jan 2021 09:36:31 +0000 (10:36 +0100)]
tests: remove old def for redistribution in ospf

Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
3 years agotests: use new def for redistribution in ospf
ckishimo [Fri, 8 Jan 2021 09:34:50 +0000 (10:34 +0100)]
tests: use new def for redistribution in ospf

Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
3 years agotests: add new def for redistribution in ospf
ckishimo [Fri, 8 Jan 2021 09:25:49 +0000 (10:25 +0100)]
tests: add new def for redistribution in ospf

Signed-off-by: ckishimo <carles.kishimoto@gmail.com>
3 years agotests: Adding ospf p2mp basic test.
nguggarigoud [Tue, 8 Dec 2020 10:17:40 +0000 (15:47 +0530)]
tests: Adding ospf p2mp basic test.

This test verifies basic p2mp test

Signed-off-by: nguggarigoud <nguggarigoud@vmware.com>
3 years agozebra: add the sample dataplane plugin to the build
Mark Stapp [Mon, 11 Jan 2021 21:33:55 +0000 (16:33 -0500)]
zebra: add the sample dataplane plugin to the build

Build the sample dataplane plugin with debug/dev builds.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agozebra: remove unused local in dplane sample plugin
Mark Stapp [Mon, 11 Jan 2021 21:33:27 +0000 (16:33 -0500)]
zebra: remove unused local in dplane sample plugin

Remove an unused local in the sample dataplane plugin.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agozebra: notify installing protocol when nexthops cannot be resolved
Donald Sharp [Tue, 5 Jan 2021 20:56:12 +0000 (15:56 -0500)]
zebra: notify installing protocol when nexthops cannot be resolved

In the case where a routes nexthops cannot be resolved as part
of route processing, immmediately notify the upper level protocol
that their routes failed to install if they are interested in
being informed about this issue.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7828 from mobash-rasool/pim-fixes-3
Donald Sharp [Mon, 11 Jan 2021 14:51:24 +0000 (09:51 -0500)]
Merge pull request #7828 from mobash-rasool/pim-fixes-3

pimd: SPT-bit is not set to false as per RFC section in one flow

3 years agoMerge pull request #7823 from donaldsharp/zebra_delay_timer
Donatas Abraitis [Mon, 11 Jan 2021 14:46:23 +0000 (16:46 +0200)]
Merge pull request #7823 from donaldsharp/zebra_delay_timer

Zebra delay timer

3 years agoMerge pull request #7847 from opensourcerouting/fix/skip-sr-te-topotest
Donald Sharp [Mon, 11 Jan 2021 14:44:46 +0000 (09:44 -0500)]
Merge pull request #7847 from opensourcerouting/fix/skip-sr-te-topotest

pathd: Skip SR-TE topotests if pathd has been disabled

3 years agoMerge pull request #7830 from volta-networks/misc_fixes_2021
Donatas Abraitis [Mon, 11 Jan 2021 13:18:18 +0000 (15:18 +0200)]
Merge pull request #7830 from volta-networks/misc_fixes_2021

Misc fixes (bgpd, pathd, tools)

3 years agoMerge pull request #7845 from cgoncalves/fix-broken-links
Donatas Abraitis [Mon, 11 Jan 2021 13:06:27 +0000 (15:06 +0200)]
Merge pull request #7845 from cgoncalves/fix-broken-links

Fix BGP and resource certification reference links

3 years agopathd: Skip SR-TE topotests if pathd has been disabled
Sebastien Merle [Mon, 11 Jan 2021 11:48:08 +0000 (12:48 +0100)]
pathd: Skip SR-TE topotests if pathd has been disabled

 * If pathd binary is not found, skip the SR-TE topotests.
 * Fix some compilation warnings when pathd is not built.

Signed-off-by: Sebastien Merle <sebastien@netdef.org>
3 years agodoc: fix reference links
Carlos Goncalves [Mon, 11 Jan 2021 09:42:19 +0000 (10:42 +0100)]
doc: fix reference links

The current securing BGP and resource certification reference links lead
to a page not found. This patch fixes that by pointing to their
corresponding PDF format resources.

Signed-off-by: Carlos Goncalves <cgoncalves@redhat.com>
3 years agobgpd: fix removal of rd vpn export
Emanuele Di Pascale [Thu, 7 Jan 2021 14:23:44 +0000 (15:23 +0100)]
bgpd: fix removal of rd vpn export

a missing '!' operator meant that correct rd strings were being
rejected in the destroy callback, making it impossible to remove
once configured.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
3 years agobgpd: fix unsetting of multipath as-set
Emanuele Di Pascale [Thu, 7 Jan 2021 13:46:59 +0000 (14:46 +0100)]
bgpd: fix unsetting of multipath as-set

in the nortbound callback for the boolean leaf multi-path-as-set, the
actual value of the leaf was being ignored. As a result, going from
as-set to no-as-set was having no effect.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
3 years agotests: tests for bgpd listing on multiple addresses
Adriano Marto Reis [Sun, 3 Jan 2021 05:02:29 +0000 (15:02 +1000)]
tests: tests for bgpd listing on multiple addresses

* Added a new topotest to test bgpd listening on multiple addresses.
* Updated the existing bgpd tests according to the parameter added to
bgp_master_init.

Signed-off-by: "Adriano Marto Reis" <adrianomarto@gmail.com>
3 years agodoc: Explaining that bgpd can listen on multiple addresses
Adriano Marto Reis [Sun, 3 Jan 2021 04:58:55 +0000 (14:58 +1000)]
doc: Explaining that bgpd can listen on multiple addresses

Updated the documentation clarifying that multiple addresses can be
specifyed via -l option.

Signed-off-by: "Adriano Marto Reis" <adrianomarto@gmail.com>
3 years agobgpd: bgpd listening on multiple addresses
Adriano Marto Reis [Sun, 3 Jan 2021 04:56:48 +0000 (14:56 +1000)]
bgpd: bgpd listening on multiple addresses

Changed bgpd so multiple IP addresses can be specified via -l option.

Signed-off-by: "Adriano Marto Reis" <adrianomarto@gmail.com>
3 years agoMerge pull request #7810 from imzyxwvu/no-deforig
Donatas Abraitis [Mon, 11 Jan 2021 08:09:41 +0000 (10:09 +0200)]
Merge pull request #7810 from imzyxwvu/no-deforig

bgpd: Fix default-originate clearing from peer-groups.

3 years agopimd: SPT-bit is not set to false as per RFC section in one flow
Mobashshera Rasool [Thu, 7 Jan 2021 10:03:07 +0000 (10:03 +0000)]
pimd: SPT-bit is not set to false as per RFC section in one flow

1. As per RFC 4601 Sec 4.5.7:
* JoinDesired(S,G) -> False, set SPTbit to false.

2. Change the debug type.

Signed-off-by: Mobashshera Rasool <mrasool@vmware.com>
3 years agoMerge pull request #7652 from adharkar/frr-vni_switch
Donald Sharp [Sun, 10 Jan 2021 23:44:49 +0000 (18:44 -0500)]
Merge pull request #7652 from adharkar/frr-vni_switch

zebra: L3VNI to L2VNI conversion is not handled

3 years agoMerge pull request #7747 from reubendowle/fixes/nhrpd
Donald Sharp [Sun, 10 Jan 2021 23:43:20 +0000 (18:43 -0500)]
Merge pull request #7747 from reubendowle/fixes/nhrpd

nhrpd fixes

3 years agoMerge pull request #7751 from mobash-rasool/igmp-fixes
Donald Sharp [Sat, 9 Jan 2021 22:40:31 +0000 (17:40 -0500)]
Merge pull request #7751 from mobash-rasool/igmp-fixes

pimd: IGMP conformance 5.10 test case is failing

3 years agoMerge pull request #7753 from mobash-rasool/pim-fixes
Donald Sharp [Sat, 9 Jan 2021 22:36:08 +0000 (17:36 -0500)]
Merge pull request #7753 from mobash-rasool/pim-fixes

pimd: when node changes from non-DR to DR S,G entry not created

3 years agoMerge pull request #7756 from pjdruddy/bgplu-fixes
Donald Sharp [Sat, 9 Jan 2021 20:48:22 +0000 (15:48 -0500)]
Merge pull request #7756 from pjdruddy/bgplu-fixes

Bgplu fixes

3 years agoMerge pull request #7787 from deastoe/fpm-work-ready-fixes
Donald Sharp [Sat, 9 Jan 2021 20:38:46 +0000 (15:38 -0500)]
Merge pull request #7787 from deastoe/fpm-work-ready-fixes

dplane_fpm_nl: routes stuck with 'q' flag (revisited)

3 years agoMerge pull request #7785 from volta-networks/fix_show_pce_confidence_for_pr
Donald Sharp [Sat, 9 Jan 2021 20:36:56 +0000 (15:36 -0500)]
Merge pull request #7785 from volta-networks/fix_show_pce_confidence_for_pr

Add level of confidence to show pcep-session

3 years agoMerge pull request #7775 from vishaldhingra/pim
Donald Sharp [Sat, 9 Jan 2021 20:34:18 +0000 (15:34 -0500)]
Merge pull request #7775 from vishaldhingra/pim

pimd : Added the command to clear the pim bsr data.

3 years agoisisd: ignore routes w/ incompatible metric style
Emanuele Di Pascale [Fri, 8 Jan 2021 14:55:37 +0000 (15:55 +0100)]
isisd: ignore routes w/ incompatible metric style

Currently the transition metric style is redundant because isis will
always read both reachability TLVs regardless of the configured
metric style. Correct this by only considering TLVs matching our
configuration.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
3 years agotools: fix pce-config removal
Emanuele Di Pascale [Tue, 22 Dec 2020 17:40:47 +0000 (18:40 +0100)]
tools: fix pce-config removal

make sure that the order in which the pcep-related commands are
removed by frr-reload.py is the correct one, i.e., pce followed
by pce-config followed by pcc.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
3 years agopathd, tools: fix peer preference config
Emanuele Di Pascale [Tue, 22 Dec 2020 16:00:39 +0000 (17:00 +0100)]
pathd, tools: fix peer preference config

on one hand, the default value for a peer preference was always being
displayed, and on the other there was some code in frr-reload.py which
was attempting to add a default value to match this behavior, and which
was incorrectly overriding a specified preference. Fix this by removing
this code and making pathd behave like other daemons in this respect,
i.e. not displaying the default value.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
3 years agotools: add bfdd to frr-reload.py daemons list
Emanuele Di Pascale [Tue, 22 Dec 2020 17:20:14 +0000 (18:20 +0100)]
tools: add bfdd to frr-reload.py daemons list

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
3 years agoMerge pull request #7839 from ton31337/feature/print_large-community_dump
Donald Sharp [Sat, 9 Jan 2021 12:25:59 +0000 (07:25 -0500)]
Merge pull request #7839 from ton31337/feature/print_large-community_dump

bgpd: Print large-community inside bgp_dump_attr()

3 years agoMerge pull request #7835 from donaldsharp/cleanup_support_bundle
Donatas Abraitis [Sat, 9 Jan 2021 07:14:16 +0000 (09:14 +0200)]
Merge pull request #7835 from donaldsharp/cleanup_support_bundle

Cleanup support bundle

3 years agobgpd: Print large-community inside bgp_dump_attr()
Donatas Abraitis [Fri, 8 Jan 2021 14:09:34 +0000 (16:09 +0200)]
bgpd: Print large-community inside bgp_dump_attr()

Missing large communities.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
3 years agoMerge pull request #7842 from donaldsharp/wait_for_convergence
Donatas Abraitis [Sat, 9 Jan 2021 07:09:25 +0000 (09:09 +0200)]
Merge pull request #7842 from donaldsharp/wait_for_convergence

tests: Wait for bgp convergence *after* we re-add the interfaces

3 years agoMerge pull request #7836 from volta-networks/fix_isis_net
Donald Sharp [Sat, 9 Jan 2021 04:01:58 +0000 (23:01 -0500)]
Merge pull request #7836 from volta-networks/fix_isis_net

isisd: When last area address is removed, resign if we were DR

3 years agozebra: zebra route-map delay-timer is global not per vrf
Donald Sharp [Wed, 6 Jan 2021 16:29:43 +0000 (11:29 -0500)]
zebra: zebra route-map delay-timer is global not per vrf

The zebra route-map delay timer value is a global value
not a per vrf change.  As such we should only print it
out one time.

We are seeing this:

zebra route-map delay-timer 33
 exit-vrf
zebra route-map delay-timer 33

When we have 2 vrf's configured.

Fix the code to only write it out for the default vrf

Ticket: CM-32888
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agozebra: Remove uncalled function
Donald Sharp [Wed, 6 Jan 2021 16:13:43 +0000 (11:13 -0500)]
zebra: Remove uncalled function

Remove the dead function zebra_route_map_write_delay_timer

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #7803 from ton31337/fix/validate_community_list
Donald Sharp [Sat, 9 Jan 2021 02:05:32 +0000 (21:05 -0500)]
Merge pull request #7803 from ton31337/fix/validate_community_list

bgpd: Validate community list if they are not malformed

3 years agotests: Wait for bgp convergence *after* we re-add the interfaces
Donald Sharp [Fri, 8 Jan 2021 21:52:41 +0000 (16:52 -0500)]
tests: Wait for bgp convergence *after* we re-add the interfaces

In test_bgp_mutli_vrf_topo2.py it's clear that we remove then
re-add the vrf interfaces.  Then the test was immediately
checking to ensure that the routes were available.

BGP needs time to reconverge.  Let's ensure that first.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agotools: Cleanup some zebra section of the support bundle
Donald Sharp [Fri, 8 Jan 2021 12:44:42 +0000 (07:44 -0500)]
tools: Cleanup some zebra section of the support bundle

a) Add some useful commands
b) Remove `show error all` this just dumps the error codes.  If
we know the version we don't need this.  Additionally this is
rather large.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agotools: Cleanup bgp commands in the support bundle
Donald Sharp [Fri, 8 Jan 2021 12:42:08 +0000 (07:42 -0500)]
tools: Cleanup bgp commands in the support bundle

Add some missing commands ( I am sure that there are more useful ones to )
Cleanup to use the modern non-deprecated syntax in case anyone runs across
this.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoisisd: remove two overly verbose LFA debug messages
Renato Westphal [Thu, 10 Dec 2020 23:43:11 +0000 (20:43 -0300)]
isisd: remove two overly verbose LFA debug messages

These two debug messages are so verbose to a point they impact
performance when testing RLFA/TI-LFA on large-scale networks. Remove
them since they aren't really useful.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
3 years agoisisd: fix logging of uninitialized data in the TI-LFA code
Renato Westphal [Tue, 8 Dec 2020 14:54:32 +0000 (11:54 -0300)]
isisd: fix logging of uninitialized data in the TI-LFA code

Always call vid2string() whenever necessary instead of trying to be
too clever and call it only once. The original assumption was that
"buf" only needed to be initialized when LFA debugging was enabled,
but we also need that buffer when logging one error message.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
3 years agodoc: document new IS-IS RLFA commands
Renato Westphal [Tue, 8 Dec 2020 00:15:55 +0000 (21:15 -0300)]
doc: document new IS-IS RLFA commands

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
3 years agotests: add IS-IS RLFA topotest
Renato Westphal [Mon, 7 Dec 2020 16:17:42 +0000 (13:17 -0300)]
tests: add IS-IS RLFA topotest

Add new RLFA topotest that tests all RLFA configuration knobs and
how isisd and ldpd react to various configuration changes that can
occur in the network.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
3 years agotests: add remote LFA unit tests
Renato Westphal [Tue, 1 Dec 2020 03:12:08 +0000 (00:12 -0300)]
tests: add remote LFA unit tests

Extend the existing SPF unit testing infrastructure so that it can
test RLFA as well.

These new unit tests are useful to test the RLFA PQ node
computation on several different network topologies in a timely
manner. Artificial LDP labels (starting from 50000) are used to
activate the computed RLFAs.

It's worth mentioning that the computed backup routing tables
contain both local LFAs and remote LFAs, as running RLFA separately
isn't possible.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
3 years agoisisd: implement Remote LFA
Renato Westphal [Thu, 26 Nov 2020 02:39:09 +0000 (23:39 -0300)]
isisd: implement Remote LFA

Remote LFA (RFC 7490) is an extension to the base LFA mechanism
that uses dynamically determined tunnels to extend the IP-FRR
protection coverage.

RLFA is similar to TI-LFA in that it computes a post-convergence
SPT (with the protected interface pruned from the network topology)
and the P/Q spaces based on that SPT. There are a few differences
however:
* RLFAs can push at most one label, so the P/Q spaces need to
  intersect otherwise the destination can't be protected (the
  protection coverage is topology dependent).
* isisd needs to interface with ldpd to obtain the labels it needs to
  create a tunnel to the PQ node. That interaction needs to be done
  asynchronously to prevent blocking the daemon for too long. With
  TI-LFA all required labels are already available in the LSPDB.

RLFA and TI-LFA have more similarities than differences though,
and thanks to that both features share a lot of code.

Limitations:
* Only RLFA link protection is implemented. The algorithm used
  to find node-protecting RLFAs (RFC 8102) is too CPU intensive and
  doesn't always work. Most vendors implement RLFA link protection
  only.
* RFC 7490 says it should be a local matter whether the repair path
  selection policy favors LFA repairs over RLFA repairs. It might be
  desirable, for instance, to prefer RLFAs that satisfy the downstream
  condition over LFAs that don't. In this implementation, however,
  RLFAs are only computed for destinations that can't be protected
  by local LFAs.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
3 years agoyang, isisd: add RLFA nodes, skeleton callbacks and CLI commands
Renato Westphal [Thu, 26 Nov 2020 00:01:14 +0000 (21:01 -0300)]
yang, isisd: add RLFA nodes, skeleton callbacks and CLI commands

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
3 years agoisisd: fix LFA command to use correct operations
Renato Westphal [Sun, 6 Dec 2020 01:10:54 +0000 (22:10 -0300)]
isisd: fix LFA command to use correct operations

The "load-sharing" node is a boolean leaf that has a default
value. As such, it doesn't make sense to either create or delete
it. That node always exists in the configuration tree. Its value
should only be modified. Change the corresponding CLI wrapper
command to reflect that fact.

This commit doesn't introduce any change of behavior as the NB API
maps create/destroy edit operations to modify operations whenever
that makes sense. However it's better to not rely on that behavior
and always use the correct operations in the CLI commands.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
3 years agoldpd: add support for RLFA clients
Renato Westphal [Sun, 6 Dec 2020 00:45:52 +0000 (21:45 -0300)]
ldpd: add support for RLFA clients

Add an API that allows IGP client daemons to register/unregister
RLFAs with ldpd.

IGP daemons need to be able to query the LDP labels needed by RLFAs
and monitor label updates that might affect those RLFAs. This is
similar to the NHT mechanism used by bgpd to resolve and monitor
recursive nexthops.

This API is based on the following ZAPI opaque messages:
* LDP_RLFA_REGISTER: used by IGP daemons to register an RLFA with ldpd.
* LDP_RLFA_UNREGISTER_ALL: used by IGP daemons to unregister all of
  their RLFAs with ldpd.
* LDP_RLFA_LABELS: used by ldpd to send RLFA labels to the registered
  clients.

For each RLFA, ldpd needs to return the following labels:
* Outer label(s): the labels advertised by the adjacent routers to
  reach the PQ node;
* Inner label: the label advertised by the PQ node to reach the RLFA
  destination.

For the inner label, ldpd automatically establishes a targeted
neighborship with the PQ node if one doesn't already exist. For that
to work, the PQ node needs to be configured to accept targeted hello
messages. If that doesn't happen, ldpd doesn't send a response to
the IGP client daemon which in turn won't be able to activate the
previously computed RLFA.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
3 years agoldpd: detect when route received from zebra hasn't changed
Renato Westphal [Sat, 5 Dec 2020 20:10:04 +0000 (17:10 -0300)]
ldpd: detect when route received from zebra hasn't changed

Add some code to detect when a route received from zebra hasn't
changed and ignore the notification in that case, preventing ldpd
from sending unnecessary label mappings.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
3 years agoMerge pull request #7816 from pjdruddy/revert_labelmanager_statics
Renato Westphal [Fri, 8 Jan 2021 23:57:25 +0000 (20:57 -0300)]
Merge pull request #7816 from pjdruddy/revert_labelmanager_statics

Revert labelmanager statics

3 years agoMerge pull request #7838 from ton31337/fix/force_updates_on_reset_out
Donald Sharp [Fri, 8 Jan 2021 22:34:37 +0000 (17:34 -0500)]
Merge pull request #7838 from ton31337/fix/force_updates_on_reset_out

bgpd: Force BGP updates when triggering reset out

3 years agoospfd: Adding authentication details to ospf interafce command o/p
rgirada [Mon, 14 Dec 2020 16:23:11 +0000 (08:23 -0800)]
ospfd: Adding authentication details to ospf interafce command o/p

Description:
Display configured ospf authentication details in
"show ip ospf interface" command o/p.

Signed-off-by: Rajesh Girada <rgirada@vmware.com>
3 years agobgpd: Force BGP updates when triggering reset out
Donatas Abraitis [Fri, 8 Jan 2021 15:03:39 +0000 (17:03 +0200)]
bgpd: Force BGP updates when triggering reset out

When adding/removing some peer's flag we need to make sure we FORCE updates
to avoid suppressing critical updates.

Like entering `no neighbor x.x.x.x send-community large` would suppress
updates by default and another side will have stale large communities.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
3 years agoisisd: When last area address is removed, resign if we were DR
Karen Schoener [Tue, 5 Jan 2021 21:27:32 +0000 (16:27 -0500)]
isisd: When last area address is removed, resign if we were DR

When last area address is removed, resign if we were DR.

This fixes an issue where: when the ISIS area address is changed, ISIS fails
to elect a new DR.

Signed-off-by: Karen Schoener <karen@voltanet.io>