]> git.puffer.fish Git - mirror/frr.git/log
mirror/frr.git
7 years agopimd: No need to assert on the redist_default
Donald Sharp [Mon, 22 Jan 2018 23:22:09 +0000 (18:22 -0500)]
pimd: No need to assert on the redist_default

zclient_init sets the redist_default to the appropriate
value, testing it with an assert doesn't really provide
us with much of anything useful.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agolib: Unset bitmap when not using it
Donald Sharp [Mon, 22 Jan 2018 23:18:38 +0000 (18:18 -0500)]
lib: Unset bitmap when not using it

The zclient->redist bitmap for vrf's was being set again
for the zclient_send_dereg_requests function.  This should
be a unset on tear down.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agolib: Cleanup some zclient clutter.
Donald Sharp [Mon, 22 Jan 2018 23:16:59 +0000 (18:16 -0500)]
lib: Cleanup some zclient clutter.

The zclient code can be cleaned up a tiny bit and hopefully
improve it's indentation some.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #1655 from LabNConsulting/working/master/consistent_count
Quentin Young [Mon, 22 Jan 2018 23:53:19 +0000 (18:53 -0500)]
Merge pull request #1655 from LabNConsulting/working/master/consistent_count

bgpd: update last_update whenever obuf sent

7 years agobgpd: update last_update whenever obuf sent 1655/head
Lou Berger [Sun, 7 Jan 2018 14:41:53 +0000 (09:41 -0500)]
bgpd: update last_update whenever obuf sent
      (to be consistent with last_write updates)

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agoMerge pull request #1663 from donaldsharp/mpls
Renato Westphal [Mon, 22 Jan 2018 19:43:10 +0000 (17:43 -0200)]
Merge pull request #1663 from donaldsharp/mpls

Mpls

7 years agoMerge pull request #1656 from ak503/bgp
Renato Westphal [Mon, 22 Jan 2018 19:03:58 +0000 (17:03 -0200)]
Merge pull request #1656 from ak503/bgp

bgp: small fix for write to 'address-family l2vpn evpn' configuration

7 years agozebra: implement recursive MPLS labels 1663/head
Renato Westphal [Wed, 20 Sep 2017 03:05:25 +0000 (00:05 -0300)]
zebra: implement recursive MPLS labels

When a nexthop is resolved via a label based nexthop, copy
the labels into the newly created recursive nexthop.

Please note that this does not fix the case where we
have a label based nexthop that is recursively resolved
through *another* nexthop that is also label based.
In this case we need to create a new label stack
for those routes.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agozebra: use zclient_create_header
Donald Sharp [Mon, 22 Jan 2018 13:16:27 +0000 (08:16 -0500)]
zebra: use zclient_create_header

The function zserv_create_header was exactly the same
as zclient_create_header.  Let's just have one in the
system.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agolib, zebra: Rename and place appropriately the label stack
Donald Sharp [Sun, 21 Jan 2018 21:11:50 +0000 (16:11 -0500)]
lib, zebra: Rename and place appropriately the label stack

Fix and rename the label stack to be better named.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #1651 from donaldsharp/redhat_build_fpm
Russ White [Mon, 22 Jan 2018 14:16:21 +0000 (09:16 -0500)]
Merge pull request #1651 from donaldsharp/redhat_build_fpm

redhat: Build with FPM

7 years agoMerge pull request #1658 from Orange-OpenSource/TE
Russ White [Mon, 22 Jan 2018 14:01:39 +0000 (09:01 -0500)]
Merge pull request #1658 from Orange-OpenSource/TE

Doc: Update OSPF-TE and ISIS-TE example

7 years agoMerge pull request #1587 from pguibert6WIND/issue_385_step23
Russ White [Mon, 22 Jan 2018 14:01:01 +0000 (09:01 -0500)]
Merge pull request #1587 from pguibert6WIND/issue_385_step23

Netns Support / passing vrf_id_t to 32 bit work

7 years agozebra: replace 0 value on zebra with NS_DEFAULT 1587/head
Philippe Guibert [Mon, 22 Jan 2018 08:55:26 +0000 (09:55 +0100)]
zebra: replace 0 value on zebra with NS_DEFAULT

On some places, macro NS_DEFAULT was not used. This commit is replacind
on some identified places where 0 can be replaced with NS_DEFAULT macro.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
7 years agozebra: replace 0 value on zebra with VRF_DEFAULT
Philippe Guibert [Mon, 22 Jan 2018 08:38:45 +0000 (09:38 +0100)]
zebra: replace 0 value on zebra with VRF_DEFAULT

