]>
git.puffer.fish Git - mirror/frr.git/log
Renato Westphal [Tue, 1 Aug 2017 00:01:34 +0000 (21:01 -0300)]
tests: fix small typo
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Renato Westphal [Tue, 1 Aug 2017 00:37:46 +0000 (21:37 -0300)]
bgpd: don't make any assumptions about the size of an enum
The size of an enum is compiler dependent and thus we shouldn't use
enums inside structures that represent fields of a packet.
Problem detected by the 'test_capability' unit test.
The problem was not apparent before because the 'iana_safi_t' enum didn't
exist and 'safi_t' was a typedef to uint8_t. Now we have two different
enums, 'iana_afi_t' and 'iana_safi_t', and both need to be encoded in
different ways on the wire (2 bytes vs 1 byte).
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Renato Westphal [Tue, 1 Aug 2017 00:22:20 +0000 (21:22 -0300)]
lib: use switch statements in the AFI/SAFI conversion functions
Switch statements are more elegant (and potentially faster... but that's
not the main motivation).
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Renato Westphal [Tue, 1 Aug 2017 00:06:40 +0000 (21:06 -0300)]
lib/bgpd: introduce the iana_safi_t enum
We had afi_t/iana_afi_t for AFIs but only safi_t for SAFIs. Fix this
inconsistency.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Renato Westphal [Tue, 1 Aug 2017 00:09:01 +0000 (21:09 -0300)]
lib: remove SAFI_RESERVED_4 and SAFI_RESERVED_5
SAFI values have been a major source of confusion over the last few
years. That's because each SAFI needs to be represented in two different
ways:
* IANA's value used to send/receive packets over the network;
* Internal value used for array indexing.
In the second case, defining reserved values makes no sense because we
don't want to index SAFIs that simply don't exist. The sole purpose of
the internal SAFI values is to remove the gaps we have among the IANA
values, which would represent wasted memory in C arrays. With that said,
remove these reserved SAFIs to avoid further confusion in the future.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
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
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
David Lamparter [Mon, 31 Jul 2017 17:58:20 +0000 (19:58 +0200)]
Merge pull request #865 from qlyoung/find
Find
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
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>
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
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>
Renato Westphal [Wed, 26 Jul 2017 01:39:05 +0000 (22:39 -0300)]
ldpd: update .gitignore
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
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>
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>
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>
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>
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>
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>
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
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)
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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
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
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
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
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
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
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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
Brian Rak [Wed, 26 Jul 2017 15:47:07 +0000 (11:47 -0400)]
redhat: Update documentation about frr-reload
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>
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>
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>
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>
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"
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>
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
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>
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>
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>
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>
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>
Daniel Walton [Tue, 25 Jul 2017 19:07:07 +0000 (12:07 -0700)]
zebra: debug cleanup
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
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>
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
David Lamparter [Tue, 25 Jul 2017 14:23:48 +0000 (16:23 +0200)]
Merge pull request #847 from donaldsharp/cmd_success
Cmd success
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
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
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
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>
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>
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>
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>
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>
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>
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)
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>
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>
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
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
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>
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>
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
tmartiro [Tue, 18 Jul 2017 16:06:57 +0000 (19:06 +0300)]
Add 1 more identation to correspond to kernel style multi-line comment
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…
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
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
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>
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
tmartiro [Tue, 18 Jul 2017 07:34:21 +0000 (10:34 +0300)]
replace space to tabs, add kernel styles multiline, remove trailing whitespaces.
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
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
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
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>
tmartiro [Mon, 17 Jul 2017 14:23:20 +0000 (17:23 +0300)]
merge with upstream
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>