Commit Graph

10695 Commits

Author SHA1 Message Date
Donald Sharp
8ef6371e1f 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>
2018-02-03 11:33:13 -05:00
Donald Sharp
3fa1234339 bgpd: bgp_afi_node_get is listed 2 times in bgp_route.h
Remove the extra.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2018-02-03 11:33:13 -05:00
Renato Westphal
65e630c051
Merge pull request #1695 from chiragshah6/mdev
ospfd: fix default-information orignate command not to display default parameter
2018-02-03 12:18:48 -02:00
Renato Westphal
7d57db9f61
Merge pull request #1705 from donaldsharp/martian_nexthop
bgpd: Add ability to see martian next-hop's for a vrf
2018-02-03 12:10:30 -02:00
Donald Sharp
15c81ca495 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>
2018-02-02 19:26:22 -05:00
Quentin Young
c91e9b8f74
doc: note dependencies necessary to build docs
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-02-02 16:59:52 -05:00
Quentin Young
5a32c42459
doc: add logos
Branding!

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-02-02 16:27:00 -05:00
Quentin Young
061dd548ee
doc: fixup glossary for html build
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-02-02 15:24:57 -05:00
Quentin Young
9de103f0c9
doc: document documentation
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-02-02 15:19:04 -05:00
Donald Sharp
321305829c
Merge pull request #1703 from opensourcerouting/bsd-warnings
BSD warnings
2018-02-02 14:36:42 -05:00
Quentin Young
11ab5329e0
doc: reference style cleanup
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-02-02 13:45:12 -05:00
Quentin Young
623333072e
doc: add glossary
Glossary of some common terms, fixes non-existing glossary definition
warnings.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-02-02 13:33:41 -05:00
Renato Westphal
a37bd5e070 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>
2018-02-02 16:31:20 -02:00
Renato Westphal
a7ce0ad1da *: silence '-Wchar-subscripts' warnings on NetBSD
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-02-02 16:31:20 -02:00
Renato Westphal
b599ec55f4 *: 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>
2018-02-02 16:31:20 -02:00
Renato Westphal
6bba65f29f 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>
2018-02-02 16:31:07 -02:00
Renato Westphal
a36fbef21a 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>
2018-02-02 16:28:21 -02:00
Quentin Young
9bea107f2d
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>
2018-02-02 12:52:50 -05:00
Quentin Young
6ee602cd13
doc: fixup more broken xrefs
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-02-02 12:19:28 -05:00
Rafael Zalamena
8c7ad688cc
Merge pull request #1696 from donaldsharp/pim_node_removal
lib, pimd: Remove PIM_NODE as it is not needed
2018-02-02 11:12:15 -02:00
Rafael Zalamena
bcca474aa6
Merge pull request #1687 from donaldsharp/dest
zebra: Fix crash when dereferencing dest->selected_fib
2018-02-02 11:08:28 -02:00
Quentin Young
9e146a818b
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>
2018-02-01 17:38:05 -05:00
Quentin Young
0efdf0fe50
doc: clean up cross references
Format reference directives and roles to match best practices.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-02-01 16:33:14 -05:00
Quentin Young
013f9762db
doc: fixup some build warnings
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-02-01 16:10:11 -05:00
Quentin Young
7bed2c9976
doc: add targets for user & developer pdf + html
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-02-01 13:23:18 -05:00
Quentin Young
82b7ec1da7
*: update configure.ac, Makefiles for new manpages
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-02-01 11:41:37 -05:00
Olivier Dugeon
db28a51f7e 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>
2018-02-01 14:30:34 +01:00
smccroskey
a2ec1de2ce 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>
2018-01-31 17:15:36 -08:00
smccroskey
f1aaa729eb debianpkg rules files: bgp-vnc is enabled by default
9782a8db77 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>
2018-01-31 17:10:44 -08:00
smccroskey
9782a8db77 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>
2018-01-31 14:57:47 -08:00
Quentin Young
4b44467c9e
doc: remove last bits of texinfo directives
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-01-31 17:27:07 -05:00
Quentin Young
76bd149987
doc: remove trailing whitespace
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-01-31 17:27:07 -05:00
Quentin Young
7bd01bd49b
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>
2018-01-31 17:27:06 -05:00
Quentin Young
a1e276e1d3
doc: overhaul manpages
* Remove groff manpages
* Rewrite manpages in RST
* Clean up and standardize manpage content

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-01-31 17:27:02 -05:00
Renato Westphal
e891344491
Merge pull request #1693 from donaldsharp/v6_leaking
zebra: Fix v6 nexthop-vrf and nexthop confusion
2018-01-31 15:52:01 -02:00
Quentin Young
05102ddc45
doc: move dev doc figures to figures/
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-01-31 10:31:15 -05:00
Quentin Young
612b3314f2
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>
2018-01-30 16:20:47 -05:00
Quentin Young
3eb7a2f08b
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>
2018-01-30 16:14:24 -05:00
Quentin Young
cb39e63e59
doc: manually merge isis.rst
Manually merged:

ee65c55e2a

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-01-30 16:12:26 -05:00
Quentin Young
e3c1296cb4
doc: add pim.rst
Manually merged:

42642babdd

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-01-30 16:08:10 -05:00
Quentin Young
a5a48dbf20
doc: additional merging
Manually merged:

6347ca161f

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-01-30 15:53:17 -05:00
Quentin Young
d38549c99d
Merge branch 'master' into docs-user
Manually merged these doc commits:

3bb7cd7f56
ff21655441
2018-01-30 15:05:15 -05:00
Chirag Shah
29ab3b60d1 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>
2018-01-30 10:05:20 -08:00
Quentin Young
b012cbe2b1
bgpd: improve default shutdown help string
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-01-30 11:47:34 -05:00
Lou Berger
08951735bd
Merge pull request #1690 from dslicenc/bgpd-vrf-show-cm17377
bgpd: fix output of show bgp vrf all neighbor x.x.x.x
2018-01-30 11:42:26 -05:00
Quentin Young
1e1c1e132b
tools: return exit status in checkpatch.sh
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-01-30 10:53:35 -05:00
Olivier Dugeon
62c9979094 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>
2018-01-30 16:17:54 +01:00
Quentin Young
8175f54a2d
bgpd: fixup default shutdown
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2018-01-30 10:12:19 -05:00
Olivier Dugeon
0cd00cc506 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>
2018-01-30 14:25:40 +01:00
Don Slice
71aedaa394 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>
2018-01-30 12:30:35 +00:00