]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
6 years agodoc: change html theme, add svg logo
Quentin Young [Thu, 8 Feb 2018 16:53:49 +0000 (11:53 -0500)]
doc: change html theme, add svg logo

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: use python 2.6 format strings
Quentin Young [Thu, 8 Feb 2018 00:22:52 +0000 (19:22 -0500)]
doc: use python 2.6 format strings

Centos 6 only has python 2.6 which requires numerical identifiers for
format strings

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: fix makefiles again
Quentin Young [Wed, 7 Feb 2018 21:18:52 +0000 (16:18 -0500)]
doc: fix makefiles again

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge branch 'master' into docuser
Quentin Young [Wed, 7 Feb 2018 20:32:58 +0000 (15:32 -0500)]
Merge branch 'master' into docuser

6 years agodoc: fix toctree warning in manpages
Quentin Young [Wed, 7 Feb 2018 18:36:03 +0000 (13:36 -0500)]
doc: fix toctree warning in manpages

Forgot to add a couple includes to the exclude list. Also move
defines.txt to defines.rst since I know how to properly ignore things
now.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodebianpkg: add sphinx as build dep
Quentin Young [Wed, 7 Feb 2018 17:36:56 +0000 (12:36 -0500)]
debianpkg: add sphinx as build dep

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: note appropriate sphinx packages in docs
Quentin Young [Wed, 7 Feb 2018 17:33:31 +0000 (12:33 -0500)]
doc: note appropriate sphinx packages in docs

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: replace manpages Makefile
Quentin Young [Wed, 7 Feb 2018 15:59:36 +0000 (10:59 -0500)]
doc: replace manpages Makefile

Newer sphinx-build generated makefiles use an as-of-yet undocumented CLI
option that is not present in older versions.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #1718 from ak503/keychain
Donald Sharp [Wed, 7 Feb 2018 14:56:42 +0000 (09:56 -0500)]
Merge pull request #1718 from ak503/keychain

lib: 'no accept-lifetime' and 'no send-lifetime' for keychain

6 years agolib: 'no accept-lifetime' and 'no send-lifetime' for keychain
dturlupov [Wed, 7 Feb 2018 11:56:06 +0000 (14:56 +0300)]
lib: 'no accept-lifetime' and 'no send-lifetime' for keychain

Signed-off-by: Dmitrii Turlupov <dturlupov@factor-rs.ru>
6 years agoMerge pull request #1712 from donaldsharp/nht_updates
Renato Westphal [Wed, 7 Feb 2018 01:34:12 +0000 (23:34 -0200)]
Merge pull request #1712 from donaldsharp/nht_updates

Nht updates

6 years agoMerge pull request #1677 from chiragshah6/ospfv3_dev
Jafar Al-Gharaibeh [Tue, 6 Feb 2018 20:33:10 +0000 (14:33 -0600)]
Merge pull request #1677 from chiragshah6/ospfv3_dev

ospf6d: Fix redistribute [connected] with route-map

6 years agoMerge pull request #1699 from silasm/debianpkg-fix-debian-rules
Martin Winter [Tue, 6 Feb 2018 19:10:12 +0000 (11:10 -0800)]
Merge pull request #1699 from silasm/debianpkg-fix-debian-rules

debianpkg: normalize rules files, simplify logic/editing with '?='

6 years agoconfigure: Update version to 4.1-dev
Donald Sharp [Tue, 6 Feb 2018 17:26:47 +0000 (12:26 -0500)]
configure: Update version to 4.1-dev

We are now working on 4.1-dev for new work.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #1542 from qlyoung/stylechecker
Martin Winter [Tue, 6 Feb 2018 16:44:37 +0000 (08:44 -0800)]
Merge pull request #1542 from qlyoung/stylechecker

tools: add style checking scripts

6 years agoMerge pull request #1653 from Orange-OpenSource/SR-Routing
Donald Sharp [Tue, 6 Feb 2018 16:32:51 +0000 (11:32 -0500)]
Merge pull request #1653 from Orange-OpenSource/SR-Routing

