]> git.puffer.fish Git - mirror/frr.git/log
mirror/frr.git
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 #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 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 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 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 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 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 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 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 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 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>
7 years agolib: use doubles instead of long doubles
Quentin Young [Fri, 23 Jun 2017 05:14:54 +0000 (05:14 +0000)]
lib: use doubles instead of long doubles

NetBSD can't take the square root of a long double
and we should be fine just using a double here anyway

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years ago*: update hash_create(), hash_create_size()
Quentin Young [Mon, 19 Jun 2017 22:49:44 +0000 (22:49 +0000)]
*: update hash_create(), hash_create_size()

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agolib, vtysh: hashtable statistics
Quentin Young [Mon, 19 Jun 2017 14:22:26 +0000 (14:22 +0000)]
lib, vtysh: hashtable statistics

Adds the ability to name hash tables, and a new cli command that will
show various summary statistics for named hash tables.

Statistics computed are
  - load factor
  - full load factor (see comments)
  - stddev of full load factor

Standard deviation is computed by storing the sum of squares of bucket
lengths. This is somewhat susceptible to overflow. On platforms where a
double is 32 bits, placing 65535 or more elements into a hash table
opens up the potential for overflow, depending on how they are arranged
in buckets (which depends on the hash function). For example, placing
65535 elements into one hash bucket would cause ssq overflow, but
distributing 40000000 elements evenly among 400000 buckets (100 elements
per bucket) would not.

These cases are extremely degenerate, so the vague possibility of
overflow in an informational command is deemed an acceptable tradeoff
for constant time calculation of variance without locks or compromising
efficiency of actual table operations.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agolib: add statistics for hash tables
Quentin Young [Tue, 30 May 2017 00:16:52 +0000 (00:16 +0000)]
lib: add statistics for hash tables

Adds a function that calculates various statistics on our implementation
of a hash table. These are useful for evaluating performance.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge pull request #771 from qlyoung/printf-madness
Jafar Al-Gharaibeh [Fri, 30 Jun 2017 18:07:23 +0000 (13:07 -0500)]
Merge pull request #771 from qlyoung/printf-madness

lib: printf bugfixes & improvement

7 years agobgpd: Install SAFI_LABELED_UNICAST routes in SAFI_UNICAST table
Daniel Walton [Fri, 30 Jun 2017 18:04:50 +0000 (18:04 +0000)]
bgpd: Install SAFI_LABELED_UNICAST routes in SAFI_UNICAST table

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
7 years agoMerge branch 'master' of https://github.com/dwalton76/frr into bgpd-ipv4-plus-label...
Daniel Walton [Fri, 30 Jun 2017 17:52:56 +0000 (17:52 +0000)]
Merge branch 'master' of https://github.com/dwalton76/frr into bgpd-ipv4-plus-label-misc3

Conflicts:
bgpd/bgp_route.c

7 years agoMerge pull request #740 from donaldsharp/ospf_commands
Jafar Al-Gharaibeh [Fri, 30 Jun 2017 17:28:13 +0000 (12:28 -0500)]
Merge pull request #740 from donaldsharp/ospf_commands

ospfd: Fix 'advanced' type data base show

7 years agolib: printf bugfixes & improvement 771/head
Quentin Young [Fri, 30 Jun 2017 16:18:20 +0000 (16:18 +0000)]
lib: printf bugfixes & improvement

* Fix bad format specifier in thread.[ch]
* Move PRINTF_ATTRIBUTE macro to zebra.h
* Use PRINTF_ATTRIBUTE on termtable printers

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge pull request #768 from qlyoung/fix-gitignore2
Jafar Al-Gharaibeh [Fri, 30 Jun 2017 15:38:20 +0000 (10:38 -0500)]
Merge pull request #768 from qlyoung/fix-gitignore2

lib, bgpd: fix .gitignore

