]> git.puffer.fish Git - mirror/frr.git/log
mirror/frr.git
7 years agoMerge pull request #813 from opensourcerouting/newline-redux
Russ White [Fri, 14 Jul 2017 12:00:43 +0000 (08:00 -0400)]
Merge pull request #813 from opensourcerouting/newline-redux

newline redux

7 years agoMerge pull request #762 from bingen/mutiple_nh_recursive_levels
Donald Sharp [Fri, 14 Jul 2017 11:44:02 +0000 (07:44 -0400)]
Merge pull request #762 from bingen/mutiple_nh_recursive_levels

Allow for more than 1 NH recursion level

7 years agoMerge pull request #804 from opensourcerouting/fixes/tests/prng
Donald Sharp [Fri, 14 Jul 2017 11:43:40 +0000 (07:43 -0400)]
Merge pull request #804 from opensourcerouting/fixes/tests/prng

tests: update prng to return better pseudo random numbers

7 years agolib, vtysh: remove now-useless newline arg 813/head
David Lamparter [Fri, 14 Jul 2017 11:18:14 +0000 (13:18 +0200)]
lib, vtysh: remove now-useless newline arg

It's always \n now, hooray.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge remote-tracking branch 'frr/master' into newline-redux
David Lamparter [Fri, 14 Jul 2017 11:15:55 +0000 (13:15 +0200)]
Merge remote-tracking branch 'frr/master' into newline-redux

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #799 from dwalton76/bgpd-show-labeled-unicast
Russ White [Fri, 14 Jul 2017 11:12:02 +0000 (07:12 -0400)]
Merge pull request #799 from dwalton76/bgpd-show-labeled-unicast

bgpd: show bgp ipv4 label-unicast does not provide any output

7 years agoMerge pull request #808 from qlyoung/vtysh-termcols
Russ White [Fri, 14 Jul 2017 11:10:13 +0000 (07:10 -0400)]
Merge pull request #808 from qlyoung/vtysh-termcols

lib, vtysh: pretty-print variable autocompletions

7 years ago*: remove vty_outln again
David Lamparter [Fri, 14 Jul 2017 11:09:47 +0000 (13:09 +0200)]
*: remove vty_outln again

(PRs merged to master added another few vty_outln() calls)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge remote-tracking branch 'frr/master' into newline-redux
David Lamparter [Fri, 14 Jul 2017 11:07:30 +0000 (13:07 +0200)]
Merge remote-tracking branch 'frr/master' into newline-redux

Lots of conflicts from CMD_WARNING_CONFIG_FAILED...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #800 from qlyoung/fix-old-vpn-commands
Russ White [Fri, 14 Jul 2017 10:53:34 +0000 (06:53 -0400)]
Merge pull request #800 from qlyoung/fix-old-vpn-commands

bgpd: fix old-style vpn commands

7 years agoMerge pull request #815 from dwalton76/CMD_WARNING_take2
Russ White [Fri, 14 Jul 2017 10:24:01 +0000 (06:24 -0400)]
Merge pull request #815 from dwalton76/CMD_WARNING_take2

vtysh: return non-zero for configuration failures

7 years agoMerge pull request #817 from donaldsharp/babel_redist
Russ White [Fri, 14 Jul 2017 10:20:54 +0000 (06:20 -0400)]
Merge pull request #817 from donaldsharp/babel_redist

babeld: Allow babel to redistribute v6 routes

7 years agoMerge pull request #814 from qlyoung/vtysh-password-commands
David Lamparter [Fri, 14 Jul 2017 08:24:22 +0000 (10:24 +0200)]
Merge pull request #814 from qlyoung/vtysh-password-commands

vtysh: fixup password commands

