]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
3 years agolib: fix checking for duplicated access-list entries
Igor Ryzhov [Mon, 29 Mar 2021 18:26:28 +0000 (21:26 +0300)]
lib: fix checking for duplicated access-list entries

Restore the behavior that was before the NB conversion.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoMerge pull request #8326 from idryzhov/hide-show-config
Renato Westphal [Wed, 24 Mar 2021 22:40:13 +0000 (19:40 -0300)]
Merge pull request #8326 from idryzhov/hide-show-config

vtysh: hide "show configuration running" command

3 years agoMerge pull request #8250 from idryzhov/fix-nb-running-get-entry
Renato Westphal [Wed, 24 Mar 2021 22:39:09 +0000 (19:39 -0300)]
Merge pull request #8250 from idryzhov/fix-nb-running-get-entry

Fix aborts when using nb_running_get_entry during validation stage

3 years agoMerge pull request #8331 from mjstapp/fix_dev_doc_pip
Quentin Young [Wed, 24 Mar 2021 20:52:38 +0000 (20:52 +0000)]
Merge pull request #8331 from mjstapp/fix_dev_doc_pip

doc: fix url for pip 2 in dev doc

3 years agodoc: fix url for pip 2 in dev doc
Mark Stapp [Wed, 24 Mar 2021 20:21:49 +0000 (16:21 -0400)]
doc: fix url for pip 2 in dev doc

Use updated url for python2 version of pip.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agoMerge pull request #8290 from adharkar/frr-es_rt
Patrick Ruddy [Wed, 24 Mar 2021 18:10:37 +0000 (18:10 +0000)]
Merge pull request #8290 from adharkar/frr-es_rt

bgpd: Update EVPN type-1 routes when VNI RT changes

3 years agoMerge pull request #8318 from qlyoung/improve-lua-autoconf-detection
David Lamparter [Wed, 24 Mar 2021 14:05:01 +0000 (15:05 +0100)]
Merge pull request #8318 from qlyoung/improve-lua-autoconf-detection

configure.ac: better lua detection

3 years agoMerge pull request #8078 from idryzhov/fix-zebra-vni
Rafael Zalamena [Wed, 24 Mar 2021 13:32:44 +0000 (13:32 +0000)]
Merge pull request #8078 from idryzhov/fix-zebra-vni

zebra: fix vni configuration in default vrf

3 years agoMerge pull request #8325 from idryzhov/fix-ip-router-isis
David Lamparter [Wed, 24 Mar 2021 11:13:07 +0000 (12:13 +0100)]
Merge pull request #8325 from idryzhov/fix-ip-router-isis

isisd: fix extra space after "ip router isis"

3 years agovtysh: hide "show configuration running" command
Igor Ryzhov [Wed, 24 Mar 2021 10:16:15 +0000 (13:16 +0300)]
vtysh: hide "show configuration running" command

This command is currently useful only for developers.
Let's hide it to not confuse end users by having both
"show runnning-config" and "show configuration running".

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoMerge pull request #8203 from opensourcerouting/ospf-bfd-napi
Igor Ryzhov [Wed, 24 Mar 2021 07:36:48 +0000 (10:36 +0300)]
Merge pull request #8203 from opensourcerouting/ospf-bfd-napi

ospfd,doc,topotests: rework OSPFv2 BFD integrantion

3 years agoMerge pull request #8184 from opensourcerouting/bfd-bgp-napi
Igor Ryzhov [Wed, 24 Mar 2021 07:36:26 +0000 (10:36 +0300)]
Merge pull request #8184 from opensourcerouting/bfd-bgp-napi

bgpd,lib: rework BGP BFD integration

3 years agoisisd: fix extra space after "ip router isis"
Igor Ryzhov [Wed, 24 Mar 2021 07:30:36 +0000 (10:30 +0300)]
isisd: fix extra space after "ip router isis"

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoMerge pull request #8319 from qlyoung/doc-remove-old-index-ospf6-spf-tree
Igor Ryzhov [Wed, 24 Mar 2021 07:01:16 +0000 (10:01 +0300)]
Merge pull request #8319 from qlyoung/doc-remove-old-index-ospf6-spf-tree

doc: remove extraneous .. index:: in ospf6d.rst

3 years agodoc: remove extraneous .. index:: in ospf6d.rst
Quentin Young [Tue, 23 Mar 2021 19:36:27 +0000 (19:36 +0000)]
doc: remove extraneous .. index:: in ospf6d.rst

