]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
4 years agoMerge pull request #5779 from mjstapp/sharp_with_lsps
Donald Sharp [Tue, 17 Mar 2020 15:40:35 +0000 (11:40 -0400)]
Merge pull request #5779 from mjstapp/sharp_with_lsps

sharpd: add support to install/remove lsps

4 years agoMerge pull request #5954 from ton31337/feature/rfc7607
Russ White [Tue, 17 Mar 2020 14:27:35 +0000 (10:27 -0400)]
Merge pull request #5954 from ton31337/feature/rfc7607

 bgpd: Proscribe the use of AS 0 (zero)

4 years agoMerge pull request #5848 from ton31337/feature/show_rpki_prefix_asn
Russ White [Tue, 17 Mar 2020 14:12:22 +0000 (10:12 -0400)]
Merge pull request #5848 from ton31337/feature/show_rpki_prefix_asn

bgpd: Show RPKI prefixes filtered by ASN

4 years agoMerge pull request #5868 from ghasemnaddaf/nhrp_bugfix
Russ White [Tue, 17 Mar 2020 14:07:51 +0000 (10:07 -0400)]
Merge pull request #5868 from ghasemnaddaf/nhrp_bugfix

nhrpd: fix shortcut expiry and route installation

4 years agobgpd: Proscribe the use of AS 0 (zero)
Donatas Abraitis [Tue, 10 Mar 2020 05:35:35 +0000 (07:35 +0200)]
bgpd: Proscribe the use of AS 0 (zero)

Implements https://tools.ietf.org/html/rfc7607

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agoMerge pull request #5927 from mjstapp/interval_string_api
Donald Sharp [Tue, 17 Mar 2020 10:47:15 +0000 (06:47 -0400)]
Merge pull request #5927 from mjstapp/interval_string_api

lib, *: add a common time interval formatting api

4 years agoMerge pull request #5940 from patrasar/214257
Donald Sharp [Tue, 17 Mar 2020 10:38:41 +0000 (06:38 -0400)]
Merge pull request #5940 from patrasar/214257

pimd: add flags in show ip mroute command

4 years agopimd: add flags in show ip mroute command
Sarita Patra [Mon, 9 Mar 2020 06:23:16 +0000 (23:23 -0700)]
pimd: add flags in show ip mroute command

S - Sparse Mode
C - indicates there is a member of the group directly connected to the router.
R -set on an (S, G) by the receipt of an (S, G) RP bit prune message.
F -This indicates that this router is a FHR and send register messages to RP to inform RP of this active source
P - OIL list is NULL. That means the router will send a prune.
T - At least one packet received via SPT.

Signed-off-by: Sarita Patra <saritap@vmware.com>
4 years agoMerge pull request #6009 from kuldeepkash/bgp_basic_functionality
Donald Sharp [Tue, 17 Mar 2020 01:37:07 +0000 (21:37 -0400)]
Merge pull request #6009 from kuldeepkash/bgp_basic_functionality

tests: Optimize bgp-basic-functionality-topo1 test suite

4 years agoMerge pull request #6012 from ton31337/fix/add_rfc6608_to_supported_list
Donald Sharp [Tue, 17 Mar 2020 01:19:08 +0000 (21:19 -0400)]
Merge pull request #6012 from ton31337/fix/add_rfc6608_to_supported_list

doc: Add rfc6608 to supported list

4 years agodoc: Add rfc6608 to supported list
Donatas Abraitis [Mon, 16 Mar 2020 19:57:45 +0000 (21:57 +0200)]
doc: Add rfc6608 to supported list

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agotests: Optimize bgp-basic-functionality-topo1 test suite
Kuldeep Kashyap [Mon, 16 Mar 2020 19:51:41 +0000 (19:51 +0000)]
tests: Optimize bgp-basic-functionality-topo1 test suite

1. Used aggresive values to verify keepalive and holddown timers functionality
2. Modified variable name in lib/bgp.py

Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
4 years agoMerge pull request #5976 from rubenk/build-detect-python-3.8
Quentin Young [Mon, 16 Mar 2020 19:22:44 +0000 (15:22 -0400)]
Merge pull request #5976 from rubenk/build-detect-python-3.8

build: Add Python 3.8

4 years agoMerge pull request #5998 from donaldsharp/more_spelling
Santosh P K [Mon, 16 Mar 2020 18:16:53 +0000 (23:46 +0530)]
Merge pull request #5998 from donaldsharp/more_spelling

