]> git.puffer.fish Git - matthieu/frr.git/log
matthieu/frr.git
6 years agoMerge pull request #3167 from chiragshah6/ospfv3_dev
Russ White [Fri, 12 Oct 2018 19:55:59 +0000 (15:55 -0400)]
Merge pull request #3167 from chiragshah6/ospfv3_dev

ospf6d: fix ospf6 crash in inp lsa processing

6 years agoMerge pull request #3137 from opensourcerouting/feature/isis-bfd
Donald Sharp [Fri, 12 Oct 2018 17:58:26 +0000 (13:58 -0400)]
Merge pull request #3137 from opensourcerouting/feature/isis-bfd

Feature: BFD for IS-IS

6 years agoospf6d: fix ospf6 crash in inp lsa processing
Chirag Shah [Thu, 11 Oct 2018 16:08:37 +0000 (09:08 -0700)]
ospf6d: fix ospf6 crash in inp lsa processing

Use ospf6_prefix_same for comparing two exact same prefix
to determine ECMP for a route.
ospf6_route_cmp expects two different prefix rather
being exactly same.

Ticket:CM-22630
Testing Done:
performed ECMP of intra network prefix route via
sending same route via different available
ospf6 paths.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
6 years agoisisd: Fix license header of bfd code
Christian Franke [Fri, 12 Oct 2018 16:56:07 +0000 (18:56 +0200)]
isisd: Fix license header of bfd code

6 years agoisisd: Address code-style warnings
Christian Franke [Fri, 12 Oct 2018 14:45:32 +0000 (16:45 +0200)]
isisd: Address code-style warnings

6 years agoMerge pull request #3140 from vishaldhingra/b_2802
Donald Sharp [Fri, 12 Oct 2018 00:18:57 +0000 (20:18 -0400)]
Merge pull request #3140 from vishaldhingra/b_2802

zebra : VRF aware route map in zebra

6 years agozebra: vrf aware routmap is missing in Zebra #2802(Part 4 of 4)
vishaldhingra [Thu, 11 Oct 2018 17:49:34 +0000 (10:49 -0700)]
zebra: vrf aware routmap is missing in Zebra #2802(Part 4 of 4)

The new cli for show output

Signed-off-by: vishaldhingra vdhingra@vmware.com
6 years agozebra: vrf aware routmap is missing in Zebra #2802(Part 3 of 4)
vishaldhingra [Thu, 11 Oct 2018 17:48:23 +0000 (10:48 -0700)]
zebra: vrf aware routmap is missing in Zebra #2802(Part 3 of 4)

The cli changes to allow this to work.

Signed-off-by: vishaldhingra vdhingra@vmware.com
6 years agozebra: vrf aware routmap is missing in Zebra #2802(Part 2 of 4)
vishaldhingra [Thu, 11 Oct 2018 17:46:55 +0000 (10:46 -0700)]
zebra: vrf aware routmap is missing in Zebra #2802(Part 2 of 4)

Function parameter replacement of using zvrf instead of vrf_id

Signed-off-by: vishaldhingra vdhingra@vmware.com
6 years ago zebra: vrf aware routmap is missing in Zebra #2802(Part 1 of 4)
vishaldhingra [Thu, 11 Oct 2018 17:44:55 +0000 (10:44 -0700)]
 zebra: vrf aware routmap is missing in Zebra #2802(Part 1 of 4)

 Work to handle the route-maps, namely the header changes in zebra_vrf.h
 and the mapping of using that everywhere

Signed-off-by: vishaldhingra vdhingra@vmware.com
6 years agoMerge pull request #3032 from donaldsharp/bgp_info
Lou Berger [Thu, 11 Oct 2018 13:17:31 +0000 (09:17 -0400)]
Merge pull request #3032 from donaldsharp/bgp_info

`struct bgp_info` to `struct bgp_path_info`

6 years agoMerge pull request #3153 from adharkar/frr-scount
Donald Sharp [Wed, 10 Oct 2018 19:42:20 +0000 (15:42 -0400)]
Merge pull request #3153 from adharkar/frr-scount

