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

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

5 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.

5 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

5 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

5 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

5 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

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

5 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

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

5 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

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

5 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

5 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

5 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

5 years agoMerge pull request #2553 from opensourcerouting/release_proc
Quentin Young [Tue, 10 Jul 2018 19:39:49 +0000 (15:39 -0400)]
Merge pull request #2553 from opensourcerouting/release_proc

doc: Add document for Release Build by maintainer

5 years agodoc: cleanup maintainer release document
Quentin Young [Tue, 10 Jul 2018 19:38:11 +0000 (19:38 +0000)]
doc: cleanup maintainer release document

* Sphinx numbered lists use 1. not 1)
* Indents are three spaces
* Blocks under lists should be indented along with the rest of the list
  content
* Sphinx converts :: to : when used as a code block marker
* Apply some preformatted markup to things that should be preformatted
* Remove trailing whitespace

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agolibs: add ALL_NEXTHOPS_PTR iterator macro
Mark Stapp [Tue, 12 Jun 2018 20:33:30 +0000 (16:33 -0400)]
libs: add ALL_NEXTHOPS_PTR iterator macro

Because sometimes we have a pointer to a nexthop_group.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
5 years agolib: remove if_lookup_by_index portion of code with unknown vrf
Philippe Guibert [Tue, 10 Jul 2018 12:34:44 +0000 (14:34 +0200)]
lib: remove if_lookup_by_index portion of code with unknown vrf

This function should be called with a known vrf_id. All other cases, the
other API should be called.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agozebra: mpls entry interface lookup adaptation for vrf backend
Philippe Guibert [Thu, 5 Jul 2018 08:04:48 +0000 (10:04 +0200)]
zebra: mpls entry interface lookup adaptation for vrf backend

The search algorithm for interface based on ifindex only is adapted to
vrf netns based too. Only the default netns will be used to search the
interface index.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agozebra: pbr rule lookup index adaptation for vrf netns
Philippe Guibert [Thu, 5 Jul 2018 08:02:57 +0000 (10:02 +0200)]
zebra: pbr rule lookup index adaptation for vrf netns

the interface lookup based on ifindex in the case the target vrf is
unknown is using the generic vrf api. Like that, in the case of vrf
based netns, the search across different netns other than the default
one are not searched.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agozebra: upon RTM_NEWROUTE/DELROUTE, find appropriate interface
Philippe Guibert [Mon, 2 Jul 2018 08:33:00 +0000 (10:33 +0200)]
zebra: upon RTM_NEWROUTE/DELROUTE, find appropriate interface

The interface lookup algorithm is different according to if we are on
netns vrf or not. If we are on the former case, then we only have to
parse the interfaces of the netns, while if we are on the other case, we
have to parse all the interfaces of all the vrfs ( since index is not
overlapping in the latter case).

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agoMerge pull request #2643 from qlyoung/doc-workflow-reviews
Renato Westphal [Tue, 10 Jul 2018 13:47:43 +0000 (10:47 -0300)]
Merge pull request #2643 from qlyoung/doc-workflow-reviews

doc: add dev docs on code review practices

5 years agobgpd: ability to set vpnv4 nexthop with route-map
Philippe Guibert [Tue, 10 Jul 2018 13:22:13 +0000 (15:22 +0200)]
bgpd: ability to set vpnv4 nexthop with route-map

Ability to set nexthop IP pointer with route-map.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agodoc: add more information about show ip bgp and show bgp
Philippe Guibert [Wed, 4 Jul 2018 15:49:09 +0000 (17:49 +0200)]
doc: add more information about show ip bgp and show bgp

Add some information to inform the user that one can either display ipv4
or ipv6 routing table, with the above commands.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agodoc: Add document for Release Build by maintainer
Martin Winter [Thu, 21 Jun 2018 21:01:43 +0000 (14:01 -0700)]
doc: Add document for Release Build by maintainer

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
5 years agoMerge pull request #2636 from ppmathis/cleanup/bgpd
Quentin Young [Mon, 9 Jul 2018 19:43:32 +0000 (15:43 -0400)]
Merge pull request #2636 from ppmathis/cleanup/bgpd

