]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
6 years ago*: fix clang-6 SA warnings
David Lamparter [Sat, 8 Sep 2018 18:16:59 +0000 (20:16 +0200)]
*: fix clang-6 SA warnings

I don't see these in CI, but my local clang-6 does emit warnings for
these.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agolib: fix SA warning in skiplist code
David Lamparter [Sat, 8 Sep 2018 17:47:05 +0000 (19:47 +0200)]
lib: fix SA warning in skiplist code

Clang was thinking the random level could be negative.  (And, no, I
couldn't figure that out by reading its output... trial and error this
was.)

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agolib, ldpd: fix SA warnings from TAILQ oddness
David Lamparter [Sat, 8 Sep 2018 17:25:00 +0000 (19:25 +0200)]
lib, ldpd: fix SA warnings from TAILQ oddness

Add a TAILQ_POP_FIRST so Clang understands it's the same item that is
getting removed from the list.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agoMerge pull request #2989 from donaldsharp/static_debug
David Lamparter [Sat, 8 Sep 2018 15:38:48 +0000 (17:38 +0200)]
Merge pull request #2989 from donaldsharp/static_debug

Static debug

6 years agoMerge pull request #2988 from donaldsharp/more_debugs
David Lamparter [Sat, 8 Sep 2018 15:36:18 +0000 (17:36 +0200)]
Merge pull request #2988 from donaldsharp/more_debugs

zebra: Modify nexthop checks to report inactive a bit more

6 years agoMerge pull request #2981 from donaldsharp/v6_vxlan_bug
David Lamparter [Sat, 8 Sep 2018 15:35:20 +0000 (17:35 +0200)]
Merge pull request #2981 from donaldsharp/v6_vxlan_bug

zebra: Fix RB-Tree storage comparison function for v6

6 years agoMerge pull request #2982 from donaldsharp/smux_h
David Lamparter [Sat, 8 Sep 2018 15:13:45 +0000 (17:13 +0200)]
Merge pull request #2982 from donaldsharp/smux_h

lib: Add missing smux.h to `make distrib` results

6 years agoMerge pull request #2949 from donaldsharp/removal
Martin Winter [Fri, 7 Sep 2018 17:04:51 +0000 (19:04 +0200)]
Merge pull request #2949 from donaldsharp/removal

ospf6d: Remove deprecated code after 1 year

6 years agoMerge pull request #2987 from pacovn/Coverity_1473088_ovf_array_index_write
Quentin Young [Fri, 7 Sep 2018 15:40:31 +0000 (11:40 -0400)]
Merge pull request #2987 from pacovn/Coverity_1473088_ovf_array_index_write

lib: array index check (Coverity 1473088)

6 years agosharpd: Fix missing 'show debug' command
Donald Sharp [Fri, 7 Sep 2018 11:05:35 +0000 (07:05 -0400)]
sharpd: Fix missing 'show debug' command

The sharp daemon was not properly handling 'show debug'
commands.  Fix.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agostaticd: Fix 'show debug static" command
Donald Sharp [Fri, 7 Sep 2018 11:01:19 +0000 (07:01 -0400)]
staticd: Fix 'show debug static" command

'show debugging' is returning a Command incomplete
error message as that it is being sent to staticd
and staticd has no knowledge of it, fix this.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agolib: array index check (Coverity 1473088)
F. Aragon [Fri, 7 Sep 2018 09:20:45 +0000 (11:20 +0200)]
lib: array index check (Coverity 1473088)

Signed-off-by: F. Aragon <paco@voltanet.io>
6 years agozebra: Modify nexthop checks to report inactive a bit more
Donald Sharp [Thu, 6 Sep 2018 22:26:04 +0000 (18:26 -0400)]
zebra: Modify nexthop checks to report inactive a bit more

