]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
6 years agobgpd: resolve ipv6 ecmp issue with vrfs and ll nexthop
Don Slice [Wed, 5 Apr 2017 14:13:45 +0000 (07:13 -0700)]
bgpd: resolve ipv6 ecmp issue with vrfs and ll nexthop

Problem reported that ecmp wasn't working correctly in a vrf with
ipv6.  Issue was that originator of the routes were sending the updates
with a link-local nexthop and nhlen of 16.  In this particular case,
bgp_zebra_announce was using the wrong call to get the ifindex and
was not supplying the vrf.   This caused ecmp to work only in the case
of the default vrf.

Ticket: CM-15545
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: CCR-6017
6 years agobgpd: fix crash in bgp_stop due to missing vrf
Don Slice [Tue, 22 Nov 2016 17:48:16 +0000 (09:48 -0800)]
bgpd: fix crash in bgp_stop due to missing vrf

Problem found to be derefencing a vrf that had already been deleted.  Fix
verifies that vrf exists before using it.

Ticket: CM-13682
Signed-off-by: Don Slice
Reviewed By: Vivek Venkatraman
Testing Done: manual testing, re-run of failing scripts good

6 years agobgpd: Fix ADJCHANGE message to include more info
Donald Sharp [Tue, 15 Nov 2016 15:16:52 +0000 (10:16 -0500)]
bgpd: Fix ADJCHANGE message to include more info

When bgp logs ADJCHANGE messages include the
hostname and vrf that this change is being made
in.

Ticket: CM-10922
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Fix vrf crash
Donald Sharp [Thu, 1 Dec 2016 13:59:16 +0000 (08:59 -0500)]
bgpd: Fix vrf crash

Ensure that we have a valid vrf before we log
information about it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by: Don Slice <dslice@cumulusnetworks.com>
6 years agoospf6d: Allow unconfig of unknown lsa's
Donald Sharp [Fri, 18 Nov 2016 16:41:53 +0000 (11:41 -0500)]
ospf6d: Allow unconfig of unknown lsa's

When we are receiving the 'no debug ospf6 lsa unknown ...'
Allow the removal of the originate examine and flooding
keywords.

Ticket: CM-12805
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoospf6d: Fix debug line always showing up in ospf6d
Donald Sharp [Thu, 17 Nov 2016 03:17:39 +0000 (22:17 -0500)]
ospf6d: Fix debug line always showing up in ospf6d

The command 'debug ospf6 lsa unknown' was
always showing up, upon starting of the ospf6 daemon.

Remove this from happening.  Also fix some help strings
while we are in there.

Ticket: CM-7913
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: More Extended nexthop fixing
Donald Sharp [Wed, 16 Nov 2016 17:00:40 +0000 (12:00 -0500)]
bgpd: More Extended nexthop fixing

Basically if we are reading in a cli with a extended-nexthop
and we have not received from zebra the interface we are working
on I believe we have a race condition where we are not
propagating the PEER_FLAG_CAPABILITY_ENHE in this case.

Modify the code to propagate even if we haven't found the
interface yet.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoospfd: Fix possible crash and wrong data being shown
Donald Sharp [Wed, 16 Nov 2016 16:28:11 +0000 (11:28 -0500)]
ospfd: Fix possible crash and wrong data being shown

When you have more than one ospf interface configured
to be used, we were attempting to reuse the
json_interface_sub pointer after we added it
to the json data structure.

Ticket: CM-13597
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Fix ADJCHANGE message to include more info
Donald Sharp [Tue, 15 Nov 2016 15:16:52 +0000 (10:16 -0500)]
bgpd: Fix ADJCHANGE message to include more info

When bgp logs ADJCHANGE messages include the
hostname and vrf that this change is being made
in.

Ticket: CM-10922
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: Fix occassional turn off of extended-nexthop for an if
Donald Sharp [Tue, 15 Nov 2016 14:39:35 +0000 (09:39 -0500)]
bgpd: Fix occassional turn off of extended-nexthop for an if