On some places of code, the VRF_DEFAULT define was not used. This commit
is ensuring that the macros is well used.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
7 years agobgpd: bgp_redist_lookup param handles instances, not vrfs
Philippe Guibert [Thu, 11 Jan 2018 08:11:36 +0000 (09:11 +0100)]
bgpd: bgp_redist_lookup param handles instances, not vrfs

The VRF_DEFAULT parameter is incorrectly used. The 0 value for the bgp
instance is passed instead.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
fixup bgpd: fix compilation issue with bgpd

7 years agopim: fix compilation issue with pim
Philippe Guibert [Mon, 18 Dec 2017 11:42:12 +0000 (12:42 +0100)]
pim: fix compilation issue with pim

The change of vrf_id_t from 16 bit to 32 bit needs some changes in pim
daemon.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
7 years agobgpd: fix compilation issue with bgpd
Philippe Guibert [Mon, 18 Dec 2017 11:33:29 +0000 (12:33 +0100)]
bgpd: fix compilation issue with bgpd

Changes due to the change of vrf_id_t moved from 16 bits to 32 bits.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
7 years agoospfd: fix compilation issue with ospfd
Philippe Guibert [Mon, 18 Dec 2017 11:07:22 +0000 (12:07 +0100)]
ospfd: fix compilation issue with ospfd

the change of vrf_id field from 16 bit to 32 bit leads to some changes
in other daemon.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
7 years agolib: ns_id_t changed to 32 bit
Philippe Guibert [Wed, 10 Jan 2018 13:13:50 +0000 (14:13 +0100)]
lib: ns_id_t changed to 32 bit

Because the VRF_ID is mapped into 32 bit, and because when NETNS will be
the backend of VRF, then the NS identifier must also be encoded as 32
bit.
Also, the NS_UNKNOWN value is changed accordingly to UINT32_MAX.
Also, the NS_UNKNOWN and NS_DEFAULT values are removed from zebra_ns.h
and kept on ns.h header file.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
7 years agolib: vrf_bitmap_groups increased from 8 to 1024
Philippe Guibert [Thu, 4 Jan 2018 13:30:28 +0000 (14:30 +0100)]
lib: vrf_bitmap_groups increased from 8 to 1024

The number of vrf bitmap groups is increased so as to avoid consuming
too much memory. This fix is related to a fork memory that occured when
running pimd as daemon.
A check on memory consumed shows that the memory consumed goes from
33480ko to 46888ko with that change. This is less compared to if the
value of the bitmap groups is increased to 16 ( 852776ko).

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
7 years agolib: increase vrf_id from 16 bit to 32 bit identifier
Philippe Guibert [Thu, 14 Dec 2017 15:01:36 +0000 (16:01 +0100)]
lib: increase vrf_id from 16 bit to 32 bit  identifier

This is a preparatory work for configuring vrf/frr over netns
vrf structure is being changed to 32 bit, and the VRF will have the
possibility to have a backend made up of NETNS.

Let's put some history.
Initially the 32 bit was because one wanted to map on vrf_id both the
VRFLITE and the NSID.
Initially, one would have liked to make zebra configure at the same time
both vrf lite and vrf from netns in a flat way. From the show
running perspective, one would have had both kind of vrfs, thatone
would configure on the same way.
however, it leads to inconsistencies in concepts, because it mixes vrf
vrf with vrf, and vrf is not always mapped with netns.
For instance, logical-router could also be used with netns. In that
case, it would not be possible to map vrf with netns.
There was an other reason why 32 bit is proposed. this is because
some systems handle NSID to 32 bits. As vrf lite exists only on
Linux, there are other systems that would like to use an other vrf
backend than vrf lite. The netns backend for vrf will be used for that
too. for instance, for windows or freebsd, some similar
netns concept exists; so it will be easier to reuse netns
backend for vrf, than reusing vrflite backend for vrf.

This commit is here to extend vrf_id to 32 bits. Following commits in a
second step will help in enable a VRF backend.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
7 years agoMerge pull request #1661 from donaldsharp/connected
Renato Westphal [Mon, 22 Jan 2018 11:47:04 +0000 (09:47 -0200)]
Merge pull request #1661 from donaldsharp/connected

zebra: Install connected routes during VRF change only if interface i…