bgpd: Incorrect sent prefix count for a split subgroup

6 years agobgpd: Incorrect sent prefix count for a split subgroup
Ameya Dharkar [Tue, 9 Oct 2018 18:56:46 +0000 (11:56 -0700)]
bgpd: Incorrect sent prefix count for a split subgroup

When a subgroup splits to form a new subgroup because of policy changes
for a peer, new subgroup copies adj out(state about advertised routes)
from the parent subgroup. At the same time, it should also copy
scount(advertised prefix count) to the new subgroup for the count to be
in sync with the adj_out for the subgroup.

Signed-off-by: Ameya Dharkar <adharkar@vmware.org>
6 years agoMerge pull request #3155 from opensourcerouting/building_instructions
Quentin Young [Wed, 10 Oct 2018 18:18:45 +0000 (14:18 -0400)]
Merge pull request #3155 from opensourcerouting/building_instructions

doc: update building instructions

6 years agoMerge pull request #3159 from pguibert6WIND/doc_draft_bgp
Quentin Young [Wed, 10 Oct 2018 18:15:15 +0000 (14:15 -0400)]
Merge pull request #3159 from pguibert6WIND/doc_draft_bgp

doc: fix warning of doc compilation with bgp draft

6 years agoMerge pull request #3154 from donaldsharp/bgp_mem_lem
Renato Westphal [Wed, 10 Oct 2018 16:08:28 +0000 (13:08 -0300)]
Merge pull request #3154 from donaldsharp/bgp_mem_lem

Bgp mem issue with martian address interface strings

6 years agodoc: simplify build instructions
Renato Westphal [Wed, 10 Oct 2018 14:07:48 +0000 (11:07 -0300)]
doc: simplify build instructions

Remove all --enable-xxx configuration flags for features that are enabled
by default.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agodoc: update build instructions for Debian 9
Renato Westphal [Wed, 10 Oct 2018 14:00:50 +0000 (11:00 -0300)]
doc: update build instructions for Debian 9

The instruction to checkout to the stable/3.0 branch doesn't belong
here.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agodoc: remove LibXML from the list of dependencies
Renato Westphal [Wed, 10 Oct 2018 13:57:30 +0000 (10:57 -0300)]
doc: remove LibXML from the list of dependencies

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
6 years agoMerge pull request #3145 from pguibert6WIND/ipv6nexthop
Donald Sharp [Wed, 10 Oct 2018 14:08:01 +0000 (10:08 -0400)]
Merge pull request #3145 from pguibert6WIND/ipv6nexthop

bgpd: in case nexthop is ipv6, set nh attribute flag in mpls vpn case

6 years agobgpd: in case nexthop is ipv6, set nh attribute flag in mpls vpn case
Philippe Guibert [Mon, 8 Oct 2018 12:15:12 +0000 (14:15 +0200)]
bgpd: in case nexthop is ipv6, set nh attribute flag in mpls vpn case

In mpls vpn import/export, the nexthop attribute should also be
recognised for ipv6 too.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agodoc: fix warning of doc compilation with bgp draft
Philippe Guibert [Wed, 10 Oct 2018 09:49:33 +0000 (11:49 +0200)]
doc: fix warning of doc compilation with bgp draft

Some draft ietf are not handle by :rfc: keyword. A workaround is
proposed, like it has been done for flowspec.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
6 years agobgpd: Cleanup memory leak with the martian address intf string
Donald Sharp [Wed, 10 Oct 2018 00:19:01 +0000 (20:19 -0400)]
bgpd: Cleanup memory leak with the martian address intf string

When cleaning up a interface string, from the linked list we were
dropping the name pointer which held the allocated martian address
intf string.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Use a more appropriate memory type for a string
Donald Sharp [Wed, 10 Oct 2018 00:16:37 +0000 (20:16 -0400)]
bgpd: Use a more appropriate memory type for a string

