]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
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 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 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 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

6 years agoMerge pull request #820 from opensourcerouting/gcc7
Donald Sharp [Fri, 14 Jul 2017 16:54:40 +0000 (12:54 -0400)]
Merge pull request #820 from opensourcerouting/gcc7

fix new warnings emitted by GCC 7

6 years agoMerge pull request #794 from opensourcerouting/table-hash-ospf6-lsdb-refactor
Donald Sharp [Fri, 14 Jul 2017 16:18:06 +0000 (12:18 -0400)]
Merge pull request #794 from opensourcerouting/table-hash-ospf6-lsdb-refactor

use hash in lib/table, also refactor ospf6 lsdb code

6 years agolib: parser: remove incorrect assert
David Lamparter [Fri, 14 Jul 2017 15:53:59 +0000 (17:53 +0200)]
lib: parser: remove incorrect assert

A {foo|bar|baz} graph node will have more than 1/2 incoming links even
if no other references are left to it (which is what the assert was
previously trying to ensure.)

I don't see a good way to "fix" the assert so I'm just removing it.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years agoMerge pull request #806 from dwalton76/bgpd-set-ipv4-vpn-nexthop
David Lamparter [Fri, 14 Jul 2017 15:37:04 +0000 (17:37 +0200)]
Merge pull request #806 from dwalton76/bgpd-set-ipv4-vpn-nexthop

bgpd: "set ipv4 vpn next-hop 1.1.1.1" is saved/displayed as "set ip vpn next-hop 1.1.1.1"

6 years agotests/ospf6d/test_lsdb: remove vty_outln
David Lamparter [Fri, 14 Jul 2017 15:32:22 +0000 (17:32 +0200)]
tests/ospf6d/test_lsdb: remove vty_outln

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years agoMerge remote-tracking branch 'frr/master' into table-hash-ospf6-lsdb-refactor
David Lamparter [Fri, 14 Jul 2017 15:30:56 +0000 (17:30 +0200)]
Merge remote-tracking branch 'frr/master' into table-hash-ospf6-lsdb-refactor

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years agonhrpd: enable -Werror
David Lamparter [Fri, 14 Jul 2017 14:58:29 +0000 (16:58 +0200)]
nhrpd: enable -Werror

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years ago*: fix GCC 7 warnings/issues
David Lamparter [Fri, 14 Jul 2017 14:48:41 +0000 (16:48 +0200)]
*: fix GCC 7 warnings/issues

The label initializer & nhrpd variable are just to shut up GCC 7,
the other two are actual bugs.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years ago*: fix GCC 7 switch/case fallthrough warnings
David Lamparter [Fri, 14 Jul 2017 14:48:01 +0000 (16:48 +0200)]
*: fix GCC 7 switch/case fallthrough warnings

Need a comment on these.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
6 years agoMerge pull request #803 from opensourcerouting/redhat-doc-fixes-master
Donald Sharp [Fri, 14 Jul 2017 14:59:31 +0000 (10:59 -0400)]
Merge pull request #803 from opensourcerouting/redhat-doc-fixes-master

Redhat doc fixes for master branch

6 years agoMerge pull request #809 from donaldsharp/evpn_plus_struct_attr
Russ White [Fri, 14 Jul 2017 13:36:31 +0000 (09:36 -0400)]
Merge pull request #809 from donaldsharp/evpn_plus_struct_attr

Evpn plus struct attr

6 years agobgpd, zebra: Cleanup warnings from new code
Donald Sharp [Fri, 14 Jul 2017 12:52:45 +0000 (08:52 -0400)]
bgpd, zebra: Cleanup warnings from new code

1) Clean up VTY_NEWLINE -> \n
2) Remove usages of VTY_GET_INTEGER

Signed-off-by: Donald Sharp
6 years agoMerge remote-tracking branch 'origin/master' into evpn_plus_struct_attr
Donald Sharp [Fri, 14 Jul 2017 12:24:46 +0000 (08:24 -0400)]
Merge remote-tracking branch 'origin/master' into evpn_plus_struct_attr

6 years agoMerge remote-tracking branch 'origin/master' into evpn_plus_struct_attr
Donald Sharp [Fri, 14 Jul 2017 12:11:05 +0000 (08:11 -0400)]
Merge remote-tracking branch 'origin/master' into evpn_plus_struct_attr