bgpd: Cleanup of bgp daemon code

5 years agoMerge pull request #2637 from donaldsharp/pim_malloc_me
Renato Westphal [Mon, 9 Jul 2018 19:02:47 +0000 (16:02 -0300)]
Merge pull request #2637 from donaldsharp/pim_malloc_me

pimd: Remove unnecessary alloc failures

5 years agodoc: add dev docs on code review practices
Quentin Young [Mon, 9 Jul 2018 17:47:25 +0000 (17:47 +0000)]
doc: add dev docs on code review practices

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agoMerge pull request #2642 from donaldsharp/deprecated
Renato Westphal [Mon, 9 Jul 2018 18:29:33 +0000 (15:29 -0300)]
Merge pull request #2642 from donaldsharp/deprecated

ospfd: Remove deprecated code

5 years agoMerge pull request #2632 from ppmathis/bugfix/bgp-autoshut
Quentin Young [Mon, 9 Jul 2018 17:55:33 +0000 (13:55 -0400)]
Merge pull request #2632 from ppmathis/bugfix/bgp-autoshut

bgpd: Fix bgp auto-shutdown behavior

5 years agoospfd: Remove deprecated code
Donald Sharp [Mon, 9 Jul 2018 16:22:21 +0000 (12:22 -0400)]
ospfd: Remove deprecated code

This code has been deprecated for over a year, let's remove it now.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agopimd: Remove unnecessary alloc failures
Donald Sharp [Sun, 8 Jul 2018 16:09:21 +0000 (12:09 -0400)]
pimd: Remove unnecessary alloc failures

Remove from pim unnecessary alloc failure testing
as that alloc failure will cause an assert.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Cleanup of bgp daemon code
Pascal Mathis [Sat, 7 Jul 2018 20:34:25 +0000 (22:34 +0200)]
bgpd: Cleanup of bgp daemon code

This commit removes various parts of the bgpd implementation code which
are unused/useless, e.g. unused functions, unused variable
initializations, unused structs, ...

Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
5 years agobgpd: Fix bgp auto-shutdown behavior
Pascal Mathis [Sat, 7 Jul 2018 11:14:55 +0000 (13:14 +0200)]
bgpd: Fix bgp auto-shutdown behavior

The current behavior of the `bgp default shutdown` command is to set the
state of all newly configured peers to shutdown. This leads to a problem
when restarting bgpd, because all peers will then be seen as newly
configured, which leads to all peers being set to shutdown after each
restart.

This behavior is undesired and not common when comparing the
implementation against other vendors. This commit moves the `bgp default
shutdown` configuration underneath the peer-group and peer
configuration, to ensure that existing peers will not be set to shutdown
after a daemon restart.

Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
5 years agoMerge pull request #2630 from donaldsharp/hashables
Rafael Zalamena [Fri, 6 Jul 2018 15:30:06 +0000 (12:30 -0300)]
Merge pull request #2630 from donaldsharp/hashables

revert hash_walk/iterate optimizations

5 years agoMerge pull request #2628 from pguibert6WIND/realpath_debug
Quentin Young [Fri, 6 Jul 2018 15:24:25 +0000 (11:24 -0400)]
Merge pull request #2628 from pguibert6WIND/realpath_debug

lib: add the pathname to get the realpath in case of failure

5 years agoMerge pull request #2618 from pacovn/PVS-Studio_library_warnings
Quentin Young [Fri, 6 Jul 2018 15:23:29 +0000 (11:23 -0400)]
Merge pull request #2618 from pacovn/PVS-Studio_library_warnings

pimd: standard library usage (PVS-Studio)