OSPFD: Add Experimental Segment Routing support

6 years agoMerge pull request #1713 from donaldsharp/nexthop_vrfs
Renato Westphal [Mon, 5 Feb 2018 22:45:50 +0000 (20:45 -0200)]
Merge pull request #1713 from donaldsharp/nexthop_vrfs

lib: Fix encoding of vrf

6 years agoMerge pull request #1702 from donaldsharp/bgp_cleanup
Lou Berger [Mon, 5 Feb 2018 22:06:08 +0000 (16:06 -0600)]
Merge pull request #1702 from donaldsharp/bgp_cleanup

Bgp cleanup

6 years agoMerge pull request #1694 from qlyoung/fix-bgp-default-shutdown-conf-write
Lou Berger [Mon, 5 Feb 2018 22:04:08 +0000 (16:04 -0600)]
Merge pull request #1694 from qlyoung/fix-bgp-default-shutdown-conf-write

bgpd: fixup default shutdown

6 years agoOSPFd: Fix Opaque LSA filtering in Segment Routing
Olivier Dugeon [Mon, 5 Feb 2018 19:24:17 +0000 (20:24 +0100)]
OSPFd: Fix Opaque LSA filtering in Segment Routing

Opaque LSA were incorrectly filtered. LSA Type 1 with a
router id set to 4.x.x.x or 7.x.x.x. or 8.x.x.x are not correctly
filtered and pass to Segment Routing as wrong Opaque LSA of type
Router Information, Extended Prefix respectively Extended Link.
 - Add Opaque LSA check to the filter

The CLI command 'segment-routing prefix' didn't check if a same prefix
already exist in SRDB resulting to multiple entries in the SRDB for the
same prefix.
 - Update prefix intead of adding a new one if already present in the SRDB

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
6 years agobgpd, pimd: Handle return code for nexthop_decode
Donald Sharp [Mon, 5 Feb 2018 13:34:47 +0000 (08:34 -0500)]
bgpd, pimd: Handle return code for nexthop_decode

Appropriately handle the return code for the
zapi_nexthop_update_decode call.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agolib: Fix encoding of vrf
Donald Sharp [Mon, 5 Feb 2018 10:49:27 +0000 (05:49 -0500)]
lib: Fix encoding of vrf

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd, lib, pimd: Make nexthop_update decoding common
Donald Sharp [Mon, 5 Feb 2018 08:44:29 +0000 (03:44 -0500)]
bgpd, lib, pimd: Make nexthop_update decoding common

Create a zapi_nexthop_update_decode function that both
pim and bgp use to decode the message from zebra.

There probably could be further optimizations but I opted
to keep the code as similiar as is possible between the
originals because they both make some assumptions about
code flow that I do not fully understand yet.

The real goal here is that I want to create a new
user of the nexthop tracking code from a higher level
daemon and I see no need to re-implement this damn
code again for a 3rd time.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agozebra: Cleanup nexthop update encoding
Donald Sharp [Mon, 5 Feb 2018 08:42:09 +0000 (03:42 -0500)]
zebra: Cleanup nexthop update encoding

The encoding of the nexthop update made some distinctions
between nexthop types that it does not need to.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoOSPFd: Fix ospfd crash during CI
Olivier Dugeon [Sat, 3 Feb 2018 18:30:33 +0000 (19:30 +0100)]
OSPFd: Fix ospfd crash during CI

When preforming CI test, CLI command 'no router ospf' followed by a
'router ospf' is performed to clean up the previous configuration.
Ospfd crash when configuring 'netwoark area'.

This is due to opsf_opaque_term() introduce in previous commit that cause this
crash. It remove not only Opaque LSA but also the list through the call to
'list_delete_and_null()' function. Same take place in 'ospf_mpls_te_term()',
'ospf_router_info_term()' and 'ospf_ext_term()' function.

New set of 'ospf_XXX_finish()' has been introduced to solve this issue while
keeping the possiblity to terminate properly the Opaque LSA and remove MPLS
LFIB entries set by Segment Routing.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
6 years agobgpd: Fix some evpn hash key creation
Donald Sharp [Fri, 12 Jan 2018 14:55:28 +0000 (09:55 -0500)]
bgpd: Fix some evpn hash key creation

