]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
6 years agoMerge pull request #2729 from qlyoung/doc-misc-bgp-fixes
Russ White [Fri, 27 Jul 2018 02:32:40 +0000 (22:32 -0400)]
Merge pull request #2729 from qlyoung/doc-misc-bgp-fixes

doc: misc bgp.rst fixes

6 years agoMerge pull request #2727 from donaldsharp/pim_jp_lollipops
Jafar Al-Gharaibeh [Thu, 26 Jul 2018 15:18:39 +0000 (10:18 -0500)]
Merge pull request #2727 from donaldsharp/pim_jp_lollipops

pimd: RPT Prunes do not need to be figured for a *,G Prune

6 years agoMerge pull request #2607 from pguibert6WIND/complement_fs_patch3
Donald Sharp [Thu, 26 Jul 2018 13:25:35 +0000 (09:25 -0400)]
Merge pull request #2607 from pguibert6WIND/complement_fs_patch3

Complement fs patch3

6 years agoMerge pull request #2681 from qlyoung/doc-cleanup-rpki
Jafar Al-Gharaibeh [Wed, 25 Jul 2018 22:04:02 +0000 (17:04 -0500)]
Merge pull request #2681 from qlyoung/doc-cleanup-rpki

doc: cleanup rpki.rst

6 years agoMerge pull request #2662 from donaldsharp/tests
Lou Berger [Wed, 25 Jul 2018 21:53:05 +0000 (17:53 -0400)]
Merge pull request #2662 from donaldsharp/tests

Tests

6 years agodoc: misc bgp.rst fixes
Quentin Young [Tue, 24 Jul 2018 17:21:19 +0000 (17:21 +0000)]
doc: misc bgp.rst fixes

* Clean up command stubs
* Document `disable-connected-check`
* Add markup
* Clarify section on autonomous systems
* Rewrap line to 80 characters
* Fix typos
* Fix grammar

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agotests: Let compiler know this was an intentionall fallthrough
Donald Sharp [Wed, 25 Jul 2018 19:00:52 +0000 (15:00 -0400)]
tests: Let compiler know this was an intentionall fallthrough

Let the compiler know that this code intentionally fell
through to the next case statement in a switch.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agotests: Prevent weird type promotion objection in bgp tests
Donald Sharp [Fri, 13 Jul 2018 11:26:32 +0000 (07:26 -0400)]
tests: Prevent weird type promotion objection in bgp tests

The va_start function cannot take a object that can be type promoted
Looks like a new warning coming in from a new compiler.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agotests: Fix const change
Donald Sharp [Fri, 13 Jul 2018 10:14:53 +0000 (06:14 -0400)]
tests: Fix const change

Some of the parameters for lib/srcdest.. have changed to
consts, make the test cases respect that.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agopimd: RPT Prunes do not need to be figured for a *,G Prune
Donald Sharp [Wed, 25 Jul 2018 18:37:30 +0000 (14:37 -0400)]
pimd: RPT Prunes do not need to be figured for a *,G Prune

Packet sending in PIM is a two step process.
1) Gather data size of next G to be packed into a packet.
2) Write data

After 1 we need to ensure that the next G to pack will actually
fit in a packet.  If it does not send what we've currently written
and start a new packet to send.

Because this was a 2 step process it is important to be consistent
in what you think you have packed -vs- what you think you should.

PIM has a bug where we were considering S,G RPT Prunes for a *,G
even when the *,G was being pruned.  This lead to a situation where
we were figuring a write size of more data then what we actually wrote
into a packet.  This would leave a 8 byte whole of 0's in the packet
due to the way we moved pointers around.

Fix the code so that we do not attempt to consider S,G rpt prunes
for a *,G prune when figuring out how much we should write in step 1.

Ticket: CM-21644
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #2711 from pacovn/isis_test_fixes
Quentin Young [Wed, 25 Jul 2018 18:01:06 +0000 (11:01 -0700)]
Merge pull request #2711 from pacovn/isis_test_fixes

tests/isisd: fix warnings

6 years agoMerge pull request #2712 from pacovn/Security_Uninitialized_memory_access
Renato Westphal [Wed, 25 Jul 2018 14:07:57 +0000 (11:07 -0300)]
Merge pull request #2712 from pacovn/Security_Uninitialized_memory_access