More spelling

4 years agoMerge pull request #6002 from ton31337/feature/rfc6608_fsm_sub_error_codes
Quentin Young [Mon, 16 Mar 2020 18:13:56 +0000 (14:13 -0400)]
Merge pull request #6002 from ton31337/feature/rfc6608_fsm_sub_error_codes

bgpd: Add subcodes for BGP Finite State Machine Error

4 years agoMerge pull request #5970 from rubenk/build-cleanup-configure-tests
Quentin Young [Mon, 16 Mar 2020 18:00:21 +0000 (14:00 -0400)]
Merge pull request #5970 from rubenk/build-cleanup-configure-tests

Build: cleanup configure tests

4 years agotests/isisd: Update expected output to match corrected spelling
Christian Franke [Mon, 16 Mar 2020 14:36:12 +0000 (15:36 +0100)]
tests/isisd: Update expected output to match corrected spelling

The update was performed using wuschl [1] like this:

$ wuschl rebuild tests/isisd/test_fuzz_isis_tlv
$ gzip -9 tests/isisd/test_fuzz_isis_tlv_tests.h

[1] https://pypi.org/project/wuschl/

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
4 years agoMerge pull request #6000 from ton31337/fix/distinguish_src_destination_pbr
Donald Sharp [Mon, 16 Mar 2020 12:25:27 +0000 (08:25 -0400)]
Merge pull request #6000 from ton31337/fix/distinguish_src_destination_pbr

zebra: Distinguish source/destination PBR IP in zlog_warn messages

4 years agoMerge pull request #6005 from sarav511/bsr_json
Donald Sharp [Mon, 16 Mar 2020 12:24:44 +0000 (08:24 -0400)]
Merge pull request #6005 from sarav511/bsr_json

pimd: show ip pim bsr json output - removing vtysh caption

4 years agoMerge pull request #6007 from sarav511/unlck
Donald Sharp [Mon, 16 Mar 2020 12:24:10 +0000 (08:24 -0400)]
Merge pull request #6007 from sarav511/unlck

pimd: moving the route_unlock_node outside debug function

4 years agoMerge pull request #5941 from patrasar/217793
Donald Sharp [Mon, 16 Mar 2020 12:14:28 +0000 (08:14 -0400)]
Merge pull request #5941 from patrasar/217793

pimd: Don't refresh mroute_creation for kernel-installed mroute

4 years agobgpd: Add subcodes for BGP Finite State Machine Error
Donatas Abraitis [Sun, 15 Mar 2020 12:19:11 +0000 (14:19 +0200)]
bgpd: Add subcodes for BGP Finite State Machine Error

Implement https://tools.ietf.org/html/rfc6608

I used python scapy library to send a notification message in OpenSent state:
```
send(IP(dst="192.168.0.1")/TCP(sport=sp,
dport=179,
seq=rec.ack,
ack=rec.seq + 1,
flags=0x18)/BGPHeader(type=3)/BGPNotification(error_code=4,
error_subcode=0))
```

Logs from FRR:
```
%NOTIFICATION: sent to neighbor 192.168.0.2 5/1 (Neighbor Events Error/Receive Unexpected Message in OpenSent State) 0 bytes
```

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agopimd: moving the route_unlock_node outside debug function
saravanank [Mon, 16 Mar 2020 02:36:33 +0000 (19:36 -0700)]
pimd: moving the route_unlock_node outside debug function

Problem: Route node is not de referenced after search when pim debug events are
not enabled when pim_rp_find_match_group is called. So this memory will not get
released when route node is deleted after hitting this path.

RCA: Dereferencing is done inside debug condition.

Fix: Moving outside debug condition

Signed-off-by: Saravanan K <saravanank@vmware.com>
4 years agopimd: show ip pim bsr json output - removing vtysh caption
saravanank [Mon, 16 Mar 2020 01:58:53 +0000 (18:58 -0700)]
pimd: show ip pim bsr json output - removing vtysh caption

Root cause: The header display is put in common outside the vtysh/json if-else.
Fix: Brought inside vtysh condition.

Signed-off-by: Saravanan K <saravanank@vmware.com>
4 years agoMerge pull request #6003 from ton31337/fix/skip_kitchen_files
Donald Sharp [Sun, 15 Mar 2020 23:11:15 +0000 (19:11 -0400)]
Merge pull request #6003 from ton31337/fix/skip_kitchen_files

git: Skip .kitchen files