Sometimes, like once every 400 iterations, when you restart
Quagga, extended-nexthop has been turned off for interface
based config( for 5549 ).

Examining the code, there is only 1 real path to setting
the PEER_FLAG_CAPABILITITY_ENHE and that is through
peer_conf_interface_get.  Modify this code path
to always set the PEER_FLAG_CAPABILITY_ENHE if it is
not already set.

In addition, fix a possible pointer dereference.

Ticket: CM-12929
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agoMerge pull request #492 from dwalton76/stable/2.0
David Lamparter [Tue, 16 May 2017 15:55:58 +0000 (17:55 +0200)]
Merge pull request #492 from dwalton76/stable/2.0

Change Frr.conf to frr.conf

6 years agoMerge pull request #505 from adamfitz/stable/2.0
Donald Sharp [Thu, 11 May 2017 12:20:08 +0000 (08:20 -0400)]
Merge pull request #505 from adamfitz/stable/2.0

added troubleshooting section to debian 8 build doc

6 years agoadded troubleshooting section to debian 8 build doc
Adam Fitzgerald [Thu, 11 May 2017 11:03:23 +0000 (21:03 +1000)]
added troubleshooting section to debian 8 build doc

6 years agoChange Frr.conf to frr.conf
Daniel Walton [Wed, 10 May 2017 00:55:10 +0000 (00:55 +0000)]
Change Frr.conf to frr.conf

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
6 years agoMerge pull request #487 from LabNConsulting/working/2.0/patch/issue459
Russ White [Wed, 10 May 2017 00:01:11 +0000 (20:01 -0400)]
Merge pull request #487 from LabNConsulting/working/2.0/patch/issue459

bgpd: add back unicast option to 'address-family vpnv(4&6)' Issue #459

6 years agoMerge pull request #489 from donaldsharp/sudoers
Russ White [Tue, 9 May 2017 23:48:33 +0000 (19:48 -0400)]
Merge pull request #489 from donaldsharp/sudoers

*: Remove ability to install frr_sudoers for 2.0

6 years ago*: Remove ability to install frr_sudoers
Donald Sharp [Tue, 9 May 2017 20:18:04 +0000 (16:18 -0400)]
*: Remove ability to install frr_sudoers

If the user were to uncomment last line
and allow VTYSH_SHOW to be used as a non-root
account, this would allow arbitrary command completion
inside of vtysh via multiple -c ... -c .... lines

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
6 years agobgpd: add back unicast option to 'address-family vpnv(4&6)' Issue #459
Lou Berger [Tue, 9 May 2017 18:52:54 +0000 (14:52 -0400)]
bgpd: add back unicast option to 'address-family vpnv(4&6)' Issue #459

7 years agoMerge pull request #461 from donaldsharp/poll_2.0
Jafar Al-Gharaibeh [Thu, 4 May 2017 18:09:25 +0000 (13:09 -0500)]
Merge pull request #461 from donaldsharp/poll_2.0

Poll 2.0

7 years agopimd: fix clang warning
David Lamparter [Wed, 8 Mar 2017 15:37:42 +0000 (16:37 +0100)]
pimd: fix clang warning

pimd/pim_sock.c:178:13: error: implicit conversion from
'int' to 'char' changes value from 148 to -108
[-Werror,-Wconstant-conversion]
    ra[0] = 148;

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agolib: Rename HAVE_POLL to prevent conflicting #defines
Donald Sharp [Thu, 4 May 2017 14:24:25 +0000 (10:24 -0400)]
lib: Rename HAVE_POLL to prevent conflicting #defines

Rename HAVE_POLL to HAVE_POLL_CALL, when compiling with
snmp and poll enabled this was causing issues.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoRemove uncalled function causing compiler error
Sam Tannous [Thu, 4 May 2017 13:54:17 +0000 (06:54 -0700)]
Remove uncalled function causing compiler error

Ticket: CM-16086
Reviewed By: sharpd
Testing Done: Built debs and tested on hardnode