Debugging inactive nexthops in zebra can be quite difficult
and non-obvious what has gone wrong.  Add detailed rib
debugs for the cases where we decide that a nexthop is
inactive so that we can more easily debug a reason
for the failure.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #2984 from donaldsharp/ak503_eigrp
Renato Westphal [Thu, 6 Sep 2018 16:51:40 +0000 (13:51 -0300)]
Merge pull request #2984 from donaldsharp/ak503_eigrp

eigrp: opnional metric in 'no redistribute'

6 years agoMerge pull request #2974 from donaldsharp/v4_and_v6
Renato Westphal [Thu, 6 Sep 2018 15:33:26 +0000 (12:33 -0300)]
Merge pull request #2974 from donaldsharp/v4_and_v6

V4 and v6

6 years agoeigrp: opnional metric in 'no redistribute'
dturlupov [Wed, 5 Sep 2018 09:23:50 +0000 (12:23 +0300)]
eigrp: opnional metric in 'no redistribute'

Signed-off-by: Dmitrii Turlupov <dturlupov@factor-rs.ru>
6 years agodoc: Update sharp documentation
Donald Sharp [Wed, 5 Sep 2018 01:02:33 +0000 (21:02 -0400)]
doc: Update sharp documentation

Update the sharp documentation to note v6 nexthops are able
to be installed now.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agosharpd: Modify route install to allow v6 nexthops
Donald Sharp [Wed, 5 Sep 2018 01:00:04 +0000 (21:00 -0400)]
sharpd: Modify route install to allow v6 nexthops

Allow the user to create a v4 route with a v6 nexthop.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agozebra: Fix _route_entry_dump to handle nexthop family as appropriate
Donald Sharp [Wed, 5 Sep 2018 00:56:42 +0000 (20:56 -0400)]
zebra: Fix _route_entry_dump to handle nexthop family as appropriate

The _route_entry_dump function was not handling the nexthop as passed
in from an upper level protocol appropriate and as such not displaying
the v4/v6 nexthop right in the case where we have both going.

Additionally dump the nexthop vrf as well.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agolib: Add missing smux.h to `make distrib` results
Donald Sharp [Thu, 6 Sep 2018 00:47:07 +0000 (20:47 -0400)]
lib: Add missing smux.h to `make distrib` results

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #2959 from opensourcerouting/bfd-cleanup
Donald Sharp [Wed, 5 Sep 2018 23:54:35 +0000 (19:54 -0400)]
Merge pull request #2959 from opensourcerouting/bfd-cleanup

bfdd: code clean up

6 years agoMerge pull request #2873 from vivek-cumulus/evpn-extended-mobility
Russ White [Wed, 5 Sep 2018 22:09:31 +0000 (18:09 -0400)]
Merge pull request #2873 from vivek-cumulus/evpn-extended-mobility

EVPN extended mobility support

6 years agozebra: Fix RB-Tree storage comparison function for v6
Donald Sharp [Wed, 5 Sep 2018 21:04:35 +0000 (17:04 -0400)]
zebra: Fix RB-Tree storage comparison function for v6

The RB-Tree used to store rmac information was not properly
handling the v6 address family.  Modify the code to allow
this handling.

Cleans up this error message:

zebra[2231]: host_rb_entry_compare: Unexpected family type: 10

That is being seen, This fixes some connectivity issues being seen.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobfdd: fix crash when receiving invalid echo packet
Rafael Zalamena [Wed, 5 Sep 2018 15:29:14 +0000 (12:29 -0300)]
bfdd: fix crash when receiving invalid echo packet

The log function would improperly format a string using an integer
causing a crash. This situation was found when switching echo mode with
a active connection.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agobfdd: use THREAD_OFF() instead of thread_cancel()
Rafael Zalamena [Wed, 5 Sep 2018 15:27:52 +0000 (12:27 -0300)]
bfdd: use THREAD_OFF() instead of thread_cancel()

