]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
4 years agotests: Adding test suites evpn_type5_test_topo1
Kuldeep Kashyap [Wed, 1 Jul 2020 13:16:34 +0000 (13:16 +0000)]
tests: Adding test suites evpn_type5_test_topo1

1. Added 15 test cases to test evpn type5 functionality
2. Total execution time is ~9 mins

Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
4 years agotests: Adding framework support for EVPN-Type5 automation
Kuldeep Kashyap [Wed, 1 Jul 2020 13:13:08 +0000 (13:13 +0000)]
tests: Adding framework support for EVPN-Type5 automation

1. Added APIs to create evpn related config.
2. Added APIs to verify evpn config and routes.

Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
4 years agoMerge pull request #6780 from chiragshah6/evpn_dev2
Mark Stapp [Tue, 21 Jul 2020 20:08:13 +0000 (16:08 -0400)]
Merge pull request #6780 from chiragshah6/evpn_dev2

zebra: vrf disable clean up evpn rmac and nxthp cache

4 years agoMerge pull request #6711 from GalaxyGorilla/bfd_isis_profiles
Quentin Young [Tue, 21 Jul 2020 18:45:31 +0000 (14:45 -0400)]
Merge pull request #6711 from GalaxyGorilla/bfd_isis_profiles

Add BFD profiles for IS-IS

4 years agoMerge pull request #6435 from idryzhov/fix-no-vrf
Quentin Young [Tue, 21 Jul 2020 15:48:34 +0000 (11:48 -0400)]
Merge pull request #6435 from idryzhov/fix-no-vrf

vtysh: return success from "no vrf" when VRF doesn't exist

4 years agoMerge pull request #6700 from deastoe/ospf6-interface-decimal-area
David Lamparter [Tue, 21 Jul 2020 11:42:59 +0000 (13:42 +0200)]
Merge pull request #6700 from deastoe/ospf6-interface-decimal-area

4 years agoMerge pull request #6777 from idryzhov/vtysh-defpy
David Lamparter [Tue, 21 Jul 2020 11:36:33 +0000 (13:36 +0200)]
Merge pull request #6777 from idryzhov/vtysh-defpy

vtysh: rework DEFPY processing in extract.pl

4 years agoMerge pull request #6745 from ton31337/fix/handle_bgp_vrf_all_statistics_crash
David Lamparter [Tue, 21 Jul 2020 06:01:22 +0000 (08:01 +0200)]
Merge pull request #6745 from ton31337/fix/handle_bgp_vrf_all_statistics_crash

4 years agoMerge pull request #6764 from dslicenc/frr-reload-vrf-static
David Lamparter [Tue, 21 Jul 2020 05:51:55 +0000 (07:51 +0200)]
Merge pull request #6764 from dslicenc/frr-reload-vrf-static

tools: fix more frr-reload vrf static errors

4 years agoMerge pull request #6776 from idryzhov/ospf-vty
David Lamparter [Tue, 21 Jul 2020 05:49:11 +0000 (07:49 +0200)]
Merge pull request #6776 from idryzhov/ospf-vty

ospfd: remove redundant line continuations

4 years agoMerge pull request #6754 from mjstapp/stream_warn_backtrace
David Lamparter [Tue, 21 Jul 2020 05:48:01 +0000 (07:48 +0200)]
Merge pull request #6754 from mjstapp/stream_warn_backtrace

lib: add a backtrace when stream bounds check fails

4 years agoMerge pull request #6775 from idryzhov/vtysh-linemarkers
David Lamparter [Tue, 21 Jul 2020 05:47:08 +0000 (07:47 +0200)]
Merge pull request #6775 from idryzhov/vtysh-linemarkers

vtysh: suppress linemarkers in vtysh_cmd.c

4 years agozebra: vrf disable clean up evpn rmac nxthp cache
Chirag Shah [Mon, 6 Jul 2020 18:13:54 +0000 (11:13 -0700)]
zebra: vrf disable clean up evpn rmac nxthp cache

In networking restart event, l3vni (vxlan) interface followed by
associated vrf interfaces go down/deleted.
L3vni (oper) down event (from zebra to bgp) triggers to
clean up/un-import evpn routes (one-by-one) from the vrf table,
zebra internally removes the route entry from nexthop and RMAC hash.
When all the routes references in nexthop and RMAC db removed,
both (nexthop/rmac) are suppose to be uninstalled from the
bridge fdb and neigh table.
While evpn routes removal in progress, a vrf disable event removes
l3vni to its vrf association.
Subsequent bgp to evpn routes removal does not clean up thus evpn routes
reference to nexthop and RMAC remains in zebra hash.
bridge fdb and neigh tables are flushed out since networking restart brings down
all interfaces which results in flush of fdb and neigh tables.
By product is the zebra does not install nexthop and rmac when routes are re-imported
into vrf in VNI/VRF up event.

The fix is in vrf disable event to flush all l3vni's nexthop and rmac db.