7 years ago*: remove VTYNL, part 6 of 6
David Lamparter [Thu, 13 Jul 2017 18:17:06 +0000 (20:17 +0200)]
*: remove VTYNL, part 6 of 6

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years ago*: remove VTYNL, part 5 of 6
David Lamparter [Thu, 13 Jul 2017 17:50:33 +0000 (19:50 +0200)]
*: remove VTYNL, part 5 of 6

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years ago*: remove VTYNL, part 4 of 6
David Lamparter [Thu, 13 Jul 2017 17:42:42 +0000 (19:42 +0200)]
*: remove VTYNL, part 4 of 6

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years ago*: remove VTYNL, part 3 of 6
David Lamparter [Thu, 13 Jul 2017 17:20:20 +0000 (19:20 +0200)]
*: remove VTYNL, part 3 of 6

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years ago*: remove VTYNL, part 2 of 6
David Lamparter [Thu, 13 Jul 2017 17:12:39 +0000 (19:12 +0200)]
*: remove VTYNL, part 2 of 6

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years ago*: remove VTYNL, part 1 of 6
David Lamparter [Thu, 13 Jul 2017 17:04:25 +0000 (19:04 +0200)]
*: remove VTYNL, part 1 of 6

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoospf6d: VNL -> VTYNL
David Lamparter [Thu, 13 Jul 2017 17:06:52 +0000 (19:06 +0200)]
ospf6d: VNL -> VTYNL

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years ago*: ditch vty_outln(), part 2 of 2
David Lamparter [Thu, 13 Jul 2017 16:50:29 +0000 (18:50 +0200)]
*: ditch vty_outln(), part 2 of 2

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agobabeld: Allow babel to redistribute v6 routes 817/head
Donald Sharp [Thu, 13 Jul 2017 21:35:29 +0000 (17:35 -0400)]
babeld: Allow babel to redistribute v6 routes

Turn on the ability in babel to receive v6 routes when requested.

robot# show babel route
192.168.201.0/24 metric 0 (exported)
2606:a000:111d:803e::/64 metric 0 (exported)
robot# conf t
robot(config)# int enp3s0
robot(config-if)# ipv6 addr 2404:4000:991d:804c:c32:ee94:742c:4d5/73
robot(config-if)# end
robot# show babel route
192.168.201.0/24 metric 0 (exported)
2606:a000:111d:803e::/64 metric 0 (exported)
2404:4000:991d:804c:c00::/73 metric 0 (exported)
robot#

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agovtysh: return non-zero for configuration failures 815/head
Daniel Walton [Thu, 13 Jul 2017 19:56:08 +0000 (19:56 +0000)]
vtysh: return non-zero for configuration failures

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
This allows frr-reload.py (or anything else that scripts via vtysh)
to know if the vtysh command worked or hit an error.

7 years agovtysh: fixup password commands 814/head
Quentin Young [Thu, 13 Jul 2017 19:28:41 +0000 (15:28 -0400)]
vtysh: fixup password commands

`password` and `enable password` commands got a bit broken in an earlier
commit, fix 'em up.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years ago*: ditch vty_outln(), part 1 of 2
David Lamparter [Thu, 13 Jul 2017 15:49:13 +0000 (17:49 +0200)]
*: ditch vty_outln(), part 1 of 2

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agolib: move \n vs. \r\n handling into vty code
David Lamparter [Thu, 13 Jul 2017 15:34:08 +0000 (17:34 +0200)]
lib: move \n vs. \r\n handling into vty code

Instead of having an ?: expression embedded in every single caller of
vty_out, just expand \n to \r\n in the vty code if neccessary.

(Deprecation warnings will be enabled in the next commits which will do
the search-and-replace over the codebase.)

[This reverts commit 4d5f445 "lib: add vty_outln()"]

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agolib: vty: warn when using compatibility macros
David Lamparter [Wed, 12 Jul 2017 14:23:40 +0000 (16:23 +0200)]
lib: vty: warn when using compatibility macros

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years ago*: COMMUNITY.md: compatibility foo & deprecation
David Lamparter [Thu, 13 Jul 2017 15:36:03 +0000 (17:36 +0200)]
*: COMMUNITY.md: compatibility foo & deprecation

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agobgpd: show bgp ipv4 label-unicast does not provide any output 799/head
Daniel Walton [Thu, 13 Jul 2017 15:17:15 +0000 (15:17 +0000)]
bgpd: show bgp ipv4 label-unicast does not provide any output

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
7 years agolib, vtysh: pretty-print variable autocompletions 808/head
Quentin Young [Wed, 12 Jul 2017 18:40:18 +0000 (14:40 -0400)]
lib, vtysh: pretty-print variable autocompletions