And delete some trailing whitespace

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
3 years agoconfigure.ac: better lua detection
Quentin Young [Tue, 23 Mar 2021 19:20:38 +0000 (19:20 +0000)]
configure.ac: better lua detection

Make sure to constrain the Lua autoconf search to
Lua 5.3 interpreter and libraries.

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
3 years agoMerge pull request #8261 from opensourcerouting/log-ids
Russ White [Tue, 23 Mar 2021 15:46:41 +0000 (11:46 -0400)]
Merge pull request #8261 from opensourcerouting/log-ids

lib: output unique IDs in log messages

3 years agobgpd: Update EVPN type-1 routes when VNI RT changes
Ameya Dharkar [Fri, 19 Mar 2021 01:34:45 +0000 (18:34 -0700)]
bgpd: Update EVPN type-1 routes when VNI RT changes

1. When VNI export RT changes, for each local es_evi, update local
EAD/ES and EAD/EVI routes and advertise.

2. When VNI import RT changes, uninstall all type-1 routes imported in
the VNI and import routes carrying the updated RT.

Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
3 years agobgpd: improve BFD with timers configuration
Rafael Zalamena [Tue, 23 Mar 2021 15:19:20 +0000 (12:19 -0300)]
bgpd: improve BFD with timers configuration

Move `bgp_peer_config_apply` outside `bgp_peer_configure_bfd` (and
document it) so we only call the session installation once with one
set of timers. It also makes all calls of that function
equal (e.g. always calls `bgp_peer_config_apply` afterwards).

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agodoc: document new BGP debug option
Rafael Zalamena [Fri, 5 Mar 2021 10:35:54 +0000 (07:35 -0300)]
doc: document new BGP debug option

Let user know what the debug knob does.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agobgpd: add debug option for BFD
Rafael Zalamena [Mon, 1 Mar 2021 19:07:28 +0000 (16:07 -0300)]
bgpd: add debug option for BFD

Add new BGP debug option to enable BFD related debugging messages.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agobgpd: rework BFD integration
Rafael Zalamena [Fri, 26 Feb 2021 19:50:51 +0000 (16:50 -0300)]
bgpd: rework BFD integration

Remove old BFD API usage and replace it with the new one.

Highlights:

 - More shared code: the daemon gets notified with callbacks instead of
   having to roll its own code to find the notified sessions.

 - Less code to integrate with BFD.

 - Remove hidden commands to configure single / multi hop. Use
   protocol data instead.

   BGP can determine if a peer is single/multi hop according to the
   following criteria:

    a. If the IP address is a link-local address (single hop)

    b. The network is shared with peer (single hop)

    c. BGP is configured for eBGP multi hop / TTL security (multi hop)

 - Respect the configuration hierarchy:

    a. Peer configuration take precendence over peer-group
       configuration.

    b. When peer group configuration is removed, reset peer
       BFD configurations to defaults (unless peer had specific
       configs).

       Example:

         neighbor foo peer-group
         neighbor foo bfd profile X
         neighbor 192.168.0.2 peer-group foo
         neighbor 192.168.0.2 bfd
         ! If peer-group is removed the profile configuration gets
         ! removed from peer 192.168.0.2, but BFD will still enabled
         ! because of the neighbor specific bfd configuration.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agobgpd: remove cumulus specific code
Rafael Zalamena [Fri, 26 Feb 2021 19:51:00 +0000 (16:51 -0300)]
bgpd: remove cumulus specific code

The BFD function `bgp_bfd_is_peer_multihop` will no longer exist and now
both code paths are equal.

Longer explanation:
Cumulus was previously using the BFD function to help determine whether a
peer is multi hop or not, because there is a configuration to set BFD
to use single or multi hop.

Current BFD code can automatically pick between single/multi hop by
using the protocol information and so it is a good idea to have that
tested/used than relying on yet another duplicated information.

(BFD extracts the TTL information from protocol and selects
single/multi hop based on that)

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agolib: small BFD session notifier improvement
Rafael Zalamena [Tue, 2 Mar 2021 11:52:35 +0000 (08:52 -0300)]
lib: small BFD session notifier improvement

Cache current monotime to avoid unnecessary calls.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agolib: new BFD integration API
Rafael Zalamena [Wed, 26 Aug 2020 20:08:41 +0000 (17:08 -0300)]
lib: new BFD integration API