pimd: uninitialized memory access fix

6 years agoMerge pull request #2704 from sworleys/Netlink-Nexthop-Hang
Russ White [Tue, 24 Jul 2018 23:42:11 +0000 (19:42 -0400)]
Merge pull request #2704 from sworleys/Netlink-Nexthop-Hang

zebra: Add check for nexthop loop to prevent hanging

6 years agoMerge pull request #2706 from chiragshah6/mdev
Russ White [Tue, 24 Jul 2018 23:29:05 +0000 (19:29 -0400)]
Merge pull request #2706 from chiragshah6/mdev

bgpd: Add evpn prefix to debug bgp updates prefix

6 years agoMerge pull request #2714 from qlyoung/fix-unused-variable-zserv
Russ White [Tue, 24 Jul 2018 23:26:13 +0000 (19:26 -0400)]
Merge pull request #2714 from qlyoung/fix-unused-variable-zserv

zebra: remove unused var in zserv.c

6 years agopimd: uninitialized memory access fix
F. Aragon [Tue, 24 Jul 2018 16:46:38 +0000 (18:46 +0200)]
pimd: uninitialized memory access fix

Signed-off-by: F. Aragon <paco@voltanet.io>
6 years agodoc: move rpki reference to correct spot
Quentin Young [Tue, 24 Jul 2018 21:13:28 +0000 (21:13 +0000)]
doc: move rpki reference to correct spot

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agozebra: remove unused var in zserv.c
Quentin Young [Tue, 24 Jul 2018 21:01:29 +0000 (21:01 +0000)]
zebra: remove unused var in zserv.c

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #2699 from sworleys/Netlink-MTU-Check
Renato Westphal [Tue, 24 Jul 2018 20:04:47 +0000 (17:04 -0300)]
Merge pull request #2699 from sworleys/Netlink-MTU-Check

zebra: Add check for mtu on netlink RTM_NEWLINK

6 years agotests/isisd: fix warnings
F. Aragon [Tue, 24 Jul 2018 16:21:57 +0000 (18:21 +0200)]
tests/isisd: fix warnings

Commit ae9c9aba changed isis_vertex_id_init() and isis_find_vertex()
parameters, so compiler reported warnings in the test (the actual data
passing through is the same because of the union used in the latest changes).
This commit fixes the warnings in the test.

Signed-off-by: F. Aragon <paco@voltanet.io>
6 years agoMerge pull request #2665 from chiragshah6/evpn_dev
Russ White [Tue, 24 Jul 2018 15:55:08 +0000 (11:55 -0400)]
Merge pull request #2665 from chiragshah6/evpn_dev

bgpd: support evpn nd ext community

6 years agoMerge pull request #2707 from opensourcerouting/fix-srcdest-netlink-read
Donald Sharp [Tue, 24 Jul 2018 15:49:49 +0000 (11:49 -0400)]
Merge pull request #2707 from opensourcerouting/fix-srcdest-netlink-read

zebra: do not ignore ipv6 srcdest routes

6 years agoMerge pull request #2640 from pguibert6WIND/doc_ldp
Quentin Young [Tue, 24 Jul 2018 15:34:22 +0000 (11:34 -0400)]
Merge pull request #2640 from pguibert6WIND/doc_ldp

doc: add Ldp user documentation

6 years agobgpd: Add evpn prefix to debug bgp updates prefix
Chirag Shah [Sat, 21 Jul 2018 18:08:51 +0000 (11:08 -0700)]
bgpd: Add evpn prefix to debug bgp updates prefix

Adding EVPN prefix of Type 2, 3 and 5 routes to bgp updates
prefix filters.

Ticket:CM-14476
Testing Done:

Configure multiple evpn options under 'debug bgp updates prefix'.
Below is the running-config output.

MAC-IP route with just MAC:
debug bgp updates prefix l2vpn evpn type macip mac
00:02:00:0a:0a:0a
MAC-IP route with MAC and IP:
debug bgp updates prefix l2vpn evpn type macip mac
00:02:00:00:00:0c ip 45.0.1.9
MAC-IP route with just MAC and IPv6:
debug bgp updates prefix l2vpn evpn type
macip mac 00:02:00:00:00:0a ip 2001:fee1:0:1::8
Type-3:
debug bgp updates prefix l2vpn evpn type multicast ip 27.0.1.19
Type-5:
debug bgp updates prefix l2vpn evpn type prefix
ip 2060:1:1:1::/64

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
6 years agoMerge pull request #2703 from opensourcerouting/ldpd-missing-command
Donald Sharp [Tue, 24 Jul 2018 12:37:52 +0000 (08:37 -0400)]
Merge pull request #2703 from opensourcerouting/ldpd-missing-command