The creation of a hash key should use a jhash
function instead of adding the char's together.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Fix bgp_vty.h to conform to coding standard
Donald Sharp [Fri, 12 Jan 2018 14:51:18 +0000 (09:51 -0500)]
bgpd: Fix bgp_vty.h to conform to coding standard

The function declarations were missing some parameter
names as is our standard.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: bgp_afi_node_get is listed 2 times in bgp_route.h
Donald Sharp [Wed, 10 Jan 2018 20:07:05 +0000 (15:07 -0500)]
bgpd: bgp_afi_node_get is listed 2 times in bgp_route.h

Remove the extra.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #1695 from chiragshah6/mdev
Renato Westphal [Sat, 3 Feb 2018 14:18:48 +0000 (12:18 -0200)]
Merge pull request #1695 from chiragshah6/mdev

ospfd: fix default-information orignate command not to display default parameter

6 years agoMerge pull request #1705 from donaldsharp/martian_nexthop
Renato Westphal [Sat, 3 Feb 2018 14:10:30 +0000 (12:10 -0200)]
Merge pull request #1705 from donaldsharp/martian_nexthop

bgpd: Add ability to see martian next-hop's for a vrf

6 years agobgpd: Add ability to see martian next-hop's for a vrf
Donald Sharp [Sat, 3 Feb 2018 00:26:22 +0000 (19:26 -0500)]
bgpd: Add ability to see martian next-hop's for a vrf

We've run across an issue where the local connected
ip address is not being removed in some error condition.
During trackdown it was noticed that we cannot look
at this table for views/vrf's.  While we don't have the
bug tracked down yet this will help us figure it out.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agodoc: note dependencies necessary to build docs
Quentin Young [Fri, 2 Feb 2018 21:59:52 +0000 (16:59 -0500)]
doc: note dependencies necessary to build docs

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: add logos
Quentin Young [Fri, 2 Feb 2018 21:27:00 +0000 (16:27 -0500)]
doc: add logos

Branding!

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: fixup glossary for html build
Quentin Young [Fri, 2 Feb 2018 20:24:57 +0000 (15:24 -0500)]
doc: fixup glossary for html build

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: document documentation
Quentin Young [Fri, 2 Feb 2018 20:19:04 +0000 (15:19 -0500)]
doc: document documentation

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #1703 from opensourcerouting/bsd-warnings
Donald Sharp [Fri, 2 Feb 2018 19:36:42 +0000 (14:36 -0500)]
Merge pull request #1703 from opensourcerouting/bsd-warnings

BSD warnings

6 years agodoc: reference style cleanup
Quentin Young [Fri, 2 Feb 2018 18:45:12 +0000 (13:45 -0500)]
doc: reference style cleanup

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: add glossary
Quentin Young [Fri, 2 Feb 2018 18:33:41 +0000 (13:33 -0500)]
doc: add glossary

Glossary of some common terms, fixes non-existing glossary definition
warnings.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agolib: fix more warnings on *BSD
Renato Westphal [Fri, 2 Feb 2018 01:18:46 +0000 (23:18 -0200)]
lib: fix more warnings on *BSD

* zebra/kernel_socket.c: include "rt.h" to provide the prototypes of
  kernel_init() and kernel_terminate();

* lib/prefix.h: remove the deprecation warning whenever ETHER_ADDR_LEN
  is used. isisd uses the ETHER_HDR_LEN constant which is defined in
  terms of ETHER_ADDR_LEN in the *BSD system headers. So, when building
  FRR on *BSD, we were getting several warnings because we were using
  ETHER_ADDR_LEN indirectly;

* lib/command_lex.l, lib/defun_lex.l: ignore other harmless warnings;