7 years agozebra: Install connected routes during VRF change only if interface is up 1661/head
vivek [Sat, 20 Jan 2018 21:21:05 +0000 (13:21 -0800)]
zebra: Install connected routes during VRF change only if interface is up

During VRF change handling, the connected route for the interface should be
installed only if the interface is up. Otherwise, we end up with duplicate
connected routes which can lead to other problems.

Signed-off-by: Vivek Venkatraman <vivek@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
Ticket: CM-19364
Reviewed By: CCR-7099
Testing Done: Manual verification

7 years agoMerge pull request #1647 from chiragshah6/ospf_vrf_dev
Olivier Dugeon [Fri, 19 Jan 2018 16:40:14 +0000 (17:40 +0100)]
Merge pull request #1647 from chiragshah6/ospf_vrf_dev

ospfd: show ip ospf interface json output format

7 years agoDoc: Update OSPF-TE and ISIS-TE example 1658/head
Olivier Dugeon [Fri, 19 Jan 2018 15:27:26 +0000 (16:27 +0100)]
Doc: Update OSPF-TE and ISIS-TE example

 - In ospfd and isisd documentation, Traffic Engineering examples
are referring to old interface syntax. Update both examples to
'link-param' syntax.

Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
7 years agoMerge pull request #1630 from LabNConsulting/working/master/pr1629-no-json
Donald Sharp [Fri, 19 Jan 2018 12:59:34 +0000 (07:59 -0500)]
Merge pull request #1630 from LabNConsulting/working/master/pr1629-no-json

bgpd: fix reporting of no vpn routes (no json)

7 years agobgp: small fix for write to 'address-family l2vpn evpn' configuration 1656/head
dturlupov [Fri, 19 Jan 2018 07:53:32 +0000 (10:53 +0300)]
bgp: small fix for write to 'address-family l2vpn evpn' configuration

7 years agoMerge pull request #1566 from chiragshah6/ospfv3_dev
Jafar Al-Gharaibeh [Thu, 18 Jan 2018 16:54:52 +0000 (10:54 -0600)]
Merge pull request #1566 from chiragshah6/ospfv3_dev

ospf6d: Fix External routes ECMP

7 years agoMerge pull request #1645 from qlyoung/fix-cancel-invalid-rw
Jafar Al-Gharaibeh [Thu, 18 Jan 2018 15:37:24 +0000 (09:37 -0600)]
Merge pull request #1645 from qlyoung/fix-cancel-invalid-rw

lib: avoid crash when cancelling invalid rw job

7 years agoMerge pull request #1648 from dwalton76/frr-reload
Jafar Al-Gharaibeh [Thu, 18 Jan 2018 15:32:41 +0000 (09:32 -0600)]
Merge pull request #1648 from dwalton76/frr-reload

tools: frr-reload 'vni' keyword does not always create a sub-context

7 years agoMerge pull request #1646 from qlyoung/update-readme
Jafar Al-Gharaibeh [Thu, 18 Jan 2018 15:27:48 +0000 (09:27 -0600)]
Merge pull request #1646 from qlyoung/update-readme

frr: update README

7 years agozebra: Add some more debug information on read issues in FPM 1651/head
Donald Sharp [Thu, 18 Jan 2018 14:17:57 +0000 (09:17 -0500)]
zebra: Add some more debug information on read issues in FPM

When we receive a read failure in handling a FPM read
let's add a bit more information to what we think has
gone wrong, in a hope that debugging will be a bit easier.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoredhat: Build with FPM
Donald Sharp [Thu, 18 Jan 2018 14:05:36 +0000 (09:05 -0500)]
redhat: Build with FPM

Build redhat rpm's with FPM.  It's a module so not
a bad idea.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #1650 from donaldsharp/hash_it_fucker
Renato Westphal [Wed, 17 Jan 2018 22:59:56 +0000 (20:59 -0200)]
Merge pull request #1650 from donaldsharp/hash_it_fucker

bgpd: Remove peer->hash as that it is unused

7 years agoMerge pull request #1649 from donaldsharp/ospfd_lsdb_loop
Renato Westphal [Wed, 17 Jan 2018 22:58:18 +0000 (20:58 -0200)]
Merge pull request #1649 from donaldsharp/ospfd_lsdb_loop

ospfd: LSDB_LOOP treat it as a loop.

7 years agobgpd: Remove peer->hash as that it is unused 1650/head
Donald Sharp [Wed, 17 Jan 2018 19:17:15 +0000 (14:17 -0500)]
bgpd: Remove peer->hash as that it is unused