ldpd: add missing command under the ipv6 address-family node

6 years agozebra: do not ignore ipv6 srcdest routes
Christian Franke [Mon, 23 Jul 2018 01:40:42 +0000 (03:40 +0200)]
zebra: do not ignore ipv6 srcdest routes

Commit a2ca67d1d2 consolidated IPv4 and IPv6 handling. It also applied
our ignorance for IPv4 srcdest routes onto IPv6.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agozebra: add information about which port is monitored
Philippe Guibert [Fri, 6 Jul 2018 11:09:13 +0000 (13:09 +0200)]
zebra: add information about which port is monitored

Each ipset with port value monitors either src port or dst port.
The information is added to show pbr iptable commmand.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agobgpd: flowspec 'no local-install any' wrong order in show runni
Philippe Guibert [Fri, 20 Jul 2018 15:24:43 +0000 (17:24 +0200)]
bgpd: flowspec 'no local-install any' wrong order in show runni

When configuring an interface, the no local-install any command appears,
and leads to confusions. because the effect of that command differs if
it is executed after local-install <interfaces> or before executing
local-install <interfaces>, the proposal fix here is to suppress that
command from the vty available commands.

PR=59595
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Acked-by: Alain Ritoux <alain.ritoux@6wind.com>
6 years agobgpd: display more than one FS entre per IP
Philippe Guibert [Mon, 2 Jul 2018 15:25:32 +0000 (17:25 +0200)]
bgpd: display more than one FS entre per IP

because the IP destination criterium may match several entries, the show
command may return more than one entry.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agobgpd: add the pbr identifier in the log messages
Philippe Guibert [Mon, 2 Jul 2018 14:53:19 +0000 (16:53 +0200)]
bgpd: add the pbr identifier in the log messages

for clarity sake, the identifier is inserted in the debug line.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agobgpd: flush remaining entry if bgp_pbr_match is equal
Philippe Guibert [Mon, 2 Jul 2018 14:50:36 +0000 (16:50 +0200)]
bgpd: flush remaining entry if bgp_pbr_match is equal

When adding an entry, a check is done in order to flush previously
configured entries. The whole parameters are checked so as to not remove
some entries that have ipset entries equal, but not iptable settings.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agobgpd: rework jhash algorithm for bgp_pbr_match entries
Philippe Guibert [Mon, 2 Jul 2018 14:48:48 +0000 (16:48 +0200)]
bgpd: rework jhash algorithm for bgp_pbr_match entries

Instead of relying on jhash_1word for some parameters that are not 32
bit size, the jash(pointer, len) function is used.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agobgpd: add debug trace when bgp fs pbr remove too
Philippe Guibert [Mon, 2 Jul 2018 12:59:19 +0000 (14:59 +0200)]
bgpd: add debug trace when bgp fs pbr remove too

Removal action from flowspec to policy-routing is also traced back.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agozebra: show pbr iptable per iptable
Philippe Guibert [Fri, 29 Jun 2018 11:45:01 +0000 (13:45 +0200)]
zebra: show pbr iptable per iptable

Add ability to pass a ip table parameter.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agobgpd: flowspec pbr entries listed on the bgp information entry
Philippe Guibert [Thu, 28 Jun 2018 15:26:22 +0000 (17:26 +0200)]
bgpd: flowspec pbr entries listed on the bgp information entry

Because one flowspec entry can create 1-N bgp pbr entries, the list is
now updated and visible. Also, because the bgp_extra structure is used,
this list is flushed when the bgp_extra structure is deleted.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agozebra: Add check for nexthop loop to prevent hanging
Stephen Worley [Mon, 23 Jul 2018 22:33:53 +0000 (18:33 -0400)]
zebra: Add check for nexthop loop to prevent hanging