Track the memory type associated with the bartian address
interface a bit better, instead of using MTYPE_TMP.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Cleanup warnings issued by CI system from these changes
Donald Sharp [Wed, 3 Oct 2018 12:22:38 +0000 (08:22 -0400)]
bgpd: Cleanup warnings issued by CI system from these changes

Modify code to cleanup warnings issued by the CI system from
this series of changes.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Rename various variable names to something more appropriate
Donald Sharp [Wed, 3 Oct 2018 00:43:07 +0000 (20:43 -0400)]
bgpd: Rename various variable names to something more appropriate

ri -> pi
bi -> bpi
info -> path
info -> rmap_path ( for routemap applications )

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Convert binfo to path
Donald Sharp [Tue, 2 Oct 2018 22:34:03 +0000 (18:34 -0400)]
bgpd: Convert binfo to path

Convert the binfo variable to path.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Convert all bgp_info_XXX functions to bgp_path_XXX functions
Donald Sharp [Tue, 2 Oct 2018 22:15:34 +0000 (18:15 -0400)]
bgpd: Convert all bgp_info_XXX functions to bgp_path_XXX functions

Rename all bgp_info_XXX functions to bgp_path_XXX functions

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Convert `struct bgp_info` to `struct bgp_path_info`
Donald Sharp [Tue, 2 Oct 2018 20:41:30 +0000 (16:41 -0400)]
bgpd: Convert `struct bgp_info` to `struct bgp_path_info`

Do a straight conversion of `struct bgp_info` to `struct bgp_path_info`.
This commit will setup the rename of variables as well.

This is being done because `struct bgp_info` is not descriptive
of what this data actually is.  It is path information for routes
that we keep to build the actual routes nexthops plus some extra
information.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Convert BGP_INFO_XXX to BGP_PATH_XXX
Donald Sharp [Fri, 14 Sep 2018 00:34:42 +0000 (20:34 -0400)]
bgpd: Convert BGP_INFO_XXX to BGP_PATH_XXX

Search and replace all BGP_INFO_XXX to BGP_PATH_XXX

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Rename some BGP_PATH_XXX to BGP_PATH_SHOW_XXX
Donald Sharp [Tue, 2 Oct 2018 19:50:10 +0000 (15:50 -0400)]
bgpd: Rename some BGP_PATH_XXX to BGP_PATH_SHOW_XXX

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #3077 from rgirada/ospf_2980_fix
Olivier Dugeon [Tue, 9 Oct 2018 17:07:33 +0000 (19:07 +0200)]
Merge pull request #3077 from rgirada/ospf_2980_fix

ospfd: Resolved the inconsistency behavior when “default-info origina…

6 years agoisisd: don't add deprecated bfd command
Christian Franke [Tue, 9 Oct 2018 15:59:46 +0000 (17:59 +0200)]
isisd: don't add deprecated bfd command

6 years agoMerge pull request #3037 from patrasar/2851
Quentin Young [Tue, 9 Oct 2018 15:56:26 +0000 (11:56 -0400)]
Merge pull request #3037 from patrasar/2851

bgpd: remove ip prefix from as-path, <large,ext>community-list

6 years agoMerge pull request #3143 from rgirada/fix_3124
Olivier Dugeon [Tue, 9 Oct 2018 15:52:49 +0000 (17:52 +0200)]
Merge pull request #3143 from rgirada/fix_3124

ospfd: default route got flushed after lsa refresh timer.

6 years agoospfd: issue with the "default-information originate always" command #2980
rgirada [Mon, 1 Oct 2018 11:38:01 +0000 (04:38 -0700)]
ospfd: issue with the "default-information originate always" command #2980

Made changes such that message wont be sent to zebra to validate default
route existence  if user configured with “always”.

Signed-off-by: rgirada <rgirada@vmware.com>
6 years agoMerge pull request #3132 from toreanderson/fix_routemap_prefixlist_match_doc
Quentin Young [Mon, 8 Oct 2018 18:08:06 +0000 (14:08 -0400)]
Merge pull request #3132 from toreanderson/fix_routemap_prefixlist_match_doc