The peer->hash pointer is allocating a bunch of memory
but is never used.  Remove.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoospfd: LSDB_LOOP treat it as a loop. 1649/head
Donald Sharp [Wed, 17 Jan 2018 18:28:17 +0000 (13:28 -0500)]
ospfd: LSDB_LOOP treat it as a loop.

Inform the .clang-format file about LSDB_LOOP and
put the proper indentation for this loop into the
code.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agotools: frr-reload 'vni' keyword does not always create a sub-context 1648/head
Daniel Walton [Wed, 17 Jan 2018 15:57:50 +0000 (15:57 +0000)]
tools: frr-reload 'vni' keyword does not always create a sub-context

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
7 years agofrr: update README 1646/head
Quentin Young [Tue, 16 Jan 2018 20:44:14 +0000 (15:44 -0500)]
frr: update README

* Clarify that FRR implements as well as manages protocols
* Move IS-IS out of "early support"
* Add Babel - friends don't leave friends out of READMEs!
* Add mention of further information

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoospfd: show ip ospf interface json output format 1647/head
Chirag Shah [Sat, 30 Dec 2017 05:01:07 +0000 (21:01 -0800)]
ospfd: show ip ospf interface json output format

Current json output does not differentiate start of
interface objects. Adding "interfaces" keyword at the
beginning of the interface list. This is useful
when displaying vrf level output along with interface list.

Ticket:CM-19115
Testing Done:
show ip ospf vrf all interface json
show ip ospf vrf all interface <specific intf> json
show ip ospf interface json
show ip ospf interface <specific intf> json

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
7 years agoMerge pull request #1634 from qlyoung/vtysh-output-file
Russ White [Tue, 16 Jan 2018 20:31:50 +0000 (15:31 -0500)]
Merge pull request #1634 from qlyoung/vtysh-output-file

vtysh: add ability to output to file

7 years agoMerge pull request #1627 from qlyoung/bgp-autoshutdown
Russ White [Tue, 16 Jan 2018 20:29:17 +0000 (15:29 -0500)]
Merge pull request #1627 from qlyoung/bgp-autoshutdown

BGP auto-shutdown

7 years agolib: avoid crash when cancelling invalid rw job 1645/head
Quentin Young [Fri, 1 Dec 2017 19:44:32 +0000 (14:44 -0500)]
lib: avoid crash when cancelling invalid rw job

There are some observed instances where we end up trying to cancel a rw
job based on a file descriptor that we don't have a reference on. The
specific cancel function for rw jobs assumes it's called with a file
descriptor that is valid within pollfds and will cause a segmentation
fault by buffer overrun if this is not the case.

Instead log it and move on. Since the fd does not exist this should
patch over the buggy behavior and provide additional information to help
in finding the root cause.

Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge pull request #1625 from qlyoung/fix-peer-group-admin-shutdown-override
Renato Westphal [Tue, 16 Jan 2018 19:40:35 +0000 (17:40 -0200)]
Merge pull request #1625 from qlyoung/fix-peer-group-admin-shutdown-override

bgpd: preserve admin shutdown on peer-group add

7 years agoMerge pull request #1611 from qlyoung/fix-vtysh-perf
Renato Westphal [Tue, 16 Jan 2018 19:31:10 +0000 (17:31 -0200)]
Merge pull request #1611 from qlyoung/fix-vtysh-perf

vtysh: optimize printout routine

7 years agoMerge pull request #1632 from dwalton76/bgpd-localas-allowasin
Russ White [Tue, 16 Jan 2018 18:48:46 +0000 (13:48 -0500)]
Merge pull request #1632 from dwalton76/bgpd-localas-allowasin

BGP "allowas-in" should accept AS paths with "local-as"

7 years agoMerge pull request #1614 from qlyoung/imp-bgpd-pthread-startup-sync
Lou Berger [Tue, 16 Jan 2018 18:43:27 +0000 (13:43 -0500)]
Merge pull request #1614 from qlyoung/imp-bgpd-pthread-startup-sync

improve bgpd thread startup characteristics

7 years agoMerge pull request #1642 from chiragshah6/mdev1
Olivier Dugeon [Tue, 16 Jan 2018 17:02:45 +0000 (18:02 +0100)]
Merge pull request #1642 from chiragshah6/mdev1

ospfd: Speed up show ip ospf [vrf all] route json