Pretty-prints variable autocompletions by breaking them up into multiple
lines, indenting them consistently and respecting the column width of
the terminal.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge pull request #807 from Jafaral/qua2frr
Donald Sharp [Thu, 13 Jul 2017 14:00:19 +0000 (10:00 -0400)]
Merge pull request #807 from Jafaral/qua2frr

Find/Replace Quagga/FRR

7 years agozebra: Fix compilation warning 762/head
ßingen [Thu, 13 Jul 2017 13:09:38 +0000 (15:09 +0200)]
zebra: Fix compilation warning

Signed-off-by: ßingen <bingen@voltanet.io>
7 years agolib, test: Add test case for ALL_NEXTHOPS_RO
ßingen [Thu, 13 Jul 2017 13:07:12 +0000 (15:07 +0200)]
lib, test: Add test case for ALL_NEXTHOPS_RO

Without it, tests were passing before commit 9fb47c0, so a case was
missing (the one which that commit fixes).

Signed-off-by: ßingen <bingen@voltanet.io>
7 years agoMerge pull request #798 from dwalton76/CMD_RANGE_STR
David Lamparter [Thu, 13 Jul 2017 12:58:52 +0000 (14:58 +0200)]
Merge pull request #798 from dwalton76/CMD_RANGE_STR

bgpd: --enable-multipath=256 setting is ignored

7 years agoMerge pull request #796 from qlyoung/fix-hash-stats
David Lamparter [Thu, 13 Jul 2017 12:57:44 +0000 (14:57 +0200)]
Merge pull request #796 from qlyoung/fix-hash-stats

lib: use 32-bit atomics, s/pow/mul

7 years agodoc: update a few places to say FRR 807/head
Jafar Al-Gharaibeh [Wed, 12 Jul 2017 18:36:25 +0000 (13:36 -0500)]
doc: update a few places to say FRR

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
7 years agozebra: rename to frrconfdir
Jafar Al-Gharaibeh [Wed, 12 Jul 2017 18:31:13 +0000 (13:31 -0500)]
zebra: rename to frrconfdir

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
7 years agotools: update to use FRR name
Jafar Al-Gharaibeh [Wed, 12 Jul 2017 18:26:22 +0000 (13:26 -0500)]
tools: update to use FRR name

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
7 years agogitignore: update references to FRR
Jafar Al-Gharaibeh [Wed, 12 Jul 2017 16:55:04 +0000 (11:55 -0500)]
gitignore: update references to FRR

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
7 years agotests: update prng to return better pseudo random numbers 804/head
Christian Franke [Wed, 12 Jul 2017 16:44:44 +0000 (18:44 +0200)]
tests: update prng to return better pseudo random numbers

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agolib: fix error message to reference FRR
Jafar Al-Gharaibeh [Wed, 12 Jul 2017 16:42:25 +0000 (11:42 -0500)]
lib: fix error message to reference FRR

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
7 years agolib: Change comment to reference watchfrr
Jafar Al-Gharaibeh [Wed, 12 Jul 2017 16:36:47 +0000 (11:36 -0500)]
lib: Change comment to reference watchfrr

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
7 years agowatchfrr: fix error message
Jafar Al-Gharaibeh [Wed, 12 Jul 2017 16:31:11 +0000 (11:31 -0500)]
watchfrr: fix error message

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
7 years agozebra: prettier format for multilevel-recursive routes
Christian Franke [Wed, 12 Jul 2017 16:28:40 +0000 (18:28 +0200)]
zebra: prettier format for multilevel-recursive routes

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agozebra: use copy_nexthops in route_entry_copy_nexthops
Christian Franke [Wed, 12 Jul 2017 16:28:05 +0000 (18:28 +0200)]
zebra: use copy_nexthops in route_entry_copy_nexthops

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agolib: copy rmap_src too in copy_nexthops
Christian Franke [Wed, 12 Jul 2017 16:28:03 +0000 (18:28 +0200)]
lib: copy rmap_src too in copy_nexthops

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agolib,zebra: Fix ALL_NEXTHOPS iterator
Christian Franke [Wed, 12 Jul 2017 16:27:55 +0000 (18:27 +0200)]
lib,zebra: Fix ALL_NEXTHOPS iterator

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agoconfig: switch a few references to say FRR
Jafar Al-Gharaibeh [Wed, 12 Jul 2017 16:25:33 +0000 (11:25 -0500)]
config: switch a few references to say FRR