doc: correct route map match for prefix lists

6 years agoospfd: default route got flushed after lsa refresh timer.
rgirada [Mon, 8 Oct 2018 06:22:58 +0000 (23:22 -0700)]
ospfd: default route got flushed after lsa refresh timer.

Default route type is not considered while  processing  lsa
refresh timer  expiry   which intern makes it flushed from lsdb.

Signed-off-by: rgirada <rgirada@vmware.com>
6 years agoMerge pull request #3125 from dslicenc/linklocal-nht
Russ White [Mon, 8 Oct 2018 01:47:01 +0000 (21:47 -0400)]
Merge pull request #3125 from dslicenc/linklocal-nht

bgpd: allow nht registration on ipv6 link-local addresses

6 years agoMerge pull request #3133 from qlyoung/bgp-fix-broken-show-community-cmds
Russ White [Mon, 8 Oct 2018 01:45:33 +0000 (21:45 -0400)]
Merge pull request #3133 from qlyoung/bgp-fix-broken-show-community-cmds

fix broken bgp community show cmds

6 years agoMerge pull request #3135 from donaldsharp/zapi_handler_cabbage
Jafar Al-Gharaibeh [Sat, 6 Oct 2018 05:20:12 +0000 (00:20 -0500)]
Merge pull request #3135 from donaldsharp/zapi_handler_cabbage

zebra: Cleanup call parameters to some functions

6 years agoMerge pull request #3119 from pacovn/Coverity_1465497_dead_code
Jafar Al-Gharaibeh [Sat, 6 Oct 2018 05:18:52 +0000 (00:18 -0500)]
Merge pull request #3119 from pacovn/Coverity_1465497_dead_code

zebra: dead code (Coverity 1465497)

6 years agozebra: Cleanup unused file
Donald Sharp [Fri, 5 Oct 2018 01:31:18 +0000 (21:31 -0400)]
zebra: Cleanup unused file

The zebra_vxlan_null.c file is never used.  Let's remove
from our build system.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoisisd: Track BFD state and take down adjacency on failure
Christian Franke [Fri, 28 Sep 2018 18:33:55 +0000 (20:33 +0200)]
isisd: Track BFD state and take down adjacency on failure

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agoisisd: Add debugging for BFD
Christian Franke [Fri, 28 Sep 2018 17:35:10 +0000 (19:35 +0200)]
isisd: Add debugging for BFD

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agoisisd: Implement BFD replay function
Christian Franke [Fri, 28 Sep 2018 15:23:30 +0000 (17:23 +0200)]
isisd: Implement BFD replay function

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agoisisd: Register/deregister BFD peers for adjacencies
Christian Franke [Fri, 28 Sep 2018 15:05:15 +0000 (17:05 +0200)]
isisd: Register/deregister BFD peers for adjacencies

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agoisisd: Write BFD config
Christian Franke [Fri, 28 Sep 2018 13:41:33 +0000 (15:41 +0200)]
isisd: Write BFD config

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agoisisd: Add a hook when writing interface config
Christian Franke [Fri, 28 Sep 2018 13:39:01 +0000 (15:39 +0200)]
isisd: Add a hook when writing interface config

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agoisisd: Add BFD configuration commands
Christian Franke [Fri, 28 Sep 2018 13:20:28 +0000 (15:20 +0200)]
isisd: Add BFD configuration commands

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agoisisd: Replace isis_event_adjacency_state_change with a hook
Christian Franke [Thu, 27 Sep 2018 12:23:06 +0000 (14:23 +0200)]
isisd: Replace isis_event_adjacency_state_change with a hook

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agoisisd: Register as BFD client
Christian Franke [Thu, 20 Sep 2018 13:38:22 +0000 (15:38 +0200)]
isisd: Register as BFD client

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agoisisd: Add forward declaration of struct isis_route_info
Christian Franke [Thu, 20 Sep 2018 13:28:23 +0000 (15:28 +0200)]
isisd: Add forward declaration of struct isis_route_info

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agozebra_ptm: Add IS-IS and OpenFabric as protocols supporting BFD
Christian Franke [Thu, 20 Sep 2018 13:11:09 +0000 (15:11 +0200)]
zebra_ptm: Add IS-IS and OpenFabric as protocols supporting BFD

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agozebra_ptm: Introduce IS_BFD_ENABLED_PROTOCOL macro
Christian Franke [Thu, 20 Sep 2018 13:09:43 +0000 (15:09 +0200)]
zebra_ptm: Introduce IS_BFD_ENABLED_PROTOCOL macro