7 years agoMerge pull request #1638 from LabNConsulting/working/master/vnc2zebra
Renato Westphal [Tue, 16 Jan 2018 12:19:57 +0000 (10:19 -0200)]
Merge pull request #1638 from LabNConsulting/working/master/vnc2zebra

bgpd: fix handling of nhp_ary when exporting vrf routes to zebra

7 years agoMerge pull request #1635 from qlyoung/bgpd-remove-options-directly-connected
Renato Westphal [Tue, 16 Jan 2018 12:11:39 +0000 (10:11 -0200)]
Merge pull request #1635 from qlyoung/bgpd-remove-options-directly-connected

bgpd: disallow invalid config at cli layer

7 years agoMerge pull request #1612 from chiragshah6/mdev
Renato Westphal [Tue, 16 Jan 2018 12:08:10 +0000 (10:08 -0200)]
Merge pull request #1612 from chiragshah6/mdev

ospf6d: Add protocol stats and show command

7 years agoospfd: Speed up show ip ospf [vrf all] route json 1642/head
Chirag Shah [Tue, 16 Jan 2018 01:49:23 +0000 (17:49 -0800)]
ospfd: Speed up show ip ospf [vrf all] route json

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
7 years agoospf6d: Add protocol stats and show command 1612/head
Chirag Shah [Tue, 9 Jan 2018 00:53:53 +0000 (16:53 -0800)]
ospf6d: Add protocol stats and show command

Add OSPFv3 Protocol incoming/outgoing packets
stats.

r3# show ipv6 ospf6 interface traffic

Interface       HELLO            DB-Desc         LS-Req    LS-Update     LS-Ack
                Rx/Tx            Rx/Tx            Rx/Tx    Rx/Tx         Rx/Tx
--------------------------------------------------------------------------------------------
swp1              3/4              2/2             0/2     8/6           3/2
swp2              3/4              2/2             0/1     7/3           2/0
swp3              0/4              0/0             0/0     0/0           0/0

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
7 years agoMerge pull request #1623 from donaldsharp/zebra_interface_one_shot
Renato Westphal [Mon, 15 Jan 2018 12:35:39 +0000 (10:35 -0200)]
Merge pull request #1623 from donaldsharp/zebra_interface_one_shot

zebra: Add one-shot thread to recheck speed

7 years agobgpd: fix handling of nhp_ary when exporting vrf routes to zebra 1638/head
Lou Berger [Sun, 14 Jan 2018 20:42:06 +0000 (15:42 -0500)]
bgpd: fix handling of nhp_ary when exporting vrf routes to zebra

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agobgpd: add neighbor autoshutdown 1627/head
Quentin Young [Thu, 11 Jan 2018 17:50:08 +0000 (12:50 -0500)]
bgpd: add neighbor autoshutdown

Adds ability to specify that peers should be administratively shutdown
when first configured.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agobgpd: disallow invalid config at cli layer 1635/head
Quentin Young [Fri, 12 Jan 2018 19:57:57 +0000 (14:57 -0500)]
bgpd: disallow invalid config at cli layer

Remove the ability to attempt to configure a couple of options on
directly connected neighbors that don't make sense for them, as well as
the soft error handling code.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agovtysh: add ability to output to file 1634/head
Quentin Young [Fri, 12 Jan 2018 17:35:19 +0000 (12:35 -0500)]
vtysh: add ability to output to file

Add ability to set file destination for all vtysh output, with the
exception of tab-complete and similar meta output. This is useful for
inline recording of some information without exiting the shell.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoBGP "allowas-in" should accept AS paths with "local-as" 1632/head
Daniel Walton [Fri, 12 Jan 2018 15:31:16 +0000 (15:31 +0000)]
BGP "allowas-in" should accept AS paths with "local-as"

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
For issue #1548

7 years agoMerge pull request #1626 from LabNConsulting/working/master/vnc-config
Donald Sharp [Fri, 12 Jan 2018 13:54:36 +0000 (08:54 -0500)]
Merge pull request #1626 from LabNConsulting/working/master/vnc-config

bgp: don't show vnc response-lifetime config line when set to default…

7 years agobgpd: fix summary line reporting routes with RDs (no json case) 1630/head
Lou Berger [Fri, 12 Jan 2018 02:33:34 +0000 (21:33 -0500)]
bgpd: fix summary line reporting routes with RDs (no json case)

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agoMerge pull request #1455 from mkanjari/evpn-symmetric-routing
Philippe Guibert [Fri, 12 Jan 2018 07:27:37 +0000 (08:27 +0100)]
Merge pull request #1455 from mkanjari/evpn-symmetric-routing