New BFD protocol integration API with abstractions to fix most common
protocol integration errors:

 - Set address family together with the source/destination addresses

 - Set the TTL together with the single/multi hop option

 - Set/unset profile/interface easily

 - Keep the arguments so we don't have to rebuild them every time

 - Install/uninstall functions that keep track of current state so the
  daemon doesn't have to

 - Reinstall when critical configuration changes (address, multi hop
   etc...)

 - Reconfigure BFD when the daemon restarts automatically

 - Automatically calls the user defined callback for session update

 - Shutdown handler for all protocols

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agoMerge pull request #8253 from opensourcerouting/topotest-python3-backports
Russ White [Tue, 23 Mar 2021 15:25:35 +0000 (11:25 -0400)]
Merge pull request #8253 from opensourcerouting/topotest-python3-backports

tests: iproute2 VRF capability check for topotests

3 years agoMerge pull request #8271 from idryzhov/fix-show-ip-ospf-database
Russ White [Tue, 23 Mar 2021 15:19:32 +0000 (11:19 -0400)]
Merge pull request #8271 from idryzhov/fix-show-ip-ospf-database

ospfd: fix "show ip ospf database" issues

3 years agoMerge pull request #8312 from pjdruddy/update-topotest-snmp-install-doc
Donatas Abraitis [Tue, 23 Mar 2021 14:41:20 +0000 (16:41 +0200)]
Merge pull request #8312 from pjdruddy/update-topotest-snmp-install-doc

doc: add libsnmp-dev install line

3 years agoMerge pull request #8305 from donaldsharp/bgp_ll_ifp_change
Russ White [Tue, 23 Mar 2021 14:08:18 +0000 (10:08 -0400)]
Merge pull request #8305 from donaldsharp/bgp_ll_ifp_change

bgpd: Reset LLA NHT's interface if there is a change

3 years agoMerge pull request #8307 from opensourcerouting/mtypes-cleanup-20210322
Russ White [Tue, 23 Mar 2021 14:07:28 +0000 (10:07 -0400)]
Merge pull request #8307 from opensourcerouting/mtypes-cleanup-20210322

isisd, eigrpd, pathd: clean up & drop *_memory.[ch] files, make a whole bunch static

3 years agoMerge pull request #8120 from ton31337/feature/bgp_ipv6_default_activated
Russ White [Tue, 23 Mar 2021 13:36:43 +0000 (09:36 -0400)]
Merge pull request #8120 from ton31337/feature/bgp_ipv6_default_activated

bgpd: Activate ipv6-unicast for peer automatically if globally defined

3 years agoospfd: fix checkpatch warnings
Rafael Zalamena [Tue, 23 Mar 2021 12:29:24 +0000 (09:29 -0300)]
ospfd: fix checkpatch warnings

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agodoc: document new OSPF debug option
Rafael Zalamena [Fri, 5 Mar 2021 10:45:59 +0000 (07:45 -0300)]
doc: document new OSPF debug option

Let user know what does the BFD debug knob does.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agoospfd: add debug option for BFD
Rafael Zalamena [Thu, 4 Mar 2021 18:15:00 +0000 (15:15 -0300)]
ospfd: add debug option for BFD

Add specialized debug option for BFD which also enables library debugging.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agotopotests: test OSPF BFD profile
Rafael Zalamena [Thu, 4 Mar 2021 14:11:01 +0000 (11:11 -0300)]
topotests: test OSPF BFD profile

Use BFD profiles in test to make sure it doesn't break.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agodoc: update OSPF BFD documentation
Rafael Zalamena [Thu, 4 Mar 2021 13:01:55 +0000 (10:01 -0300)]
doc: update OSPF BFD documentation

Tell users that OSPFv2 now supports BFD profiles.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agoospfd: support BFD profiles
Rafael Zalamena [Thu, 4 Mar 2021 14:10:20 +0000 (11:10 -0300)]
ospfd: support BFD profiles

Add new command to configure BFD peers to use a specific profile.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agoospfd: rework BFD integration
Rafael Zalamena [Wed, 3 Mar 2021 20:22:47 +0000 (17:22 -0300)]
ospfd: rework BFD integration