5 years agoMerge pull request #2605 from pacovn/PVS-Studio_null_check
Jafar Al-Gharaibeh [Fri, 6 Jul 2018 15:22:47 +0000 (10:22 -0500)]
Merge pull request #2605 from pacovn/PVS-Studio_null_check

ospfd  pimd: null check (PVS-Studio)

5 years agovtysh: Remove unused variable
Donald Sharp [Fri, 6 Jul 2018 14:22:34 +0000 (10:22 -0400)]
vtysh: Remove unused variable

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Add some documentation
Donald Sharp [Fri, 6 Jul 2018 14:18:50 +0000 (10:18 -0400)]
lib: Add some documentation

Add some documentation to hash_walk/iterate to tell people
to not do something stupid.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoRevert "lib: A small optimization for the hash iterate and walk functions"
Donald Sharp [Fri, 6 Jul 2018 14:18:11 +0000 (10:18 -0400)]
Revert "lib: A small optimization for the hash iterate and walk functions"

This reverts commit fc61644e440c875eefa222ab34d726c6281ca806.

5 years agolib: add the pathname to get the realpath in case of failure
Philippe Guibert [Mon, 2 Jul 2018 16:27:46 +0000 (18:27 +0200)]
lib: add the pathname to get the realpath in case of failure

Sometimes, the file under /var/run/netns may not be authorised to be
read ( because it is not read permission for frr user, for instance).
so it is good to know what happened.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agopimd: standard library usage (PVS-Studio)
F. Aragon [Tue, 3 Jul 2018 10:11:19 +0000 (12:11 +0200)]
pimd: standard library usage (PVS-Studio)

fread() function was not used properly.

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoospfd pimd: null check (PVS-Studio)
F. Aragon [Mon, 2 Jul 2018 15:44:58 +0000 (17:44 +0200)]
ospfd pimd: null check (PVS-Studio)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge pull request #2602 from pacovn/PVS-Studio_element_overflow
Quentin Young [Thu, 5 Jul 2018 21:49:49 +0000 (17:49 -0400)]
Merge pull request #2602 from pacovn/PVS-Studio_element_overflow

bgpd zebra: element overflow (PVS-Studio)

5 years agoMerge pull request #2623 from pacovn/PVS-Studio_memcpy_source_underflow
Quentin Young [Thu, 5 Jul 2018 21:41:25 +0000 (17:41 -0400)]
Merge pull request #2623 from pacovn/PVS-Studio_memcpy_source_underflow

ldpd: buffer underflow, thread safety (PVS-Studio)

5 years agoMerge pull request #2568 from pguibert6WIND/doc_mpls
Quentin Young [Thu, 5 Jul 2018 18:56:34 +0000 (14:56 -0400)]
Merge pull request #2568 from pguibert6WIND/doc_mpls

doc: add MPLS configuration commands

5 years agobgpd: add test for bgp_table_range_lookup
Marcel Röthke [Fri, 15 Jun 2018 11:28:06 +0000 (13:28 +0200)]
bgpd: add test for bgp_table_range_lookup

Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
5 years agobgpd: add support for rpki revalidation on rpki updates
Marcel Röthke [Thu, 29 Mar 2018 09:15:18 +0000 (11:15 +0200)]
bgpd: add support for rpki revalidation on rpki updates

Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
5 years agoMerge pull request #2624 from donaldsharp/PIM_ZOMILY_ZOM
Jafar Al-Gharaibeh [Wed, 4 Jul 2018 23:42:51 +0000 (18:42 -0500)]
Merge pull request #2624 from donaldsharp/PIM_ZOMILY_ZOM

pimd: Use generated interface name

5 years agounit tests: support code coverage instrumentation and reports
Arthur Jones [Thu, 14 Jun 2018 13:44:38 +0000 (06:44 -0700)]
unit tests: support code coverage instrumentation and reports