Use a standardized function to cancel threads instead of hand rolling
our own.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agoMerge pull request #2970 from dslicenc/more-bool-use-json
Russ White [Wed, 5 Sep 2018 14:38:11 +0000 (10:38 -0400)]
Merge pull request #2970 from dslicenc/more-bool-use-json

bgpd, ospfd, pimd, zebra: Convert more use_json locations to bool

6 years agoMerge pull request #2971 from qlyoung/misc-doc-updates
David Lamparter [Tue, 4 Sep 2018 19:36:14 +0000 (21:36 +0200)]
Merge pull request #2971 from qlyoung/misc-doc-updates

doc: fix building.rst index

6 years agodoc: fix building.rst index
Quentin Young [Tue, 4 Sep 2018 19:28:42 +0000 (19:28 +0000)]
doc: fix building.rst index

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agobgpd, ospfd, pimd, zebra: Convert more use_json locations to bool
Don Slice [Tue, 4 Sep 2018 17:39:04 +0000 (17:39 +0000)]
bgpd, ospfd, pimd, zebra: Convert more use_json locations to bool

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
6 years agoMerge pull request #2909 from netravnen/feature/git-pl-template
Quentin Young [Tue, 4 Sep 2018 15:56:43 +0000 (11:56 -0400)]
Merge pull request #2909 from netravnen/feature/git-pl-template

Add github pull-request-template.md

6 years agoMerge pull request #2934 from LabNConsulting/working/master/rfapi_topotest_support
David Lamparter [Tue, 4 Sep 2018 15:42:32 +0000 (17:42 +0200)]
Merge pull request #2934 from LabNConsulting/working/master/rfapi_topotest_support

add some testing support for use in rfapi topotest

6 years agoMerge pull request #2939 from netravnen/feature/git-issue-teplate
Russ White [Tue, 4 Sep 2018 15:28:18 +0000 (11:28 -0400)]
Merge pull request #2939 from netravnen/feature/git-issue-teplate

Add ISSUE_TEMPLATE

6 years agoMerge pull request #2966 from donaldsharp/v6_cleanup
David Lamparter [Tue, 4 Sep 2018 14:17:39 +0000 (16:17 +0200)]
Merge pull request #2966 from donaldsharp/v6_cleanup

lib: Remove dead code

6 years agolib: Remove dead code
Donald Sharp [Tue, 4 Sep 2018 13:14:53 +0000 (09:14 -0400)]
lib: Remove dead code

The ZEBRA_IPV4_ROUTE_IPV6_NEXTHOP_ADD zapi message has no creators and
no handlers.  Let's just remove.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobfdd: use UDP sockets instead of raw
Rafael Zalamena [Wed, 29 Aug 2018 18:17:49 +0000 (15:17 -0300)]
bfdd: use UDP sockets instead of raw

Avoid all complexities of handling ethernet/IP/UDP headers and just use
UDP sockets: let the OS kernel handle this task.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agobfdd: enumerate all diagnositic codes
Rafael Zalamena [Wed, 29 Aug 2018 20:13:46 +0000 (17:13 -0300)]
bfdd: enumerate all diagnositic codes

Enumerate all codes, update the string representation and fix the
misdiagnosed echo failure.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agobfdd: make bfd_recv_* more generic
Rafael Zalamena [Wed, 29 Aug 2018 17:17:29 +0000 (14:17 -0300)]
bfdd: make bfd_recv_* more generic

We'll reuse these functions later to receive echo packets, so we need
to despecialize them first. Another improvement here is that we are
going to remove the global buffer variable and opt to use the stack.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agobfdd: remove VxLAN code
Rafael Zalamena [Tue, 28 Aug 2018 19:20:52 +0000 (16:20 -0300)]
bfdd: remove VxLAN code

Remove all VxLAN code. There are probably better ways to write VxLAN
support without having to use raw sockets and depend on extra user
configuration input.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agobfdd: remove global variables and improve logs
Rafael Zalamena [Tue, 28 Aug 2018 15:33:45 +0000 (12:33 -0300)]
bfdd: remove global variables and improve logs