Bad nexthop messages from netlink were causing zebra
to hang here. Added a check to verify the length
of the nexthop so it doesn't keep trying to read.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
6 years agoldpd: add missing command under the ipv6 address-family node
Renato Westphal [Mon, 23 Jul 2018 22:10:57 +0000 (19:10 -0300)]
ldpd: add missing command under the ipv6 address-family node

Bug found by Patrick Velder.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoMerge pull request #2698 from sworleys/Netlink-Filter-AFI
Russ White [Mon, 23 Jul 2018 21:45:44 +0000 (17:45 -0400)]
Merge pull request #2698 from sworleys/Netlink-Filter-AFI

zebra: Add address family filters

6 years agoMerge pull request #2697 from mjstapp/routemap_const
Russ White [Mon, 23 Jul 2018 21:42:04 +0000 (17:42 -0400)]
Merge pull request #2697 from mjstapp/routemap_const

libs, daemons: use const in route-map apply

6 years agoMerge pull request #2701 from FRRouting/revert-2670-feature/use_med_if_applied_for_de...
Russ White [Mon, 23 Jul 2018 21:08:43 +0000 (17:08 -0400)]
Merge pull request #2701 from FRRouting/revert-2670-feature/use_med_if_applied_for_default_route

Revert "Use metric for default-originate with route-map if applied"

6 years agoRevert "Use metric for default-originate with route-map if applied"
Russ White [Mon, 23 Jul 2018 21:08:24 +0000 (17:08 -0400)]
Revert "Use metric for default-originate with route-map if applied"

6 years agoMerge pull request #2670 from ton31337/feature/use_med_if_applied_for_default_route
Russ White [Mon, 23 Jul 2018 21:04:48 +0000 (17:04 -0400)]
Merge pull request #2670 from ton31337/feature/use_med_if_applied_for_default_route

Use metric for default-originate with route-map if applied

6 years agoMerge pull request #2646 from AnuradhaKaruppiah/evpn-fixes
Russ White [Mon, 23 Jul 2018 20:53:34 +0000 (16:53 -0400)]
Merge pull request #2646 from AnuradhaKaruppiah/evpn-fixes

zebra: install EVPN gateway MAC as static/sticky

6 years agoMerge pull request #2641 from donaldsharp/pim_igmp_dr
Russ White [Mon, 23 Jul 2018 20:50:59 +0000 (16:50 -0400)]
Merge pull request #2641 from donaldsharp/pim_igmp_dr

pimd: Do not create upstream state when not DR for igmp request

6 years agoRemove not needed filters and fix typos
Stephen Worley [Mon, 23 Jul 2018 18:34:43 +0000 (14:34 -0400)]
Remove not needed filters and fix typos

Some more address family filters we can safely ignore
as well as typos in logger. Added AF_MPLS as filterable.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
6 years agoMerge pull request #2668 from dslicenc/cm21722-v6-vrf-display
Renato Westphal [Mon, 23 Jul 2018 17:56:29 +0000 (14:56 -0300)]
Merge pull request #2668 from dslicenc/cm21722-v6-vrf-display

zebra: remove default vrf output for kernel vrf ipv6 blackhole default

6 years agoMerge pull request #2689 from dslicenc/vrf-exit-reload
Renato Westphal [Mon, 23 Jul 2018 17:46:10 +0000 (14:46 -0300)]
Merge pull request #2689 from dslicenc/vrf-exit-reload

tools: handle exit-vrf as end of context block

6 years agozebra: Add check for mtu on netlink RTM_NEWLINK
Stephen Worley [Fri, 20 Jul 2018 20:10:43 +0000 (16:10 -0400)]
zebra: Add check for mtu on netlink RTM_NEWLINK

Zebra needed a check for mtu from the message it
received from the kernel before adding the new link.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
6 years agozebra: Add address family filters
Stephen Worley [Thu, 19 Jul 2018 21:29:16 +0000 (17:29 -0400)]
zebra: Add address family filters

The zebra netlink socket was attempting to read netlink
messages with invalid address families in a couple areas.
Added filters and warn messages.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
6 years agozebra: clean up const use in bsd build
Mark Stapp [Mon, 23 Jul 2018 15:22:14 +0000 (11:22 -0400)]
zebra: clean up const use in bsd build

Missed a bsd/routing socket change when enforcing use of const
in some kernel-facing api calls.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
6 years agolibs, daemons: use const in route-map apply
Mark Stapp [Thu, 12 Jul 2018 20:05:19 +0000 (16:05 -0400)]
libs, daemons: use const in route-map apply

