]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
6 years agobuild: zebra: remove *_method Makefile hacks
David Lamparter [Wed, 26 Jul 2017 17:49:15 +0000 (19:49 +0200)]
build: zebra: remove *_method Makefile hacks

replace with preprocessor checks in source files.  Much simpler...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years agobuild: convert zebra/ to non-recursive build
David Lamparter [Sat, 22 Jul 2017 17:01:46 +0000 (19:01 +0200)]
build: convert zebra/ to non-recursive build

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years agobuild: convert lib/ to non-recursive build
David Lamparter [Wed, 24 May 2017 15:48:12 +0000 (17:48 +0200)]
build: convert lib/ to non-recursive build

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years agoMerge pull request #881 from donaldsharp/ping_traceroute
David Lamparter [Mon, 31 Jul 2017 18:06:57 +0000 (20:06 +0200)]
Merge pull request #881 from donaldsharp/ping_traceroute

vtysh: Fix shell executed commands

6 years agoMerge pull request #873 from donaldsharp/ospf6_strings
David Lamparter [Mon, 31 Jul 2017 18:06:06 +0000 (20:06 +0200)]
Merge pull request #873 from donaldsharp/ospf6_strings

ospf6d: New version of GCC with new warnings

6 years agoMerge pull request #865 from qlyoung/find
David Lamparter [Mon, 31 Jul 2017 17:58:20 +0000 (19:58 +0200)]
Merge pull request #865 from qlyoung/find

Find

6 years agoMerge pull request #850 from opensourcerouting/ldpd-cli
Quentin Young [Mon, 31 Jul 2017 17:24:17 +0000 (13:24 -0400)]
Merge pull request #850 from opensourcerouting/ldpd-cli

ldpd: CLI fixes + use DEFPY

6 years agolib: s/leychain/keychain
Quentin Young [Mon, 31 Jul 2017 15:03:32 +0000 (11:03 -0400)]
lib: s/leychain/keychain

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #874 from opensourcerouting/zebra-static-rework
Quentin Young [Mon, 31 Jul 2017 14:53:39 +0000 (10:53 -0400)]
Merge pull request #874 from opensourcerouting/zebra-static-rework

zebra: make static routes great again

6 years agovtysh: Fix shell executed commands
Donald Sharp [Mon, 31 Jul 2017 12:52:10 +0000 (08:52 -0400)]
vtysh: Fix shell executed commands

Pretty much all shell executed commands from vtysh were
not behaving correctly due to errors introduced in
switching to the new cli.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoldpd: update .gitignore
Renato Westphal [Wed, 26 Jul 2017 01:39:05 +0000 (22:39 -0300)]
ldpd: update .gitignore

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoldpd: silence coverity scan warning
Renato Westphal [Wed, 26 Jul 2017 01:36:00 +0000 (22:36 -0300)]
ldpd: silence coverity scan warning

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoldpd: add auto-complete for l2vpns
Renato Westphal [Tue, 25 Jul 2017 03:20:56 +0000 (00:20 -0300)]
ldpd: add auto-complete for l2vpns

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoldpd: convert CLI code to use DEFPY
Renato Westphal [Tue, 25 Jul 2017 00:45:33 +0000 (21:45 -0300)]
ldpd: convert CLI code to use DEFPY

Yay :)

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoldpd: restore correct defaults on "no discovery ... interval"
Renato Westphal [Tue, 25 Jul 2017 00:39:55 +0000 (21:39 -0300)]
ldpd: restore correct defaults on "no discovery ... interval"

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoldpd: fix missing "no" commands in vtysh
Renato Westphal [Mon, 24 Jul 2017 23:22:17 +0000 (20:22 -0300)]
ldpd: fix missing "no" commands in vtysh

Split the "no" version of some commands into a different DEFUN so that
DEFUN_NOSH doesn't apply to them.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoldpd: fix segfault in "clear mpls ldp neighbor [addr]"
Renato Westphal [Mon, 24 Jul 2017 22:48:08 +0000 (19:48 -0300)]
ldpd: fix segfault in "clear mpls ldp neighbor [addr]"