Unify the check if a client supports BFD into one location.

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
6 years agodoc: correct route map match for prefix lists
Tore Anderson [Thu, 4 Oct 2018 11:32:20 +0000 (13:32 +0200)]
doc: correct route map match for prefix lists

This corrects the route map documentation to add the missing "prefix-list"
keyword, which is necessary when matching against a prefix list (as opposed to
an access list).

Additionally, change hyphens for underscores in the variables the user is
supposed to substitute in those commands, to prevent any confusion with the
"prefix-list" keyword itself, and also to make it more consistent with the
other documented commands (which are already using underscores).

Signed-off-by: Tore Anderson <tore@redpill-linpro.com>
6 years agobgpd: remove ip prefix from as-path, <large,ext>community-list
Sarita Patra [Mon, 17 Sep 2018 07:33:22 +0000 (00:33 -0700)]
bgpd: remove ip prefix from as-path, <large,ext>community-list

The existing commands "ip as-path", "ip community list", "ip extcommunity
list" & "ip largecommunity list" is used to configure both for ipv4 and
ipv6. So the prefix "ip" is removed from these commands.
All the configuration, show related configuration, show running config
& boot up with write memory is also verified with the provided fix.

Signed-off-by: Sarita Patra <saritap@vmware.com>
6 years agoMerge pull request #3098 from opensourcerouting/watchfrr-delay
Quentin Young [Thu, 4 Oct 2018 19:04:56 +0000 (15:04 -0400)]
Merge pull request #3098 from opensourcerouting/watchfrr-delay

tools/frr + watchfrr spring cleaning (southern hemisphere)

6 years agobgpd: complete description code for communities
Quentin Young [Thu, 4 Oct 2018 18:10:09 +0000 (18:10 +0000)]
bgpd: complete description code for communities

When this description code was added, it was all dead code since none of
the bools that checked if the communities were present were ever changed
from 0.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agobgpd: fix broken show community commands
Quentin Young [Thu, 4 Oct 2018 17:46:52 +0000 (17:46 +0000)]
bgpd: fix broken show community commands

SHA c5f1e1b broke about half of the community-related show commands; fix
them

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #3126 from pacovn/Coverity_1424529_null_check
Rafael Zalamena [Thu, 4 Oct 2018 13:37:06 +0000 (10:37 -0300)]
Merge pull request #3126 from pacovn/Coverity_1424529_null_check

isisd: null check (Coverity 1424529)

6 years agoMerge pull request #3127 from pacovn/Coverity_1472236_Improper_use_of_negative_value
Donald Sharp [Thu, 4 Oct 2018 13:26:33 +0000 (09:26 -0400)]
Merge pull request #3127 from pacovn/Coverity_1472236_Improper_use_of_negative_value

zebra: netlink socket check (Coverity 1472236)

6 years agoMerge pull request #3128 from donaldsharp/cpp_notice_build_failure
David Lamparter [Thu, 4 Oct 2018 09:09:48 +0000 (11:09 +0200)]
Merge pull request #3128 from donaldsharp/cpp_notice_build_failure

lib: Include compiler.h as early as is possible in the build

6 years agoMerge pull request #3087 from opensourcerouting/bfd-memleak
Quentin Young [Wed, 3 Oct 2018 22:43:34 +0000 (18:43 -0400)]
Merge pull request #3087 from opensourcerouting/bfd-memleak