Signed-off-by: Jafar Al-Gharaibeh <jafar@atcorp.com>
7 years agoMerge pull request #791 from LabNConsulting/working/master/patch-set/style
Donald Sharp [Wed, 12 Jul 2017 16:13:37 +0000 (12:13 -0400)]
Merge pull request #791 from LabNConsulting/working/master/patch-set/style

A couple of compatibility/style fixes

7 years agoMerge pull request #793 from opensourcerouting/hash-double-init
Donald Sharp [Wed, 12 Jul 2017 12:27:24 +0000 (08:27 -0400)]
Merge pull request #793 from opensourcerouting/hash-double-init

lib: init & cleanup fixes

7 years agoMerge pull request #784 from Jafaral/debpkgfix
Donald Sharp [Wed, 12 Jul 2017 12:25:34 +0000 (08:25 -0400)]
Merge pull request #784 from Jafaral/debpkgfix

Debian pkg cleanup

7 years agoUpdate comments for ALL_NEXTHOPS_RO definition
ßingen [Wed, 12 Jul 2017 06:54:13 +0000 (08:54 +0200)]
Update comments for ALL_NEXTHOPS_RO definition

Signed-off-by: ßingen <bingen@voltanet.io>
7 years agobgpd: fix old-style vpn commands 800/head
Quentin Young [Tue, 11 Jul 2017 19:42:11 +0000 (15:42 -0400)]
bgpd: fix old-style vpn commands

Remove:
-------
* set vpnv4 next-hop X:X::X:X
* set vpnv6 next-hop A.B.C.D
* no set vpn next-hop <A.B.C.D|X:X::X:X>

Add:
----
* no set vpnv4 next-hop A.B.C.D
* no set vpnv6 next-hop X:X::X:X

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agobgpd: show bgp ipv4 label-unicast does not provide any output
Daniel Walton [Tue, 11 Jul 2017 18:59:03 +0000 (18:59 +0000)]
bgpd: show bgp ipv4 label-unicast does not provide any output

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
labeled-unicast routes are installed in the unicast table, to make
troubleshooting easier we need "show bgp ipv4 labeled-unicast x.x.x.x"
to show the x.x.x.x route in the unicast table.

7 years agodoc: add Backwards Compatibility section to COMMUNITY.md 791/head
Lou Berger [Tue, 11 Jul 2017 18:58:03 +0000 (14:58 -0400)]
doc: add Backwards Compatibility section to COMMUNITY.md

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agolib: use 32-bit atomics, s/pow/mul 796/head
Quentin Young [Tue, 11 Jul 2017 15:14:09 +0000 (11:14 -0400)]
lib: use 32-bit atomics, s/pow/mul

Some platforms don't support 64-bit atomics, missed converting a
floating point pow() to an integral mul when changing SD algo.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agovty: add some more defines for backwards compatibility
Lou Berger [Tue, 11 Jul 2017 18:41:44 +0000 (14:41 -0400)]
vty: add some more defines for backwards compatibility

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agobgpd: --enable-multipath=256 setting is ignored 798/head
Daniel Walton [Tue, 11 Jul 2017 18:41:08 +0000 (18:41 +0000)]
bgpd: --enable-multipath=256 setting is ignored

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Restoring some code that was unintentionally removed when we were
migrating to Quentin's parser.

7 years agoMerge pull request #795 from opensourcerouting/build-fix-openbsd-tree-path
Quentin Young [Tue, 11 Jul 2017 14:52:54 +0000 (10:52 -0400)]
Merge pull request #795 from opensourcerouting/build-fix-openbsd-tree-path

minor build-fixes

7 years agolib: grammar_sandbox: don't pre-setup nodegraph 793/head
David Lamparter [Tue, 11 Jul 2017 14:07:41 +0000 (16:07 +0200)]
lib: grammar_sandbox: don't pre-setup nodegraph