Support for Evpn symmetric routing + EVPN Prefix route

7 years agoMerge pull request #1624 from qlyoung/fix-cmd-argc-max-usage
Renato Westphal [Fri, 12 Jan 2018 02:15:09 +0000 (00:15 -0200)]
Merge pull request #1624 from qlyoung/fix-cmd-argc-max-usage

lib, bgpd: fixup use of of CMD_ARGC_MAX

7 years agobgp: don't show vnc response-lifetime config line when set to default value 1626/head
Lou Berger [Thu, 11 Jan 2018 22:09:26 +0000 (17:09 -0500)]
bgp: don't show vnc response-lifetime config line when set to default value

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agobgpd: preserve admin shutdown on peer-group add 1625/head
Quentin Young [Thu, 11 Jan 2018 22:07:07 +0000 (17:07 -0500)]
bgpd: preserve admin shutdown on peer-group add

When a peer configured with administrative shutdown is added to a peer
group, the administrative shutdown status is discarded and the peer will
enter the BGP FSM. This is not what we want. Preserve the flag instead.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge branch 'master' into evpn-symmetric-routing 1455/head
Mitesh Kanjariya [Thu, 11 Jan 2018 17:57:47 +0000 (09:57 -0800)]
Merge branch 'master' into evpn-symmetric-routing

7 years agoMerge branch 'master' into evpn-symmetric-routing
Mitesh Kanjariya [Thu, 11 Jan 2018 17:00:23 +0000 (09:00 -0800)]
Merge branch 'master' into evpn-symmetric-routing

7 years agolib, bgpd: fixup use of of CMD_ARGC_MAX 1624/head
Quentin Young [Thu, 11 Jan 2018 16:31:45 +0000 (11:31 -0500)]
lib, bgpd: fixup use of of CMD_ARGC_MAX

The constant to limit # of allowed cli tokens on any one line was
defined in multiple places, all inconsistent with each other. Fix.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agozebra: Add one-shot thread to recheck speed 1623/head
Donald Sharp [Thu, 11 Jan 2018 00:01:57 +0000 (19:01 -0500)]
zebra: Add one-shot thread to recheck speed

There are certain interfaces that when brought up and we receive
the netlink notification about it, the speed of the interface is
not set correctly.  This creates a one-shot thread that will
wait 15 seconds and then requery the speed and if it is different
it will renotify the running daemons.

The kernel should notify us on speed changes, unfortunately this
is not done currently via a netlink message as you would think.
As I understand it there is some in-fighting about the proper
way to approach this issue and due to the way the kernel release
cycle works we are a ways off from getting this fixed.  This
is a `hack` to make us work correctly while we wait for the
true answer.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #1609 from dwalton76/ospf-reconfigure-area
Russ White [Thu, 11 Jan 2018 01:12:19 +0000 (20:12 -0500)]
Merge pull request #1609 from dwalton76/ospf-reconfigure-area

ospfd: do not complain if same area is reconfigured

7 years agoMerge pull request #1616 from qlyoung/sharpd-gitignore
Russ White [Thu, 11 Jan 2018 01:10:09 +0000 (20:10 -0500)]
Merge pull request #1616 from qlyoung/sharpd-gitignore

sharpd: add .gitignore

7 years agoMerge pull request #1619 from donaldsharp/bgp_debugging
Russ White [Thu, 11 Jan 2018 01:00:51 +0000 (20:00 -0500)]
Merge pull request #1619 from donaldsharp/bgp_debugging

bgpd: 'summary' to show NoNeg if peer did not negotiate afi/safi

7 years agoMerge pull request #1620 from dslicenc/bgpd-vrf-redist
Russ White [Thu, 11 Jan 2018 01:00:14 +0000 (20:00 -0500)]
Merge pull request #1620 from dslicenc/bgpd-vrf-redist

bgpd: fix updating redist bitmask when vrf_id changes

7 years agoMerge pull request #1591 from qlyoung/bgpd-ringbuf
Russ White [Thu, 11 Jan 2018 00:59:24 +0000 (19:59 -0500)]
Merge pull request #1591 from qlyoung/bgpd-ringbuf

bgpd: use ring buffer for network input

7 years agoMerge pull request #1586 from donaldsharp/1585_fix
Russ White [Thu, 11 Jan 2018 00:58:09 +0000 (19:58 -0500)]
Merge pull request #1586 from donaldsharp/1585_fix