Currently, make check runs the unit tests and reports pass/fail,
but we have no way to guage how much of the code is covered by
these tests.  gcov provides those statistics on a per source
file basis, but requires special CFLAGS and LDFLAGS.  Here, we
add the --enable-gcov configure option to setup those options
correctly.  We also add a make target called check-coverage,
which runs the unit tests, runs gcov and uploads the data to
the codecov.io cloud service for display.

Finally, we include a Dockerfile-coverage which creates a
container image in alpine linux to run the tests.  To create
the image:

$ docker build \
--build-arg commit=`git rev-parse HEAD` \
--build-arg token=<upload token from codecov.io> \
-t frr-gcov:latest \
-f docker/alpine/Dockerfile-coverage .

and to create and upload the report:

$ docker run -it --rm frr-gcov:latest

Testing done:

Created and uploaded a report from my fork using alpine linux 3.7.
Non-coverage alpine 3.7 build still works.

Issue: https://github.com/FRRouting/frr/issues/2442
Signed-off-by: Arthur Jones <arthur.jones@riverbed.com>
5 years agodoc: add MPLS configuration commands
Philippe Guibert [Wed, 27 Jun 2018 13:17:36 +0000 (15:17 +0200)]
doc: add MPLS configuration commands

Add MPLS information to statically handle label from zebra.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agopimd: Use generated interface name
Donald Sharp [Wed, 4 Jul 2018 01:31:11 +0000 (21:31 -0400)]
pimd: Use generated interface name

When we have a generated interface name, use it instead of the actual
pointer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #2614 from rtrlib/2018-07-02-master-bugfix
Donald Sharp [Wed, 4 Jul 2018 00:32:30 +0000 (20:32 -0400)]
Merge pull request #2614 from rtrlib/2018-07-02-master-bugfix

bgpd: fix rpki validation for ipv6 (master)

5 years agoldpd: buffer underflow, thread safety (PVS-Studio)
F. Aragon [Tue, 3 Jul 2018 18:07:25 +0000 (20:07 +0200)]
ldpd: buffer underflow, thread safety (PVS-Studio)

This commit fixes two issues:
- memcpy() using containers of different sizes when using addr2sa(), mixing
  'struct sockaddr_storage' and 'union sockunion'.