* lib/spf_backoff.c: cast 'tv->tv_usec' to 'long int' before printing.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years ago*: silence '-Wchar-subscripts' warnings on NetBSD
Renato Westphal [Fri, 2 Feb 2018 17:11:03 +0000 (15:11 -0200)]
*: silence '-Wchar-subscripts' warnings on NetBSD

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years ago*: silence '-Wmaybe-uninitialized' warnings on NetBSD
Renato Westphal [Fri, 2 Feb 2018 17:10:09 +0000 (15:10 -0200)]
*: silence '-Wmaybe-uninitialized' warnings on NetBSD

None of these variables can actually be used before being initialized,
but unfortunately some old compilers are not smart enough to detect that.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agotests: fix warnings related to afi/safi constants
Renato Westphal [Thu, 1 Feb 2018 23:04:03 +0000 (21:04 -0200)]
tests: fix warnings related to afi/safi constants

We were improperly mixing constants used to identify AFI/SAFI values
using the IANA and internal representations. Things happened to be
working because the IANA/internal values are the same in some cases
(e.g. AFI_IP and IANA_AFI_IPV4). This commit fixes a few warnings when
running "make check" on FreeBSD 11.1.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agotests: fix warnings by removing dead code
Renato Westphal [Thu, 1 Feb 2018 22:59:08 +0000 (20:59 -0200)]
tests: fix warnings by removing dead code

These variables being removed were made obsolete by commit 9cabb64b3. As
of now, the parse_test() function fetches the afi/safi values from
the parsed NLRIs. There's no need to have duplicate information in the
'test_segment' structure anymore.

This fixes several warnings of this kind when running "make check"
on FreeBSD: "implicit conversion from enumeration type 'iana_safi_t'
to different enumeration type 'safi_t'".

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agodoc: fixup vnc.rst to only define commands once
Quentin Young [Fri, 2 Feb 2018 17:52:50 +0000 (12:52 -0500)]
doc: fixup vnc.rst to only define commands once

Replaced stub definitions of CLI with references to their full
definitions so that Sphinx can properly cross reference them.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: fixup more broken xrefs
Quentin Young [Fri, 2 Feb 2018 17:19:28 +0000 (12:19 -0500)]
doc: fixup more broken xrefs

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #1696 from donaldsharp/pim_node_removal
Rafael Zalamena [Fri, 2 Feb 2018 13:12:15 +0000 (11:12 -0200)]
Merge pull request #1696 from donaldsharp/pim_node_removal

lib, pimd: Remove PIM_NODE as it is not needed

6 years agoMerge pull request #1687 from donaldsharp/dest
Rafael Zalamena [Fri, 2 Feb 2018 13:08:28 +0000 (11:08 -0200)]
Merge pull request #1687 from donaldsharp/dest

zebra: Fix crash when dereferencing dest->selected_fib

6 years agodoc: fix more broken refs, restore routeserver.rst
Quentin Young [Thu, 1 Feb 2018 22:38:05 +0000 (17:38 -0500)]
doc: fix more broken refs, restore routeserver.rst

At some point the routeserver docs got lost, converted those from texi
and put them back. Also fixed some broken cli xrefs.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: clean up cross references
Quentin Young [Thu, 1 Feb 2018 21:33:14 +0000 (16:33 -0500)]
doc: clean up cross references

Format reference directives and roles to match best practices.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: fixup some build warnings
Quentin Young [Thu, 1 Feb 2018 21:10:11 +0000 (16:10 -0500)]
doc: fixup some build warnings

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: add targets for user & developer pdf + html
Quentin Young [Thu, 1 Feb 2018 18:23:18 +0000 (13:23 -0500)]
doc: add targets for user & developer pdf + html

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years ago*: update configure.ac, Makefiles for new manpages
Quentin Young [Wed, 31 Jan 2018 22:31:17 +0000 (17:31 -0500)]
*: update configure.ac, Makefiles for new manpages

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoOSPFd: Correct Extended Prefix LSA refresh
Olivier Dugeon [Thu, 1 Feb 2018 13:30:34 +0000 (14:30 +0100)]
OSPFd: Correct Extended Prefix LSA refresh

 - When Extended Prefix LSA need to be refresh, paramaters may be