bfdd: fix memory leak and echo-mode start

6 years agoMerge pull request #3043 from qlyoung/doc-bgpd-multiple-ass
Lou Berger [Wed, 3 Oct 2018 22:03:48 +0000 (18:03 -0400)]
Merge pull request #3043 from qlyoung/doc-bgpd-multiple-ass

Doc bgpd multiple ASes

6 years agolib: refactor thread_execute
Rafael Zalamena [Mon, 1 Oct 2018 16:38:34 +0000 (13:38 -0300)]
lib: refactor thread_execute

Don't allocate threads in the stack, but use the standardized
`thread_get` and `thread_add_unused` to avoid creating corner cases in
the thread API.

This fixes a thread mutex memory leak in FreeBSD.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agolib: fix a memory leak in FreeBSD
Rafael Zalamena [Tue, 25 Sep 2018 15:05:53 +0000 (12:05 -0300)]
lib: fix a memory leak in FreeBSD

Two important changes:
* Centralize the thread teardown procedure;
* Save and restore thread mutex context to avoid losing the memory
  pointer;

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agozebra: netlink socket check (Coverity 1472236)
F. Aragon [Wed, 3 Oct 2018 14:57:17 +0000 (16:57 +0200)]
zebra: netlink socket check (Coverity 1472236)

Signed-off-by: F. Aragon <paco@voltanet.io>
6 years agolib: Include compiler.h as early as is possible in the build
Donald Sharp [Wed, 3 Oct 2018 16:27:57 +0000 (12:27 -0400)]
lib: Include compiler.h as early as is possible in the build

The compiler.h header provides us with some useful macro's
that we are using in the system.  We do not know exactly
where the CPP_NOTICE and CPP_WARN macros are used but
they can move around.  Place this header early in the
build then.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoisisd: null check (Coverity 1424529)
F. Aragon [Wed, 3 Oct 2018 14:38:49 +0000 (16:38 +0200)]
isisd: null check (Coverity 1424529)

Signed-off-by: F. Aragon <paco@voltanet.io>
6 years agobgpd: allow nht registration on ipv6 link-local addresses
Don Slice [Tue, 25 Sep 2018 13:22:22 +0000 (06:22 -0700)]
bgpd: allow nht registration on ipv6 link-local addresses

Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Testing Done: bgp-smoke completed with no new failures

While testing 5549 support using global addresses, discovered that
ipv6 nexthop tracking thru a route-reflector didn't work.  Since
the next-hop used for remote nexthops resolves to the link-local
of the route-reflector, we need to track it in order to react to
interface down events.  Also tripped over a crash in certain cases
which is also resolved in this fix.

6 years agodoc: embellish bgp view docs
Quentin Young [Tue, 2 Oct 2018 15:31:48 +0000 (15:31 +0000)]
doc: embellish bgp view docs

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: add extra information on bgp views and vrfs
Quentin Young [Mon, 1 Oct 2018 17:30:56 +0000 (17:30 +0000)]
doc: add extra information on bgp views and vrfs

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agodoc: clarify documentation on BGP multiple AS
Quentin Young [Mon, 17 Sep 2018 19:18:47 +0000 (19:18 +0000)]
doc: clarify documentation on BGP multiple AS

Documentation on how to use multiple autonomous systems was inaccurate
and a bit scattered. Clarify usage of VRFs with multiple autonomous
systems, how to configure them, and their distinction from views. Also
moves a block on L3VPN VRFs out of the 'Basic Concepts' section.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
6 years agoMerge pull request #3004 from donaldsharp/other_peer
Lou Berger [Tue, 2 Oct 2018 15:40:09 +0000 (11:40 -0400)]
Merge pull request #3004 from donaldsharp/other_peer

bgpd: Try to notice when configuration changes during startup

6 years agoMerge pull request #3108 from dmbaturin/master
Martin Winter [Tue, 2 Oct 2018 14:58:12 +0000 (16:58 +0200)]
Merge pull request #3108 from dmbaturin/master