- addr2sa() function not being thread safe (using a local static variable as
  container.

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge pull request #2620 from pacovn/PVS-Studio_null_check_2
Quentin Young [Tue, 3 Jul 2018 21:38:09 +0000 (17:38 -0400)]
Merge pull request #2620 from pacovn/PVS-Studio_null_check_2

bgpd lib ospfd pimd ripngd: null chk (PVS-Studio)

5 years agoMerge pull request #2610 from qlyoung/fix-zebra-pthread-crash-shutdown-min
Jafar Al-Gharaibeh [Tue, 3 Jul 2018 20:47:23 +0000 (15:47 -0500)]
Merge pull request #2610 from qlyoung/fix-zebra-pthread-crash-shutdown-min

zebra: remove asserts on task nullity

5 years agoMerge pull request #2619 from pguibert6WIND/show_ipv6_bgp_wrong
Jafar Al-Gharaibeh [Tue, 3 Jul 2018 15:47:27 +0000 (10:47 -0500)]
Merge pull request #2619 from pguibert6WIND/show_ipv6_bgp_wrong

doc: bgp wrong command displayed

5 years agoMerge pull request #2615 from chiragshah6/evpn_dev
Lou Berger [Tue, 3 Jul 2018 15:45:53 +0000 (11:45 -0400)]
Merge pull request #2615 from chiragshah6/evpn_dev

bgpd: l3vni del to free ip prefix routes from vrf

5 years agodoc: clean up flowspec.rst
Quentin Young [Mon, 2 Jul 2018 19:22:12 +0000 (19:22 +0000)]
doc: clean up flowspec.rst

* Fix broken citations
* Remove trailing whitespace
* Rewrap to 80 lines
* Tweak capitalization of section headers
* Clean up a few indented blocks

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agoMerge pull request #2598 from dslicenc/cm21429-vrf-dup
Lou Berger [Tue, 3 Jul 2018 15:39:38 +0000 (11:39 -0400)]
Merge pull request #2598 from dslicenc/cm21429-vrf-dup

zebra: duplicate nexthops for cross-vrf static routes on vrf bounce

5 years agoMerge pull request #2599 from pacovn/PVS-Studio_Array_overrun
Lou Berger [Tue, 3 Jul 2018 15:37:34 +0000 (11:37 -0400)]
Merge pull request #2599 from pacovn/PVS-Studio_Array_overrun

ospfd zebra: array overrun fixes (PVS-Studio)

5 years agobgpd: fix rpki validation for ipv6
Marcel Röthke [Thu, 12 Apr 2018 12:13:07 +0000 (14:13 +0200)]
bgpd: fix rpki validation for ipv6

Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
5 years agobgpd lib ospfd pimd ripngd: null chk (PVS-Studio)
F. Aragon [Tue, 3 Jul 2018 13:39:50 +0000 (15:39 +0200)]
bgpd lib ospfd pimd ripngd: null chk (PVS-Studio)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agodoc: bgp wrong command displayed
Philippe Guibert [Tue, 3 Jul 2018 13:01:21 +0000 (15:01 +0200)]
doc: bgp wrong command displayed

This command does not exist. Move it to the right one.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agoospfd zebra: array overrun fixes (PVS-Studio)
F. Aragon [Mon, 2 Jul 2018 14:30:40 +0000 (16:30 +0200)]
ospfd zebra: array overrun fixes (PVS-Studio)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge pull request #2516 from rubenk/more-spec-cleanups
Martin Winter [Tue, 3 Jul 2018 07:32:57 +0000 (00:32 -0700)]
Merge pull request #2516 from rubenk/more-spec-cleanups

More spec cleanups

5 years agoMerge pull request #2609 from pacovn/clang_scan_nhrpd_vici_initialization
Donald Sharp [Mon, 2 Jul 2018 22:49:49 +0000 (18:49 -0400)]
Merge pull request #2609 from pacovn/clang_scan_nhrpd_vici_initialization

nhrpd: uninitialized variable (Clang scan)

5 years agobgpd: l3vni del to free ip prefix routes from vrf
Chirag Shah [Sat, 30 Jun 2018 06:58:54 +0000 (23:58 -0700)]
bgpd: l3vni del to free ip prefix routes from vrf

In Symmetric routing case, L3VNI stores evpn MAC_IP routes
as IP_PREFIX routes in associated bgp_vrf and fib.

When vxlan device for l3vni goes down, triggers l3vni delete
in bgp.
As part l3vni delete, evpn ip prefix routes associated
with the vni need to be withdrawn from zebra as well
bgpinfo needs to be freed.
bgp_delete does not free bgp_info associated
to evpn ip prefix routes (link to bgp_vrf).
Call to uninstall_evpn_route_entry_in_vrf() properly
cleanup bgp_info as well triggers appropriate updates.

Ticket:CM-21443
Testing Done:
On DUT, bringup symmetric routing configuration, learn
EVPN Type-2 and Type-3 Routes.
Type-2 MAC_IP routes will be stored as ip_prefix in vrf table
during l3vni bring up.

Remove L3vni, deletes all ip_prefix routes from the zebra, kernel
vrf route table and bgp_info is freed.

Check the show bgp memory stats for bgp_info post l3vni flap.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
5 years agoMerge pull request #2604 from pacovn/PVS-Studio_odd_operator_usage
Quentin Young [Mon, 2 Jul 2018 18:18:26 +0000 (14:18 -0400)]
Merge pull request #2604 from pacovn/PVS-Studio_odd_operator_usage

nhrpd: odd operator usage fix (PVS-Studio)

5 years agoMerge pull request #2603 from pacovn/PVS-Studio_format_warnings
Quentin Young [Mon, 2 Jul 2018 18:15:43 +0000 (14:15 -0400)]
Merge pull request #2603 from pacovn/PVS-Studio_format_warnings

eigrpd nhrpd ospfd pimd: fomat fixes (PVS-Studio)

5 years agonhrpd: uninitialized variable (Clang scan)
F. Aragon [Mon, 2 Jul 2018 18:07:59 +0000 (20:07 +0200)]
nhrpd: uninitialized variable (Clang scan)

Fix over 0a939f4f24fa34fea688482fbf57fb16eaf2a081 (there was a case not
covered by previous fix)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agozebra: remove asserts on task nullity
Quentin Young [Mon, 2 Jul 2018 18:07:28 +0000 (18:07 +0000)]
zebra: remove asserts on task nullity

While ZAPI I/O threads make a best effort to kill any scheduled tasks on
their threadmasters, after death another pthread can continue to
schedule onto the threadmaster. This isn't a problem per se since the
tasks will never run, but it also means that asserting that it hasn't
happened is pointless.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
5 years agobgpd zebra: element overflow (PVS-Studio)
F. Aragon [Mon, 2 Jul 2018 15:05:17 +0000 (17:05 +0200)]
bgpd zebra: element overflow (PVS-Studio)

The warning given by PVS-Studio is related to per-element overflow (there is
no real overflow, because of how elements are mapped in the union). This
same warning is typically reported by Coverity, too.

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge pull request #2601 from pacovn/PVS-Studio_scope_overlap
Donald Sharp [Mon, 2 Jul 2018 16:44:10 +0000 (12:44 -0400)]
Merge pull request #2601 from pacovn/PVS-Studio_scope_overlap

ripngd: variable scope overlap fix (PVS-Studio)

5 years agoMerge pull request #2600 from pacovn/PVS-Studio_sizeof_and_dead_code
Quentin Young [Mon, 2 Jul 2018 16:41:34 +0000 (12:41 -0400)]
Merge pull request #2600 from pacovn/PVS-Studio_sizeof_and_dead_code

eigrpd: sizeof() usage + dead code (PVS-Studio)

5 years agoeigrpd nhrpd ospfd pimd: fomat fixes (PVS-Studio)
F. Aragon [Mon, 2 Jul 2018 15:32:05 +0000 (17:32 +0200)]
eigrpd nhrpd ospfd pimd: fomat fixes (PVS-Studio)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoMerge pull request #2533 from pguibert6WIND/doc_flowspec
Quentin Young [Mon, 2 Jul 2018 15:42:22 +0000 (11:42 -0400)]
Merge pull request #2533 from pguibert6WIND/doc_flowspec

doc: add flowspec information from user point of view

5 years agonhrpd: odd operator usage fix (PVS-Studio)
F. Aragon [Mon, 2 Jul 2018 15:37:23 +0000 (17:37 +0200)]
nhrpd: odd operator usage fix (PVS-Studio)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoripngd: variable scope overlap fix (PVS-Studio)
F. Aragon [Mon, 2 Jul 2018 14:53:16 +0000 (16:53 +0200)]
ripngd: variable scope overlap fix (PVS-Studio)

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agoeigrpd: sizeof() usage + dead code (PVS-Studio)
F. Aragon [Mon, 2 Jul 2018 14:44:46 +0000 (16:44 +0200)]
eigrpd: sizeof() usage + dead code (PVS-Studio)

Two issues:

1) Removed an unnecesary null check of 'ei'
2) Fixed the usage of sizeof(), as it was used the size of a pointer instead
   of the size of the structure