taken from the wrong interface i.e. Extended Link instead of Prefix
resulting in producing an empty LSA body. Then, ospfd crash due to the
assert on LSA length in ospf_lsa_different() function: code check that
the LSA size is larger than LSA header i.e. LSA is not empty.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
6 years agodebianpkg rules files: WANT_CUMULUS_MODE, not WANT_CUMULUS_NODE
smccroskey [Thu, 1 Feb 2018 01:15:36 +0000 (17:15 -0800)]
debianpkg rules files: WANT_CUMULUS_MODE, not WANT_CUMULUS_NODE

variable name seemed strange, and previously-commented-out name
suggests it was a typo, remove the newly-added definitions and
fix the ifeq block to reference the intended name.

Signed-off-by: Silas McCroskey <smccroskey@cumulusnetworks.com>
6 years agodebianpkg rules files: bgp-vnc is enabled by default
smccroskey [Thu, 1 Feb 2018 01:10:44 +0000 (17:10 -0800)]
debianpkg rules files: bgp-vnc is enabled by default

9782a8db773b8c5d9094eb3743aae43cc04e12f0 went with the wrong source of
truth when comments and code disagreed over whether bgp-vnc should be
enabled by default.  Fix the behavior back to what it was before.

Signed-off-by: Silas McCroskey <smccroskey@cumulusnetworks.com>
6 years agodebianpkg: normalize rules files
smccroskey [Wed, 31 Jan 2018 01:00:48 +0000 (17:00 -0800)]
debianpkg: normalize rules files

downstream packagers prefer to change defaults in a trackable way by
changing the rules file directly, rather than setting environment
variables.  Use '?=' (set if not already set in the environment or on
the make cmdline) to set defaults rather than alternating between
ifeq/ifneq clauses, which is harder to follow and edit.  Change any
existing `ifneq(...,0)' cases to `ifeq(...,1)', and get rid of any
ifdef/ifndefs, as ?= guarantees he value will be defined in one way or
another.  This allows the old behavior of overriding via the
environment while simplifying the workflow for anyone editing or
extending the current logic and defaults.

Portability note about '?=': it is GNU-make specific, but so is
ifeq/ifneq, which is/was used in this file, and this file is specific
to debian-based system as it is, so I don't consider it to be a
problem in this case.

Added any missing defaults (WANT_SNMP, WANT_CUMULUS_NODE) and
made it so that USE_XXX is always set for the sake of consistency.
Also brought a few changes from base debianpkg/rules into the
backports versions of the files where they were missing.

Signed-off-by: Silas McCroskey <smccroskey@cumulusnetworks.com>
6 years agodoc: remove last bits of texinfo directives
Quentin Young [Wed, 31 Jan 2018 21:55:12 +0000 (16:55 -0500)]
doc: remove last bits of texinfo directives

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: remove trailing whitespace
Quentin Young [Wed, 31 Jan 2018 21:43:53 +0000 (16:43 -0500)]
doc: remove trailing whitespace

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: copy conf.py for developer's docs
Quentin Young [Wed, 31 Jan 2018 21:16:07 +0000 (16:16 -0500)]
doc: copy conf.py for developer's docs

Info extracted will probably prove useful here as well.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: overhaul manpages
Quentin Young [Wed, 31 Jan 2018 20:59:26 +0000 (15:59 -0500)]
doc: overhaul manpages

* Remove groff manpages
* Rewrite manpages in RST
* Clean up and standardize manpage content

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #1693 from donaldsharp/v6_leaking
Renato Westphal [Wed, 31 Jan 2018 17:52:01 +0000 (15:52 -0200)]
Merge pull request #1693 from donaldsharp/v6_leaking

zebra: Fix v6 nexthop-vrf and nexthop confusion

6 years agodoc: move dev doc figures to figures/
Quentin Young [Wed, 31 Jan 2018 15:31:15 +0000 (10:31 -0500)]
doc: move dev doc figures to figures/

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: remove extraneous texi files
Quentin Young [Tue, 30 Jan 2018 21:20:00 +0000 (16:20 -0500)]
doc: remove extraneous texi files