Add a script for building a Debian package in one step.

6 years agoMerge pull request #3113 from donaldsharp/uninited_value
David Lamparter [Tue, 2 Oct 2018 14:17:10 +0000 (16:17 +0200)]
Merge pull request #3113 from donaldsharp/uninited_value

bgpd: prevent uninited variable from being used.

6 years agoMerge pull request #3120 from opensourcerouting/remove-list-delete
Lou Berger [Tue, 2 Oct 2018 14:03:46 +0000 (10:03 -0400)]
Merge pull request #3120 from opensourcerouting/remove-list-delete

lib: remove deprecated list_delete()/list_free()

6 years agozebra: dead code (Coverity 1465497)
F. Aragon [Tue, 2 Oct 2018 09:05:40 +0000 (11:05 +0200)]
zebra: dead code (Coverity 1465497)

The condition in the do/while is always false because 'return_nsid' cannot
reach the end of the loop with 'return_nsid' having a different value than
NS_UNKNOWN. Because of that, the condition can be replaced with 0 (false).
Also, the loop can be removed because the two assignments made at the end
of the loop before the condition check are not used (detected via Clang,
afterwards).

Signed-off-by: F. Aragon <paco@voltanet.io>
6 years agobgpd: prevent uninited variable from being used.
Donald Sharp [Mon, 1 Oct 2018 18:15:58 +0000 (14:15 -0400)]
bgpd: prevent uninited variable from being used.

Valgrind reports that temp could be used uninitialized
sometimes.

Signed-off-by: Donald sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #3116 from opensourcerouting/libfrr-exec
Lou Berger [Tue, 2 Oct 2018 11:03:08 +0000 (07:03 -0400)]
Merge pull request #3116 from opensourcerouting/libfrr-exec

lib: print version information in libfrr.so

6 years agotools/frr: remove "watchfrr.started" hack
David Lamparter [Thu, 27 Sep 2018 02:46:17 +0000 (04:46 +0200)]
tools/frr: remove "watchfrr.started" hack

This is no longer neccessary since start-stop-daemon will block until
watchfrr's launch parent has exited.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agowatchfrr, lib: cleanup & delay detaching
David Lamparter [Thu, 27 Sep 2018 02:18:48 +0000 (04:18 +0200)]
watchfrr, lib: cleanup & delay detaching

This cleans up watchfrr to be more "normal" like the other daemons in
terms of what it does in main(), i.e. using the full frr_*() call set.

Also, this changes the startup behaviour on watchfrr to stay attached on
the daemon's parent process until startup is really complete.  This
should allow removing the "watchfrr.started" hack at some point.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agoMerge pull request #3117 from pacovn/Coverity_1460436_dead_code
David Lamparter [Tue, 2 Oct 2018 10:24:44 +0000 (12:24 +0200)]
Merge pull request #3117 from pacovn/Coverity_1460436_dead_code

eigrpd: dead code (Coverity 1460436)

6 years agoMerge pull request #3118 from pacovn/Coverity_1399231_dead_code
David Lamparter [Tue, 2 Oct 2018 10:13:43 +0000 (12:13 +0200)]
Merge pull request #3118 from pacovn/Coverity_1399231_dead_code

ospf6d: dead code (Coverity 1399231)

6 years ago*: list_delete_and_null() -> list_delete()
David Lamparter [Tue, 2 Oct 2018 09:39:51 +0000 (11:39 +0200)]
*: list_delete_and_null() -> list_delete()

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agolib: remove deprecated list_delete()/list_free()
David Lamparter [Tue, 2 Oct 2018 09:33:39 +0000 (11:33 +0200)]
lib: remove deprecated list_delete()/list_free()

Deprecation time has passed.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agoMerge pull request #3102 from ton31337/feature/match_blackhole_nexthops
David Lamparter [Tue, 2 Oct 2018 09:29:59 +0000 (11:29 +0200)]
Merge pull request #3102 from ton31337/feature/match_blackhole_nexthops

bgpd: Match routes by type under route-maps