Signed-off-by: F. Aragon <paco@voltanet.io>
5 years agozebra: duplicate nexthops for cross-vrf static routes on vrf bounce
Don Slice [Wed, 27 Jun 2018 16:35:55 +0000 (16:35 +0000)]
zebra: duplicate nexthops for cross-vrf static routes on vrf bounce

Problem created by the fix for cm-21306 (inactive cross-vrf static routes
when vrfs were bounced.)  Determined that in another case, that fix would
cause duplicate nexthops to appear in the table. Resolved the problem by
removing the vrf static route process from the zebra "add" process leaving
it in the zebra " if up" process as added in cm-21306 since that's the point
that the vrf device is now functional.

Ticket: CM-21429
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
5 years agodoc: fix missing bgp keyword in debug bgp command
Philippe Guibert [Thu, 28 Jun 2018 06:41:35 +0000 (08:41 +0200)]
doc: fix missing bgp keyword in debug bgp command

Some debug bgp commands were missing bgp keyword.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agodoc: add flowspec information from user point of view
Philippe Guibert [Fri, 22 Jun 2018 15:37:29 +0000 (17:37 +0200)]
doc: add flowspec information from user point of view

Add some information for BGP flowspec.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agoMerge pull request #2475 from LabNConsulting/working/master/no_vrf_socket_4l3mdev
Russ White [Mon, 2 Jul 2018 03:06:22 +0000 (23:06 -0400)]
Merge pull request #2475 from LabNConsulting/working/master/no_vrf_socket_4l3mdev