Use 'const prefix *' in route-map apply apis; led to some
corresponding changes in several daemons.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
6 years agoMerge pull request #2652 from LabNConsulting/working/master/confdate_cleanup
Donald Sharp [Mon, 23 Jul 2018 12:46:26 +0000 (08:46 -0400)]
Merge pull request #2652 from LabNConsulting/working/master/confdate_cleanup

Simplify deprecation check

6 years agoMerge pull request #2672 from pcarana/pcarana-add-rpki-rh
Martin Winter [Fri, 20 Jul 2018 20:29:56 +0000 (22:29 +0200)]
Merge pull request #2672 from pcarana/pcarana-add-rpki-rh

RedHat spec: Add the rpki module when needed

6 years agoMerge pull request #2692 from manuhalo/module_param_docs
Quentin Young [Fri, 20 Jul 2018 16:09:57 +0000 (12:09 -0400)]
Merge pull request #2692 from manuhalo/module_param_docs

doc: add cmd line param section to modules.rst

6 years agoMerge pull request #2690 from opensourcerouting/fix-srcdest-route-display
Donald Sharp [Fri, 20 Jul 2018 05:55:53 +0000 (01:55 -0400)]
Merge pull request #2690 from opensourcerouting/fix-srcdest-route-display

zebra: fix do_show_route_helper to include srcdest routes

6 years agoMerge pull request #2688 from pguibert6WIND/vrf_delete_on_netns_fail
Donald Sharp [Fri, 20 Jul 2018 05:54:10 +0000 (01:54 -0400)]
Merge pull request #2688 from pguibert6WIND/vrf_delete_on_netns_fail

zebra: cancel vrf creation if netns activation failed

6 years agoMerge pull request #2691 from adharkar/frr-bgp_cli
Donald Sharp [Fri, 20 Jul 2018 00:05:19 +0000 (20:05 -0400)]
Merge pull request #2691 from adharkar/frr-bgp_cli

bgpd: Changes to BGP show json commands

6 years agoMerge pull request #2687 from opensourcerouting/fix-cpp-notice-on-old-compilers
Quentin Young [Thu, 19 Jul 2018 21:10:45 +0000 (17:10 -0400)]
Merge pull request #2687 from opensourcerouting/fix-cpp-notice-on-old-compilers

lib/compiler.h: Always define CPP_NOTICE

6 years agobgpd: Changes to BGP show json commands
Ameya Dharkar [Thu, 19 Jul 2018 20:46:46 +0000 (13:46 -0700)]
bgpd: Changes to BGP show json commands
Added localRouterID to "show bgp neighbor json"
Added json O/P to "show bgp [AFI] community <community>"

Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
6 years agozebra: fix do_show_route_helper to include srcdest routes
Christian Franke [Thu, 19 Jul 2018 19:16:06 +0000 (15:16 -0400)]
zebra: fix do_show_route_helper to include srcdest routes

6 years agotools: handle exit-vrf as end of context block
Don Slice [Thu, 19 Jul 2018 18:26:38 +0000 (18:26 +0000)]
tools: handle exit-vrf as end of context block

Ticket: CM-21048
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
6 years agodoc: add cmd line param section to modules.rst
Emanuele Di Pascale [Thu, 19 Jul 2018 16:28:25 +0000 (18:28 +0200)]
doc: add cmd line param section to modules.rst

Signed-off-by: Emanuele Di Pascale <emanuele@voltanet.io>
6 years agoMerge pull request #2679 from qlyoung/fix-zapi-fuzzing
Jafar Al-Gharaibeh [Thu, 19 Jul 2018 15:54:33 +0000 (10:54 -0500)]
Merge pull request #2679 from qlyoung/fix-zapi-fuzzing

Fix zapi fuzzing

6 years agozebra: cancel vrf creation if netns activation failed
Philippe Guibert [Thu, 19 Jul 2018 15:51:41 +0000 (17:51 +0200)]
zebra: cancel vrf creation if netns activation failed

To keep configuration consistent, vrf that have not been able to be
associated with netns are removed.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agoMerge pull request #2635 from donaldsharp/more_pim_neighbor
Jafar Al-Gharaibeh [Thu, 19 Jul 2018 15:47:10 +0000 (10:47 -0500)]
Merge pull request #2635 from donaldsharp/more_pim_neighbor