Remove some more global variables and make the log messages look like
the rest of the code.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agoMerge pull request #2950 from qlyoung/misc-doc-updates
David Lamparter [Sat, 1 Sep 2018 03:06:46 +0000 (05:06 +0200)]
Merge pull request #2950 from qlyoung/misc-doc-updates

Misc doc updates

6 years agoMerge pull request #2945 from dslicenc/bgp-ospf-json
David Lamparter [Sat, 1 Sep 2018 03:05:30 +0000 (05:05 +0200)]
Merge pull request #2945 from dslicenc/bgp-ospf-json

bgpd/ospfd: make bgp and ospf json response a bit more consistent

6 years ago.github: Update ISSUE_TEMPLATE.md
Christoffer [Fri, 31 Aug 2018 22:10:42 +0000 (00:10 +0200)]
.github: Update ISSUE_TEMPLATE.md

Addressed @rwestphal comments.

Signed-off-by: Christoffer <netravnen@gmail.com>
6 years ago.github: Updated PULL_REQUEST_TEMPLATE.md
Christoffer [Fri, 31 Aug 2018 20:56:33 +0000 (22:56 +0200)]
.github: Updated PULL_REQUEST_TEMPLATE.md

Addressed @qlyoung's suggestions.

Signed-off-by: Christoffer <netravnen@gmail.com>
6 years ago.github: Updated ISSUE_TEMPALTE.md
Christoffer [Fri, 31 Aug 2018 19:53:02 +0000 (21:53 +0200)]
.github: Updated ISSUE_TEMPALTE.md

Addressed @qlyoung's suggestions.

Signed-off-by: Christoffer <netravnen@gmail.com>
6 years agozebra: remove invalid ref "frr-configuration"
Quentin Young [Fri, 31 Aug 2018 18:04:31 +0000 (18:04 +0000)]
zebra: remove invalid ref "frr-configuration"

There is, in fact, no such additional information

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: update subdir.am
Quentin Young [Fri, 31 Aug 2018 17:15:14 +0000 (17:15 +0000)]
doc: update subdir.am

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: update misc build docs
Quentin Young [Thu, 30 Aug 2018 19:18:30 +0000 (19:18 +0000)]
doc: update misc build docs

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: name correct sphinx package under FreeBSD 11
Quentin Young [Thu, 30 Aug 2018 17:32:47 +0000 (17:32 +0000)]
doc: name correct sphinx package under FreeBSD 11

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: rename building_frr_on* -> building_frr_for*
Quentin Young [Thu, 30 Aug 2018 17:31:45 +0000 (17:31 +0000)]
doc: rename building_frr_on* -> building_frr_for*

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agobgpd: convert from conditional operator to if-then for json changes
Don Slice [Fri, 31 Aug 2018 16:32:22 +0000 (16:32 +0000)]
bgpd: convert from conditional operator to if-then for json changes

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
6 years agoMerge pull request #2913 from opensourcerouting/non-recursive-prep
Quentin Young [Fri, 31 Aug 2018 15:43:59 +0000 (11:43 -0400)]
Merge pull request #2913 from opensourcerouting/non-recursive-prep

pre-final non-recursive make

6 years agoMerge pull request #2955 from ton31337/feature/nexthop_blackhole
David Lamparter [Fri, 31 Aug 2018 15:33:40 +0000 (17:33 +0200)]
Merge pull request #2955 from ton31337/feature/nexthop_blackhole

plist: Add safety check to avoid going over 4294967295 for prefix-list

6 years agoMerge pull request #2940 from ton31337/fix/as-path_validation
David Lamparter [Fri, 31 Aug 2018 13:56:44 +0000 (15:56 +0200)]
Merge pull request #2940 from ton31337/fix/as-path_validation