Don't open per vrf sockets when net.ipv4.tcp|udp_l3mdev_accept != 0

5 years agoMerge pull request #2593 from rtrlib/2018-07-01-master-bugfix
Donald Sharp [Sun, 1 Jul 2018 23:40:57 +0000 (19:40 -0400)]
Merge pull request #2593 from rtrlib/2018-07-01-master-bugfix

bgpd: fix rpki segfault

5 years agobgpd: fix rpki segfault
Marcel Röthke [Sun, 1 Jul 2018 20:54:51 +0000 (22:54 +0200)]
bgpd: fix rpki segfault

If a cache server was added after rpki was started it's tr_socket would
not be initialized. This would lead to a segfault if the rtr manager
ever decides to switch to that socket or if rpki support is stopped.

Signed-off-by: Marcel Röthke <marcel.roethke@haw-hamburg.de>
5 years agobgpd: fix NULL dereference in vrf-vpn leak config if before default instance
G. Paul Ziemba [Fri, 29 Jun 2018 21:55:59 +0000 (14:55 -0700)]
bgpd: fix NULL dereference in vrf-vpn leak config if before default instance

Issue 2473

VRF-VPN route-leaking configuration commands assumed existence of
default bgp instance. If a non-default vrf configuration occurred
before the default vrf configuration, it would result in a (NULL)
dereference to the non-existent default vrf.

This change 1) detects non-existence of default vrf and skips corresponding
RIB updating that normally occurs during configuration changes of the
route-leaking parameters; and 2) when the default bgp instance is defined,
runs the deferred RIB updating.

In vpn_leak_to_vrf_update_all(), replace early return if bgp_vpn is NULL
with assert, as the former would lead to subtly wrong RIB contents. The
underlying issue that led to commit 73aed5841a1fe31e8a1f251dfcf87e1f2b1f2463
should be fixed by the above changes.

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
5 years agoMerge pull request #2592 from tigranmartirosyan/master
Donald Sharp [Sat, 30 Jun 2018 13:26:22 +0000 (09:26 -0400)]
Merge pull request #2592 from tigranmartirosyan/master

fixed #2567: Json status of BGP peer is not updated properly

5 years agofixed #2567: Json status of BGP peer is not updated properly
Tigran Martirosyan [Sat, 30 Jun 2018 12:27:25 +0000 (16:27 +0400)]
fixed #2567: Json status of BGP peer is not updated properly

5 years agoMerge pull request #2574 from pacovn/Coverity_1399202_Copy-paste_error
Russ White [Fri, 29 Jun 2018 22:35:12 +0000 (18:35 -0400)]
Merge pull request #2574 from pacovn/Coverity_1399202_Copy-paste_error

bgpd: copy-paste error (Coverity 1399202)