Took the changes from these and applied in previous commits. Bye bye.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: reorganize
Quentin Young [Tue, 30 Jan 2018 21:14:24 +0000 (16:14 -0500)]
doc: reorganize

* Move all developer related docs into developer/
* Move all figures into their own directory
* Move manpages to own directory

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: manually merge isis.rst
Quentin Young [Tue, 30 Jan 2018 21:12:26 +0000 (16:12 -0500)]
doc: manually merge isis.rst

Manually merged:

ee65c55e2a923dd9499baa3207d629a09600ba64

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: add pim.rst
Quentin Young [Tue, 30 Jan 2018 21:08:10 +0000 (16:08 -0500)]
doc: add pim.rst

Manually merged:

42642babdd1bb3a350affb459f56a4494461c203

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: additional merging
Quentin Young [Tue, 30 Jan 2018 20:52:16 +0000 (15:52 -0500)]
doc: additional merging

Manually merged:

6347ca161f94af4baa853bf09be7fff076e75491

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge branch 'master' into docs-user
Quentin Young [Tue, 30 Jan 2018 20:05:15 +0000 (15:05 -0500)]
Merge branch 'master' into docs-user

Manually merged these doc commits:

3bb7cd7f56649ef17eeada95c132de1146c5fc92
ff21655441a64c427b3e373272e7b4564a8a1bb1

6 years agoospfd: fix redistribute running config
Chirag Shah [Tue, 30 Jan 2018 15:42:28 +0000 (07:42 -0800)]
ospfd: fix redistribute running config

Testing:
CL(config)# router ospf
CL(config-router)# redistribute static metric-type 2
CL(config)# router ospf
CL(config-router)# default-information originate always metric-type 2

show running output
router ospf
 redistribute static
 default-information originate always
!

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
6 years agobgpd: improve default shutdown help string
Quentin Young [Tue, 30 Jan 2018 16:47:15 +0000 (11:47 -0500)]
bgpd: improve default shutdown help string

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #1690 from dslicenc/bgpd-vrf-show-cm17377
Lou Berger [Tue, 30 Jan 2018 16:42:26 +0000 (11:42 -0500)]
Merge pull request #1690 from dslicenc/bgpd-vrf-show-cm17377

bgpd: fix output of show bgp vrf all neighbor x.x.x.x

6 years agotools: return exit status in checkpatch.sh
Quentin Young [Tue, 30 Jan 2018 15:48:03 +0000 (10:48 -0500)]
tools: return exit status in checkpatch.sh

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoOSPFd: Clean up Segment Routing patch
Olivier Dugeon [Tue, 30 Jan 2018 15:17:54 +0000 (16:17 +0100)]
OSPFd: Clean up Segment Routing patch

 - ospfd/ospf_te.c: Remove unregister function and call to
ospf_delete_opaque_functab() following the introduction of
ospf_opaque_term() function in ospfd.c for ospfd termination.
 - ospfd/ospf_sr.c: Set initial index value for node-msd CLI to
avaoid crash when using this command
 - ospfd/ospf_ext.c: Disable call to ospf_sr_update_prefix() if
Segment Routing, thus Extended Link/Prefix, is not enable
 - ospfd/ospf_opaque.c: Correct scheduling of Opaque LSA flooding

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
6 years agobgpd: fixup default shutdown
Quentin Young [Tue, 30 Jan 2018 15:12:19 +0000 (10:12 -0500)]
bgpd: fixup default shutdown

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoOSPFd: Remove unecessary debug message
Olivier Dugeon [Tue, 30 Jan 2018 13:25:40 +0000 (14:25 +0100)]
OSPFd: Remove unecessary debug message

 - Line 865 in ospfd/ospf_ext.c cause compilation failure when
-werror is set. This line was not necessary and add only for debugging
purpose.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
6 years agobgpd: fix output of show bgp vrf all neighbor x.x.x.x
Don Slice [Thu, 25 Jan 2018 16:06:27 +0000 (16:06 +0000)]
bgpd: fix output of show bgp vrf all neighbor x.x.x.x