Ticket:CM-30338
Reviewed By:CCR-10489
Testing Done:

Performed multiple networking restart and checked neigh and
bridge fdb tables for respective nexthop and router mac entry
programmed.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
4 years agoMerge pull request #6729 from volta-networks/fix_stale_pw_status
Renato Westphal [Mon, 20 Jul 2020 15:28:58 +0000 (12:28 -0300)]
Merge pull request #6729 from volta-networks/fix_stale_pw_status

ldpd: Update LDP to process received pw-status in received order.

4 years agovtysh: rework DEFPY processing in extract.pl
Igor Ryzhov [Mon, 20 Jul 2020 15:15:49 +0000 (18:15 +0300)]
vtysh: rework DEFPY processing in extract.pl

Currently, all DEFPY commands are translated into one-liners in
vtysh_cmd.c. After the patch, DEFPY commands are correctly indented just
like DEFUN/ALIAS commands.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
4 years agoospfd: remove redundant line continuations
Igor Ryzhov [Mon, 20 Jul 2020 15:09:34 +0000 (18:09 +0300)]
ospfd: remove redundant line continuations

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
4 years agovtysh: suppress linemarkers in vtysh_cmd.c
Igor Ryzhov [Mon, 20 Jul 2020 15:08:00 +0000 (18:08 +0300)]
vtysh: suppress linemarkers in vtysh_cmd.c

Remove lines like this from the vtysh_cmd.c:
```
# 10764 "bgpd/bgp_route.c"
```

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
4 years agoldpd: process pw-status in received order
Karen Schoener [Mon, 13 Jul 2020 16:22:15 +0000 (12:22 -0400)]
ldpd: process pw-status in received order

Update LDP to process received pw-status in received order.
Update LDP to save pw-status regardless of whether the PW is configured.
When the PW is configured, LDP checks for any saved PW pw-status.

Signed-off-by: Karen Schoener <karen@voltanet.io>
4 years agolib: add a backtrace when stream bounds check fails
Mark Stapp [Thu, 16 Jul 2020 15:05:01 +0000 (11:05 -0400)]
lib: add a backtrace when stream bounds check fails

Add a backtrace call when the stream code detects a bounds error,
to help with debugging.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
4 years agoMerge pull request #6767 from donaldsharp/compile_issues
David Lamparter [Sun, 19 Jul 2020 09:36:38 +0000 (11:36 +0200)]
Merge pull request #6767 from donaldsharp/compile_issues

4 years agoMerge pull request #6446 from chiragshah6/evpn_dev
Santosh P K [Sat, 18 Jul 2020 14:14:01 +0000 (19:44 +0530)]
Merge pull request #6446 from chiragshah6/evpn_dev

zebra: rib operational nb add vrf key

4 years agopimd: Prevent Null string %s issues
Donald Sharp [Sat, 18 Jul 2020 13:46:06 +0000 (09:46 -0400)]
pimd: Prevent Null string %s issues

There are couple spots where group may be NULL and
when we output strings associated with it we should
ensure we are not doing something stupid.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agozebra: Possible write beyond buffer length
Donald Sharp [Sat, 18 Jul 2020 13:45:08 +0000 (09:45 -0400)]
zebra: Possible write beyond buffer length

Prevent string manipulation where we might have data
passed into that is larger than the buffer we are pushing into.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoMerge pull request #6753 from mjstapp/fix_zebra_backup_sa
Stephen Worley [Fri, 17 Jul 2020 21:29:49 +0000 (17:29 -0400)]
Merge pull request #6753 from mjstapp/fix_zebra_backup_sa

zebra: fix SA warnings in backup nexthop code

4 years agoMerge pull request #6763 from donaldsharp/bgp_zebra_announce
Mark Stapp [Fri, 17 Jul 2020 19:59:03 +0000 (15:59 -0400)]
Merge pull request #6763 from donaldsharp/bgp_zebra_announce

bgpd: Remove memset from bgp_zebra_announce

4 years agozebra: rib operational nb add vrf key
Chirag Shah [Fri, 22 May 2020 05:01:09 +0000 (22:01 -0700)]
zebra: rib operational nb add vrf key

Add vrf as key in Rib operational nexthop list

PR 6296 has added vrf as key in nexthop list.
Rib operational model uses nexthop list, adding
vrf key into northbound callback.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
4 years agotools: fix more frr-reload vrf static errors
Don Slice [Tue, 14 Jul 2020 14:39:06 +0000 (14:39 +0000)]
tools: fix more frr-reload vrf static errors

Reported that in certain config changes, a static intended for the
default table would be duplicated into a vrf context.  Determined
that we still weren't keeping or adding the exit-vrf command when
necessary to keep the contexts straight.  Added logic to look for
the failing circumstances and add or remove the delete of the
exit-vrf command as needed.

Signed-off-by: Don Slice <dslice@nvidia.com>
4 years agoMerge pull request #6760 from opensourcerouting/build-assorted-20200717
Quentin Young [Fri, 17 Jul 2020 16:42:05 +0000 (12:42 -0400)]
Merge pull request #6760 from opensourcerouting/build-assorted-20200717