Use new BFD API to integrate with OSPFv2.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agolib: small BFD session notifier improvement
Rafael Zalamena [Tue, 2 Mar 2021 11:52:35 +0000 (08:52 -0300)]
lib: small BFD session notifier improvement

Cache current monotime to avoid unnecessary calls.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agolib: new BFD integration API
Rafael Zalamena [Wed, 26 Aug 2020 20:08:41 +0000 (17:08 -0300)]
lib: new BFD integration API

New BFD protocol integration API with abstractions to fix most common
protocol integration errors:

 - Set address family together with the source/destination addresses

 - Set the TTL together with the single/multi hop option

 - Set/unset profile/interface easily

 - Keep the arguments so we don't have to rebuild them every time

 - Install/uninstall functions that keep track of current state so the
  daemon doesn't have to

 - Reinstall when critical configuration changes (address, multi hop
   etc...)

 - Reconfigure BFD when the daemon restarts automatically

 - Automatically calls the user defined callback for session update

 - Shutdown handler for all protocols

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
3 years agodoc: add libsnmp-dev install line
Pat Ruddy [Tue, 23 Mar 2021 10:14:08 +0000 (10:14 +0000)]
doc: add libsnmp-dev install line

Do not assume libsnmp-dev is installed.

Signed-off-by: Pat Ruddy <pat@voltanet.io>
3 years agoMerge pull request #8296 from chiragshah6/mdev
Igor Ryzhov [Mon, 22 Mar 2021 21:19:33 +0000 (00:19 +0300)]
Merge pull request #8296 from chiragshah6/mdev

bgpd: convert send-community to transactional cli

3 years agodoc: add missing vrf parameter to "show ip ospf database ..." commands
Igor Ryzhov [Mon, 22 Mar 2021 09:31:15 +0000 (12:31 +0300)]
doc: add missing vrf parameter to "show ip ospf database ..." commands

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agoospfd: fix "show ip ospf database" issues
Igor Ryzhov [Tue, 16 Mar 2021 19:09:27 +0000 (22:09 +0300)]
ospfd: fix "show ip ospf database" issues

Current implementation of commands `show_ip_ospf_instance_database_cmd`
and `show_ip_ospf_instance_database_type_adv_router_cmd` have the
following problems:

- they doesn't have "vrf all" argument, however the processing of this
  argument is implemented,

- they incorrectly implement json output for instances - they don't
  output anything to the vty and don't release the json object.

To fix the problems, let's do the following:

1. Split `show_ip_ospf_instance_database_cmd` into two aliases to
   `show_ip_ospf_database_max_cmd` and `show_ip_ospf_instance_database_max_cmd`.
   The code is the same and doesn't need to be duplicated.

2. Split `show_ip_ospf_instance_database_type_adv_router_cmd` into two
   separate functions - one regular and one for instances, which now
   correctly implements the processing for json output.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
3 years agozebra: kill zebra_memory.h, use MTYPE_STATIC
David Lamparter [Mon, 22 Mar 2021 19:02:17 +0000 (20:02 +0100)]
zebra: kill zebra_memory.h, use MTYPE_STATIC

This one also needed a bit of shuffling around, but MTYPE_RE is the only
one left used across file boundaries now.

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agostaticd: kill static_memory.h, use MTYPE_STATIC
David Lamparter [Mon, 22 Mar 2021 18:41:54 +0000 (19:41 +0100)]
staticd: kill static_memory.h, use MTYPE_STATIC

This one needed a move of zebra_stable_node_cleanup() from static_vrf.c
to static_routes.c.  But it seems to actually make sense there.

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agoospf6d: kill ospf6_memory.h, use MTYPE_STATIC
David Lamparter [Mon, 22 Mar 2021 18:31:56 +0000 (19:31 +0100)]
ospf6d: kill ospf6_memory.h, use MTYPE_STATIC

Same as other commits -- convert most DEFINE_MTYPE into the _STATIC
variant, and move the remaining non-static ones to appropriate places.

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agoMerge pull request #8115 from mjstapp/fix_ax_pthread
David Lamparter [Mon, 22 Mar 2021 18:31:05 +0000 (19:31 +0100)]
Merge pull request #8115 from mjstapp/fix_ax_pthread

build: test program needs to be warning-free

3 years agoospf6d: split off ospf6_lsa_alloc()
David Lamparter [Mon, 22 Mar 2021 18:24:59 +0000 (19:24 +0100)]
ospf6d: split off ospf6_lsa_alloc()