This shows up as still reachable allocation on exit, which is somewhat
misleading.  Note this only affects --enable-dev-build.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agolib: drop off "masters" list on master_free()
David Lamparter [Tue, 11 Jul 2017 14:08:54 +0000 (16:08 +0200)]
lib: drop off "masters" list on master_free()

Don't leave a dangling leaked reference.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agobuild: fix ttable test 795/head
David Lamparter [Tue, 11 Jul 2017 13:23:28 +0000 (15:23 +0200)]
build: fix ttable test

test_ttable.refout wasn't in the dist package.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agolib: fix out-of-tree build
David Lamparter [Tue, 11 Jul 2017 13:11:21 +0000 (15:11 +0200)]
lib: fix out-of-tree build

"$(top_srcdir)" is not on the include path, but "$(top_srcdir)/lib" is.
This is relevant when building with a separate build directory.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agolib: hash: don't double-init hash list
David Lamparter [Tue, 11 Jul 2017 12:52:06 +0000 (14:52 +0200)]
lib: hash: don't double-init hash list

hash_cmd_init will overwrite _hashes with a new list, while _hashes
already has been initialised from cmd_init(), thread_master_create(), or
any other function that may have created a hash.

Found while valgrind'ing ospf6d/test_lsdb.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agovty: add some defines for backwards compatibility
Lou Berger [Tue, 11 Jul 2017 12:48:57 +0000 (08:48 -0400)]
vty: add some defines for backwards compatibility

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agobgpd: have labeled unicast print consistent with other safis
Lou Berger [Tue, 11 Jul 2017 12:43:26 +0000 (08:43 -0400)]
bgpd: have labeled unicast print consistent with other safis

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agoMerge branch 'evpn-prep'
David Lamparter [Mon, 10 Jul 2017 21:22:46 +0000 (23:22 +0200)]
Merge branch 'evpn-prep'

First 12-and-a-half commits from PR #619

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #786 from dwalton76/bgpd-peergroup-activate
Russ White [Mon, 10 Jul 2017 21:11:56 +0000 (17:11 -0400)]
Merge pull request #786 from dwalton76/bgpd-peergroup-activate

bgpd: peer-group members 'activate' when they shouldn't

7 years agoAvoid to make indentation even worse
ßingen [Mon, 10 Jul 2017 20:52:16 +0000 (22:52 +0200)]
Avoid to make indentation even worse

7 years agolib: Remove typedef from ipaddr
Donald Sharp [Fri, 26 May 2017 17:44:29 +0000 (13:44 -0400)]
lib: Remove typedef from ipaddr

The ipaddr_t type was conflicting with code on omnios.

Remove the typedef

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge commit '3d22338f04d9554fa' into evpn-prep
David Lamparter [Mon, 10 Jul 2017 20:15:19 +0000 (22:15 +0200)]
Merge commit '3d22338f04d9554fa' into evpn-prep

Conflicts:
lib/Makefile.am

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoRemove recursive param from netlink_route_info_add
ßingen [Mon, 10 Jul 2017 19:19:11 +0000 (21:19 +0200)]
Remove recursive param from netlink_route_info_add

..._nh

7 years agoRename ALL_NEXTHOPS_RO to ALL_NEXTHOPS
ßingen [Mon, 10 Jul 2017 19:14:59 +0000 (21:14 +0200)]
Rename ALL_NEXTHOPS_RO to ALL_NEXTHOPS

7 years agoMerge pull request #733 from dwalton76/bgpd-ipv4-plus-label-misc3
Russ White [Mon, 10 Jul 2017 19:05:13 +0000 (15:05 -0400)]
Merge pull request #733 from dwalton76/bgpd-ipv4-plus-label-misc3

bgpd: Install SAFI_LABELED_UNICAST routes in SAFI_UNICAST table

7 years agobgpd: Install SAFI_LABELED_UNICAST routes in SAFI_UNICAST table 733/head
Daniel Walton [Mon, 10 Jul 2017 14:08:43 +0000 (14:08 +0000)]
bgpd: Install SAFI_LABELED_UNICAST routes in SAFI_UNICAST table

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
7 years agoFix bug with NH macro in zebra_fpm_protobuf
ßingen [Mon, 10 Jul 2017 13:16:38 +0000 (15:16 +0200)]
Fix bug with NH macro in zebra_fpm_protobuf