6 years agobgpd: Disable new EVPN CLI
Donald Sharp [Fri, 14 Jul 2017 12:08:52 +0000 (08:08 -0400)]
bgpd: Disable new EVPN CLI

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 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

6 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

6 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

6 years agolib, vtysh: remove now-useless newline arg
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>
6 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>
6 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

6 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

6 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>
6 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>
6 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

6 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

6 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

6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 years agoeigrpd: Fix up some redistribution issues
Donald Sharp [Thu, 13 Jul 2017 22:58:31 +0000 (18:58 -0400)]
eigrpd: Fix up some redistribution issues

Get EIGRP to start attempting to redistribute routes
as well as to display the fact it thinks it is redistributed.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoeigrpd: Let eigrp setup it's router-id in some situations
Donald Sharp [Thu, 13 Jul 2017 22:45:20 +0000 (18:45 -0400)]
eigrpd: Let eigrp setup it's router-id in some situations

If the router-id is passed up to eigrp before we have
started the instance, allow it to set it up properly
as we start the instance.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoeigrpd: Fixed wrong type used
Donald Sharp [Thu, 13 Jul 2017 22:12:07 +0000 (18:12 -0400)]
eigrpd: Fixed wrong type used

Recent additions to prefix_copy to check afi type exposed
an issue with eigrp setting the wrong afi type for a `struct prefix`.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobabeld: Allow babel to redistribute v6 routes
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>
6 years agovtysh: return non-zero for configuration failures
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.

6 years agovtysh: fixup password commands
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>
6 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>
6 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>
6 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>
6 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>
6 years agobgpd: show bgp ipv4 label-unicast does not provide any output
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>
6 years agolib, vtysh: pretty-print variable autocompletions
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>
6 years agoRemove FRR-hacking.md documentation
Olivier Dugeon [Thu, 13 Jul 2017 14:05:55 +0000 (16:05 +0200)]
Remove FRR-hacking.md documentation

Content is too old and too many changes are needed to achieved an
up to date documentation

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
6 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

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

Signed-off-by: ßingen <bingen@voltanet.io>
6 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>
6 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

6 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

6 years agobgpd: Refactor 'struct attr_extra' into 'struct attr'
Donald Sharp [Tue, 6 Jun 2017 17:20:38 +0000 (13:20 -0400)]
bgpd: Refactor 'struct attr_extra' into 'struct attr'

Most of the attributes in 'struct attr_extra' allow for
the more interesting cases of using bgp.  The extra
overhead of managing it will induce errors as we add
more attributes and the extra memory overhead is
negligible on anything but full bgp feeds.

Additionally this greatly simplifies the code for
the handling of data.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd: Fix missing label set

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agolib: Fix some defines for older platforms
Donald Sharp [Fri, 26 May 2017 15:59:05 +0000 (11:59 -0400)]
lib: Fix some defines for older platforms

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: On cleanup make sure pointers exist
Donald Sharp [Fri, 26 May 2017 15:54:07 +0000 (11:54 -0400)]
bgpd: On cleanup make sure pointers exist

Test cases create fake bgp structure that is passed to
cleanup.  The new evpn code assumed ( and probably rightly so)
that if the bgp structure was created it actually initialized
all useful data structures.  Just make the evpn cleanup
functions be smart about attempting to free memory never
allocated.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Ensure EVPN next hops are not overriden
vivek [Fri, 26 May 2017 06:06:38 +0000 (23:06 -0700)]
bgpd: Ensure EVPN next hops are not overriden

Updates: bgpd: Fix next hop setting for EVPN
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
6 years agobgpd: Handle change to router id for EVPN
vivek [Mon, 15 May 2017 22:02:33 +0000 (15:02 -0700)]
bgpd: Handle change to router id for EVPN

When the BGP router-id changes, EVPN routes need to be processed due
to potential change to their RD.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
6 years agobgpd: Additional configuration for EVPN
vivek [Mon, 15 May 2017 22:01:57 +0000 (15:01 -0700)]
bgpd: Additional configuration for EVPN

Implement configuration options for EVPN. The configuration options include
VNI configuration with RD and Import and Export Route Targets. Also, display
the EVPN configuration.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
6 years agobgpd: Display (show) commands for EVPN
vivek [Mon, 15 May 2017 21:53:31 +0000 (14:53 -0700)]
bgpd: Display (show) commands for EVPN