More pim neighbor

6 years agoMerge pull request #2686 from opensourcerouting/master-fix-isis-issue-2584
Donald Sharp [Thu, 19 Jul 2018 15:41:23 +0000 (11:41 -0400)]
Merge pull request #2686 from opensourcerouting/master-fix-isis-issue-2584

isisd: don't crash when isis_sock_init fails

6 years agoisisd: don't crash when isis_sock_init fails
Christian Franke [Tue, 17 Jul 2018 19:14:54 +0000 (15:14 -0400)]
isisd: don't crash when isis_sock_init fails

When isis_sock_init fails in isis_circuit_up, isis_circuit_down would
be called to cancel timers which were scheduled. However
isis_circuit_down would immediately return, since the state had not been
changed to 'UP' yet.

Fix this by having isis_circuit_down always cancel all the timers.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agolib/compiler.h: Always define CPP_NOTICE
Christian Franke [Thu, 19 Jul 2018 14:09:17 +0000 (10:09 -0400)]
lib/compiler.h: Always define CPP_NOTICE

On old compilers CPP_NOTICE should be a macro evaluating to an empty
statement, instead of being undefined.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agoMerge pull request #2608 from pacovn/PVS-Studio_dead_code_1
Donald Sharp [Thu, 19 Jul 2018 12:50:01 +0000 (08:50 -0400)]
Merge pull request #2608 from pacovn/PVS-Studio_dead_code_1

eigrpd lib pimd zebra: dead code (PVS-Studio)

6 years agoUse metric for default-originate with route-map if applied
Donatas Abraitis [Wed, 18 Jul 2018 04:35:23 +0000 (07:35 +0300)]
Use metric for default-originate with route-map if applied

Signed-off-by: Donatas Abraitis donatas.abraitis@gmail.com
6 years agoMerge pull request #2678 from pguibert6WIND/sanity_netns
Donald Sharp [Wed, 18 Jul 2018 19:36:53 +0000 (15:36 -0400)]
Merge pull request #2678 from pguibert6WIND/sanity_netns

zebra: sometimes, it is not possible to assign a NSID to a vrf

6 years agodoc: cleanup rpki.rst
Quentin Young [Wed, 18 Jul 2018 19:22:14 +0000 (19:22 +0000)]
doc: cleanup rpki.rst

Previous commit on this file introduced formatting issues.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agozebra: fix some cli option descriptions
Quentin Young [Wed, 18 Jul 2018 16:39:20 +0000 (16:39 +0000)]
zebra: fix some cli option descriptions

Couple typos / clarity fixes.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agozebra: fix zapi fuzzing infra
Quentin Young [Wed, 18 Jul 2018 16:32:07 +0000 (16:32 +0000)]
zebra: fix zapi fuzzing infra

Some of this stuff got broken with the introduction of pthreads.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agozebra: sometimes, it is not possible to assign a NSID to a vrf
Philippe Guibert [Wed, 18 Jul 2018 15:58:45 +0000 (17:58 +0200)]
zebra: sometimes, it is not possible to assign a NSID to a vrf

This test case happens in scenarios with mininet, where external netns
may be impossible for the local instance to be modified. The error is
ignored and the netns parsed is ignored too.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agozebra: fix nexthop type check for kernel default route display
Don Slice [Wed, 18 Jul 2018 13:05:50 +0000 (13:05 +0000)]
zebra: fix nexthop type check for kernel default route display

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
6 years agobgpd: support evpn nd ext community
Chirag Shah [Sat, 7 Jul 2018 04:46:46 +0000 (21:46 -0700)]
bgpd: support evpn nd ext community

EVPN ND ext community support NA flag R-bit, to have proxy ND.

Set R-bit in EVPN NA if a given router is default gateway or there is a
local
router attached, which can be determine based on local neighbor entry.

Implement BGP ext community attribute to generate and parse  R-bit and
pass along zebra to program neigh entry in kernel.

Upon receiving MAC/IP update with community type 0x06 and sub_type 0x08,
pass the R-bit to zebra to program neigh entry.

Set NTF_ROUTER in neigh entry and inform kernel to do proxy NA for EVPN.