Bug introduced by the CLI refactoring (c740f7d3678).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoMerge pull request #856 from opensourcerouting/cli-fuzzer-fixes
Quentin Young [Fri, 28 Jul 2017 23:39:15 +0000 (19:39 -0400)]
Merge pull request #856 from opensourcerouting/cli-fuzzer-fixes

bgpd/eigrpd: fix crashes found by the CLI fuzzer

6 years agoMerge pull request #866 from opensourcerouting/ldpd-config-issues
Daniel Walton [Fri, 28 Jul 2017 12:11:07 +0000 (08:11 -0400)]
Merge pull request #866 from opensourcerouting/ldpd-config-issues

LDP config issues (Issue #858)

6 years agozebra: use DEFPY for static routes
Renato Westphal [Fri, 28 Jul 2017 00:27:56 +0000 (21:27 -0300)]
zebra: use DEFPY for static routes

Now we have a single command for IPv4 static routes and another one for
IPv6 static routes (+ one command for IPv4 multicast static routes).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agozebra: unify the ipv4/ipv6 static route functions
Renato Westphal [Thu, 27 Jul 2017 22:58:45 +0000 (19:58 -0300)]
zebra: unify the ipv4/ipv6 static route functions

Addresses Issue #655.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agozebra: allow fully specified static ipv4 routes
Renato Westphal [Thu, 27 Jul 2017 21:57:37 +0000 (18:57 -0300)]
zebra: allow fully specified static ipv4 routes

Fully specified routes are useful when you need to ensure that the
nexthop address is reachable through the specified interface.

Addresses Issue #641.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agozebra: refactor zebra_static_ipv4() and static_ipv6_func()
Renato Westphal [Thu, 27 Jul 2017 18:52:52 +0000 (15:52 -0300)]
zebra: refactor zebra_static_ipv4() and static_ipv6_func()

This is a preliminary step to join both functions into one later.

The main idea here is to make these functions have separate arguments
for the nexthop address and the nexthop interface, and adjust the call
sites appropriately. Having an argument that could be a nexthop address
OR a nexthop interface was making the code very hard to follow. With
this simplification, a lot of code duplication was removed and now both
functions look very similar.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agozebra: accept static v6 routes with non-existent nexthop interfaces
Renato Westphal [Thu, 27 Jul 2017 21:01:12 +0000 (18:01 -0300)]
zebra: accept static v6 routes with non-existent nexthop interfaces

We don't need to enforce that the interface exists because the route can
be activated later once the interface becomes available. We already do
this for IPv4 routes and IPv6 routes with both a nexthop address and a
nexthop interface.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agozebra: remove redundant DEFUNs for labeled static routes
Renato Westphal [Thu, 27 Jul 2017 15:16:41 +0000 (12:16 -0300)]
zebra: remove redundant DEFUNs for labeled static routes

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoMerge pull request #857 from devicenull/master
Donald Sharp [Fri, 28 Jul 2017 00:46:22 +0000 (20:46 -0400)]
Merge pull request #857 from devicenull/master

redhat: Make the init script flush routes for all associated protocols

6 years agozebra: remove weird blackhole/reject ipv6 static routes
Renato Westphal [Thu, 27 Jul 2017 14:05:15 +0000 (11:05 -0300)]
zebra: remove weird blackhole/reject ipv6 static routes

This is the v6 counterpart of commit 74d263466b9.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agozebra: use curly braces for optional arguments of static routes
Renato Westphal [Thu, 27 Jul 2017 13:44:55 +0000 (10:44 -0300)]
zebra: use curly braces for optional arguments of static routes

This way the optional arguments can be provided in any order.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoospf6d: New version of GCC with new warnings
Donald Sharp [Thu, 27 Jul 2017 22:19:31 +0000 (18:19 -0400)]
ospf6d: New version of GCC with new warnings

GCC 7.1.1 returned warnings about buffer sizes
not being big enough to handle the full string
that could be generated.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #861 from dwalton76/bgpd-attr-unchanged
Russ White [Thu, 27 Jul 2017 19:59:24 +0000 (15:59 -0400)]
Merge pull request #861 from dwalton76/bgpd-attr-unchanged

bgpd: attribute-unchanged issues with peer-groups

6 years agoMerge pull request #859 from donaldsharp/bgp_ll_global
Russ White [Thu, 27 Jul 2017 19:56:56 +0000 (15:56 -0400)]
Merge pull request #859 from donaldsharp/bgp_ll_global

Bgp -> Allow comparison of correct v6 nexthop

6 years agoMerge pull request #862 from dwalton76/bgpd-update-too-large
Russ White [Thu, 27 Jul 2017 19:56:06 +0000 (15:56 -0400)]
Merge pull request #862 from dwalton76/bgpd-update-too-large

bgpd: UPDATE may be larger than 4096 if addpath is used

6 years agoMerge pull request #863 from dwalton76/zebra-static-reject
Russ White [Thu, 27 Jul 2017 19:54:48 +0000 (15:54 -0400)]
Merge pull request #863 from dwalton76/zebra-static-reject

zebra: static route cleanup

6 years agoMerge pull request #864 from dwalton76/zebra-debug-packet-detail
Russ White [Thu, 27 Jul 2017 19:54:16 +0000 (15:54 -0400)]
Merge pull request #864 from dwalton76/zebra-debug-packet-detail

Zebra debug packet detail

6 years agoMerge pull request #869 from donaldsharp/hash_a_roni
Russ White [Thu, 27 Jul 2017 19:47:48 +0000 (15:47 -0400)]
Merge pull request #869 from donaldsharp/hash_a_roni

lib: Remove expansion of hash table

6 years agolib: correct some node name typos
Quentin Young [Thu, 27 Jul 2017 19:03:31 +0000 (15:03 -0400)]
lib: correct some node name typos

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #868 from LabNConsulting/working/master/patch-set/rfapi-lib+
Donald Sharp [Thu, 27 Jul 2017 18:02:00 +0000 (14:02 -0400)]
Merge pull request #868 from LabNConsulting/working/master/patch-set/rfapi-lib+

Restore rfapi and encap attribute, broken by some recent changes

6 years agobgpd rfapi: use afi_t
Lou Berger [Thu, 27 Jul 2017 17:06:49 +0000 (13:06 -0400)]
bgpd rfapi: use afi_t

Signed-off-by: Lou Berger <lberger@labn.net>
6 years agobgpd rfapi: fix breakage introduced in refactoring
Lou Berger [Thu, 27 Jul 2017 15:01:36 +0000 (11:01 -0400)]
bgpd rfapi: fix breakage introduced in refactoring

Signed-off-by: Lou Berger <lberger@labn.net>
6 years agolib: Remove expansion of hash table
Donald Sharp [Thu, 27 Jul 2017 15:08:40 +0000 (11:08 -0400)]
lib: Remove expansion of hash table

The hash code has the idea of stopping expanding
the hash table when certain criteria are set.
With the recent addition of `show hashtable`
we can now see that when we have a full internet
feed we've stopped expanding the table at 1k
buckets.  This results in some serious performance
issues at scale.

Since we now have the ability to see the statistics
on a hash table, let's allow it to expand.  Doing
so on a full feed showed this:

before:
   Hash table          |  Buckets   Entries   Empty   LF        SD      FLF       SD
 ----------------------+----------------------------------------------------------------
   route table hash    |  1024      1187579   0%      1159.75   34.06   1159.75   35.08
   route table hash    |  32768     76208     10%     2.33      2.80    2.58      4.03
   route table hash    |  1024      1187572   0%      1159.74   34.06   1159.74   35.08
   route table hash    |  2048      76205     0%      37.21     6.13    37.21     7.29

Showing hash table statistics for BGP
-------------------------------------

   Hash table         |  Buckets   Entries   Empty   LF       SD      FLF      SD
 ---------------------+--------------------------------------------------------------
   BGP Attributes     |  131072    251229    15%     1.92     2.48    2.25     3.33
   route table hash   |  4096      1187572   0%      289.93   17.03   289.93   17.87
   route table hash   |  32768     76205     10%     2.33     2.90    2.58     4.21

After:

   Hash table          |  Buckets   Entries   Empty   LF     SD     FLF    SD
 ----------------------+--------------------------------------------------------
   route table hash    |  1048576   1187349   32%     1.13   2.57   1.67   3.16
   route table hash    |  32768     76195     10%     2.33   2.81   2.58   4.03
   route table hash    |  1048576   1187342   32%     1.13   2.58   1.67   3.16
   route table hash    |  32768     76192     10%     2.33   2.68   2.58   3.81

Showing hash table statistics for BGP
-------------------------------------

   Hash table         |  Buckets   Entries   Empty   LF     SD     FLF    SD
 ---------------------+--------------------------------------------------------
   BGP Attributes     |  131072    251222    15%     1.92   2.64   2.25   3.58
   route table hash   |  1048576   1187342   32%     1.13   2.52   1.67   3.07
   route table hash   |  32768     76192     10%     2.33   2.86   2.58   4.12

We should see some significant performance improvements across the board
for full feeds.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgp rfapi: use route_table_init and _finish (fixes crash due to recent lib change)
Lou Berger [Thu, 27 Jul 2017 14:05:48 +0000 (10:05 -0400)]
bgp rfapi: use route_table_init and _finish (fixes crash due to recent lib change)

Signed-off-by: Lou Berger <lberger@labn.net>
6 years agolib, vtysh: add `find COMMAND`
Quentin Young [Tue, 25 Jul 2017 18:20:55 +0000 (14:20 -0400)]
lib, vtysh: add `find COMMAND`

Substring search through all defined commands in all nodes.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agovtysh: fix markfile output for ldpd
Renato Westphal [Wed, 26 Jul 2017 22:37:49 +0000 (19:37 -0300)]
vtysh: fix markfile output for ldpd

Put the "end" marker in the right places. This should fix the
frr-reload.py script because it depends on the output of vtysh -m.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoldpd: add the exit-address-family command
Renato Westphal [Wed, 26 Jul 2017 22:32:55 +0000 (19:32 -0300)]
ldpd: add the exit-address-family command

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agolib: add CLI node names
Quentin Young [Tue, 25 Jul 2017 21:28:19 +0000 (17:28 -0400)]
lib: add CLI node names

Adds an array of descriptive names for each CLI node, plus a runtime
check to make sure folks don't forget to update it.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agobgpd: Fix nexthop comparison for v6
Donald Sharp [Wed, 26 Jul 2017 13:41:36 +0000 (09:41 -0400)]
bgpd: Fix nexthop comparison for v6

When we have both a LL and a Global address,
use what the attribute wants for comparison
instead of assuming Global than LL.

This was causing BGP to install v6 routes
that used the LL as the nexthop, where
the global address was different and
being used as the basis for comparison.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Set the ifindex to DELETED after we notify zebra
Donald Sharp [Wed, 26 Jul 2017 13:57:35 +0000 (09:57 -0400)]
bgpd: Set the ifindex to DELETED after we notify zebra

The code path for a deleted interface was calling
zebra with a IFINDEX_DELETED, which caused zebra
to bitch and moan about the issue.  Since the
only thing this function does is call zebra
to deregister the RA stuff, don't set the
ifindex to DELETED till afterwords.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge branch 'master' of https://github.com/dwalton76/frr into zebra-debug-packet...
Daniel Walton [Wed, 26 Jul 2017 18:17:33 +0000 (18:17 +0000)]
Merge branch 'master' of https://github.com/dwalton76/frr into zebra-debug-packet-detail

Conflicts:
zebra/debug.c

6 years agobgpd: attribute-unchanged issues with peer-groups
Daniel Walton [Wed, 26 Jul 2017 17:49:20 +0000 (17:49 +0000)]
bgpd: attribute-unchanged issues with peer-groups

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
6 years agobgpd: UPDATE may be larger than 4096 if addpath is used
Daniel Walton [Wed, 26 Jul 2017 16:33:39 +0000 (16:33 +0000)]
bgpd: UPDATE may be larger than 4096 if addpath is used

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
6 years agoMerge pull request #842 from qlyoung/update-style-guide
David Lamparter [Wed, 26 Jul 2017 16:20:17 +0000 (18:20 +0200)]
Merge pull request #842 from qlyoung/update-style-guide

Update COMMUNITY.md

6 years agoredhat: Update documentation about frr-reload
Brian Rak [Wed, 26 Jul 2017 15:47:07 +0000 (11:47 -0400)]
redhat: Update documentation about frr-reload

6 years agobgpd/ospfd: fix json leaks and blank output
Renato Westphal [Wed, 26 Jul 2017 15:27:37 +0000 (12:27 -0300)]
bgpd/ospfd: fix json leaks and blank output

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agobabeld: remove redundant startup message
Renato Westphal [Wed, 26 Jul 2017 14:32:23 +0000 (11:32 -0300)]
babeld: remove redundant startup message

The frr_run() function already logs a startup message (and after reading
the config so the "log" commands are honored).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agobabel: fix crashes and improve the redistribute command
Renato Westphal [Wed, 26 Jul 2017 14:31:54 +0000 (11:31 -0300)]
babel: fix crashes and improve the redistribute command

Fixes the following crashes:
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "no redistribute pim"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "no redistribute eigrp"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "no redistribute nhrp"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "no redistribute table"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "no redistribute vnc"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "redistribute pim"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "redistribute eigrp"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "redistribute nhrp"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "redistribute table"
babeld aborted: vtysh -c "configure terminal" -c "router babel" -c "redistribute vnc"

While here, add an option to chose if we want to redistribute IPv4 or
IPv6 routes (e.g. we might want static IPv4 routes only). Also, join the
"no" version of the command in the same DEFUN (Yes We Can).

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoeigrpd: minor fix in the redistribute command
Renato Westphal [Wed, 26 Jul 2017 14:30:56 +0000 (11:30 -0300)]
eigrpd: minor fix in the redistribute command

Commands like "redistribute stati" and "redistribute osp" were being
silently ignored.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agozebra: static route cleanup
Daniel Walton [Tue, 25 Jul 2017 20:24:45 +0000 (13:24 -0700)]
zebra: static route cleanup

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
- The 'reject' keyword was being lost
- Hide the "ip route A.B.C.D A.B.C.D" config options since these will be
  displayed as "ip route A.B.C.D/X"

6 years agoCOMMUNITY.md: rewrap paragraphs, update PR section
Quentin Young [Tue, 25 Jul 2017 19:53:05 +0000 (15:53 -0400)]
COMMUNITY.md: rewrap paragraphs, update PR section

* Wrap paragraphs at 80 lines
* Update Github PR section to remove mention of develop branch

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoredhat: Make the init script flush routes for all associated protocols on stop
Brian Rak [Tue, 25 Jul 2017 19:48:02 +0000 (15:48 -0400)]
redhat: Make the init script flush routes for all associated protocols on stop

6 years agoCOMMUNITY.md: minor grammatical fixes
Quentin Young [Tue, 25 Jul 2017 19:39:05 +0000 (15:39 -0400)]
COMMUNITY.md: minor grammatical fixes

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoCOMMUNITY.md: document documentation
Quentin Young [Tue, 25 Jul 2017 19:34:41 +0000 (15:34 -0400)]
COMMUNITY.md: document documentation

Add guidelines for documentation to COMMUNITY.md

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoCOMMUNITY.md: miscellaneous documentation
Quentin Young [Fri, 21 Jul 2017 16:50:59 +0000 (12:50 -0400)]
COMMUNITY.md: miscellaneous documentation

Also:
- Add documentation on mailing list
- Update mentions of unit tests
- Update process description

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoCOMMUNITY.md: s/PROJECT/FRRouting
Quentin Young [Fri, 21 Jul 2017 16:12:52 +0000 (12:12 -0400)]
COMMUNITY.md: s/PROJECT/FRRouting

Also:
* Make headers consistently capitalized
* Some extra backticks where needed

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoCOMMUNITY.md: update style guide
Quentin Young [Fri, 21 Jul 2017 15:33:38 +0000 (11:33 -0400)]
COMMUNITY.md: update style guide

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agozebra: debug cleanup
Daniel Walton [Tue, 25 Jul 2017 19:07:07 +0000 (12:07 -0700)]
zebra: debug cleanup

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
6 years agobgpd/eigrpd: fix crashes found by the CLI fuzzer
Renato Westphal [Tue, 25 Jul 2017 16:55:48 +0000 (13:55 -0300)]
bgpd/eigrpd: fix crashes found by the CLI fuzzer

Fixes the following crashes:
* bgpd aborted: vtysh  -c "show ip bgp l2vpn evpn all 1.1.1.1 json"
* bgpd aborted: vtysh  -c "show ip bgp l2vpn evpn all 1.1.1.1"
* bgpd aborted: vtysh  -c "show ip bgp l2vpn evpn all 1.1.1.1/32 json"
* bgpd aborted: vtysh  -c "show ip bgp l2vpn evpn all 1.1.1.1/32"
* bgpd aborted: vtysh  -c "show bgp l2vpn evpn all 1.1.1.1 json"
* bgpd aborted: vtysh  -c "show bgp l2vpn evpn all 1.1.1.1"
* bgpd aborted: vtysh  -c "show bgp l2vpn evpn all 1.1.1.1/32 json"
* bgpd aborted: vtysh  -c "show bgp l2vpn evpn all 1.1.1.1/32"
* bgpd aborted: vtysh  -c "show bgp ipv4 vpn rd 1:1 1.1.1.1/32 json"
* bgpd aborted: vtysh  -c "show bgp ipv4 vpn rd 1:1 1.1.1.1/32"
* bgpd aborted: vtysh  -c "show bgp ipv4 vpn rd 1:1 2001:db8::1/128 json"
* bgpd aborted: vtysh  -c "show bgp ipv4 vpn rd 1:1 2001:db8::1/128"
* bgpd aborted: vtysh  -c "show bgp ipv6 vpn rd 1:1 1.1.1.1/32 json"
* bgpd aborted: vtysh  -c "show bgp ipv6 vpn rd 1:1 1.1.1.1/32"
* bgpd aborted: vtysh  -c "show bgp ipv6 vpn rd 1:1 2001:db8::1/128 json"
* bgpd aborted: vtysh  -c "show bgp ipv6 vpn rd 1:1 2001:db8::1/128"
* bgpd aborted: vtysh  -c "show vnc responses 1.1.1.1/32"
* bgpd aborted: vtysh  -c "show vnc responses 2001:db8::1/128"
* bgpd aborted: vtysh  -c "show vnc responses 11:11:11:11:11:11"
* bgpd aborted: vtysh  -c "show vnc responses"
* eigrpd aborted: vtysh -c "configure terminal" -c "no router eigrp 65535"

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoMerge pull request #848 from opensourcerouting/rb-tree-fix
Donald Sharp [Tue, 25 Jul 2017 15:11:33 +0000 (11:11 -0400)]
Merge pull request #848 from opensourcerouting/rb-tree-fix

Fix corrupted RB trees

6 years agoMerge pull request #847 from donaldsharp/cmd_success
David Lamparter [Tue, 25 Jul 2017 14:23:48 +0000 (16:23 +0200)]
Merge pull request #847 from donaldsharp/cmd_success

Cmd success

6 years agoMerge pull request #838 from dwalton76/lib-copy-nexthops
David Lamparter [Tue, 25 Jul 2017 14:20:08 +0000 (16:20 +0200)]
Merge pull request #838 from dwalton76/lib-copy-nexthops

lib: copy_nexthops() only copies the first nexthop

6 years agoMerge pull request #837 from qlyoung/fix-eigrp-routemap-cli
David Lamparter [Tue, 25 Jul 2017 14:15:54 +0000 (16:15 +0200)]
Merge pull request #837 from qlyoung/fix-eigrp-routemap-cli

eigrpd, vtysh: add dummy route-map cli

6 years agoMerge pull request #836 from dwalton76/zebra-debug-packet-send-detail
David Lamparter [Tue, 25 Jul 2017 14:01:40 +0000 (16:01 +0200)]
Merge pull request #836 from dwalton76/zebra-debug-packet-send-detail

zebra: "debug zebra packet" config display

6 years agolib: fix corrupted RB trees
Renato Westphal [Mon, 24 Jul 2017 21:41:30 +0000 (18:41 -0300)]
lib: fix corrupted RB trees

Commit 8f942af90 introduced a bug while silencing a clang warning. Silence
the warning in a different way to fix our red-black tree implementation.

Fixes #841.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agolib: revert reindent of files imported from OpenBSD
Renato Westphal [Mon, 24 Jul 2017 21:36:51 +0000 (18:36 -0300)]
lib: revert reindent of files imported from OpenBSD

We should preserve the original indentation to make it easier to keep
these files in sync with the upstream.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoripd: Fix debug config failures
Donald Sharp [Mon, 24 Jul 2017 20:00:20 +0000 (16:00 -0400)]
ripd: Fix debug config failures

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoripngd: Fix failure returned with some debug commands
Donald Sharp [Mon, 24 Jul 2017 19:59:36 +0000 (15:59 -0400)]
ripngd: Fix failure returned with some debug commands

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years ago*: fix git-reindent-branch.py reversing order
David Lamparter [Sat, 22 Jul 2017 16:00:44 +0000 (18:00 +0200)]
*: fix git-reindent-branch.py reversing order

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years agoRevert "*: reindent pt. 2"
David Lamparter [Sat, 22 Jul 2017 12:52:33 +0000 (14:52 +0200)]
Revert "*: reindent pt. 2"

This reverts commit c14777c6bfd0a446c85243d3a9835054a259c276.

clang 5 is not widely available enough for people to indent with.  This
is particularly problematic when rebasing/adjusting branches.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years agolib: copy_nexthops() only copies the first nexthop
Daniel Walton [Thu, 20 Jul 2017 17:11:43 +0000 (17:11 +0000)]
lib: copy_nexthops() only copies the first nexthop

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Before the fix NHT had each path resolving via swp1

cel-redxp-10# show ip route 20.0.11.253
Routing entry for 20.0.11.0/24
  Known via "bgp", distance 20, metric 0, best
  Last update 00:00:20 ago
  * 169.254.0.1, via swp1
  * 169.254.0.17, via swp2

cel-redxp-10#

cel-redxp-10# show ip nht
[snip]
20.0.11.253
 resolved via bgp
 via 169.254.0.1, swp1
 via 169.254.0.1, swp1
 Client list: pim(fd 19)

After the fix

cel-redxp-10# show ip nht
[snip]
20.0.11.253
 resolved via bgp
 via 169.254.0.1, swp1
 via 169.254.0.17, swp2
 Client list: pim(fd 19)

6 years ago*: add git-reindent-branch.py
David Lamparter [Thu, 20 Jul 2017 17:09:40 +0000 (19:09 +0200)]
*: add git-reindent-branch.py

This tries to heave a branch over the reindentation step.  Somewhat
tested, don't trust it blindly...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years agoeigrpd, vtysh: add dummy route-map cli
Quentin Young [Thu, 20 Jul 2017 15:48:52 +0000 (11:48 -0400)]
eigrpd, vtysh: add dummy route-map cli

eigrpd will successfully accept `(conf)# route-map foo ...` because it
is not sent to eigrpd from vtysh, but of course, this is the classic
node sync syndrome.

Since eigrpd apparently doesn't support proper routemaps yet just add
the cli so we can suppress the vtysh errors.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #834 from dwalton76/ospf6d-show-crash
David Lamparter [Wed, 19 Jul 2017 20:05:23 +0000 (22:05 +0200)]
Merge pull request #834 from dwalton76/ospf6d-show-crash

ospf6d: crash in ospf6_lsdb_show

6 years agoMerge pull request #835 from dwalton76/lib-route-node-lookup
David Lamparter [Wed, 19 Jul 2017 20:03:36 +0000 (22:03 +0200)]
Merge pull request #835 from dwalton76/lib-route-node-lookup

lib: route_node_lookup() needs to apply_mask() to prefix

6 years agozebra: "debug zebra packet" config display
Daniel Walton [Wed, 19 Jul 2017 18:20:02 +0000 (18:20 +0000)]
zebra: "debug zebra packet" config display

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
6 years agolib: route_node_lookup() needs to apply_mask() to prefix
Daniel Walton [Wed, 19 Jul 2017 16:54:24 +0000 (16:54 +0000)]
lib: route_node_lookup() needs to apply_mask() to prefix

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #828 from tigranmartirosyan/master
Quentin Young [Tue, 18 Jul 2017 16:11:35 +0000 (12:11 -0400)]
Merge pull request #828 from tigranmartirosyan/master

#752 ARP is not updating if mac address changed on remote side

6 years agoAdd 1 more identation to correspond to kernel style multi-line comment
tmartiro [Tue, 18 Jul 2017 16:06:57 +0000 (19:06 +0300)]
Add 1 more identation to correspond to kernel style multi-line comment

6 years agoMerge pull request #833 from dslicenc/cm16779-bgp-startup-ll
Jafar Al-Gharaibeh [Tue, 18 Jul 2017 15:46:03 +0000 (10:46 -0500)]
Merge pull request #833 from dslicenc/cm16779-bgp-startup-ll

bgpd: fix peer startup for labeled-unicast if linklocal address not f…

6 years agoMerge pull request #827 from devicenull/patch-1
Quentin Young [Tue, 18 Jul 2017 15:41:12 +0000 (11:41 -0400)]
Merge pull request #827 from devicenull/patch-1

Add note about bridge limitations

6 years agoMerge pull request #805 from Orange-OpenSource/master
Quentin Young [Tue, 18 Jul 2017 15:34:25 +0000 (11:34 -0400)]
Merge pull request #805 from Orange-OpenSource/master

Add OSPF API and FRR Hacking documents

6 years agoospf6d: crash in ospf6_lsdb_show
Daniel Walton [Tue, 18 Jul 2017 13:19:47 +0000 (13:19 +0000)]
ospf6d: crash in ospf6_lsdb_show

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
6 years agobgpd: fix peer startup for labeled-unicast if linklocal address not found
Don Slice [Tue, 18 Jul 2017 12:54:50 +0000 (12:54 +0000)]
bgpd: fix peer startup for labeled-unicast if linklocal address not found

Problem found in testing where ipv6 labeled-unicast prefixes were not received
on the peers if a "service networking restart" was issued.  Same problem would
happen with an ifdown/ifup on the link to the peer.  Found the problem to be
that peers would establish for labeled-unicast even if a link-local address was
not yet available on the interface toward the peer, causing updates to be sent
without a nexthop value. These were then rejected by the peer. Fix is to delay
peer establishment until after the link-local addresses are available.

Ticket: CM-16779
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed By: Donald Sharp <sharpd@cumulusnetworks.com>
Testing Done: Manual testing successful.  Bgp-smoke completed with no new failures

6 years agoreplace space to tabs, add kernel styles multiline, remove trailing whitespaces.
tmartiro [Tue, 18 Jul 2017 07:34:21 +0000 (10:34 +0300)]
replace space to tabs, add kernel styles multiline, remove trailing whitespaces.

6 years ago*: reindent pt. 2
whitespace / reindent [Mon, 17 Jul 2017 19:26:02 +0000 (15:26 -0400)]
*: reindent pt. 2

w/ clang 5

* reflow comments
* struct members go 1 per line
* binpack algo was adjusted

6 years agoAdd note about bridge limitations
devicenull [Mon, 17 Jul 2017 17:04:55 +0000 (13:04 -0400)]
Add note about bridge limitations

Add note that Zebra will never be able to detect the master interface for any interface due to IFLA_INFO_SLAVE_KIND not being defined

6 years agoMerge pull request #826 from qlyoung/rm-vtyoutln
David Lamparter [Mon, 17 Jul 2017 16:37:46 +0000 (18:37 +0200)]
Merge pull request #826 from qlyoung/rm-vtyoutln

eigrpd: remove last vty_outln

6 years agoeigrpd: remove last vty_outln
Quentin Young [Mon, 17 Jul 2017 15:16:03 +0000 (11:16 -0400)]
eigrpd: remove last vty_outln

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agomerge with upstream
tmartiro [Mon, 17 Jul 2017 14:23:20 +0000 (17:23 +0300)]
merge with upstream

6 years ago*: reindent reindent-master-after
whitespace / reindent [Mon, 17 Jul 2017 12:03:14 +0000 (14:03 +0200)]
*: reindent

indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'`

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years ago*: add indent control files reindent-master-before
David Lamparter [Mon, 17 Jul 2017 12:00:23 +0000 (14:00 +0200)]
*: add indent control files

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years agoMerge pull request #818 from donaldsharp/eigrp_afi
Jafar Al-Gharaibeh [Fri, 14 Jul 2017 17:55:28 +0000 (12:55 -0500)]
Merge pull request #818 from donaldsharp/eigrp_afi

Eigrp afi