Implement various operational/display commands for EVPN:
- show bgp evpn summary
- show bgp evpn vni [<vni>]
- show bgp evpn route [type <macip|multicast>]
- show bgp evpn route [rd <rd> [type <macip|multicast>]]
- show bgp evpn route [rd <rd> [mac <mac> [ip <ip>]]]
- show bgp evpn route vni <vni> [type <macip|multicast> | vtep <ip>]
- show bgp evpn route vni <vni> [mac <mac> [ip <ip>]]]
- show bgp evpn route vni <vni> [multicast <ip>]
- show bgp evpn route vni all [vtep <ip>]
- show bgp evpn import-rt

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Signed-off-by: Mitesh Kanjariya <mitesh@cumulusnetworks.com>
6 years agobgpd: Debug logging updates for EVPN
vivek [Mon, 15 May 2017 21:52:17 +0000 (14:52 -0700)]
bgpd: Debug logging updates for EVPN

Ensure VNI and EVPN nexthops are logged in debug logs.

Updates: "bgpd: labeled unicast processing"
Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
6 years agobgpd: MAC Mobility extended community string conversion
vivek [Mon, 15 May 2017 21:50:21 +0000 (14:50 -0700)]
bgpd: MAC Mobility extended community string conversion

Updates: d5b9da8a79cbf2acf287bda2600e86a5a3243c64
Updates: 749513cc9d7bf571b3049931057d544b4111c39d

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
6 years agobgpd, zebra: Support for sticky MACs
vivek [Mon, 15 May 2017 21:42:57 +0000 (14:42 -0700)]
bgpd, zebra: Support for sticky MACs

Implement support for sticky (static) MACs. This includes the following:

- Recognize MAC is static (using NUD_NOARP flag) and inform BGP
- Construct MAC mobility extended community for sticky MACs as per
RFC 7432 section 15.2
- Inform to zebra that remote MAC is sticky, where appropriate
- Install sticky MACs into the kernel with the right flag
- Appropriate handling in route selection

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: EVPN route handling
vivek [Mon, 15 May 2017 21:34:04 +0000 (14:34 -0700)]
bgpd: EVPN route handling

Core EVPN route handling functionality. This includes support for the
following:
- interface with zebra to learn about local VNIs and MACIPs as well as
to install remote VTEPs (per VNI) and remote MACIPs
- create/update/delete EVPN type-2 and type-3 routes
- attribute creation, route selection and install
- route handling per VNI and for the global routing table
- parsing of received EVPN routes and handling by route type
- encoding attributes for EVPN routes and EVPN prefix creation (for
Updates)

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
6 years agodoc: update a few places to say FRR
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>
6 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>
6 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>
6 years agobgpd: "set ipv4 vpn next-hop 1.1.1.1" is saved/displayed as "set ip vpn
Daniel Walton [Wed, 12 Jul 2017 18:02:33 +0000 (18:02 +0000)]
bgpd: "set ipv4 vpn next-hop 1.1.1.1" is saved/displayed as "set ip vpn
next-hop 1.1.1.1"

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
6 years agoAdd OSPF API and FRR Hacking documents
Olivier Dugeon [Wed, 12 Jul 2017 17:18:35 +0000 (19:18 +0200)]
Add OSPF API and FRR Hacking documents

 With the help of the WayBackMachine, add old documentation
about the OSPF API and basic Zebra hacking

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
6 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>
6 years agobgpd: Additional check on presence of tag/label
vivek [Thu, 25 May 2017 00:50:29 +0000 (17:50 -0700)]
bgpd: Additional check on presence of tag/label

In the case of EVPN, not all EVPN routes will necessarily have a tag/label.
Do an additional check on presence of tag, where needed.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
6 years agotests: update prng to return better pseudo random numbers
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>
6 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>
6 years agolib: Define handlers for VNI and MACIP
vivek [Mon, 15 May 2017 21:32:38 +0000 (14:32 -0700)]
lib: Define handlers for VNI and MACIP

Define client handlers for processing add or delete of local VNIs
and local MACIPs.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
6 years agobgpd: Install or remove only relevant routes from zebra
vivek [Mon, 15 May 2017 21:31:57 +0000 (14:31 -0700)]
bgpd: Install or remove only relevant routes from zebra

Ensure that the AFI/SAFI is relevant to the FIB before attempting to install
or remove the route from zebra.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>