build & gcc-frr-format: assorted bits batch

4 years agoMerge pull request #6296 from vishaldhingra/static
Quentin Young [Fri, 17 Jul 2020 16:39:03 +0000 (12:39 -0400)]
Merge pull request #6296 from vishaldhingra/static

staticd: static route NB configuration code

4 years agobgpd: Remove memset from bgp_zebra_announce
Donald Sharp [Fri, 17 Jul 2020 14:07:17 +0000 (10:07 -0400)]
bgpd: Remove memset from bgp_zebra_announce

During perf testing of receiving and installing 7.5 million
routes into zebra it was noticed that memset in bgp_zebra_announce
was taking ~11% of the runtime.  With this change bgp_zebra_announce
now no longer has any appreciable time spent in memset as reported
by perf.  In addition bgp_zebra_announce run time in perf was
reduced by a composite amount.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoMerge pull request #6705 from sworleys/PBR-Fixes-More
Mark Stapp [Fri, 17 Jul 2020 12:54:54 +0000 (08:54 -0400)]
Merge pull request #6705 from sworleys/PBR-Fixes-More

pbrd: A couple pbr fixes

4 years agoMerge pull request #6759 from donaldsharp/rules_family
Mark Stapp [Fri, 17 Jul 2020 12:23:46 +0000 (08:23 -0400)]
Merge pull request #6759 from donaldsharp/rules_family

zebra: Silently ignore afi 128/129 for rules

4 years agotools/gcc-frr-format: update README
David Lamparter [Fri, 17 Jul 2020 03:54:09 +0000 (05:54 +0200)]
tools/gcc-frr-format: update README

Signed-off-by: David Lamparter <equinox@diac24.net>
4 years agotools/gcc-frr-format: update debian bits
David Lamparter [Tue, 14 Jul 2020 17:52:02 +0000 (19:52 +0200)]
tools/gcc-frr-format: update debian bits

Signed-off-by: David Lamparter <equinox@diac24.net>
4 years agotools/gcc-frr-format: improve test
David Lamparter [Tue, 14 Jul 2020 17:46:55 +0000 (19:46 +0200)]
tools/gcc-frr-format: improve test

Signed-off-by: David Lamparter <equinox@diac24.net>
4 years agotools/gcc-frr-format: update for gcc 10
David Lamparter [Tue, 14 Jul 2020 12:40:53 +0000 (14:40 +0200)]
tools/gcc-frr-format: update for gcc 10

Signed-off-by: David Lamparter <equinox@diac24.net>
4 years agobuild: fix Makefile rule redefinition
David Lamparter [Fri, 17 Jul 2020 03:48:25 +0000 (05:48 +0200)]
build: fix Makefile rule redefinition

Signed-off-by: David Lamparter <equinox@diac24.net>
4 years agozebra: Silently ignore afi 128/129 for rules
Donald Sharp [Fri, 17 Jul 2020 00:57:14 +0000 (20:57 -0400)]
zebra: Silently ignore afi 128/129 for rules

We do not need to know anything about rules in afi 128/129
at this point in time.  Just note it with a zebra kernel
debug and move on.  This is not something that a operator
can do anything with and at this point in time FRR
does not care.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agoMerge pull request #6752 from xThaid/evpn_neigh_fix
Donald Sharp [Fri, 17 Jul 2020 00:09:08 +0000 (20:09 -0400)]
Merge pull request #6752 from xThaid/evpn_neigh_fix

zebra: fix the installation of the evpn neighbor update

4 years agoMerge pull request #6706 from donaldsharp/router_id_bullshit
Renato Westphal [Thu, 16 Jul 2020 21:09:38 +0000 (18:09 -0300)]
Merge pull request #6706 from donaldsharp/router_id_bullshit

Router id vrf subnode configuration

4 years agostaticd: Formatting changes
vdhingra [Sun, 12 Jul 2020 17:59:26 +0000 (10:59 -0700)]
staticd: Formatting changes

Warning fixes for indentation

Signed-off-by: VishalDhingra <vdhingra@vmware.com>
4 years agostaticd: Added afi-safi as a key in route-list
vdhingra [Thu, 2 Jul 2020 06:54:50 +0000 (23:54 -0700)]
staticd: Added afi-safi as a key in route-list

To address the ip mroute command there is a need to add
safi as a key. So adding the afi-safi-type identityref
as a key.

Signed-off-by: VishalDhingra <vdhingra@vmware.com>
4 years agozebra: Moving afi-safi identity to lib
vdhingra [Thu, 2 Jul 2020 05:36:51 +0000 (22:36 -0700)]
zebra: Moving afi-safi identity to lib

afi-safi identity handling should be in the common place.

Signed-off-by: VishalDhingra <vdhingra@vmware.com>
4 years agostaticd : Configuration northbound implementation
vdhingra [Fri, 24 Apr 2020 12:38:43 +0000 (05:38 -0700)]
staticd : Configuration northbound implementation