With snmp enabled, this function was causing compiler
errors since it was not being called.  Removed it.

Signed-off-by: Sam Tannous <stannous@cumulusnetworks.com>
7 years agoMerge pull request #429 from hwchiu/fix_clang_sa
Donald Sharp [Tue, 2 May 2017 15:45:42 +0000 (11:45 -0400)]
Merge pull request #429 from hwchiu/fix_clang_sa

Fix some warnings by clang static analyzer

7 years agoRevert "Fix the "Use-after-free" of clang SA."
Hung-Weic Chiu [Tue, 2 May 2017 00:28:41 +0000 (00:28 +0000)]
Revert "Fix the "Use-after-free" of clang SA."

- This's the wrong way to fix this problem.
- Since the "TAILQ_FIRST()" always return diferent pointer as we call "TAILQ_REMOVE()", the clang static analyzer can't detect this behavior.
- Ignore this warning and keep files identical to its original one.

This reverts commit 5d6cc38ca36538583ff4c464c46a7c6de08608b6.

Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
7 years agoFix the "Uninitialized argument value" of clang SA.
Hung-Weic Chiu [Sat, 29 Apr 2017 15:34:18 +0000 (15:34 +0000)]
Fix the "Uninitialized argument value" of clang SA.

Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
7 years agoFix the "Dead assignment" of clang SA.
Hung-Weic Chiu [Sat, 29 Apr 2017 15:25:32 +0000 (15:25 +0000)]
Fix the "Dead assignment" of clang SA.

- Remove duplicated assignemt.
- Remove unused initialized.

Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
7 years agoFix the "Use-after-free" of clang SA.
Hung-Weic Chiu [Sat, 29 Apr 2017 15:02:31 +0000 (15:02 +0000)]
Fix the "Use-after-free" of clang SA.

- Set the pointer to NULL after free it, otherwise the pointer will be accessed again. (since not null)

Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
7 years agoFix the memory leak
Hung-Weic Chiu [Sat, 29 Apr 2017 14:20:15 +0000 (14:20 +0000)]
Fix the memory leak

- free the memory for all cases.

Signed-off-by: Hung-Weic Chiu <sppsorrg@gmail.com>
7 years agoMerge pull request #2 from silasm/rpm-fixes-2.0
Martin Winter [Fri, 28 Apr 2017 21:03:40 +0000 (14:03 -0700)]
Merge pull request #2 from silasm/rpm-fixes-2.0

redhat: use %initsystem check that works when chrooted

7 years agoMerge pull request #419 from hwchiu/update-the-docs-of-ubuntu
Donald Sharp [Fri, 28 Apr 2017 15:10:47 +0000 (11:10 -0400)]
Merge pull request #419 from hwchiu/update-the-docs-of-ubuntu

Update the docs of ubuntu 12.04/14.04

7 years agoredhat: use %initsystem check that works when chrooted
smccroskey [Fri, 28 Apr 2017 02:39:24 +0000 (19:39 -0700)]
redhat: use %initsystem check that works when chrooted