... so we can make the MTYPEs static to ospf6_lsa.c

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agopathd: kill *_memory.[ch]
David Lamparter [Mon, 22 Mar 2021 17:53:23 +0000 (18:53 +0100)]
pathd: kill *_memory.[ch]

Ouch, MTYPE_PCEP is used in 81 places :(

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agoeigrpd: kill eigrp_memory.h, use MTYPE_STATIC
David Lamparter [Mon, 22 Mar 2021 17:37:25 +0000 (18:37 +0100)]
eigrpd: kill eigrp_memory.h, use MTYPE_STATIC

Same as previous commit -- convert most DEFINE_MTYPE into the _STATIC
variant, and move the remaining non-static ones to appropriate places.

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agoisisd: kill isis_memory.h, use MTYPE_STATIC
David Lamparter [Mon, 22 Mar 2021 17:27:58 +0000 (18:27 +0100)]
isisd: kill isis_memory.h, use MTYPE_STATIC

Convert most DEFINE_MTYPE into the _STATIC variant, and move the
remaining non-static ones to appropriate places.

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agoMerge pull request #8303 from volta-networks/fix_coverity_pceplib
Donald Sharp [Mon, 22 Mar 2021 14:22:25 +0000 (10:22 -0400)]
Merge pull request #8303 from volta-networks/fix_coverity_pceplib

pceplib: Fixing coverity messages.

3 years agoMerge pull request #8280 from kuldeepkash/bgp_convergence_test
Donald Sharp [Mon, 22 Mar 2021 14:15:36 +0000 (10:15 -0400)]
Merge pull request #8280 from kuldeepkash/bgp_convergence_test

tests: Fix bgp convergence issue mentioned in #8279

3 years agobgpd: Reset LLA NHT's interface if there is a change
vivek [Sun, 21 Mar 2021 20:39:51 +0000 (13:39 -0700)]
bgpd: Reset LLA NHT's interface if there is a change

For link-local IPv6 next hops, the next hop tracking is implemented based
on interface status changes. For this purpose, the ifindex is stored in
the NHT. Reset this value if a change in ifindex is noticed, such as for
example after a restart of the networking service.

Also add some additional debug logs.

Signed-off-by: Vivek Venkatraman <vivek@nvidia.com>
Updates: "bgpd: Switch LL nexthop tracking to be interface based"

Ticket: RM 2575386
Testing Done:
1. Manual verification
2. Precommit (#156), evpn-smoke (#155), bgp-smoke (#157), vrl (#158)
-- Precommit is clean, reported failures in evpn-smoke & vrl are resolved
-- some other tests fail in evpn-smoke, bgp-smoke & vrl, appear to be existing
-- or unrelated failures

3 years agobuild: test program needs to be warning-free
Mark Stapp [Fri, 19 Feb 2021 16:09:52 +0000 (11:09 -0500)]
build: test program needs to be warning-free

One of the configure-time test programs produces a warning with
gcc 9 (at least), so it fails if -Werror is enabled. Fix that.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agolib: fix xref hash calculation
David Lamparter [Mon, 15 Mar 2021 21:52:56 +0000 (22:52 +0100)]
lib: fix xref hash calculation

... to make it do what it says it does.

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agolib: add [XXXXX-XXXXX] log prefix & config
David Lamparter [Tue, 2 Mar 2021 23:14:02 +0000 (00:14 +0100)]
lib: add [XXXXX-XXXXX] log prefix & config

This logs the unique ID prefix from the xref that each log message call
has, and adds on/off knobs for both EC and unique ID printing.

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agolib: remove flog() macro
David Lamparter [Tue, 2 Mar 2021 19:08:48 +0000 (20:08 +0100)]
lib: remove flog() macro

It was only used in one place.

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agolib: get rid of flog() usage in NB code
David Lamparter [Tue, 2 Mar 2021 19:06:24 +0000 (20:06 +0100)]
lib: get rid of flog() usage in NB code

This parametrized use of flog with variable EC and priority doesn't mesh
particularly well with the xref code & there isn't really much reason to
not use fixed/constant calls like this.

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agolib: add bputs/bputch fbuf (bprintfrr) helpers
David Lamparter [Mon, 15 Mar 2021 20:39:11 +0000 (21:39 +0100)]
lib: add bputs/bputch fbuf (bprintfrr) helpers

Just small utilities for when you already have a struct fbuf (i.e. when
bprintfrr() is used to construct longer text from multiple pieces.)

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agoMerge pull request #8301 from donaldsharp/isis_spacing
David Lamparter [Mon, 22 Mar 2021 09:10:33 +0000 (10:10 +0100)]
Merge pull request #8301 from donaldsharp/isis_spacing

isisd: Fix extra space after `router isis FOO`

3 years agoMerge pull request #8287 from mjstapp/more_gdb_in_configure
David Lamparter [Mon, 22 Mar 2021 09:04:47 +0000 (10:04 +0100)]
Merge pull request #8287 from mjstapp/more_gdb_in_configure

build: add -ggdb3 to dev build

3 years agoMerge pull request #8298 from donaldsharp/isis_spelling
David Lamparter [Mon, 22 Mar 2021 09:03:38 +0000 (10:03 +0100)]
Merge pull request #8298 from donaldsharp/isis_spelling

isisd: Fix spelling mistake

3 years agoMerge pull request #8121 from opensourcerouting/macro-cleanup
Donatas Abraitis [Mon, 22 Mar 2021 09:00:34 +0000 (11:00 +0200)]
Merge pull request #8121 from opensourcerouting/macro-cleanup

*: require ISO C11 + semicolons after file-scope macros

3 years agoMerge pull request #8297 from adrianomarto/msdp-dscp-cs6
Donald Sharp [Sun, 21 Mar 2021 23:43:01 +0000 (19:43 -0400)]
Merge pull request #8297 from adrianomarto/msdp-dscp-cs6

pimd: marking MSDP traffic as DSCP CS6

3 years agoMerge pull request #8257 from donaldsharp/fix_bgp_metric
Donatas Abraitis [Sun, 21 Mar 2021 19:29:25 +0000 (21:29 +0200)]
Merge pull request #8257 from donaldsharp/fix_bgp_metric

Fix bgp metric

3 years agoisisd: Fix extra space after `router isis FOO`
Donald Sharp [Sun, 21 Mar 2021 17:12:41 +0000 (13:12 -0400)]
isisd: Fix extra space after `router isis FOO`

Fix places where we are outputing an extra space.  This was
because it was prepping for vrf but we may not have a vrf.

Fixes: #8300
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #8278 from ckishimo/ospfv3_iface
Donald Sharp [Sun, 21 Mar 2021 00:11:16 +0000 (20:11 -0400)]
Merge pull request #8278 from ckishimo/ospfv3_iface

ospf6d: fix iface commands lost when removing from area

3 years agoMerge pull request #8282 from volta-networks/fix_isisd_bfd_ipv4
Donald Sharp [Sun, 21 Mar 2021 00:04:38 +0000 (20:04 -0400)]
Merge pull request #8282 from volta-networks/fix_isisd_bfd_ipv4

isisd: fix BFD session when IPv6 not configured

3 years agoisisd: Fix spelling mistake
Donald Sharp [Sat, 20 Mar 2021 23:52:38 +0000 (19:52 -0400)]
isisd: Fix spelling mistake

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoMerge pull request #8291 from volta-networks/isis_timer_unstable
Donald Sharp [Sat, 20 Mar 2021 23:52:01 +0000 (19:52 -0400)]
Merge pull request #8291 from volta-networks/isis_timer_unstable

isisd: avoid lsp_sched loop when unstable

3 years agopimd: marking MSDP traffic as DSCP CS6
Adriano Marto Reis [Sat, 20 Mar 2021 23:25:13 +0000 (09:25 +1000)]
pimd: marking MSDP traffic as DSCP CS6

Configuring the sockets used to establish MSDP connections so the
packets are marked as CS6

Signed-off-by: Adriano Marto Reis <adrianomarto@gmail.com>
3 years agopceplib: Fixing coverity messages.
Javier Garcia [Sat, 20 Mar 2021 21:21:09 +0000 (22:21 +0100)]
pceplib: Fixing coverity messages.

Signed-off-by: Javier Garcia <javier.garcia@voltanet.io>
3 years agobgpd: convert send-community to transactional cli
Chirag Shah [Sat, 20 Mar 2021 05:19:39 +0000 (22:19 -0700)]
bgpd: convert send-community to transactional cli

[no] neighbor <A.B.C.D|X:X::X:X|WORD> send-community

Signed-off-by: Chirag Shah <chirag@nvidia.com>
3 years agoMerge pull request #8129 from mjstapp/backup_recursives
Stephen Worley [Fri, 19 Mar 2021 16:30:51 +0000 (12:30 -0400)]
Merge pull request #8129 from mjstapp/backup_recursives

zebra: modify backup nexthop handling for recursive routes

3 years agobuild: add -ggdb3 to dev build
Mark Stapp [Thu, 18 Mar 2021 15:27:36 +0000 (11:27 -0400)]
build: add -ggdb3 to dev build

Add a little more gdb-specific debugging info for dev builds.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agoisisd: avoid lsp_sched loop when unstable
Emanuele Di Pascale [Wed, 17 Mar 2021 12:24:19 +0000 (13:24 +0100)]
isisd: avoid lsp_sched loop when unstable

no point in scheduling an LSP refresh immediately if we know it is
going to be postponed again due to the network still being in its
instability grace period

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
3 years agoMerge pull request #8286 from donaldsharp/nhrp_xlref
Mark Stapp [Thu, 18 Mar 2021 18:30:33 +0000 (14:30 -0400)]
Merge pull request #8286 from donaldsharp/nhrp_xlref

nhrpd: Remove newline from log message

3 years agoMerge pull request #8263 from opensourcerouting/docker-update
Donald Sharp [Thu, 18 Mar 2021 17:59:30 +0000 (13:59 -0400)]
Merge pull request #8263 from opensourcerouting/docker-update

tests: docker fixes & improvements

3 years agoMerge pull request #8283 from chiragshah6/mdev
Donatas Abraitis [Thu, 18 Mar 2021 15:24:35 +0000 (17:24 +0200)]
Merge pull request #8283 from chiragshah6/mdev

bgpd: add seqno in bgp as-path access-list policy

3 years agonhrpd: Remove newline from log message
Donald Sharp [Thu, 18 Mar 2021 14:32:01 +0000 (10:32 -0400)]
nhrpd: Remove newline from log message

We should not be putting new lines in log messages.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
3 years agoisisd: add debug logs to troubleshoot BFD issues
Emanuele Di Pascale [Thu, 18 Mar 2021 11:47:13 +0000 (12:47 +0100)]
isisd: add debug logs to troubleshoot BFD issues

when we receive an event from BFDD and we end up throwing it away,
make sure that we log (with debug guards) the reason for this, so
we can troubleshoot issues like the one addressed by the previous
commit.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
3 years agoisisd: fix BFD session when IPv6 not configured
Emanuele Di Pascale [Thu, 18 Mar 2021 11:45:23 +0000 (12:45 +0100)]
isisd: fix BFD session when IPv6 not configured

A wrong check was silently skipping the initialization of the bfd_session
struct in the adjacency if the router was not configured for IPv6. This
would cause BFD events to be ignored regardless of the configuration.

Also add a function to return the "name" of an adjacency and use it in a
couple of places, including the new log, instead of repeating the same
code in a bunch of places.

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
3 years agoMerge pull request #8284 from mjstapp/fix_bgp_zero_timers
Donald Sharp [Thu, 18 Mar 2021 11:29:32 +0000 (07:29 -0400)]
Merge pull request #8284 from mjstapp/fix_bgp_zero_timers

bgpd: use add_event instead of add_timer with zero timeout

3 years agodoc: add seqno to bgp as path list section
Chirag Shah [Thu, 18 Mar 2021 05:04:33 +0000 (22:04 -0700)]
doc: add seqno to bgp as path list section

Add sequence no option to bgp as-path list cli syntax.
Add sequence no to example config.
Add auto generated sequence no in running-config if its not
provided in config.

Signed-off-by: Chirag Shah <chirag@nvidia.com>
3 years agobgpd: add seqno in bgp as-path access-list policy
Chirag Shah [Sat, 13 Mar 2021 02:33:09 +0000 (18:33 -0800)]
bgpd: add seqno in bgp as-path access-list policy

Add optional parameter seqno to bgp as-patch policy
to inline with other bgp policies commands at same
level.

Testing Done:

config t
bgp as-path access-list foo1 permit _40_
bgp as-path access-list foo1 seq 5 permit _41_
bgp as-path access-list foo1 seq 8 permit _42_
bgp as-path access-list foo2 permit _43_
no bgp as-path access-list foo1 permit _41_
bgp as-path access-list foo1 permit 41$

show run:
bgp as-path access-list foo1 seq 8 permit _42_
bgp as-path access-list foo1 seq 10 permit 41$
bgp as-path access-list foo2 seq 5 permit _43_

Signed-off-by: Chirag Shah <chirag@nvidia.com>
3 years agotests: Fix bgp convergence issue mentioned in #8279
Kuldeep Kashyap [Wed, 17 Mar 2021 08:02:24 +0000 (01:02 -0700)]
tests: Fix bgp convergence issue mentioned in #8279

1. Enhance verify_bgp_convergence() to solve issue mentioned in #8279

Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
3 years agobgpd: use add_event instead of add_timer with zero timeout
Mark Stapp [Wed, 17 Mar 2021 20:10:13 +0000 (16:10 -0400)]
bgpd: use add_event instead of add_timer with zero timeout

Just use events in a few places where timers with zero timeout
were being used.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
3 years agoMerge pull request #8052 from ton31337/feature/show_bgp_peer-groups_json
Quentin Young [Wed, 17 Mar 2021 19:08:00 +0000 (15:08 -0400)]
Merge pull request #8052 from ton31337/feature/show_bgp_peer-groups_json

3 years agoMerge pull request #8232 from reubendowle/fixes/nhrp-ipsec-issues
Donald Sharp [Wed, 17 Mar 2021 13:33:44 +0000 (09:33 -0400)]
Merge pull request #8232 from reubendowle/fixes/nhrp-ipsec-issues

nhrp: Fix some ipsec related issues

3 years agoMerge pull request #8255 from pjdruddy/fix-ifindex-test
Donald Sharp [Wed, 17 Mar 2021 13:10:20 +0000 (09:10 -0400)]
Merge pull request #8255 from pjdruddy/fix-ifindex-test

Fix ifindex test

3 years agoMerge pull request #8248 from volta-networks/fix_ospf6_chunk_msgs
Donald Sharp [Wed, 17 Mar 2021 13:09:28 +0000 (09:09 -0400)]
Merge pull request #8248 from volta-networks/fix_ospf6_chunk_msgs

ospfd6: Clear locks when ospf messages need to be chunked

3 years agotests: simplify docker rsync & support worktrees
David Lamparter [Tue, 16 Mar 2021 05:11:15 +0000 (06:11 +0100)]
tests: simplify docker rsync & support worktrees

The previous, more complex mechanism failed to take into account that
git worktrees only have a stub .git file & copying the worktree itself
is not enough.  Just extract a file list beforehand & don't bother with
git inside the container.

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agotests: add libelf-dev to Dockerfile
David Lamparter [Tue, 16 Mar 2021 05:10:23 +0000 (06:10 +0100)]
tests: add libelf-dev to Dockerfile

Signed-off-by: David Lamparter <equinox@diac24.net>
3 years agoMerge pull request #8276 from opensourcerouting/pathd-fmt-fix
Donald Sharp [Wed, 17 Mar 2021 12:31:01 +0000 (08:31 -0400)]
Merge pull request #8276 from opensourcerouting/pathd-fmt-fix

pathd: fix some format strings

3 years agoMerge pull request #8008 from chiragshah6/yang_nb5
Santosh P K [Wed, 17 Mar 2021 10:55:54 +0000 (16:25 +0530)]
Merge pull request #8008 from chiragshah6/yang_nb5

[lib, yang] : multiple fixes in prefix-list northbound conversion

3 years agoMerge pull request #8225 from idryzhov/bfd-echo-mode
Rafael Zalamena [Wed, 17 Mar 2021 10:45:43 +0000 (10:45 +0000)]
Merge pull request #8225 from idryzhov/bfd-echo-mode

bfdd: fix echo receive timer and disable echo mode

3 years agoMerge pull request #8229 from idryzhov/bfdd-echo-rx-tx
Rafael Zalamena [Wed, 17 Mar 2021 10:41:33 +0000 (10:41 +0000)]
Merge pull request #8229 from idryzhov/bfdd-echo-rx-tx

bfdd: separate echo rx/tx timers

3 years agotests: fix too many arguments for logging
ckishimo [Wed, 17 Mar 2021 08:35:47 +0000 (09:35 +0100)]
tests: fix too many arguments for logging

Signed-off-by: ckishimo <carles.kishimoto@gmail.com>