Problem reported with output of the command "show bgp vrf all
neighbor x.x.x.x" not limiting the output to that peer in any vrf.
This fix corrects the logic to display by neighbor
(ipv4/ipv6/interface) in any vrf.

Ticket: CM-17377
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
6 years agoMerge remote-tracking 'frr/master' into SR-Routing
Olivier Dugeon [Tue, 30 Jan 2018 10:43:25 +0000 (11:43 +0100)]
Merge remote-tracking 'frr/master' into SR-Routing

6 years agoOSPFd: Correct compilation error
Olivier Dugeon [Tue, 30 Jan 2018 10:42:02 +0000 (11:42 +0100)]
OSPFd: Correct compilation error

 - Forget to remove ospf_router_info_unregister in ospfd_ri.c

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
6 years agoMerge pull request #1688 from chiragshah6/mdev
Olivier Dugeon [Tue, 30 Jan 2018 10:37:59 +0000 (11:37 +0100)]
Merge pull request #1688 from chiragshah6/mdev

ospfd: Fix default-info and redis cmd options

6 years agolib, pimd: Remove PIM_NODE as it is not needed
Donald Sharp [Tue, 30 Jan 2018 08:07:15 +0000 (03:07 -0500)]
lib, pimd: Remove PIM_NODE as it is not needed

The PIM_NODE command is only being used to display
default vrf configuration.  Move this into the
vrf display and remove PIM_NODE.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoospfd: Fix default-info and redis cmd options
Chirag Shah [Tue, 30 Jan 2018 02:03:08 +0000 (18:03 -0800)]
ospfd: Fix default-info and redis cmd options

Fix default-information parsing of metric-type,
route-map.
show running to display metic-type 2.

metric, metric-type and route-map can be configured in
any order, running-config displays in specific order..

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
6 years agozebra: Fix v6 nexthop-vrf and nexthop confusion
Donald Sharp [Tue, 30 Jan 2018 05:15:45 +0000 (00:15 -0500)]
zebra: Fix v6 nexthop-vrf and nexthop confusion

The v6 code had the same issue with how it handled
nexthop-vrf and nexthop when it was entered on the
same line.  This fixes that issue.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agozebra: Fix crash when dereferencing dest->selected_fib
Donald Sharp [Mon, 29 Jan 2018 22:52:15 +0000 (17:52 -0500)]
zebra: Fix crash when dereferencing dest->selected_fib

When a rib_unlink() event is directly called for a
route_entry we need to see if the dest->selected_fib
is the same and just unset the dest->selected_fib.

This was happening for redistributed table 10 routes
into BGP.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #1686 from donaldsharp/mem_leaks_zebra
Renato Westphal [Mon, 29 Jan 2018 22:41:07 +0000 (20:41 -0200)]
Merge pull request #1686 from donaldsharp/mem_leaks_zebra

Mem leaks zebra

6 years agoMerge pull request #1684 from donaldsharp/vrf_leak
Renato Westphal [Mon, 29 Jan 2018 22:34:02 +0000 (20:34 -0200)]
Merge pull request #1684 from donaldsharp/vrf_leak

zebra: Fix to get correct nexthop-vrf

6 years agodoc: manually finish conversion
Quentin Young [Mon, 29 Jan 2018 21:38:07 +0000 (16:38 -0500)]
doc: manually finish conversion

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agozebra: On shutdown actually delete rn's assoc w/ other_tables
Donald Sharp [Mon, 29 Jan 2018 21:20:41 +0000 (16:20 -0500)]
zebra: On shutdown actually delete rn's assoc w/ other_tables

Zebra stores routes coming from the kernel for non-default
tables.  This information on shutdown was being leaked
because we never cleaned it up.  Allow for this to happen
now.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #1685 from LabNConsulting/working/vpn-doc
Donald Sharp [Mon, 29 Jan 2018 20:51:30 +0000 (15:51 -0500)]
Merge pull request #1685 from LabNConsulting/working/vpn-doc

doc: minor cleanup of bgp vpnvX and remove encap safi references