One occurrence was missing to be adpated the new macro definition for
multiple NH recursion levels.

7 years agoMerge branch 'master' of https://github.com/dwalton76/frr into bgpd-ipv4-plus-label...
Daniel Walton [Mon, 10 Jul 2017 13:06:19 +0000 (13:06 +0000)]
Merge branch 'master' of https://github.com/dwalton76/frr into bgpd-ipv4-plus-label-misc3

Conflicts:
bgpd/bgp_route.c
bgpd/bgp_zebra.c

7 years agoFix tests for NH multiple recursion levels
ßingen [Mon, 10 Jul 2017 12:02:57 +0000 (14:02 +0200)]
Fix tests for NH multiple recursion levels

Tests were no passing. Besides, added cases to test more than 1 level
depth in nexthop recursion.

7 years agoMerge pull request #750 from donaldsharp/bgp_buffer
Martin Winter [Fri, 7 Jul 2017 19:18:19 +0000 (12:18 -0700)]
Merge pull request #750 from donaldsharp/bgp_buffer

Bgp buffer

7 years agobgpd: peer-group members 'activate' when they shouldn't 786/head
Daniel Walton [Fri, 7 Jul 2017 19:09:22 +0000 (19:09 +0000)]
bgpd: peer-group members 'activate' when they shouldn't

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Today if you configure the following where the 'fabric' peer-group has
been deactivated for ipv4 unicast and then assign swp1/swp2 to that
peer-group we end up activating those two peers for ipv4 unicast.

conf t
no router bgp 100
router bgp 100
  neighbor fabric peer-group
  neighbor fabric capability extended-nexthop
  neighbor fabric remote-as external
  !
  address-family ipv4 unicast
    no neighbor fabric activate
  !
  neighbor swp1 interface peer-group fabric
  neighbor swp2 interface peer-group fabric
  neighbor 1.1.1.1 peer-group fabric
end

cel-redxp-10# show run bgp
!
router bgp 100
 neighbor fabric peer-group
 neighbor fabric remote-as external
 neighbor fabric capability extended-nexthop
 neighbor swp1 interface peer-group fabric
 neighbor swp2 interface peer-group fabric
 neighbor 1.1.1.1 peer-group fabric
 !
 address-family ipv4 unicast
  no neighbor fabric activate
  neighbor swp1 activate
  neighbor swp2 activate
 exit-address-family
!
cel-redxp-10#

With the patch we do not activate swp1/swp2

cel-redxp-10# show run bgp
!
router bgp 100
 neighbor fabric peer-group
 neighbor fabric remote-as external
 neighbor fabric capability extended-nexthop
 neighbor swp1 interface peer-group fabric
 neighbor swp2 interface peer-group fabric
 neighbor 1.1.1.1 peer-group fabric
 !
 address-family ipv4 unicast
  no neighbor fabric activate
 exit-address-family
!
cel-redxp-10#

7 years agoconfig: No need to test these if enabled. Plays havoc with make distribution. 784/head
Ryan Hagelstrom [Fri, 30 Jun 2017 19:18:58 +0000 (14:18 -0500)]
config: No need to test these if enabled. Plays havoc with make distribution.

Signed-off-by: Ryan Hagelstrom <rhagelstrom@gmail.com>
7 years agodocs: Changed the manpage section from 1 to 8 so it conforms with its definition
Ryan Hagelstrom [Fri, 30 Jun 2017 19:21:11 +0000 (14:21 -0500)]
docs: Changed the manpage section from 1 to 8 so it conforms with its definition

Signed-off-by: Ryan Hagelstrom <rhagelstrom@gmail.com>
7 years agotools: etc needed in extra dist to make distribution correctly
Ryan Hagelstrom [Fri, 30 Jun 2017 20:39:18 +0000 (15:39 -0500)]
tools: etc needed in extra dist to make distribution correctly

Signed-off-by: Ryan Hagelstrom <rhagelstrom@gmail.com>
7 years agobuild: Hard directory instead of dynamic so make distribution works correctly
Ryan Hagelstrom [Wed, 5 Jul 2017 18:25:23 +0000 (13:25 -0500)]
build: Hard directory instead of dynamic so make distribution works correctly