1. Modifies the data structs to make the distance, tag and table-id
   property of a route, i.e created a hireachical data struct to save
   route and nexthop information.
2. Backend northbound implementation

Signed-off-by: VishalDhingra <vdhingra@vmware.com>
4 years agolib : basic-routing backend configuration northbound code
vdhingra [Fri, 24 Apr 2020 12:37:36 +0000 (05:37 -0700)]
lib : basic-routing backend configuration northbound code

Signed-off-by: VishalDhingra <vdhingra@vmware.com>
4 years agolib : Yang wrappers
vdhingra [Fri, 24 Apr 2020 12:36:14 +0000 (05:36 -0700)]
lib : Yang wrappers

1. To get the parent node
2. To auto delete the parent when last node in list gets deleted

Signed-off-by: VishalDhingra <vdhingra@vmware.com>
4 years agoyang : removed leafref to run CI/CD
vdhingra [Fri, 24 Apr 2020 12:35:27 +0000 (05:35 -0700)]
yang : removed leafref to run CI/CD

Signed-off-by: VishalDhingra <vdhingra@vmware.com>
4 years agoyang : nexthop yang modification
vdhingra [Fri, 24 Apr 2020 12:34:41 +0000 (05:34 -0700)]
yang : nexthop yang modification

nexthop vrf is addded as a key along with nh-type, gateway,
interface.

Signed-off-by: VishalDhingra <vdhingra@vmware.com>
4 years agoyang: staticd yang modification
vdhingra [Fri, 24 Apr 2020 12:32:59 +0000 (05:32 -0700)]
yang: staticd yang modification

staticd yang has been modified to support below use cases
1. src-table for IPV6 address family.
2. distance,tag and table-id would be the key for a given prefix.

Signed-off-by: VishalDhingra <vdhingra@vmware.com>
4 years agozebra: fix SA warnings in backup nexthop code
Mark Stapp [Thu, 16 Jul 2020 15:00:17 +0000 (11:00 -0400)]
zebra: fix SA warnings in backup nexthop code

Fix a couple of recent SA warnings that came from backup
nexthop/nhlfe changes.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
4 years agoMerge pull request #6751 from donaldsharp/pim_mem_leaks
Mark Stapp [Thu, 16 Jul 2020 14:45:26 +0000 (10:45 -0400)]
Merge pull request #6751 from donaldsharp/pim_mem_leaks

Pim mem leaks

4 years agoMerge pull request #6519 from RichardWu-Hebut/master
Donatas Abraitis [Thu, 16 Jul 2020 13:49:08 +0000 (16:49 +0300)]
Merge pull request #6519 from RichardWu-Hebut/master

bgpd: Fix the bug that BGP MRAI does not work.

4 years agozebra: fix installing an evpn neighbor update
Jakub Urbańczyk [Thu, 16 Jul 2020 13:49:05 +0000 (15:49 +0200)]
zebra: fix installing an evpn neighbor update

Fix the function encoding evpn neighbor. The size of the buffer
for the netlink message wasn't correct and because of that we thought that
the message didn't fit entirely in the buffer and thus we were not sending
the update to the kernel.

Signed-off-by: Jakub Urbańczyk <xthaid@gmail.com>
4 years agopimd: Cleanup leaked memory from rp initialization
Donald Sharp [Thu, 16 Jul 2020 12:16:39 +0000 (08:16 -0400)]
pimd: Cleanup leaked memory from rp initialization

When creating a pim instance, we were allocating table information
but never freeing it.  Do so.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
4 years agopimd: Cleanup some small memory leaks on exit
Donald Sharp [Thu, 16 Jul 2020 12:13:21 +0000 (08:13 -0400)]
pimd: Cleanup some small memory leaks on exit

We were not properly cleaning up some memory in the pim mlag
subsystem.  Clean it up on exit.

Signed-off-by: Donald Sharp <sharpc@cumulusnetworks.com>
4 years agoMerge pull request #6701 from deastoe/ospf-area-format
Donald Sharp [Thu, 16 Jul 2020 00:17:39 +0000 (20:17 -0400)]
Merge pull request #6701 from deastoe/ospf-area-format

ospf: set display format for range command

4 years agoMerge pull request #6731 from opensourcerouting/style-string-prep
Donald Sharp [Thu, 16 Jul 2020 00:06:55 +0000 (20:06 -0400)]
Merge pull request #6731 from opensourcerouting/style-string-prep

*: string coding style

4 years agoMerge pull request #6746 from opensourcerouting/topotests-wtf
Donald Sharp [Thu, 16 Jul 2020 00:04:07 +0000 (20:04 -0400)]
Merge pull request #6746 from opensourcerouting/topotests-wtf

topotests: stop the zombie apocalypse

4 years agobgpd: Show the instance name when displaying statistics
Donatas Abraitis [Wed, 15 Jul 2020 14:52:12 +0000 (17:52 +0300)]
bgpd: Show the instance name when displaying statistics