`systemctl' returns different, non-useful output while in a chroot.
Switch to checking if /sbin/init is a symlink to the systemd binary.
With this change the build works in a mock chroot.

Signed-off-by: Silas McCroskey <smccroskey@cumulusnetworks.com>
7 years agoupdate doc of ubuntu 12.04
Hung-Wei Chiu [Thu, 27 Apr 2017 15:30:56 +0000 (23:30 +0800)]
update doc of ubuntu 12.04

1. modify the prefix to /usr (which is hard-code in /etc/init.d/frr)
2. install init.d related files.

7 years agoUpdate 14.04 docs to support init.d service
Hung-Wei Chiu [Thu, 27 Apr 2017 15:14:23 +0000 (23:14 +0800)]
Update 14.04 docs to support init.d service

1. Configure the prefix to /usr  (frr script hard-code those path in /etc/init.d/frr)
2. Install the service file to /etc/init.d

7 years agoMerge pull request #415 from hwchiu/fix_ubuntu16.04
Donald Sharp [Thu, 27 Apr 2017 12:31:16 +0000 (08:31 -0400)]
Merge pull request #415 from hwchiu/fix_ubuntu16.04

Update Building_FRR_on_Ubuntu1604 to make it support systemd

7 years agoUpdate Building_FRR_on_Ubuntu1604.md
Hung-Wei Chiu [Thu, 27 Apr 2017 03:22:15 +0000 (11:22 +0800)]
Update Building_FRR_on_Ubuntu1604.md

Fix typo

7 years agoUpdate Building_FRR_on_Ubuntu1604.md
Hung-Wei Chiu [Thu, 27 Apr 2017 03:10:36 +0000 (11:10 +0800)]
Update Building_FRR_on_Ubuntu1604.md

1.  Modify the configure prefix (since there some hard coded path in **/usr/lib/frr/fr**
2.  Install the systemd service config

7 years agoredhat: fix README for rpm package build
Martin Winter [Thu, 20 Apr 2017 01:45:03 +0000 (18:45 -0700)]
redhat: fix README for rpm package build

- correct requirements
- add comment on bison 2.7 installation on CentOS 6

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: redirect reload function in frr init script to restart if reload script is...
Martin Winter [Thu, 20 Apr 2017 01:41:45 +0000 (18:41 -0700)]
redhat: redirect reload function in frr init script to restart if reload script is not installed (fixes systemctl restart)

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: fix duplicate Requires: line in spec file
Martin Winter [Thu, 20 Apr 2017 01:39:49 +0000 (18:39 -0700)]
redhat: fix duplicate Requires: line in spec file

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Fix BuildRequires for FRR/2.0 and duplicate /etc/frr/daemons
Martin Winter [Thu, 20 Apr 2017 01:12:10 +0000 (18:12 -0700)]
redhat: Fix BuildRequires for FRR/2.0 and duplicate /etc/frr/daemons

- add make & gcc
- remove autoconf and automake (not needed to build from src.rpm)
- fix texi2html version detection for case when no texi2html is installed (broke yum-builddep)
- fix duplicate listing of /etc/frr/daemons

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Update documentation for RPM build and usage
Martin Winter [Tue, 18 Apr 2017 01:45:50 +0000 (18:45 -0700)]
redhat: Update documentation for RPM build and usage

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: fix upgrade script (%postun), remove invalid mpls package selection (it's...
Martin Winter [Tue, 18 Apr 2017 01:34:32 +0000 (18:34 -0700)]
redhat: fix upgrade script (%postun), remove invalid mpls package selection (it's always built and auto detected), add ldpd

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Add frr.service file for redhat based systemd systems (using init script)
Martin Winter [Tue, 18 Apr 2017 01:17:16 +0000 (18:17 -0700)]
redhat: Add frr.service file for redhat based systemd systems (using init script)

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoMerge pull request #370 from donaldsharp/as_path_fix
Martin Winter [Mon, 17 Apr 2017 21:46:28 +0000 (14:46 -0700)]
Merge pull request #370 from donaldsharp/as_path_fix

bgpd: Fix 'set as-path prepend last-as 10'

7 years agoredhat: /etc/frr/daemons needs to be marked as no replace config to be save from...
Martin Winter [Sat, 15 Apr 2017 10:29:34 +0000 (03:29 -0700)]
redhat: /etc/frr/daemons needs to be marked as no replace config to be save from overwriting

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Add (combined) init.d script for FRR with daemon selection based on /etc...
Martin Winter [Sat, 15 Apr 2017 10:13:07 +0000 (03:13 -0700)]
redhat: Add (combined) init.d script for FRR with daemon selection based on /etc/frr/daemons

- Provide new frr init script
- Remove separate per-deamon init.d scripts

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agowatchfrr: Remove the HAVE_CUMULUS around the watchfrr.started file. It's always useful
Martin Winter [Sat, 15 Apr 2017 09:00:15 +0000 (02:00 -0700)]
watchfrr: Remove the HAVE_CUMULUS around the watchfrr.started file. It's always useful

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agobgpd: Fix 'set as-path prepend last-as 10'
Donald Sharp [Sat, 15 Apr 2017 00:05:48 +0000 (20:05 -0400)]
bgpd: Fix 'set as-path prepend last-as 10'

The route-map compilation function was comparing < 10
instead of <= 10.  While the cli was accepting 1-10.

Fix:
!
route-map FOO permit 44
 set as-path prepend last-as 10
!

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoredhat: Add python2 build requirement to pythontools sub package
Martin Winter [Fri, 14 Apr 2017 09:21:44 +0000 (02:21 -0700)]
redhat: Add python2 build requirement to pythontools sub package

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Fix previously added centos6/redhat6 check
Martin Winter [Fri, 14 Apr 2017 09:20:31 +0000 (02:20 -0700)]
redhat: Fix previously added centos6/redhat6 check

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Fix install (daemon selection) and make postun scripts compatible with fedora
Martin Winter [Fri, 14 Apr 2017 08:28:13 +0000 (01:28 -0700)]
redhat: Fix install (daemon selection) and make postun scripts compatible with fedora

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Always disable PIMd on CentOS 6 and RedHat 6 systems as they are too old...
Martin Winter [Fri, 14 Apr 2017 01:54:58 +0000 (18:54 -0700)]
redhat: Always disable PIMd on CentOS 6 and RedHat 6 systems as they are too old to correctly support the protocol

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Move frr-reload python script to it's own sub package to avoid the python2...
Martin Winter [Fri, 14 Apr 2017 00:34:26 +0000 (17:34 -0700)]
redhat: Move frr-reload python script to it's own sub package to avoid the python2 requirement for main frr package

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Don't set file attributes for symlinks
Martin Winter [Fri, 14 Apr 2017 00:33:24 +0000 (17:33 -0700)]
redhat: Don't set file attributes for symlinks

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Fix ospf6d typo in frr.spec.in
Martin Winter [Thu, 13 Apr 2017 22:00:16 +0000 (15:00 -0700)]
redhat: Fix ospf6d typo in frr.spec.in

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoMerge pull request #366 from pichuang/fixed_add_group
Martin Winter [Thu, 13 Apr 2017 21:52:16 +0000 (14:52 -0700)]
Merge pull request #366 from pichuang/fixed_add_group

Fixed some document typo

7 years agoClean installation guide with Debian/Ubuntu
Phil Huang [Thu, 13 Apr 2017 13:20:53 +0000 (21:20 +0800)]
Clean installation guide with Debian/Ubuntu

Signed-off-by: Phil Huang <phil_huang@edge-core.com>
7 years agoAdd user `frr` into group `frrvty`
Phil Huang [Thu, 13 Apr 2017 10:11:28 +0000 (18:11 +0800)]
Add user `frr` into group `frrvty`

Signed-off-by: Phil Huang <phil_huang@edge-core.com>
7 years agoredhat: Fix dependencies for rpm package
Martin Winter [Thu, 13 Apr 2017 03:23:18 +0000 (20:23 -0700)]
redhat: Fix dependencies for rpm package

- Add bison, flex & autoconf
- Remove systemd for systems without it (i.e. CentOS 6)
- Update doc to reflect dependencies

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Remove tab's with spaces in frr.spec.in to make it better readable
Martin Winter [Thu, 13 Apr 2017 02:10:35 +0000 (19:10 -0700)]
redhat: Remove tab's with spaces in frr.spec.in to make it better readable

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoredhat: Replace tab's with spaces in README
Martin Winter [Thu, 13 Apr 2017 01:54:40 +0000 (18:54 -0700)]
redhat: Replace tab's with spaces in README

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoMerge pull request #365 from opensourcerouting/snap-doc-fixes
Donald Sharp [Thu, 13 Apr 2017 01:12:26 +0000 (21:12 -0400)]
Merge pull request #365 from opensourcerouting/snap-doc-fixes

snapcraft: Improve README.usage.md based on feedback received

7 years agosnapcraft: Improve README.usage.md based on feedback received
Martin Winter [Wed, 12 Apr 2017 23:00:43 +0000 (16:00 -0700)]
snapcraft: Improve README.usage.md based on feedback received

- Fix snap connect (it's now called core, not ubuntu-core)
- Add section on MPLS configuration
- Add FAQ topic on ospfd/ospf6d crashing before privs are assigned to snap
- Add pointer to official webpage

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agodoc: Cleanup 'Build the Software'
Donald Sharp [Wed, 5 Apr 2017 00:36:16 +0000 (20:36 -0400)]
doc: Cleanup 'Build the Software'

The frrouting.org web page:
https://frrouting.org/manual/Build-the-Software.html#Build-the-Software
is built from doc/install.texi.  The output on this page is a bit
missleading, let's clean it up some.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoRelease: FRR-2.0 frr-2.0
Martin Winter [Sun, 2 Apr 2017 05:22:47 +0000 (22:22 -0700)]
Release: FRR-2.0

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agolib: fix usage of getgrouplist() in *BSD
Mike Tancsa [Fri, 31 Mar 2017 20:50:35 +0000 (17:50 -0300)]
lib: fix usage of getgrouplist() in *BSD

On BSD systems, the getgrouplist() function returns 0 if successful and
-1 on error.

Linux in the other hand returns *ngroups (the number of groups of which
user is a member) on success and -1 on error.

Given this difference, the most portable way to use getgrouplist()
is use its return value only for checking if it succeeded or not.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
7 years agoMerge pull request #307 from LabNConsulting/working/2.0/patch/rename2
Donald Sharp [Thu, 30 Mar 2017 19:23:55 +0000 (14:23 -0500)]
Merge pull request #307 from LabNConsulting/working/2.0/patch/rename2

Rename: FreeRangeRouting --> FRRouting

7 years agoRename: freerangerouting --> frrouting
Lou Berger [Thu, 30 Mar 2017 18:24:05 +0000 (14:24 -0400)]
Rename: freerangerouting --> frrouting

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agoRename: FreeRangeRouting FRRouting
Lou Berger [Thu, 30 Mar 2017 18:22:35 +0000 (14:22 -0400)]
Rename: FreeRangeRouting FRRouting

Signed-off-by: Lou Berger <lberger@labn.net>
7 years agoMerge pull request #299 from opensourcerouting/test-ref-out
Donald Sharp [Thu, 30 Mar 2017 11:14:21 +0000 (06:14 -0500)]
Merge pull request #299 from opensourcerouting/test-ref-out

tests: format TestRefMismatch more readable

7 years agoMerge pull request #298 from opensourcerouting/defaults
Donald Sharp [Thu, 30 Mar 2017 11:13:19 +0000 (06:13 -0500)]
Merge pull request #298 from opensourcerouting/defaults

track version & "defaults" in configs

7 years ago*: track version & "defaults" in configs
David Lamparter [Thu, 9 Mar 2017 18:00:19 +0000 (19:00 +0100)]
*: track version & "defaults" in configs

[CF]: Move default name to autoconf and update tests

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agotests: format TestRefMismatch more readable
Christian Franke [Tue, 28 Mar 2017 16:23:47 +0000 (18:23 +0200)]
tests: format TestRefMismatch more readable

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
7 years agoMerge pull request #295 from opensourcerouting/community_md_edits
Donald Sharp [Sat, 25 Mar 2017 11:36:53 +0000 (07:36 -0400)]
Merge pull request #295 from opensourcerouting/community_md_edits

COMMUNITY.md: update CodingStyle & branching

7 years agoCOMMUNITY.md: update CodingStyle & branching
David Lamparter [Mon, 23 Jan 2017 19:52:13 +0000 (20:52 +0100)]
COMMUNITY.md: update CodingStyle & branching

Also add a note that this is documentation, not law.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #277 from donaldsharp/proto-dev-build
Renato Westphal [Tue, 21 Mar 2017 15:31:41 +0000 (12:31 -0300)]
Merge pull request #277 from donaldsharp/proto-dev-build

Proto dev build

7 years agoMerge pull request #281 from opensourcerouting/snapcraft-fixes
Donald Sharp [Tue, 21 Mar 2017 15:11:16 +0000 (11:11 -0400)]
Merge pull request #281 from opensourcerouting/snapcraft-fixes

Snapcraft fixes

7 years agosnapcraft: Change setup/ to snap/ directory based on new snap format
Martin Winter [Sat, 18 Mar 2017 03:50:09 +0000 (20:50 -0700)]
snapcraft: Change setup/ to snap/ directory based on new snap format

DEPRECATED: Assets in 'setup/gui' should now be placed in 'snap/gui'.
See http://snapcraft.io/docs/deprecation-notices/dn3 for more information.

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agosnapcraft: Add missing snapcraft files from dist (make dist) archive
Martin Winter [Sat, 18 Mar 2017 03:43:27 +0000 (20:43 -0700)]
snapcraft: Add missing snapcraft files from dist (make dist) archive

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agozebra: zebra_fpm_dt.c does not always need protobuf
Donald Sharp [Wed, 15 Mar 2017 13:37:03 +0000 (09:37 -0400)]
zebra: zebra_fpm_dt.c does not always need protobuf

When compiling zebra_fpm_dt.c only pull in
protobuf headers if we've turned it on.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agozebra: Fix protobuf build on stable/2.0
Donald Sharp [Wed, 15 Mar 2017 13:25:43 +0000 (09:25 -0400)]
zebra: Fix protobuf build on stable/2.0

When compiling w/ --enable-protobuf on stable/2.0
we were attempting to dereference the zvrf->vrf_id
which got moved to zvrf->vrf->vrf_id.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #272 from opensourcerouting/snapcraft-logo-update
Donald Sharp [Sat, 11 Mar 2017 11:58:24 +0000 (06:58 -0500)]
Merge pull request #272 from opensourcerouting/snapcraft-logo-update

snapcraft: Replace temporary logo with official FRR logo

7 years agosnapcraft: Replace temporary logo with official FRR logo
Martin Winter [Sat, 11 Mar 2017 05:48:55 +0000 (12:48 +0700)]
snapcraft: Replace temporary logo with official FRR logo

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
7 years agoMerge pull request #266 from donaldsharp/nht
David Lamparter [Fri, 10 Mar 2017 13:10:10 +0000 (14:10 +0100)]
Merge pull request #266 from donaldsharp/nht

bug fixes

7 years agozebra: Fix specific prefix handling
Donald Sharp [Fri, 10 Mar 2017 00:37:23 +0000 (19:37 -0500)]
zebra: Fix specific prefix handling

Suppose we are handling the process_workq and either a new static
route is installed or a Routing Protocol installs a new route.
We will call evaluate_rnh with a specific prefix.  We might
have a situation where we clear the NHC flag prematurely.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #267 from opensourcerouting/vty-completion-again
Donald Sharp [Thu, 9 Mar 2017 20:34:57 +0000 (15:34 -0500)]
Merge pull request #267 from opensourcerouting/vty-completion-again

vty completion memory counting redux

7 years agolib: handle case specifc types, protect against double free (issue #144)
Lou Berger [Wed, 8 Mar 2017 17:14:15 +0000 (12:14 -0500)]
lib: handle case specifc types, protect against double free (issue #144)

Signed-off-by: Lou Berger <lberger@labn.net>
[DL: dropped changes except the two NULL assignments]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoRevert "lib: Fix tab completions memleak, memory stats corruption"
David Lamparter [Thu, 9 Mar 2017 18:23:00 +0000 (19:23 +0100)]
Revert "lib: Fix tab completions memleak, memory stats corruption"

This reverts commit 039dc61292de5f3ed5f46316b1940ab6bb184c3f.

The patch actually made the situation worse since the return value from
cmd_complete_command_real() was now inconsistently allocated from
different memory stat pools.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoLowercase frr.conf
Martín Beauchamp [Mon, 27 Feb 2017 18:26:20 +0000 (13:26 -0500)]
Lowercase frr.conf

7 years agozebra: Notify all nexthops that we've changed
Donald Sharp [Tue, 7 Mar 2017 20:13:04 +0000 (15:13 -0500)]
zebra: Notify all nexthops that we've changed

Zebra when it was scanning the tree would unset NEXTHOPS_CHANGED
after the first notification.  If the route we are notifying because
of covers multiple interesting nexthops then we would be unable
to know that we need to notify for that one as well because of
the flag removal.

Ticket: CM-15157
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #259 from opensourcerouting/vtysh-completion-mtype-underflow
Quentin Young [Tue, 7 Mar 2017 18:24:12 +0000 (13:24 -0500)]
Merge pull request #259 from opensourcerouting/vtysh-completion-mtype-underflow

vtysh: fix completion

7 years agovtysh: fix completion
David Lamparter [Tue, 7 Mar 2017 18:16:21 +0000 (19:16 +0100)]
vtysh: fix completion

The return value from cmd_complete_command is a VECTOR_INDEX, not TMP.
Use the appropriate vector_only_index_free().

Fixes #223.

Reported-by: https://github.com/k0ste
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
7 years agoMerge pull request #256 from donaldsharp/bgp_bfd_fix
David Lamparter [Tue, 7 Mar 2017 15:49:53 +0000 (16:49 +0100)]
Merge pull request #256 from donaldsharp/bgp_bfd_fix

bgpd: Clean up bfd memory *before* deleting the peer

7 years agobgpd: Clean up bfd memory *before* deleting the peer
Donald Sharp [Tue, 7 Mar 2017 13:45:24 +0000 (08:45 -0500)]
bgpd: Clean up bfd memory *before* deleting the peer

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #238 from donaldsharp/bgp_memory
Lou Berger [Thu, 2 Mar 2017 15:07:34 +0000 (10:07 -0500)]
Merge pull request #238 from donaldsharp/bgp_memory

bgpd: Fix memory leaks on shutdown

7 years agobgpd: Fix memory leaks on shutdown
Donald Sharp [Thu, 2 Mar 2017 01:26:06 +0000 (20:26 -0500)]
bgpd: Fix memory leaks on shutdown

The original code on shutdown assumed a 'forced' mode
if there was no process_main_queue.  This construct
was violated by commit 2e02b9b2d1ed29975001d6917f9f726854ec5559
due to not fully understanding the shutdown process.

If we are shutting down, don't store work to do later,
just gracefully don't do it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
7 years agoMerge pull request #227 from qlyoung/stable-no-deprecated
Russ White [Wed, 1 Mar 2017 14:53:17 +0000 (09:53 -0500)]
Merge pull request #227 from qlyoung/stable-no-deprecated

*: remove QUAGGA_NO_DEPRECATED_INTERFACES

7 years ago*: remove QUAGGA_NO_DEPRECATED_INTERFACES
Quentin Young [Fri, 17 Feb 2017 18:19:27 +0000 (18:19 +0000)]
*: remove QUAGGA_NO_DEPRECATED_INTERFACES

This define is used only to guard macros in lib/linklist.h which
themselves are not used anywhere in the codebase and have been marked
deprecated since anno domini 2005

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
7 years agoMerge pull request #221 from LabNConsulting/working/2.0/patch/issue-218
Donald Sharp [Fri, 24 Feb 2017 01:19:39 +0000 (20:19 -0500)]
Merge pull request #221 from LabNConsulting/working/2.0/patch/issue-218

bgpd: Fix issue #218

7 years agobgpd: Fix issue #218
Lou Berger [Thu, 23 Feb 2017 22:48:47 +0000 (17:48 -0500)]
bgpd: Fix issue #218
      Wrong offset was used when using global V6 address in place of
      v6 LL.  (Introduced in earlier fix of broken RD advertisement.)

      Tested by @dslice in master.

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