6 years agolib: When we shutdown we would leak interface description
Donald Sharp [Mon, 29 Jan 2018 20:38:03 +0000 (15:38 -0500)]
lib: When we shutdown we would leak interface description

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com.
6 years agozebra: Cleanup error handling of nexthop vrf and vrf
Donald Sharp [Mon, 29 Jan 2018 20:18:28 +0000 (15:18 -0500)]
zebra: Cleanup error handling of nexthop vrf and vrf

The error handling of the nexthop vrf and the vrf
for what was specified on the cli was not as clean
as it should have been.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agodoc: remove references to encap safi
Lou Berger [Mon, 29 Jan 2018 20:03:03 +0000 (15:03 -0500)]
doc: remove references to encap safi

Signed-off-by: Lou Berger <lberger@labn.net>
6 years agodoc: change vpnvX -> ipvX vpn
Lou Berger [Mon, 29 Jan 2018 19:55:16 +0000 (14:55 -0500)]
doc: change vpnvX -> ipvX vpn

Signed-off-by: Lou Berger <lberger@labn.net>
6 years agoMerge pull request #1680 from donaldsharp/inet_pton
Renato Westphal [Mon, 29 Jan 2018 19:24:33 +0000 (17:24 -0200)]
Merge pull request #1680 from donaldsharp/inet_pton

zebra: Fix failure to parse src

6 years agodoc: cleanup multiple
Quentin Young [Mon, 29 Jan 2018 17:16:20 +0000 (12:16 -0500)]
doc: cleanup multiple

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoOSPFd: Update Segment Routing PR following review
Olivier Dugeon [Mon, 29 Jan 2018 16:58:53 +0000 (17:58 +0100)]
OSPFd: Update Segment Routing PR following review

Following various review, following files have been modfied:

 - All: Change u_intXX_t typedef to standard uintXX_t types
 - doc/OSPF-SR.rst: Update doc in particular the Linux Kernel configuration
section
 - doc/ospfd.texi: Update CLI
 - ospfd/ospf_dump.[c,h]: Add new 'debug ospf sr' when performing 'sh run'
 - ospfd/ospf_ext.[c, h]: Various bug corrections notably to handle flooding of
Extended Prefix at startup. iFix TLVs size for LAN Adjacency.
Update Licence as per Community.md
 - ospfd/ospf_opaque.c: Add proper termination function call to remove MPLS entries
 - ospfd/ospf_ri.[c,h]: Bug corrections
 - ospfd/ospf_sr.[c,h]: Various bug corrections, notably to determine the nexthop
SR Node. Add support to 'no-php-flag'.
Update Licence as per Community.md
 - ospfd/ospfd.c: Add call to 'ospf_opaque_term()'

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
6 years agodoc: cleanup kernel.rst
Quentin Young [Mon, 29 Jan 2018 15:57:13 +0000 (10:57 -0500)]
doc: cleanup kernel.rst

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: fixup routemap.rst
Quentin Young [Mon, 29 Jan 2018 15:46:35 +0000 (10:46 -0500)]
doc: fixup routemap.rst

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #1679 from qlyoung/revert-remove-options-directly-connected
Russ White [Mon, 29 Jan 2018 13:25:49 +0000 (08:25 -0500)]
Merge pull request #1679 from qlyoung/revert-remove-options-directly-connected

Revert "bgpd: disallow invalid config at cli layer"

6 years agozebra: Fix failure to parse src
Donald Sharp [Sat, 27 Jan 2018 23:56:30 +0000 (18:56 -0500)]
zebra: Fix failure to parse src

If src happens to point at all 0's due to not initializing
it and if the address passed in is not a v6 address then
we would not set src in the AF_INET6 call and would
fail the (src.ipv4.s_addr && inet_pton(AF_INET...)
call.  Thus causing us to return a NULL and make
the routemap code think there was an issue.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #1659 from chiragshah6/ospf_vrf_dev
Martin Winter [Sat, 27 Jan 2018 17:17:45 +0000 (09:17 -0800)]
Merge pull request #1659 from chiragshah6/ospf_vrf_dev

ospfd: show ip ospf neighbor json output format