bgpd: Validate as-path access-list before continuing regarding invaliā€¦

6 years agoplist: Add safety check to avoid going over 4294967295 for prefix-list
Donatas Abraitis [Fri, 31 Aug 2018 13:38:56 +0000 (16:38 +0300)]
plist: Add safety check to avoid going over 4294967295 for prefix-list

6 years agobgpd: change conditional operators for bgp/ospf json changes
Don Slice [Fri, 31 Aug 2018 12:50:02 +0000 (12:50 +0000)]
bgpd: change conditional operators for bgp/ospf json changes

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
6 years agobgpd: Validate as-path access-list before continuing regarding invalid chars
Donatas Abraitis [Wed, 29 Aug 2018 16:12:30 +0000 (19:12 +0300)]
bgpd: Validate as-path access-list before continuing regarding invalid chars

Signed-off-by: Donatas Abraitis donatas.abraitis@gmail.com
6 years ago.github: Updated ISSUE_TEMPALTE.md
Christoffer [Fri, 31 Aug 2018 11:00:25 +0000 (13:00 +0200)]
.github: Updated ISSUE_TEMPALTE.md

Addressed all of @qlyoung's "presentational nits
and a formatting suggestion". As well as
@rwestphal's idea of OS and FRR name+version
numbers.

Signed-off-by: Christoffer <netravnen@gmail.com>
6 years agoMerge pull request #2785 from donaldsharp/AGGanomics
Lou Berger [Fri, 31 Aug 2018 10:58:12 +0000 (06:58 -0400)]
Merge pull request #2785 from donaldsharp/AGGanomics

Abstract `void *aggregate` pointer in `struct route_node`

6 years agoMerge pull request #2951 from qlyoung/sort-route-maps
David Lamparter [Fri, 31 Aug 2018 10:17:20 +0000 (12:17 +0200)]
Merge pull request #2951 from qlyoung/sort-route-maps

lib: sort route-maps for display

6 years agostatic: Put vty_frame around vrf output in staticd.
Donald Sharp [Wed, 29 Aug 2018 02:47:24 +0000 (22:47 -0400)]
static: Put vty_frame around vrf output in staticd.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agostaticd: Fix mixup in vrf translations
Donald Sharp [Wed, 29 Aug 2018 02:45:06 +0000 (22:45 -0400)]
staticd: Fix mixup in vrf translations

When we store the nexthop for ref-counting, keep
track of the nexthop vrf_id as well.  This will allow
us to track the nexthop per vrf!

Additionally when we get the callback from zebra about
a nexthop update, iterate over all static routes to
see if the nexthop we are getting a callback is
one we are concerned about.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agovtysh: Let staticd know about vrf sub-mode
Donald Sharp [Wed, 29 Aug 2018 02:43:42 +0000 (22:43 -0400)]
vtysh: Let staticd know about vrf sub-mode

staticd was not transitioning into vrf sub-mode, this fixes it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #2923 from pguibert6WIND/fix_veth_namespace
David Lamparter [Fri, 31 Aug 2018 06:51:01 +0000 (08:51 +0200)]
Merge pull request #2923 from pguibert6WIND/fix_veth_namespace

zebra: when veth link is used across vrf, the link may not be good

6 years agolib: Move aggregate pointer into aggregate route/table
Donald Sharp [Fri, 3 Aug 2018 17:25:13 +0000 (13:25 -0400)]
lib: Move aggregate pointer into aggregate route/table

Move the aggregate pointer from the route_node into agg_node
so that people using struct route_node will see a savings
in data size.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd, ripngd: Convert to using new agg_table/route
Donald Sharp [Fri, 3 Aug 2018 17:22:48 +0000 (13:22 -0400)]
bgpd, ripngd: Convert to using new agg_table/route