```
exit1-debian-9# sh ip bgp vrf all statistics json
{
  "ipv4Unicast":[
    {
      "instance":"VRF default",
      "totalAdvertisements":2,
      "totalPrefixes":2,
      "averagePrefixLength":24,
      "unaggregateablePrefixes":2,
      "maximumAggregateablePrefixes":0,
      "bgpAggregateAdvertisements":0,
      "addressSpaceAdvertised":512,
      "%announced":1.1920928955078125e-05,
      "\/8equivalent":3.0517578125e-05,
      "\/24equivalent":2,
      "advertisementsWithPaths":2,
      "longestAsPath":0,
      "averageAsPathLengthHops":0,
      "largestAsPath":0,
      "averageAsPathSizeBytes":0,
      "highestPublicAsn":0
    },
    {
      "instance":"VRF testas",
      "totalAdvertisements":0,
      "totalPrefixes":0,
      "averagePrefixLength":0,
      "unaggregateablePrefixes":0,
      "maximumAggregateablePrefixes":0,
      "bgpAggregateAdvertisements":0,
      "addressSpaceAdvertised":0,
      "%announced":0,
      "\/8equivalent":0,
      "\/24equivalent":0,
      "advertisementsWithPaths":0,
      "longestAsPath":0,
      "averageAsPathLengthHops":0,
      "largestAsPath":0,
      "averageAsPathSizeBytes":0,
      "highestPublicAsn":0
    }
  ]
}
```

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agobgpd: Do not crash if bgp argument is NULL for bgp_table_stats()
Donatas Abraitis [Sun, 12 Jul 2020 19:12:36 +0000 (22:12 +0300)]
bgpd: Do not crash if bgp argument is NULL for bgp_table_stats()

```
(gdb) bt
0  0x00007f45a6f0a781 in raise () from /lib/x86_64-linux-gnu/libc.so.6
1  0x00007f45a6ef455b in abort () from /lib/x86_64-linux-gnu/libc.so.6
2  0x00007f45a7781920 in core_handler (signo=11, siginfo=0x7fffac7b84b0, context=<optimized out>) at lib/sigevent.c:228
3  <signal handler called>
4  0x000055a4133c0f32 in bgp_table_stats (vty=vty@entry=0x55a415acb240, bgp=0x0, afi=AFI_IP, safi=SAFI_UNICAST, json_array=json_array@entry=0x0) at bgpd/bgp_route.c:11412
5  0x000055a4133c13fb in show_ip_bgp_afi_safi_statistics (self=<optimized out>, vty=0x55a415acb240, argc=6, argv=<optimized out>) at bgpd/bgp_route.c:10749
6  0x00007f45a773917d in cmd_execute_command_real (vline=vline@entry=0x55a415ab7e10, vty=vty@entry=0x55a415acb240, cmd=cmd@entry=0x0, filter=FILTER_RELAXED)
    at lib/command.c:909
7  0x00007f45a773afdf in cmd_execute_command (vline=vline@entry=0x55a415ab7e10, vty=vty@entry=0x55a415acb240, cmd=0x0, vtysh=vtysh@entry=0) at lib/command.c:968
8  0x00007f45a773b135 in cmd_execute (vty=vty@entry=0x55a415acb240, cmd=cmd@entry=0x55a415ace950 "show ip bgp vrf all statistics", matched=matched@entry=0x0,
    vtysh=vtysh@entry=0) at lib/command.c:1122
9  0x00007f45a7794d62 in vty_command (vty=vty@entry=0x55a415acb240, buf=0x55a415ace950 "show ip bgp vrf all statistics") at lib/vty.c:526
10 0x00007f45a7794fb6 in vty_execute (vty=vty@entry=0x55a415acb240) at lib/vty.c:1293
11 0x00007f45a7797804 in vtysh_read (thread=<optimized out>) at lib/vty.c:2126
12 0x00007f45a778f641 in thread_call (thread=thread@entry=0x7fffac7bb040) at lib/thread.c:1550
13 0x00007f45a775b6d8 in frr_run (master=0x55a415542820) at lib/libfrr.c:1098
14 0x000055a4133815d6 in main (argc=10, argv=0x7fffac7bb2a8) at bgpd/bgp_main.c:509
```

"show ip bgp vrf all statistics" should show statistics for all VRFs if "all"
is specified.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agoMerge pull request #6333 from Spantik/ospf_default
Rafael Zalamena [Wed, 15 Jul 2020 17:55:16 +0000 (14:55 -0300)]
Merge pull request #6333 from Spantik/ospf_default

ospf: Default-information originate with routemap

4 years agotopotests: stop wasting time at exit
David Lamparter [Wed, 15 Jul 2020 16:48:18 +0000 (18:48 +0200)]
topotests: stop wasting time at exit

... and clean up zombie child processes

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
4 years agotopotests: update Dockerfile
David Lamparter [Wed, 15 Jul 2020 16:41:07 +0000 (18:41 +0200)]
topotests: update Dockerfile