4 years agogit: Skip .kitchen files
Donatas Abraitis [Sun, 15 Mar 2020 20:27:33 +0000 (22:27 +0200)]
git: Skip .kitchen files

I use kitchen (https://github.com/test-kitchen/kitchen-vagrant) for
development labs environment. Just skip those garbage files.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agozebra: Distinguish source/destination PBR IP in zlog_warn messages
Donatas Abraitis [Sat, 14 Mar 2020 12:23:40 +0000 (14:23 +0200)]
zebra: Distinguish source/destination PBR IP in zlog_warn messages

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agoMerge pull request #5854 from qlyoung/fix-zapi-ipset-entry-bad-family
Donatas Abraitis [Sat, 14 Mar 2020 12:19:13 +0000 (14:19 +0200)]
Merge pull request #5854 from qlyoung/fix-zapi-ipset-entry-bad-family

zebra: check for invalid family in ipset entry msg

4 years agozebra: Fix spelling mistakes found by debian packaging
Donald Sharp [Fri, 13 Mar 2020 23:16:11 +0000 (19:16 -0400)]
zebra: Fix spelling mistakes found by debian packaging

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoospfd: Fix spelling mistakes found by debian packaging
Donald Sharp [Fri, 13 Mar 2020 23:15:47 +0000 (19:15 -0400)]
ospfd: Fix spelling mistakes found by debian packaging

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoospf6d: Fix spelling mistakes found by debian packaging
Donald Sharp [Fri, 13 Mar 2020 23:08:48 +0000 (19:08 -0400)]
ospf6d: Fix spelling mistakes found by debian packaging

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoisisd: Fix spelling mistakes found by debian packaging
Donald Sharp [Fri, 13 Mar 2020 23:07:39 +0000 (19:07 -0400)]
isisd: Fix spelling mistakes found by debian packaging

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agobgpd: Fix spelling mistakes found by debian packaging
Donald Sharp [Fri, 13 Mar 2020 23:05:18 +0000 (19:05 -0400)]
bgpd: Fix spelling mistakes found by debian packaging

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agobgpd: Show RPKI prefixes filtered by ASN
Donatas Abraitis [Thu, 20 Feb 2020 15:37:37 +0000 (17:37 +0200)]
bgpd: Show RPKI prefixes filtered by ASN

```
spine1-debian-9# show rpki
  as-number         Lookup by ASN in prefix table
  cache-connection  Show to which RPKI Cache Servers we have a connection
  cache-server      SHOW configured cache server
  prefix            Lookup IP prefix and optionally ASN in prefix table
  prefix-table      Show validated prefixes which were received from RPKI Cache
spine1-debian-9# show rpki as-number 47583
2.57.88.0                                   23 -  23        47583
2.57.91.0                                   24 -  24        47583
2.57.90.0                                   24 -  24        47583
5.183.8.0                                   22 -  24        47583
31.170.164.0                                23 -  23        47583
31.170.165.0                                24 -  24        47583
31.170.164.0                                24 -  24        47583
31.170.166.0                                23 -  23        47583
31.170.160.0                                22 -  22        47583
31.220.16.0                                 24 -  24        47583
...
```

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agoMerge pull request #5972 from rubenk/eigrpd-remove-workaround-for-old-openbsd
Donald Sharp [Fri, 13 Mar 2020 11:20:20 +0000 (07:20 -0400)]
Merge pull request #5972 from rubenk/eigrpd-remove-workaround-for-old-openbsd

eigrpd: stop checking for ancient OpenBSD

4 years agoMerge pull request #5985 from Naveenaidu/5984-cleanup-is_selfroute
Donald Sharp [Thu, 12 Mar 2020 23:19:53 +0000 (19:19 -0400)]
Merge pull request #5985 from Naveenaidu/5984-cleanup-is_selfroute

zebra/rt_netlink.c: Clean is_selfroute function

4 years agoMerge pull request #5991 from pguibert6WIND/bfd_corner_bgp_update_source
Donald Sharp [Thu, 12 Mar 2020 17:31:22 +0000 (13:31 -0400)]
Merge pull request #5991 from pguibert6WIND/bfd_corner_bgp_update_source

bgpd: upon reconfiguration or bgp exchange failure, stop bfd.

4 years agoMerge pull request #5827 from donaldsharp/missed_upstreaming
Sri Mohana Singamsetty [Thu, 12 Mar 2020 16:27:26 +0000 (09:27 -0700)]
Merge pull request #5827 from donaldsharp/missed_upstreaming

Missed upstreaming

4 years agoMerge pull request #5979 from ton31337/fix/convert_to_bool_some_functions
Sri Mohana Singamsetty [Thu, 12 Mar 2020 16:26:21 +0000 (09:26 -0700)]
Merge pull request #5979 from ton31337/fix/convert_to_bool_some_functions

bgpd: Convert type int functions to bool which return 0/1 only

4 years agoMerge pull request #5981 from ton31337/fix/not_necessary_checks
Mark Stapp [Thu, 12 Mar 2020 13:45:55 +0000 (09:45 -0400)]
Merge pull request #5981 from ton31337/fix/not_necessary_checks

*: Remove tests for some XFREE-family functions

4 years agoMerge pull request #5974 from donaldsharp/ldp_ifindex_missed
Mark Stapp [Thu, 12 Mar 2020 12:58:38 +0000 (08:58 -0400)]
Merge pull request #5974 from donaldsharp/ldp_ifindex_missed

ldpd: During code inspection we are mixing data sizes

4 years agobgpd: upon reconfiguration or bgp exchange failure, stop bfd.
Philippe Guibert [Tue, 10 Mar 2020 08:20:09 +0000 (09:20 +0100)]
bgpd: upon reconfiguration or bgp exchange failure, stop bfd.

When bgp is updated with local source, the bgp session is reset; bfd
also must be reset. The bgp_stop() handler handles all kind of
unexpected failures, so the placeholder to deregister from bfd should be
ok, providing that when bgp establishes, a similar function in bgp will
recreate bfd context.
Note that the bfd session is not reset on one specific case, where BFD
down event is the last reset. In that case, we must let BFD to monitor
the link.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
4 years agopimd: Don't refresh mroute_creation for kernel-installed mroute
Sarita Patra [Mon, 9 Mar 2020 07:00:28 +0000 (00:00 -0700)]
pimd: Don't refresh mroute_creation for kernel-installed mroute

Issue: When any interface is getting added/deleted in the outgoing
interface list, it calls pim_mroute_add() which is updating the
mroute_creation time without checking if the mroute is already
installed in the kernel.

Fix: Check if mroute is already installed, then dont refresh the
mroute_creation timer.

Signed-off-by: Sarita Patra <saritap@vmware.com>
4 years agonhrpd: resolve formatting warnings
Ghasem Naddaf [Wed, 11 Mar 2020 19:50:10 +0000 (12:50 -0700)]
nhrpd: resolve formatting warnings

Signed-off-by: Ghasem Naddaf <gshirazi@infoblox.com>
4 years agoMerge pull request #5952 from ton31337/fix/no_need_for_if_in_filter_override
Sri Mohana Singamsetty [Wed, 11 Mar 2020 19:21:58 +0000 (12:21 -0700)]
Merge pull request #5952 from ton31337/fix/no_need_for_if_in_filter_override

bgpd: Do not check for a maximum for peer->filter_override

4 years agozebra/rt_netlink.c: Clean is_selfroute function
Naveen Naidu [Wed, 11 Mar 2020 18:20:41 +0000 (23:50 +0530)]
zebra/rt_netlink.c: Clean is_selfroute function

The return type of is_selfroute function is changed from int to bool.
Also remove the redundant invoking of the is_selfroute function in the
calling function netlink_route_change_read_unicast

Fixes: https://github.com/FRRouting/frr/issues/5984
Signed-off-by: Naveen Naidu <naveennaidu479@gmail.com>
4 years agoMerge pull request #5973 from rubenk/ospfd-fix-wrong-operator
Donald Sharp [Wed, 11 Mar 2020 17:09:40 +0000 (13:09 -0400)]
Merge pull request #5973 from rubenk/ospfd-fix-wrong-operator

ospfd: fix range check for metric

4 years agoMerge pull request #5975 from rubenk/zebra-use-modern-function-definition
Donald Sharp [Wed, 11 Mar 2020 17:09:18 +0000 (13:09 -0400)]
Merge pull request #5975 from rubenk/zebra-use-modern-function-definition

zebra: use modern C function definition

4 years agoMerge branch 'master' into nhrp_bugfix
Ghasem Naddaf [Wed, 11 Mar 2020 16:50:54 +0000 (09:50 -0700)]
Merge branch 'master' into nhrp_bugfix

4 years ago*: Remove tests for some XFREE-family functions
Donatas Abraitis [Wed, 11 Mar 2020 16:16:23 +0000 (18:16 +0200)]
*: Remove tests for some XFREE-family functions

XFREE() covers that.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agobgpd: Convert type int functions to bool which return 0/1 only
Donatas Abraitis [Wed, 11 Mar 2020 15:09:11 +0000 (17:09 +0200)]
bgpd: Convert type int functions to bool which return 0/1 only

This is only for bgp_aspath.[ch]

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agoMerge pull request #5966 from rubenk/isisd-fix-build-warnings
Donald Sharp [Wed, 11 Mar 2020 14:45:07 +0000 (10:45 -0400)]
Merge pull request #5966 from rubenk/isisd-fix-build-warnings

isisd: fix a bunch of build warnings with GCC 10

4 years agobuild: Add Python 3.8
Ruben Kerkhof [Wed, 11 Mar 2020 13:56:10 +0000 (14:56 +0100)]
build: Add Python 3.8

Fixes detection of python on OpenBSD

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
4 years agozebra: use modern C function definition
Ruben Kerkhof [Wed, 11 Mar 2020 13:06:34 +0000 (14:06 +0100)]
zebra: use modern C function definition

And also remove an assignment without effect while we're here.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
4 years agoldpd: During code inspection we are mixing data sizes
Donald Sharp [Wed, 11 Mar 2020 13:03:17 +0000 (09:03 -0400)]
ldpd: During code inspection we are mixing data sizes

As I understand it ldpd was originally developed as a standalone
daemon for *BSD land.  Then ported to FRR.  FRR uses ifindex_t
as the base type for the ifindex.  Mixing `unsigned short` and
`int` and `unsigned int` is going to lead to fun somewhere
along the way.  Especially when we get to run on a system
with ifindex churn( I'm looking at you docker ).

Attempt to convert all of ldpd to think of the ifindex as a
`ifindex_t`.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoospfd: fix range check for metric
Ruben Kerkhof [Wed, 11 Mar 2020 12:56:26 +0000 (13:56 +0100)]
ospfd: fix range check for metric

Found with -Wlogical-op

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
4 years agoeigrpd: stop checking for ancient OpenBSD
Ruben Kerkhof [Wed, 11 Mar 2020 12:31:13 +0000 (13:31 +0100)]
eigrpd: stop checking for ancient OpenBSD

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
4 years agobuild: no need for braces in variables
Ruben Kerkhof [Wed, 11 Mar 2020 11:30:47 +0000 (12:30 +0100)]
build: no need for braces in variables

If the variable is the only word between quotes, there's no need to use
braces.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
4 years agobuild: no need to compare with "x"
Ruben Kerkhof [Wed, 11 Mar 2020 11:09:13 +0000 (12:09 +0100)]
build: no need to compare with "x"

As long as the arguments of the test are quoted,
modern shells handle it just fine.

A bunch of the tests already did this, convert the rest.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
4 years agobuild: quote the right hand side of tests too
Ruben Kerkhof [Wed, 11 Mar 2020 10:53:15 +0000 (11:53 +0100)]
build: quote the right hand side of tests too

For consistency

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
4 years agobuild: always quote variables in tests
Ruben Kerkhof [Wed, 11 Mar 2020 10:27:04 +0000 (11:27 +0100)]
build: always quote variables in tests

If they are not defined, ./configure will throw hard to debug errors
like:
./configure: line 1678: test: =: unary operator expected

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
4 years agoisisd: fix a bunch of build warnings with GCC 10
Ruben Kerkhof [Wed, 11 Mar 2020 09:37:37 +0000 (10:37 +0100)]
isisd: fix a bunch of build warnings with GCC 10

GCC 10 thinks we memcpy into a 0-sized array (which we're not).
Use a C99 flexible array member instead.

Fixes:

  CC       lib/stream.lo
lib/stream.c: In function ‘stream_put_in_addr’:
lib/stream.c:824:2: warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
  824 |  memcpy(s->data + s->endp, addr, sizeof(uint32_t));
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

isisd/isis_tlvs.c: In function ‘auth_validator_hmac_md5’:
isisd/isis_tlvs.c:4279:2: warning: writing 16 bytes into a region of size 0 [-Wstringop-overflow=]
 4279 |  memcpy(STREAM_DATA(stream) + auth->offset, auth->value, 16);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In function ‘update_auth_hmac_md5’,
    inlined from ‘update_auth’ at isisd/isis_tlvs.c:3734:4,
    inlined from ‘isis_pack_tlvs’ at isisd/isis_tlvs.c:3897:2:
isisd/isis_tlvs.c:3722:2: warning: writing 16 bytes into a region of size 0 [-Wstringop-overflow=]
 3722 |  memcpy(STREAM_DATA(s) + auth->offset, digest, 16);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
isisd/isis_tlvs.c:3722:2: warning: writing 16 bytes into a region of size 0 [-Wstringop-overflow=]

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
4 years agoMerge pull request #5962 from donaldsharp/whichafisafi
Donatas Abraitis [Wed, 11 Mar 2020 09:18:02 +0000 (11:18 +0200)]
Merge pull request #5962 from donaldsharp/whichafisafi

bgpd: When deleting an afi/safi and we fail give more detail

4 years agoMerge pull request #5957 from pguibert6WIND/two_bfd_fixes
Donatas Abraitis [Wed, 11 Mar 2020 09:17:32 +0000 (11:17 +0200)]
Merge pull request #5957 from pguibert6WIND/two_bfd_fixes

Two bfd fixes

4 years agoMerge pull request #5938 from donaldsharp/redistribute_afi
Sri Mohana Singamsetty [Tue, 10 Mar 2020 22:32:16 +0000 (15:32 -0700)]
Merge pull request #5938 from donaldsharp/redistribute_afi

zebra: Only redistribute default routes of the right afi

4 years agoMerge pull request #5961 from rubenk/build-fix-werror-undef
Sri Mohana Singamsetty [Tue, 10 Mar 2020 21:30:45 +0000 (14:30 -0700)]
Merge pull request #5961 from rubenk/build-fix-werror-undef

build: fix building with -Werror=undef

4 years agobgpd: When deleting an afi/safi and we fail give more detail
Donald Sharp [Tue, 10 Mar 2020 18:54:18 +0000 (14:54 -0400)]
bgpd: When deleting an afi/safi and we fail give more detail

It would be nice to know which afi/safi we couldn't delete
on a peer in the flog message.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agotreewide: fix some issues found with -Werror=undef
Ruben Kerkhof [Tue, 10 Mar 2020 15:50:03 +0000 (16:50 +0100)]
treewide: fix some issues found with -Werror=undef

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
4 years agoMerge pull request #5951 from rubenk/docs-fix-warning
Quentin Young [Tue, 10 Mar 2020 15:40:41 +0000 (11:40 -0400)]
Merge pull request #5951 from rubenk/docs-fix-warning

Fix a warning while building manpages

4 years agoMerge pull request #5953 from ton31337/fix/move_coccinelle_to_tools
Quentin Young [Tue, 10 Mar 2020 15:36:59 +0000 (11:36 -0400)]
Merge pull request #5953 from ton31337/fix/move_coccinelle_to_tools

tools: Move scripts/coccinelle to tools/coccinelle

4 years agobuild: fix building with -Werror=undef
Ruben Kerkhof [Tue, 10 Mar 2020 15:27:50 +0000 (16:27 +0100)]
build: fix building with -Werror=undef

In the unlikely event you are building with -Werror=undef, several
configure checks fail. Fix those.

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
4 years agoMerge pull request #5877 from donaldsharp/pim_shutdown_cleanup
Donatas Abraitis [Tue, 10 Mar 2020 15:05:12 +0000 (17:05 +0200)]
Merge pull request #5877 from donaldsharp/pim_shutdown_cleanup

Pim shutdown cleanup

4 years agodoc: Add `show bgp listener` command
Donald Sharp [Tue, 18 Feb 2020 20:28:42 +0000 (15:28 -0500)]
doc: Add `show bgp listener` command

Add a bit of debug to show the listener sockets and who created them
to associate with strace output for a developer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agobgpd: Fix router-id update handling for route-leaking
vivek [Tue, 17 Sep 2019 01:28:44 +0000 (18:28 -0700)]
bgpd: Fix router-id update handling for route-leaking

If the default BGP instance is importing routes from another instance and
the latter has a router-id update, the update handler needs to handle the
default instance in a special way.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Chirag Shah <chirag@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Ticket: CM-26007
Reviewed By: CCR-9108
Testing Done: Detailed verification in 3.x

4 years agobgpd: Ensure NHT registration is not attempted for peer-group
vivek [Fri, 6 Sep 2019 04:13:59 +0000 (21:13 -0700)]
bgpd: Ensure NHT registration is not attempted for peer-group

Ensure that the late registration for NHT done for IPv4 route exchange
over IPv6 GUA peering is not attempted for peer-groups, only for peers.

Fixes: "bgpd: Late registration of Extended Nexthop"
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agozebra: Readd special flood MAC upon del notification
vivek [Fri, 6 Sep 2019 04:11:07 +0000 (21:11 -0700)]
zebra: Readd special flood MAC upon del notification

Readd the special MAC that represents the flood (head-end replication) entry
for EVPN-VxLAN upon getting a delete notification for it.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Chirag Shah <chirag@cumulusnetworks.com>
Ticket:  CM-25797
Ticket: CM-26238
Testing Done:
1. evpn-min, evpn-smoke - results summarized in CM-25798

4 years agolib: immediately ping systemd when started
Quentin Young [Fri, 2 Aug 2019 19:18:00 +0000 (19:18 +0000)]
lib: immediately ping systemd when started

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
4 years agopimd: ifchannel deletion should tell you the interface
Donald Sharp [Tue, 11 Jun 2019 12:34:23 +0000 (12:34 +0000)]
pimd: ifchannel deletion should tell you the interface

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agozebra: add debug in specific neigh fetch
Chirag Shah [Wed, 27 Mar 2019 01:23:58 +0000 (18:23 -0700)]
zebra: add debug in specific neigh fetch

add debug trace in specific neigh request send api
to help debug an issue where synchronous response parse
returns with NLMSG_DONE where there is no ipv6 neigh received.
the count value is set to 1 because the request contained
a spcific neigh.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
4 years agobgpd: Add 'show bgp listeners' command for diagnostics
Donald Sharp [Fri, 19 Apr 2019 12:52:01 +0000 (08:52 -0400)]
bgpd: Add 'show bgp listeners' command for diagnostics

Add a command to display listen sockets and the vrf that they
are associated with.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoMerge pull request #5955 from dslicenc/v6-ra-leak
Mark Stapp [Tue, 10 Mar 2020 13:53:42 +0000 (09:53 -0400)]
Merge pull request #5955 from dslicenc/v6-ra-leak

zebra: delete ipv6 RA prefix entries when zebra is killed

4 years agobgpd: reset bfd session when bgp comes up
Philippe Guibert [Tue, 10 Mar 2020 13:34:36 +0000 (14:34 +0100)]
bgpd: reset bfd session when bgp comes up

This scenario has been seen against microtik virtual machine with bfd
enabled. When remote microtik bgp reestablishes the bgp session after a
bgp reset, the bgp establishment comes first, then bfd is initialising.
The second point is true for microtik, but not for frrouting, as the
frrouting, when receiving bfd down messages, is not at init state.
Actually, bfd state is up, and sees the first bfd down packet from bfd
as an issue. Consequently, the BGP session is cleared.
The fix consists in resetting the BFD session, once BGP comes up. That
permits to align state machines of both local and remote bfd.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
4 years agobgpd: upon reconfiguration or bgp exchange failure, stop bfd.
Philippe Guibert [Tue, 10 Mar 2020 08:20:09 +0000 (09:20 +0100)]
bgpd: upon reconfiguration or bgp exchange failure, stop bfd.

When bgp is updated with local source, the bgp session is reset; bfd
also must be reset. The bgp_stop() handler handles all kind of
unexpected failures, so the placeholder to deregister from bfd should be
ok, providing that when bgp establishes, a similar function in bgp will
recreate bfd context.
Note that the bfd session is not reset on one specific case, where BFD
down event is the last reset. In that case, we must let BFD to monitor
the link.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
4 years agozebra: delete ipv6 RA prefix entries when zebra is killed
Don Slice [Tue, 10 Mar 2020 10:57:30 +0000 (10:57 +0000)]
zebra: delete ipv6 RA prefix entries when zebra is killed

Memory leak found where ipv6 global prefixes added to the router
advertisement prefix lists were not deleted when the process was
killed.

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
4 years agotools: Move scripts/coccinelle to tools/coccinelle
Donatas Abraitis [Tue, 10 Mar 2020 09:41:03 +0000 (11:41 +0200)]
tools: Move scripts/coccinelle to tools/coccinelle

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agodocs: fix a warning while building manpages
Ruben Kerkhof [Tue, 10 Mar 2020 09:31:02 +0000 (10:31 +0100)]
docs: fix a warning while building manpages

$ make doc
  SPHINX   doc/manpages/_build/.doctrees/environment.pickle
WARNING: html_static_path entry '_static' does not exist

Signed-off-by: Ruben Kerkhof <ruben@rubenkerkhof.com>
4 years agobgpd: Do not check for a maximum for peer->filter_override
Donatas Abraitis [Tue, 10 Mar 2020 09:29:48 +0000 (11:29 +0200)]
bgpd: Do not check for a maximum for peer->filter_override

FILTER_MAX is 2, RMAP_MAX is 2. No point here.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agoMerge pull request #5948 from qlyoung/fix-no-bgp-nexthop-vpn-export
Donatas Abraitis [Tue, 10 Mar 2020 05:37:55 +0000 (07:37 +0200)]
Merge pull request #5948 from qlyoung/fix-no-bgp-nexthop-vpn-export

bgpd: fix 'no nexthop vpn export'

4 years agoMerge pull request #5949 from qlyoung/doc-fix-cli-source-references-order
Donatas Abraitis [Tue, 10 Mar 2020 05:36:58 +0000 (07:36 +0200)]
Merge pull request #5949 from qlyoung/doc-fix-cli-source-references-order

doc: CLI source references backwards

4 years agodoc: Add rfc7607 to supported RFCs list
Donatas Abraitis [Tue, 10 Mar 2020 05:35:13 +0000 (07:35 +0200)]
doc: Add rfc7607 to supported RFCs list

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agotests: Add a test case for BGP_AS_ZERO
Donatas Abraitis [Tue, 10 Mar 2020 05:32:18 +0000 (07:32 +0200)]
tests: Add a test case for BGP_AS_ZERO

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agoMerge pull request #5950 from qlyoung/fix-null-check-before-xfree-yet-again
Donatas Abraitis [Tue, 10 Mar 2020 05:26:40 +0000 (07:26 +0200)]
Merge pull request #5950 from qlyoung/fix-null-check-before-xfree-yet-again

lib, zebra: remove nullity check before XFREE...

4 years agolib, zebra: remove nullity check before XFREE...
Quentin Young [Mon, 9 Mar 2020 22:16:32 +0000 (18:16 -0400)]
lib, zebra: remove nullity check before XFREE...

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
4 years agoMerge pull request #5839 from donaldsharp/upstream_merge
Russ White [Mon, 9 Mar 2020 19:34:18 +0000 (15:34 -0400)]
Merge pull request #5839 from donaldsharp/upstream_merge

Upstream merge of missed MLAG code

4 years agodoc: CLI source references backwards
Quentin Young [Mon, 9 Mar 2020 19:27:25 +0000 (15:27 -0400)]
doc: CLI source references backwards

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
4 years agobgpd: fix 'no nexthop vpn export'
Quentin Young [Mon, 9 Mar 2020 18:55:37 +0000 (14:55 -0400)]
bgpd: fix 'no nexthop vpn export'

ALIAS without parameters against DEFPY w/ required parameters doesn't
work

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
4 years agolib, *: add a common time interval formatting api
Mark Stapp [Thu, 5 Mar 2020 19:06:46 +0000 (14:06 -0500)]
lib, *: add a common time interval formatting api

Add a common api that formats a time interval into a string
with different output for short and longer intervals. We do
this in several places, for cli/ui output.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
4 years agoMerge pull request #5942 from patrasar/2438087
Donald Sharp [Mon, 9 Mar 2020 12:47:10 +0000 (08:47 -0400)]
Merge pull request #5942 from patrasar/2438087

pimd: Display mroute uptime per (s,g) entry

4 years agopimd: Display mroute uptime per (s,g) entry
Sarita Patra [Mon, 9 Mar 2020 07:30:34 +0000 (00:30 -0700)]
pimd: Display mroute uptime per (s,g) entry

Issue: show ip mroute displays the mroute uptime (time when
mroute installed into the kernel) per oif.
This is confusing.

Fix: Display mroute uptime per (s,g) mroute entry.

Signed-off-by: Sarita Patra <saritap@vmware.com>
4 years agoMerge pull request #5919 from qlyoung/fix-vrrp-mvl-uaf
Donatas Abraitis [Mon, 9 Mar 2020 06:03:34 +0000 (08:03 +0200)]
Merge pull request #5919 from qlyoung/fix-vrrp-mvl-uaf

vrrpd: Fix heap uaf when handling interface deletions