6 years agoospf6d: dead code (Coverity 1399231)
F. Aragon [Tue, 2 Oct 2018 08:51:47 +0000 (10:51 +0200)]
ospf6d: dead code (Coverity 1399231)

The dead code has been disabled with '#if 0', in a similar way to other
disabled logs in the same function.

Signed-off-by: F. Aragon <paco@voltanet.io>
6 years agoeigrpd: dead code (Coverity 1460436)
F. Aragon [Tue, 2 Oct 2018 08:46:20 +0000 (10:46 +0200)]
eigrpd: dead code (Coverity 1460436)

Signed-off-by: F. Aragon <paco@voltanet.io>
6 years agolib: print version information in libfrr.so
David Lamparter [Mon, 1 Oct 2018 17:02:39 +0000 (19:02 +0200)]
lib: print version information in libfrr.so

This makes libfrr.so executable to print its version info.  This is
useful if you need to check your libfrr.so matches your daemons.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobgpd: Match routes by type under route-maps
Donatas Abraitis [Fri, 28 Sep 2018 08:51:50 +0000 (11:51 +0300)]
bgpd: Match routes by type under route-maps

Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
6 years agotools: add a script for building a Debian package in one step.
Daniil Baturin [Mon, 1 Oct 2018 18:38:44 +0000 (20:38 +0200)]
tools: add a script for building a Debian package in one step.

The script simplifies the relatively lengthy procedure.
It should be invoked from the top level source directory, for example:
./tools/build-debian-package.sh

Signed-off-by: Daniil Baturin <daniil@baturin.org>
6 years agoMerge pull request #3097 from opensourcerouting/static-linking
Lou Berger [Mon, 1 Oct 2018 17:29:18 +0000 (13:29 -0400)]
Merge pull request #3097 from opensourcerouting/static-linking

build: add --enable-static-bin option

6 years agobfdd: allow timer deactivation on shutdown
Rafael Zalamena [Thu, 13 Sep 2018 13:10:01 +0000 (10:10 -0300)]
bfdd: allow timer deactivation on shutdown

Peers being shutdown were keeping their timers, so move the cancel code
before the shutdown check.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agobfdd: disable echo on neighbor request
Rafael Zalamena [Thu, 13 Sep 2018 13:09:03 +0000 (10:09 -0300)]
bfdd: disable echo on neighbor request

Don't send echo packets when the neighbor configures echo-interval of 0
(e.g. disabled).

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
6 years agoMerge pull request #3105 from opensourcerouting/fix/sphinx-stamp
Quentin Young [Mon, 1 Oct 2018 16:35:45 +0000 (12:35 -0400)]
Merge pull request #3105 from opensourcerouting/fix/sphinx-stamp

doc: Use `mv -f` in Makefile

6 years agoospfd: fix symbol collision
David Lamparter [Mon, 1 Oct 2018 12:55:06 +0000 (14:55 +0200)]
ospfd: fix symbol collision

debug_init() was recently added in libfrr, which is now causing a build
error with static linking.

Signed-off-by: David Lamparter <equinox@diac24.net>
6 years agobgpd: Try to notice when configuration changes during startup
Donald Sharp [Tue, 11 Sep 2018 12:13:42 +0000 (08:13 -0400)]
bgpd: Try to notice when configuration changes during startup

During peer startup there exists the possibility that both
locally and remote peers try to start communication at the
same time.  In addition it is possible for local configuration
to change at the same time this is going on.  When this happens
try to notice that the remote peer may be in opensent or openconfirm
and if so we need to restart the connection from both sides.

Additionally try to write a bit of extra code in peer_xfer_conn
to notice when this happens and to emit a error message to
the end user about this happening so that it can be cleaned up.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #3086 from patrasar/1836
David Lamparter [Mon, 1 Oct 2018 13:26:40 +0000 (15:26 +0200)]
Merge pull request #3086 from patrasar/1836

ospfd: handling of OSPF_AREA_RANGE_ADVERTISE flag