Switch bgp and ripngd to use the new aggregate table and
route data structures.  This was mainly a search and replace
operation.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agolib: Add Aggregate Table and Aggregate_node
Donald Sharp [Fri, 3 Aug 2018 17:18:59 +0000 (13:18 -0400)]
lib: Add Aggregate Table and Aggregate_node

Add a abstraction for `struct route_node` and `struct route_table`
such that we can have an aggregate route_node and table.  This
is because only bgp/rfapi and ripng use the aggregate data pointer
in `struct route_node`.  For full route tables other routing
protocols and tables are paying a 8 byte overhead per node.
A full bgp table ends up being ~1.2 million routes in bgp
and zebra.  This is not an insiginificant amount of data.

So create the data structures for this replacement, but
do not replace the aggregate pointer yet.  This is because
later commits will convert rfapi and ripng over to this
new data, and finally we'll move the aggregate pointer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agolib: sort route-maps for display
Quentin Young [Thu, 30 Aug 2018 21:22:22 +0000 (21:22 +0000)]
lib: sort route-maps for display

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoospf6d: Remove deprecated code after 1 year
Donald Sharp [Thu, 30 Aug 2018 18:29:04 +0000 (14:29 -0400)]
ospf6d: Remove deprecated code after 1 year

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoospfd: fix more warnings with the bgp ospf json commit
Don Slice [Thu, 30 Aug 2018 17:15:47 +0000 (17:15 +0000)]
ospfd: fix more warnings with the bgp ospf json commit

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
6 years agoMerge pull request #2947 from mjstapp/fix_os_name
Quentin Young [Thu, 30 Aug 2018 17:01:22 +0000 (13:01 -0400)]
Merge pull request #2947 from mjstapp/fix_os_name

lib: fix use of frrpthread os_name

6 years agoconfigure: Update version to 6.1-dev frr-6.1-dev
Martin Winter [Thu, 30 Aug 2018 16:11:10 +0000 (09:11 -0700)]
configure: Update version to 6.1-dev

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

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
6 years agobgpd/ospfd: resolve warnings for bgp/ospf json commit
Don Slice [Thu, 30 Aug 2018 15:54:46 +0000 (15:54 +0000)]
bgpd/ospfd: resolve warnings for bgp/ospf json commit

Signed-off-by: Don Slice <dslice@cumulusnetwork.com>
6 years agolib: fix use of frrpthread os_name
Mark Stapp [Thu, 30 Aug 2018 15:44:45 +0000 (11:44 -0400)]
lib: fix use of frrpthread os_name

Fix test for presence of configured os pthread name.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
6 years agoMerge pull request #2859 from LabNConsulting/working/master/meminfo
David Lamparter [Thu, 30 Aug 2018 14:44:47 +0000 (16:44 +0200)]
Merge pull request #2859 from LabNConsulting/working/master/meminfo

lib: qmem show changes (header and max)

6 years agobgpd/ospfd: make bgp and ospf json response a bit more consistent
Don Slice [Wed, 29 Aug 2018 12:19:54 +0000 (12:19 +0000)]
bgpd/ospfd: make bgp and ospf json response a bit more consistent

Problem reported that some bgp and ospf json commands did not return
any json output at all if the bgp/ospf instance did not exist.
Additionally, some bgp and ospf json commands did not return any json
output if the instance existed but no neighbors were defined.  This
fix makes these commands more consistent in returning empty braces for
json output and issue a message if not using json output.  Additionally,
made the flag "use_json" a bool to make it consistent since previously,
it had been defined as an int, char, u_char, and bool at various places.

Ticket: CM-21040
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
6 years agodoc: drop colspan/rowspan elements
David Lamparter [Wed, 29 Aug 2018 03:28:06 +0000 (05:28 +0200)]
doc: drop colspan/rowspan elements

The sphinx 'text' writer apparently doesn't support these, and the
'dummy' writer is only available on recent versions, and all of this
makes the build a bit annoying...

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agodoc: html default off
David Lamparter [Sat, 18 Aug 2018 15:06:22 +0000 (17:06 +0200)]
doc: html default off