7 years agoMerge pull request #778 from qlyoung/fix-excess-docstring
Russ White [Fri, 7 Jul 2017 17:31:08 +0000 (13:31 -0400)]
Merge pull request #778 from qlyoung/fix-excess-docstring

Fix excess docstring

7 years agoMerge pull request #779 from qlyoung/update-docs
Martin Winter [Thu, 6 Jul 2017 22:32:43 +0000 (15:32 -0700)]
Merge pull request #779 from qlyoung/update-docs

doc: update build docs for ubuntu

7 years agolib: fix more docstrings 778/head
Quentin Young [Thu, 6 Jul 2017 20:27:48 +0000 (16:27 -0400)]
lib: fix more docstrings

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge pull request #777 from qlyoung/fix-mpls-str2label
David Lamparter [Thu, 6 Jul 2017 17:35:06 +0000 (19:35 +0200)]
Merge pull request #777 from qlyoung/fix-mpls-str2label

zebra: fix mpls_str2label()

7 years agoMerge pull request #781 from opensourcerouting/vty-out-bufresize
Quentin Young [Thu, 6 Jul 2017 17:23:33 +0000 (13:23 -0400)]
Merge pull request #781 from opensourcerouting/vty-out-bufresize

lib: fix vty_out with >1024 bytes of output

7 years agolib: fix vty_out with >1024 bytes of output 781/head
David Lamparter [Thu, 6 Jul 2017 14:55:33 +0000 (16:55 +0200)]
lib: fix vty_out with >1024 bytes of output

Consuming va_args modifies its internal bits, hence the need to copy
it... but the copying wasn't quite right just yet.

Fixes: 4d5f445 ("lib: add vty_outln()")
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #780 from dwalton76/bgpd-address-family-vty-out
Quentin Young [Wed, 5 Jul 2017 21:17:04 +0000 (17:17 -0400)]
Merge pull request #780 from dwalton76/bgpd-address-family-vty-out

bgpd: "address-family" not displayed in configuration

7 years agobgpd: Install SAFI_LABELED_UNICAST routes in SAFI_UNICAST table
Daniel Walton [Wed, 5 Jul 2017 20:46:48 +0000 (20:46 +0000)]
bgpd: Install SAFI_LABELED_UNICAST routes in SAFI_UNICAST table

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
7 years agobgpd: "address-family" not displayed in configuration 780/head
Daniel Walton [Wed, 5 Jul 2017 20:14:13 +0000 (20:14 +0000)]
bgpd: "address-family" not displayed in configuration

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge branch 'master' of https://github.com/dwalton76/frr into bgpd-ipv4-plus-label...
Daniel Walton [Wed, 5 Jul 2017 19:41:51 +0000 (19:41 +0000)]
Merge branch 'master' of https://github.com/dwalton76/frr into bgpd-ipv4-plus-label-misc3

7 years ago*: fix excess docstring
Quentin Young [Wed, 5 Jul 2017 18:30:36 +0000 (14:30 -0400)]
*: fix excess docstring

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agodoc: update build docs for ubuntu 779/head
Quentin Young [Wed, 5 Jul 2017 19:30:19 +0000 (15:30 -0400)]
doc: update build docs for ubuntu

cumulus/etc --> tools/etc

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agolib: warn about too much docstring
Quentin Young [Wed, 5 Jul 2017 17:20:21 +0000 (13:20 -0400)]
lib: warn about too much docstring

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agozebra: fix mpls_str2label() 777/head
Quentin Young [Wed, 5 Jul 2017 16:56:52 +0000 (12:56 -0400)]
zebra: fix mpls_str2label()

When making improvements to error handling in this code I accidentally
introduced an off-by-one. Fix it.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge pull request #742 from qlyoung/hashstats
Martin Winter [Tue, 4 Jul 2017 18:58:10 +0000 (11:58 -0700)]
Merge pull request #742 from qlyoung/hashstats

Hashtable statistics

7 years agolib, vtysh: rebase hashstats 742/head
Quentin Young [Fri, 30 Jun 2017 16:56:10 +0000 (16:56 +0000)]
lib, vtysh: rebase hashstats

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>