bgpd: Fix peer uptime display in milliseconds

7 years agobgpd: fix updating redist bitmask when vrf_id changes 1620/head
Don Slice [Wed, 10 Jan 2018 19:40:45 +0000 (19:40 +0000)]
bgpd: fix updating redist bitmask when vrf_id changes

Problem reported that when "systemctl restart networking" was
performed, prefixes previously redistributed into bgp from connected
were deleted from the bgp table.  Determined that we were not correctly
changing the redistribution bitmask when the vrf_id of the vrf was
changed. This patch corrects that behavior.

Manual tests look good. bgp-min and vrf-min completed with no new failures.

Ticket: CM-19369
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #1608 from donaldsharp/use_source
Jafar Al-Gharaibeh [Wed, 10 Jan 2018 17:34:22 +0000 (11:34 -0600)]
Merge pull request #1608 from donaldsharp/use_source

pimd: Allow use-source to return more subtle error codes

7 years agobgpd: 'summary' to show NoNeg if peer did not negotiate afi/safi 1619/head
Daniel Walton [Thu, 31 Aug 2017 16:58:38 +0000 (16:58 +0000)]
bgpd: 'summary' to show NoNeg if peer did not negotiate afi/safi

If we have configured neighbor 1.1.1.1 for an afi/safi but they have not
activated that afi/safi with us then display "NoNeg" in the state column
of the summary output.  This is to make troubleshooting afi/safi
easier.

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
7 years agobgpd: move startup sync lock around 1614/head
Quentin Young [Wed, 10 Jan 2018 16:20:09 +0000 (11:20 -0500)]
bgpd: move startup sync lock around

Condition needs to be set inside critical section, otherwise i/o thread
can deadlock. Also unlock mutex once finished with it, no need to hold
the lock for the life of the program.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agosharpd: add .gitignore 1616/head
Quentin Young [Tue, 9 Jan 2018 20:53:51 +0000 (15:53 -0500)]
sharpd: add .gitignore

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge pull request #1615 from qlyoung/fix-bgpd-atomic-usage
Lou Berger [Tue, 9 Jan 2018 22:03:24 +0000 (17:03 -0500)]
Merge pull request #1615 from qlyoung/fix-bgpd-atomic-usage

bgpd: use atomic_* ops on _Atomic variables

7 years agobgpd: use atomic_* ops on _Atomic variables 1615/head
Quentin Young [Tue, 9 Jan 2018 20:38:17 +0000 (15:38 -0500)]
bgpd: use atomic_* ops on _Atomic variables

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agobgpd: improve bgp thread startup characteristics
Quentin Young [Tue, 9 Jan 2018 19:27:44 +0000 (14:27 -0500)]
bgpd: improve bgp thread startup characteristics

Replace atomic spinlock with condition variable.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agolib: add MTYPE for synchronization primitives
Quentin Young [Tue, 9 Jan 2018 18:59:33 +0000 (13:59 -0500)]
lib: add MTYPE for synchronization primitives

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agovtysh: optimize printout routine 1611/head
Quentin Young [Mon, 8 Jan 2018 21:40:49 +0000 (16:40 -0500)]
vtysh: optimize printout routine

When printing responses from a client, vtysh searches through every
response it receives twice. Once is to look for the terminating
sequence and the other is to translate \n to \0, which is used with the
line processing callback capability. However:

* There's no need to search all of the output for the terminator, we can
  just check the last 4 bytes.
* In most scenarios we won't have a callback. Therefore we don't need to
  process the output and can just dump it.

Together these optimizations have a significant impact on the total
runtime of talkative CLI commands, such as `sh ip bgp json` which runs
roughly 1000% faster when dumping 1,000,000 routes.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoospfd: do not complain if same area is reconfigured 1609/head
Daniel Walton [Mon, 8 Jan 2018 21:16:18 +0000 (21:16 +0000)]
ospfd: do not complain if same area is reconfigured

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Before
------
cel-redxp-10(config)# router ospf vrf RED
cel-redxp-10(config-router)# network 1.1.1.1/32 area 0.0.0.0
cel-redxp-10(config-router)# network 1.1.1.1/32 area 0.0.0.0
There is already same network statement.
cel-redxp-10(config-router)#

When we see the "There is already same network statement." message
vtysh exits non-zero.  This scenario breaks frr-reload because
the command took and it in the config, it should exit zero here.