7 years agoMerge pull request #770 from donaldsharp/zclient
Jafar Al-Gharaibeh [Fri, 30 Jun 2017 15:35:28 +0000 (10:35 -0500)]
Merge pull request #770 from donaldsharp/zclient

Zclient

7 years agoospfd: Fix 'advanced' type data base show 740/head
Donald Sharp [Mon, 19 Jun 2017 15:17:57 +0000 (11:17 -0400)]
ospfd: Fix 'advanced' type data base show

Two things:

1) Some advanced 'show ip ospf database'... code
was not working properly.  Fix the cli to handle
this appropriately

2) Consolidate two cli functions into one.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworkscom>
7 years agoMerge pull request #723 from qlyoung/fix-static-pipe-poker-buf
Jafar Al-Gharaibeh [Fri, 30 Jun 2017 15:00:43 +0000 (10:00 -0500)]
Merge pull request #723 from qlyoung/fix-static-pipe-poker-buf

lib: more multithreading infra work

7 years agoMerge pull request #769 from qlyoung/fix-json-int
Russ White [Fri, 30 Jun 2017 14:44:03 +0000 (10:44 -0400)]
Merge pull request #769 from qlyoung/fix-json-int

lib: always use 64-bit integers for json

7 years agoospf6d: Fix zclient cleanup on shutdown 770/head
Donald Sharp [Fri, 30 Jun 2017 14:33:30 +0000 (10:33 -0400)]
ospf6d: Fix zclient cleanup on shutdown

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoospfd: Fix zclient cleanup on shutdown
Donald Sharp [Fri, 30 Jun 2017 14:33:09 +0000 (10:33 -0400)]
ospfd: Fix zclient cleanup on shutdown

Signed-off-by: Donald Sharp <sharpd@cumulunsnetworks.com>
7 years agopimd: Fix zclient cleanup on shutdown
Donald Sharp [Fri, 30 Jun 2017 14:32:45 +0000 (10:32 -0400)]
pimd: Fix zclient cleanup on shutdown

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoripd: Fix zclient cleanup on shutdown
Donald Sharp [Fri, 30 Jun 2017 14:32:26 +0000 (10:32 -0400)]
ripd: Fix zclient cleanup on shutdown

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoripngd: Fix zclient cleanup on shutdown
Donald Sharp [Fri, 30 Jun 2017 14:32:01 +0000 (10:32 -0400)]
ripngd: Fix zclient cleanup on shutdown

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agonhrpd: Fix zclient cleanup on shutdown
Donald Sharp [Fri, 30 Jun 2017 14:31:34 +0000 (10:31 -0400)]
nhrpd: Fix zclient cleanup on shutdown

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoisisd: Fix zclient cleanup on shutdown
Donald Sharp [Fri, 30 Jun 2017 14:31:09 +0000 (10:31 -0400)]
isisd: Fix zclient cleanup on shutdown

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoeigrpd: Fix zclient cleanup on shutdown
Donald Sharp [Fri, 30 Jun 2017 14:30:34 +0000 (10:30 -0400)]
eigrpd: Fix zclient cleanup on shutdown

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agobabeld: Fix zclient cleanup on shutdown
Donald Sharp [Fri, 30 Jun 2017 14:29:58 +0000 (10:29 -0400)]
babeld: Fix zclient cleanup on shutdown

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agolib: Fix clang warning
Donald Sharp [Fri, 30 Jun 2017 14:29:14 +0000 (10:29 -0400)]
lib: Fix clang warning

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agobgpd: Make SAFI-1 and SAFI-4 use the same table
Daniel Walton [Fri, 30 Jun 2017 14:24:58 +0000 (14:24 +0000)]
bgpd: Make SAFI-1 and SAFI-4 use the same table

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
7 years agobgpd: Make SAFI-1 and SAFI-4 use the same table
Daniel Walton [Fri, 30 Jun 2017 13:55:47 +0000 (13:55 +0000)]
bgpd: Make SAFI-1 and SAFI-4 use the same table

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>