Ref:
https://tools.ietf.org/html/draft-ietf-bess-evpn-na-flags-01

Ticket:CM-21712, CM-21711
Reviewed By:
Testing Done:
Configure Local vni enabled L3 Gateway, which would act as router,
checked
show evpn arp-cache vni x ip <ip of svi> on originated and remote VTEPs.
"Router" flag is set.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
6 years agoMerge pull request #2669 from netravnen/hotfix/documentation/activate-bgp-rpki
Quentin Young [Tue, 17 Jul 2018 18:51:48 +0000 (14:51 -0400)]
Merge pull request #2669 from netravnen/hotfix/documentation/activate-bgp-rpki

doc: Update rpki.rst for how-to enable rpki module

6 years agoRedHat spec: Add the rpki module when needed
pcarana [Tue, 17 Jul 2018 17:49:14 +0000 (12:49 -0500)]
RedHat spec: Add the rpki module when needed

Additional help complementing #2669, this adds the rpki module to the bgpd daemon at RPM creation.

6 years agodoc: Update rpki.rst for how-to enable rpki module
Christoffer [Tue, 17 Jul 2018 16:43:49 +0000 (18:43 +0200)]
doc: Update rpki.rst for how-to enable rpki module

It has not been properly documented yet how to enable the RPKI module with BGP when having installed FRR with RPKI support. This PR seeks to add a section to the user documentation about this. So users will not have to resolve to searching the internet and looking through the FROG mailing list threads for answers.

6 years agoMerge pull request #2625 from pguibert6WIND/ipv4_ipv6_bgp_show
Quentin Young [Tue, 17 Jul 2018 15:19:13 +0000 (11:19 -0400)]
Merge pull request #2625 from pguibert6WIND/ipv4_ipv6_bgp_show

doc: add more information about show ip bgp and show bgp

6 years agoMerge pull request #2647 from pguibert6WIND/fix_routemap_vpnv4
Lou Berger [Tue, 17 Jul 2018 15:02:42 +0000 (11:02 -0400)]
Merge pull request #2647 from pguibert6WIND/fix_routemap_vpnv4

bgpd: ability to set vpnv4 nexthop with route-map

6 years agozebra: remove default vrf output for kernel vrf ipv6 blackhole default
Don Slice [Tue, 17 Jul 2018 14:20:52 +0000 (14:20 +0000)]
zebra: remove default vrf output for kernel vrf ipv6 blackhole default

It was reported that "show ipv6 route vrf <vrfname>", "show ipv6 route
vrf <vrfname> ::/0 " or "show ipv6 route vrf <vrfname> json" all
displayed that the nexthop was in the default vrf.  This was because
the kernel netlink messages would supply the RTA_OIF of the loopback
interface for the kernel-created default route for the vrf, where ipv4
did not supply any RTA_OIF.  This fix suppresses the display if the
nexthop and route entry are in different vrfs and the nexthop is
NEXTHOP_TYPE_BLACKHOLE.

Ticket: CM-21722
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
6 years agoMerge pull request #2589 from donaldsharp/admiral_ACK_bar
Renato Westphal [Sat, 14 Jul 2018 14:48:40 +0000 (11:48 -0300)]
Merge pull request #2589 from donaldsharp/admiral_ACK_bar

Netlink sockets are synchronous

6 years agoMerge pull request #2658 from mjstapp/srcdest_test_const
Renato Westphal [Sat, 14 Jul 2018 14:47:54 +0000 (11:47 -0300)]
Merge pull request #2658 from mjstapp/srcdest_test_const

tests: align with srcdest lib changes, remove bgp binary

6 years agotests: add test_bgp_table to gitignore
Mark Stapp [Fri, 13 Jul 2018 11:56:38 +0000 (07:56 -0400)]
tests: add test_bgp_table to gitignore

Signed-off-by: Mark Stapp <mjs@voltanet.io>
6 years agozebra: Remove need for ACK for netlink messages
Donald Sharp [Fri, 29 Jun 2018 13:49:08 +0000 (09:49 -0400)]
zebra: Remove need for ACK for netlink messages

Kernel requests via netlink are synchronous.

Therefore we do not need to specify a need for a ACK and
we can make the netlink_cmd NONBLOCKING