... python3 is non-optional now.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
4 years agotopotests: unshittify backtraces
David Lamparter [Tue, 14 Jul 2020 21:30:28 +0000 (23:30 +0200)]
topotests: unshittify backtraces

add thread info, use "bt full" to get variables and add a bit of
disassembly for good measure.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
4 years agoMerge pull request #6736 from NaveenThanikachalam/rmap_noop
Russ White [Wed, 15 Jul 2020 14:51:41 +0000 (10:51 -0400)]
Merge pull request #6736 from NaveenThanikachalam/rmap_noop

libfrr: Retain return value if the best index is found

4 years agoMerge pull request #6740 from FRRouting/revert-5015-rpki_vrf_encapsulation
Quentin Young [Tue, 14 Jul 2020 22:22:26 +0000 (18:22 -0400)]
Merge pull request #6740 from FRRouting/revert-5015-rpki_vrf_encapsulation

Revert "Rpki Encapsulation"

4 years agoRevert "Rpki Encapsulation"
Quentin Young [Tue, 14 Jul 2020 19:37:14 +0000 (15:37 -0400)]
Revert "Rpki Encapsulation"

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
4 years agoMerge pull request #6598 from mruprich/python-3.8
Quentin Young [Tue, 14 Jul 2020 19:35:02 +0000 (15:35 -0400)]
Merge pull request #6598 from mruprich/python-3.8

build: find all future minor versions of python3

4 years agodoc/user: Update ospf6d area interface command
Duncan Eastoe [Thu, 9 Jul 2020 11:52:38 +0000 (12:52 +0100)]
doc/user: Update ospf6d area interface command

"interface <ifname> area <area>" now accepts <area> in decimal or IP
format.

Signed-off-by: Duncan Eastoe <duncan.eastoe@att.com>
4 years agoospf6d: decimal area format in interface command
Patrick Ruddy [Wed, 3 Oct 2018 17:22:34 +0000 (18:22 +0100)]
ospf6d: decimal area format in interface command

The ospf6 "interface <blah> area <x>" command only allows the area to
be specified in the ipv4 address format, whereas the show run command
always shows it in the format in which the area was created. This causes
the frr-reload script to be unable to remove ospfv3 interfaces when the
area was created in decimal format. The solution is to allow both formats
to be configured as they can be for other area commands.

Signed-off-by: Duncan Eastoe <duncan.eastoe@att.com>
4 years agolibfrr: Retain ret value if the best idx is found
Naveen Thanikachalam [Tue, 14 Jul 2020 16:15:27 +0000 (09:15 -0700)]
libfrr: Retain ret value if the best idx is found

While iteratively looking for a best match route-map index amongst
a list of potential best match route-map indices, if a candidate
best match index is already found, disregard the value returned by
the function route_map_apply_match() if it returns either RMAP_NOOP
or RMAP_NOMATCH in the following iterations.
This is because if a best match route-map index is found then, the
return value must always be set to RMAP_MATCH.

Signed-off-by: NaveenThanikachalam <nthanikachal@vmware.com>
4 years agoMerge pull request #6721 from kuldeepkash/bgp_basic_functionality
Mark Stapp [Tue, 14 Jul 2020 16:27:25 +0000 (12:27 -0400)]
Merge pull request #6721 from kuldeepkash/bgp_basic_functionality

tests: [topojson] Increase BGP convergence wait time

4 years agoospfd: set display format for range command
George Wilkie [Mon, 5 Nov 2018 15:43:55 +0000 (15:43 +0000)]
ospfd: set display format for range command

If you configure an area range in decimal format, the running
configuration displays it in dotted format.
Call ospf_area_display_format_set() for area range command,
as it is done for other variants.

Signed-off-by: Duncan Eastoe <duncan.eastoe@att.com>
4 years agoMerge pull request #5015 from pguibert6WIND/rpki_vrf_encapsulation
Quentin Young [Tue, 14 Jul 2020 15:52:47 +0000 (11:52 -0400)]
Merge pull request #5015 from pguibert6WIND/rpki_vrf_encapsulation

Rpki Encapsulation

4 years agoMerge pull request #6718 from opensourcerouting/bfd-profile-small-fix
Quentin Young [Tue, 14 Jul 2020 15:34:10 +0000 (11:34 -0400)]
Merge pull request #6718 from opensourcerouting/bfd-profile-small-fix

bfdd: update detect multiplier on profile change

4 years agotests: [topojson] Increase BGP convergence wait time
Kuldeep Kashyap [Sat, 11 Jul 2020 06:54:42 +0000 (06:54 +0000)]
tests: [topojson] Increase BGP convergence wait time

1. Increasing BGP convergence wait time to overcome Ubuntu 16.04 arm8 box, as
bgp neighorship is taking more time in this particular testbed.
2. Debugged bgp-ecmp-topo2 failures and here also it seems to be bgp convergence
issue, doing some enhancement in scripts to handle it