After
-----
cel-redxp-10(config)# router ospf vrf RED
cel-redxp-10(config-router)# network 1.1.1.1/32 area 0.0.0.0
cel-redxp-10(config-router)# network 1.1.1.1/32 area 0.0.0.0
cel-redxp-10(config-router)# network 1.1.1.1/32 area 0.0.0.0
cel-redxp-10(config-router)# network 1.1.1.1/32 area 0
cel-redxp-10(config-router)#
cel-redxp-10(config-router)# network 1.1.1.1/32 area 0.0.0.1
There is already same network statement.
cel-redxp-10(config-router)#

7 years agopimd: Allow use-source to return more subtle error codes 1608/head
Donald Sharp [Mon, 8 Jan 2018 21:01:22 +0000 (16:01 -0500)]
pimd: Allow use-source to return more subtle error codes

The 'ip pim use-source ...' command returns a hard
success/failure.  Allow it to return a soft-failure
for when we re-enter the same line.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #1599 from chiragshah6/mdev
Jafar Al-Gharaibeh [Mon, 8 Jan 2018 17:36:45 +0000 (11:36 -0600)]
Merge pull request #1599 from chiragshah6/mdev

ospfd: Fix no passive interface command parsing

7 years agoMerge pull request #1588 from donaldsharp/msdp_return
Jafar Al-Gharaibeh [Mon, 8 Jan 2018 17:34:36 +0000 (11:34 -0600)]
Merge pull request #1588 from donaldsharp/msdp_return

pimd: Add finer grain return codes for configuration

7 years agoMerge pull request #1590 from chiragshah6/pim_dev
Jafar Al-Gharaibeh [Mon, 8 Jan 2018 17:25:06 +0000 (11:25 -0600)]
Merge pull request #1590 from chiragshah6/pim_dev

lib: Fix no interface cmd vrf parsing

7 years agoospfd: Fix no passive interface command parsing 1599/head
Chirag Shah [Sat, 6 Jan 2018 16:24:00 +0000 (08:24 -0800)]
ospfd: Fix no passive interface command parsing

Ticket: CM-19365

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
7 years agoMerge pull request #1606 from bingen/lm_privs
Donald Sharp [Mon, 8 Jan 2018 12:44:02 +0000 (07:44 -0500)]
Merge pull request #1606 from bingen/lm_privs

ldpd: Add privs to label manager

7 years agoMerge pull request #1600 from donaldsharp/more_thread_yield
Lou Berger [Sat, 6 Jan 2018 23:28:46 +0000 (18:28 -0500)]
Merge pull request #1600 from donaldsharp/more_thread_yield

More thread yield

7 years agobgpd: Ensure that io thread is running after start 1600/head
Donald Sharp [Sat, 6 Jan 2018 19:04:35 +0000 (14:04 -0500)]
bgpd: Ensure that io thread is running after start

The BGP IO thread must be running before other threads
can start using it.  So at startup check to see
that it running once, instead of before every
function call into.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agolib: Add pthread_yield
Donald Sharp [Sat, 6 Jan 2018 16:48:11 +0000 (11:48 -0500)]
lib: Add pthread_yield

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #1595 from dwiesner/pmsi-tunnel
Donald Sharp [Fri, 5 Jan 2018 19:08:29 +0000 (14:08 -0500)]
Merge pull request #1595 from dwiesner/pmsi-tunnel

bgpd: add PMSI_TUNNEL_ATTRIBUTE to EVPN IMET routes

7 years agoldpd: Add privs to label manager 1606/head
ßingen [Mon, 13 Nov 2017 20:41:58 +0000 (21:41 +0100)]
ldpd: Add privs to label manager

Signed-off-by: ßingen <bingen@voltanet.io>
7 years agoMerge pull request #1594 from donaldsharp/32_bit_fuckery
Philippe Guibert [Thu, 4 Jan 2018 13:34:51 +0000 (14:34 +0100)]
Merge pull request #1594 from donaldsharp/32_bit_fuckery

bgpd: fix failing to compile on 32 bit systems

7 years agobgpd: add PMSI_TUNNEL_ATTRIBUTE to EVPN IMET routes 1595/head
Dario Wiesner [Thu, 4 Jan 2018 11:34:24 +0000 (12:34 +0100)]
bgpd: add PMSI_TUNNEL_ATTRIBUTE to EVPN IMET routes

Signed-off-by: Dario Wiesner <dario.wiesner@gmail.com>