... RPM builds break if we enable this unconditionally; should really
change this in CI instead.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobuild: add Makefile variable easy access
David Lamparter [Sat, 25 Aug 2018 05:35:31 +0000 (07:35 +0200)]
build: add Makefile variable easy access

This adds 2 helper targets for use in scripts to easily get at Makefile
variables without parsing the Makefile or config.status.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobuild: improve python search pattern
David Lamparter [Wed, 22 Aug 2018 04:04:32 +0000 (06:04 +0200)]
build: improve python search pattern

- try pythonN.N-config after pythonN-config
- use "python-config --ldflags" instead of --libs
- add Python 3.6 to explicitly searched versions
- if linking fails, try with "-lz" added

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobuild: add warning when overwriting vars on "make"
David Lamparter [Tue, 21 Aug 2018 18:33:13 +0000 (20:33 +0200)]
build: add warning when overwriting vars on "make"

doing things like `make CC="mmix-linux-musl-gcc"` breaks the hosttools/
cross-compilation setup pretty hard and just straight up should not be
done.  These vars belong on `configure`, not `make`.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobuild: cache a few more results in ./configure
David Lamparter [Sat, 18 Aug 2018 06:03:02 +0000 (08:03 +0200)]
build: cache a few more results in ./configure

Makes configure re-runs faster if the `-C` option is used.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobuild: -Werror does not belong in AM_CPPFLAGS
David Lamparter [Sat, 18 Aug 2018 03:08:19 +0000 (05:08 +0200)]
build: -Werror does not belong in AM_CPPFLAGS