1) If the netlink message is going to cause an error
we will still get one.  Since results from the kernel
are synchronous we will get the error message on the
netlink_cmd socket and handle it

2) If the netlink message is going to send more than
one packet we will still get them all.  Since the results
from the kernel are synchronous we will receive all data.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agozebra: Listen to error codes from netlink_socket
Donald Sharp [Fri, 29 Jun 2018 11:33:39 +0000 (07:33 -0400)]
zebra: Listen to error codes from netlink_socket

When creating a netlink_socket, listen to error
codes and abandon ship if it crashes and burns.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #2595 from pguibert6WIND/fix_netlink_rx_route_vrfnetns
Donald Sharp [Fri, 13 Jul 2018 02:22:34 +0000 (22:22 -0400)]
Merge pull request #2595 from pguibert6WIND/fix_netlink_rx_route_vrfnetns

zebra: upon RTM_NEWROUTE/DELROUTE, find appropriate interface

6 years agoMerge pull request #2660 from sworleys/master
Renato Westphal [Thu, 12 Jul 2018 21:39:09 +0000 (18:39 -0300)]
Merge pull request #2660 from sworleys/master

zebra: Fix function call in fuzzing code

6 years agozebra: Fix function call in fuzzing code
Stephen Worley [Thu, 12 Jul 2018 16:39:13 +0000 (12:39 -0400)]
zebra: Fix function call in fuzzing code

The fuzzing code was calling zebra_client_create which was refactored to zserv_client_create.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
6 years agotests: align with srcdest lib changes, remove bgp binary
Mark Stapp [Thu, 12 Jul 2018 13:51:52 +0000 (09:51 -0400)]
tests: align with srcdest lib changes, remove bgp binary

Align the srcdest table test with recent api changes that use
'const' more strictly. Remove test_bgp_table binary - looks
as if it was committed by mistake.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
6 years agoMerge pull request #2469 from ajones-rvbd/ajones-issue-2442
Quentin Young [Wed, 11 Jul 2018 17:34:52 +0000 (13:34 -0400)]
Merge pull request #2469 from ajones-rvbd/ajones-issue-2442

unit tests: support code coverage instrumentation and reports

6 years agoMerge pull request #2655 from mjstapp/lib_const_prefix
Donald Sharp [Wed, 11 Jul 2018 14:45:52 +0000 (10:45 -0400)]
Merge pull request #2655 from mjstapp/lib_const_prefix

zebra, libs: use const prefix ptrs in apis

6 years agozebra, libs: use const prefix ptrs in apis
Mark Stapp [Tue, 10 Jul 2018 20:02:03 +0000 (16:02 -0400)]
zebra, libs: use const prefix ptrs in apis

Add 'const' to prefix args to several zebra route update,
redistribution, and route owner notification apis.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
6 years agoMerge pull request #2651 from qlyoung/doc-cleanup-release-process
Martin Winter [Wed, 11 Jul 2018 00:39:15 +0000 (17:39 -0700)]
Merge pull request #2651 from qlyoung/doc-cleanup-release-process

doc: cleanup maintainer release document

6 years agoMerge pull request #2627 from rtrlib/revalidation
Russ White [Tue, 10 Jul 2018 22:50:47 +0000 (18:50 -0400)]
Merge pull request #2627 from rtrlib/revalidation

bgpd: rpki revalidation

6 years agoMerge pull request #2650 from mjstapp/nh_iter
Donald Sharp [Tue, 10 Jul 2018 22:20:00 +0000 (18:20 -0400)]
Merge pull request #2650 from mjstapp/nh_iter

libs: add ALL_NEXTHOPS_PTR iterator macro

6 years agoMerge pull request #2591 from LabNConsulting/working/master/bgp-delayed-default-instance
Russ White [Tue, 10 Jul 2018 20:46:00 +0000 (16:46 -0400)]
Merge pull request #2591 from LabNConsulting/working/master/bgp-delayed-default-instance

bgpd: fix NULL dereference in vrf-vpn leak config if before default instance

6 years agoospf6d: remove VERSION_TYPE_DEV from CONFDATE checks
Lou Berger [Tue, 10 Jul 2018 20:02:59 +0000 (16:02 -0400)]
ospf6d: remove VERSION_TYPE_DEV from CONFDATE checks

Signed-off-by: Lou Berger <lberger@labn.net>