Signed-off-by: Kuldeep Kashyap <kashyapk@vmware.com>
4 years agoisisd: fix OpenBSD pedantic format warnings
David Lamparter [Tue, 14 Jul 2020 10:02:54 +0000 (12:02 +0200)]
isisd: fix OpenBSD pedantic format warnings

constants are int-typed, so adding something to an uint8_t yields an
int.  Nevermind the fact that varargs calling conventions require
upcasting everything smaller than an int to an int anyways...

Signed-off-by: David Lamparter <equinox@diac24.net>
4 years ago*: remove PRI[udx](8|16|32)
David Lamparter [Fri, 27 Mar 2020 11:51:47 +0000 (12:51 +0100)]
*: remove PRI[udx](8|16|32)

These are completely pointless and break coccinelle string replacements.

Scripted commit, idempotent to running:
```
python3 tools/stringmangle.py --pri8-16-32 `git ls-files | egrep '\.[ch]$'`
```

Signed-off-by: David Lamparter <equinox@diac24.net>
4 years ago*: un-split strings across lines
David Lamparter [Fri, 27 Mar 2020 11:35:23 +0000 (12:35 +0100)]
*: un-split strings across lines

Remove mid-string line breaks, cf. workflow doc:

  .. [#tool_style_conflicts] For example, lines over 80 characters are allowed
     for text strings to make it possible to search the code for them: please
     see `Linux kernel style (breaking long lines and strings)
     <https://www.kernel.org/doc/html/v4.10/process/coding-style.html#breaking-long-lines-and-strings>`_
     and `Issue #1794 <https://github.com/FRRouting/frr/issues/1794>`_.

Scripted commit, idempotent to running:
```
python3 tools/stringmangle.py --unwrap `git ls-files | egrep '\.[ch]$'`
```

Signed-off-by: David Lamparter <equinox@diac24.net>
4 years agotools: add source code string mangler
David Lamparter [Tue, 14 Jul 2020 08:18:09 +0000 (10:18 +0200)]
tools: add source code string mangler

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
4 years agoMerge pull request #6649 from xThaid/dplane_batching2
Rafael Zalamena [Mon, 13 Jul 2020 20:32:16 +0000 (17:32 -0300)]
Merge pull request #6649 from xThaid/dplane_batching2

zebra: netlink cleanup

4 years agoMerge pull request #6346 from ton31337/fix/bgp_hostname_nexthop_if_unchanged
Rafael Zalamena [Mon, 13 Jul 2020 19:15:41 +0000 (16:15 -0300)]
Merge pull request #6346 from ton31337/fix/bgp_hostname_nexthop_if_unchanged

bgpd: Show the real next-hop address in addition to hostname in `show…

4 years agoMerge pull request #5301 from idryzhov/show-interface
Quentin Young [Mon, 13 Jul 2020 15:23:53 +0000 (11:23 -0400)]
Merge pull request #5301 from idryzhov/show-interface

[RFC] zebra: remove vrf parameter from "show interface ..." commands

4 years agoMerge pull request #6704 from mjstapp/pthread_block_signals
Quentin Young [Mon, 13 Jul 2020 15:09:46 +0000 (11:09 -0400)]
Merge pull request #6704 from mjstapp/pthread_block_signals

lib: block signals in child pthreads

4 years agozebra: cosmetic changes in the netlink code
Jakub Urbańczyk [Mon, 13 Jul 2020 10:43:15 +0000 (12:43 +0200)]
zebra: cosmetic changes in the netlink code

Signed-off-by: Jakub Urbańczyk <xthaid@gmail.com>
4 years agodoc: Add some words about `bgp default show-[nexthop]-hostname`
Donatas Abraitis [Wed, 24 Jun 2020 14:26:27 +0000 (17:26 +0300)]
doc: Add some words about `bgp default show-[nexthop]-hostname`

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agobgpd: Add "hostname" in JSON output for `show bgp` family outputs
Donatas Abraitis [Wed, 6 May 2020 14:50:04 +0000 (17:50 +0300)]
bgpd: Add "hostname" in JSON output for `show bgp` family outputs

This adds hostname regardless if `bgp default show-hostname` enabled or not.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agobgpd: Show the real next-hop address in addition to hostname in `show bgp`
Donatas Abraitis [Wed, 6 May 2020 14:46:10 +0000 (17:46 +0300)]
bgpd: Show the real next-hop address in addition to hostname in `show bgp`

It's hard to cope with cases when next-hop is changed/unchanged or
peers are non-direct.

It would be better to show the hostname and nexthop IP address (both)
under `show bgp` to quickly identify the source and the real next-hop
of the route.

If `bgp default show-nexthop-hostname` is toggled the output looks like:
```
spine1-debian-9# show bgp
BGP table version is 1, local router ID is 2.2.2.2, vrf id 0
Default local pref 100, local AS 65002
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*  2a02:4780::/64   fe80::a00:27ff:fe09:f8a3(exit1-debian-9)
                                             0             0 65001 ?

spine1-debian-9# show ip bgp
BGP table version is 5, local router ID is 2.2.2.2, vrf id 0
Default local pref 100, local AS 65002
Status codes:  s suppressed, d damped, h history, * valid, > best, = multipath,
               i internal, r RIB-failure, S Stale, R Removed
Nexthop codes: @NNN nexthop's vrf id, < announce-nh-self
Origin codes:  i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 10.255.255.0/24  192.168.0.1(exit1-debian-9)
                                             0             0 65001 ?
```

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agobfdd: update detect multiplier on profile change
Rafael Zalamena [Sun, 28 Jun 2020 21:07:38 +0000 (18:07 -0300)]
bfdd: update detect multiplier on profile change

Add missing profile update hook for detection multiplier change.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
4 years agoMerge pull request #6719 from opensourcerouting/fpm-force-nhg-fix
Donald Sharp [Mon, 13 Jul 2020 12:48:49 +0000 (08:48 -0400)]
Merge pull request #6719 from opensourcerouting/fpm-force-nhg-fix

zebra,fpm: fix force disable next hop groups

4 years agoMerge pull request #6716 from sworleys/Connected-Match-Ifindex
Mark Stapp [Fri, 10 Jul 2020 21:13:25 +0000 (17:13 -0400)]
Merge pull request #6716 from sworleys/Connected-Match-Ifindex

zebra: mark connected nh inactive if not matching ifindex

4 years agoMerge pull request #6715 from volta-networks/fix_isis_circ_sa
Donald Sharp [Fri, 10 Jul 2020 20:08:35 +0000 (16:08 -0400)]
Merge pull request #6715 from volta-networks/fix_isis_circ_sa

isisd: fix Coverity warning

4 years agozebra: mark connected nh inactive if not matching ifindex
Stephen Worley [Mon, 6 Jul 2020 22:20:14 +0000 (18:20 -0400)]
zebra: mark connected nh inactive if not matching ifindex

If we are asked to check if a nexthop is active and it matches a
connected route but the ifindex on it does not match the interface
with the connected route, mark as inactive. This is a bad nexthop.

Before, we would skip this check and just assume any nexthop that matches
on a connected route is valid and return here then fail during
installation. This adds a check for the IPV*_ifindex nexthop case where the
ifindex we have been sent doesn't match.

Old:
F>r 0.0.0.0/0 [200/0] via 20.0.0.2, test, weight 1, 00:00:27
  r                   via 40.4.4.4, lo, weight 1, 00:00:27

New:
F>* 0.0.0.0/0 [200/0] via 20.0.0.2, test, weight 1, 00:00:06
  *                   via 40.4.4.4, lo inactive, weight 1, 00:00:06

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
4 years agotests: Remove bgp_show_ip_bgp_fqdn test
Donatas Abraitis [Wed, 6 May 2020 14:45:31 +0000 (17:45 +0300)]
tests: Remove bgp_show_ip_bgp_fqdn test

Not really relevant for now.

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
4 years agozebra,fpm: fix force disable next hop groups
Rafael Zalamena [Fri, 12 Jun 2020 15:21:28 +0000 (12:21 -0300)]
zebra,fpm: fix force disable next hop groups

`force_nhg` is only settable when calling from `fpm`, so if the kernel
was using next hop groups it would override our knob.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
4 years agoMerge pull request #6530 from mjstapp/backup_nhg_notify
Donald Sharp [Fri, 10 Jul 2020 14:54:59 +0000 (10:54 -0400)]
Merge pull request #6530 from mjstapp/backup_nhg_notify

lib, zebra: async notifications for backup routes and LSPs

4 years agoisisd: fix Coverity warning
Emanuele Di Pascale [Fri, 10 Jul 2020 13:55:52 +0000 (15:55 +0200)]
isisd: fix Coverity warning

no need to check cicuit->area, as all code paths leading there
had already dereferenced it.
Fixes CID 1496314

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
4 years agoisisd: lib: refactor ISIS BFD API
GalaxyGorilla [Thu, 9 Jul 2020 17:37:42 +0000 (17:37 +0000)]
isisd: lib: refactor ISIS BFD API

Use `zclient_bfd_command` instead of `bfd_peer_sendmsg`.

Signed-off-by: GalaxyGorilla <sascha@netdef.org>
4 years agoMerge pull request #6403 from NaveenThanikachalam/FRR_RMAP_FIX
Donald Sharp [Fri, 10 Jul 2020 12:07:04 +0000 (08:07 -0400)]
Merge pull request #6403 from NaveenThanikachalam/FRR_RMAP_FIX

lib: Fix erroneous r-map behavior

4 years agotests: align BFD profiles tests for IS-IS
GalaxyGorilla [Fri, 10 Jul 2020 11:29:32 +0000 (11:29 +0000)]
tests: align BFD profiles tests for IS-IS

Signed-off-by: GalaxyGorilla <sascha@netdef.org>