(probably neither do the ASAN/... FLAGS, but let's leave that alone.)

Also, it was intentional that it's $(WERROR) and not @WERROR@.  The
former can be overwritten at comandline as "make WERROR=" while the
latter can't.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobuild: non-recursive solaris
David Lamparter [Sat, 18 Aug 2018 02:05:55 +0000 (04:05 +0200)]
build: non-recursive solaris

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobuild: fix some oddities in solaris/
David Lamparter [Wed, 15 Aug 2018 22:56:48 +0000 (00:56 +0200)]
build: fix some oddities in solaris/

target_* is always wrong for FRR because we are not a compiler.  We only
use host_* and build_*.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobuild: trigger fewer unneccessary clippy rebuilds
David Lamparter [Wed, 15 Aug 2018 22:03:58 +0000 (00:03 +0200)]
build: trigger fewer unneccessary clippy rebuilds

Make sure we include the clippy binary file in our timestamp mangling so
`make` will correctly determine when clippy files don't need to be
rebuilt.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobuild: non-recursive debianpkg
David Lamparter [Wed, 15 Aug 2018 22:47:28 +0000 (00:47 +0200)]
build: non-recursive debianpkg

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobuild: non-recursive doc + parallel sphinx
David Lamparter [Wed, 15 Aug 2018 20:59:31 +0000 (22:59 +0200)]
build: non-recursive doc + parallel sphinx

Sphinx actually does work with a parallel build, if the doctree creation
is a separate step (which the other builds will then just read
unmodified.)  This can be done with the "dummy" target.

This also adds "-j6" to sphinx-build and adds a "--disable-doc-html"
switch on ./configure to turn on/off building HTML docs separately.

Also, HTML docs are now installed by "make install" to
/usr/share/doc/frr/html.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agoMerge pull request #2942 from mjstapp/fix_new_atomics
David Lamparter [Thu, 30 Aug 2018 06:04:29 +0000 (08:04 +0200)]
Merge pull request #2942 from mjstapp/fix_new_atomics

libs: fix missing atomics for some gcc versions

6 years agoMerge pull request #2754 from chiragshah6/mdev1
David Lamparter [Thu, 30 Aug 2018 06:00:25 +0000 (08:00 +0200)]
Merge pull request #2754 from chiragshah6/mdev1

*: pthread set name abstraction

6 years ago*: pthread set name abstraction
Chirag Shah [Mon, 30 Jul 2018 15:05:42 +0000 (08:05 -0700)]
*: pthread set name abstraction

Testing Done:

 TOR#cat /proc/2670/task/2672/comm
 bgpd_ka

TOR# ps H -C bgpd -o 'pid tid cmd comm'
  PID   TID CMD                         COMMAND
  2670  2670 /usr/lib/frr/bgpd -M snmp - bgpd
  2670  2671 /usr/lib/frr/bgpd -M snmp - bgpd
  2670  2672 /usr/lib/frr/bgpd -M snmp - bgpd_ka

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
6 years agolibs: fix missing atomics for some gcc versions
Mark Stapp [Wed, 29 Aug 2018 19:39:19 +0000 (15:39 -0400)]
libs: fix missing atomics for some gcc versions

stdatomic.h does not have aliases for all of the useful gcc
atomic primitives; add them in for that path through
frratomic.h.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
6 years agoMerge pull request #2938 from pguibert6WIND/spurious_message
Christian Franke [Wed, 29 Aug 2018 17:21:59 +0000 (19:21 +0200)]
Merge pull request #2938 from pguibert6WIND/spurious_message

lib: remove spurious message when netns is not available

6 years agoMerge pull request #2917 from opensourcerouting/doc-devel-openwrt
Quentin Young [Wed, 29 Aug 2018 15:39:07 +0000 (11:39 -0400)]
Merge pull request #2917 from opensourcerouting/doc-devel-openwrt

doc/developer/openwrt: Update instructions for building for OpenWRT

6 years agorfp_example: add 'rfp full-table-download' config to support topotest
Lou Berger [Wed, 29 Aug 2018 15:08:10 +0000 (11:08 -0400)]
rfp_example: add 'rfp full-table-download' config to support topotest

Signed-off-by: Lou Berger <lberger@labn.net>
6 years agorfapi: debug related changes to support topotest -- add cost
Lou Berger [Wed, 29 Aug 2018 13:20:24 +0000 (09:20 -0400)]
rfapi: debug related changes to support topotest -- add cost

Signed-off-by: Lou Berger <lberger@labn.net>
6 years agozebra: do not update link if interface is veth interface
Philippe Guibert [Wed, 29 Aug 2018 09:29:07 +0000 (11:29 +0200)]
zebra: do not update link if interface is veth interface

when interface is a virtual ethernet interface, then there is no need to
update link pointer of interface.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years ago.github: Add ISSUE_TEMPLATE.md
Christoffer [Wed, 29 Aug 2018 09:18:03 +0000 (11:18 +0200)]
.github: Add ISSUE_TEMPLATE.md

Content of file ISSUE_TEMPLATE.md lossly based upon
https://github.com/sysrepo/sysrepo/blob/e38fcc3c00638f97e9d0c27cb6ca2d0bc2b645dc/.github/ISSUE_TEMPLATE.md

Signed-off-by: Christoffer <netravnen@gmail.com>
6 years ago.github: Updated PULL_REQUEST_TEMPLATE.md per Quentin's request.
Christoffer [Wed, 29 Aug 2018 09:12:52 +0000 (11:12 +0200)]
.github: Updated PULL_REQUEST_TEMPLATE.md per Quentin's request.

Signed-off-by: Christoffer <netravnen@gmail.com>
6 years agodoc: add comment on closing PRs
Lou Berger [Tue, 28 Aug 2018 21:14:14 +0000 (17:14 -0400)]
doc: add comment on closing PRs

Signed-off-by: Lou Berger <lberger@labn.net>
6 years agodoc: add comment on PR title and description
Lou Berger [Tue, 28 Aug 2018 21:13:26 +0000 (17:13 -0400)]
doc: add comment on PR title and description

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