]> git.puffer.fish Git - mirror/frr.git/log
mirror/frr.git
8 years agolib: plug leak in prefix_list_delete()
David Lamparter [Wed, 1 Feb 2017 12:21:40 +0000 (13:21 +0100)]
lib: plug leak in prefix_list_delete()

prefix_list_delete wasn't releasing chained trie entries, only the main
one.  Just call the proper trie_del.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agozebra: fpm: fix --enable-dev-build
David Lamparter [Mon, 23 Jan 2017 22:32:01 +0000 (23:32 +0100)]
zebra: fpm: fix --enable-dev-build

I guess no one uses --enable-dev-build...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years ago*: fix warning fallout from set_socket_path
David Lamparter [Wed, 1 Feb 2017 12:12:16 +0000 (13:12 +0100)]
*: fix warning fallout from set_socket_path

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agoMerge pull request #140 from opensourcerouting/fixes/isis-subtlv
Donald Sharp [Tue, 31 Jan 2017 17:28:40 +0000 (12:28 -0500)]
Merge pull request #140 from opensourcerouting/fixes/isis-subtlv

isisd: parse TE-IP reachability and IPv6 reachability subtlvs

8 years agoisisd: parse TE-IP reachability and IPv6 reachability subtlvs 140/head
Christian Franke [Tue, 31 Jan 2017 15:10:25 +0000 (16:10 +0100)]
isisd: parse TE-IP reachability and IPv6 reachability subtlvs

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
8 years agoMerge branch 'pull/134' with changes
David Lamparter [Tue, 31 Jan 2017 12:53:15 +0000 (13:53 +0100)]
Merge branch 'pull/134' with changes

One commit reverted.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agoRevert "*: Add source of route as protocol string in ip route pushed into kernel"
David Lamparter [Tue, 31 Jan 2017 12:51:27 +0000 (13:51 +0100)]
Revert "*: Add source of route as protocol string in ip route pushed into kernel"

This reverts commit 1a11782c408a60afb464fe232fc2e3fa1e298436.

The change is not suitable for stable/2.0, it's not a bugfix and has
quite a visible user impact.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agoMerge branch 'frr/pull/136' ("misc vnc/rfapi fixes")
David Lamparter [Tue, 31 Jan 2017 12:38:46 +0000 (13:38 +0100)]
Merge branch 'frr/pull/136' ("misc vnc/rfapi fixes")

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agobgpd rfapi: fix UN address in show with MPLS TT 136/head
Lou Berger [Sun, 29 Jan 2017 13:15:23 +0000 (08:15 -0500)]
bgpd rfapi: fix UN address in show with MPLS TT

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd rfapi: pass received label on resolved NVE imports
Lou Berger [Sun, 29 Jan 2017 00:21:03 +0000 (19:21 -0500)]
bgpd rfapi: pass received label on resolved NVE imports

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd rfapi: only auto add default tunnel type for local registrations
Lou Berger [Sat, 28 Jan 2017 23:57:28 +0000 (18:57 -0500)]
bgpd rfapi: only auto add default tunnel type for local registrations

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agozebra: pass correct parameters to remove static routes with tags 134/head
Don Slice [Thu, 26 Jan 2017 20:49:00 +0000 (12:49 -0800)]
zebra: pass correct parameters to remove static routes with tags

Problem found in testing where certain "no ip route ... tag x" commands
would fail.  This was due to a change in tag processing where the tag
value is validated and previously some of the parameters were passed
incorrectly.  This caused the validation to fail.  This change ensures
the correct parameters are passed for evaluation as tags.  Manual testing
completed and the previously failing test now passes.  bgp and ospf smoke
tests will also be performed before pushing.

Ticket: CM-14605
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: CCR-5627
8 years agotools: Silly typo in regex for catching ip route syntax
Dinesh G Dutt [Wed, 25 Jan 2017 19:55:02 +0000 (11:55 -0800)]
tools: Silly typo in regex for catching ip route syntax

Ticket: CM-14600
Reviewed By: CCR-5615
Testing Done: Verifying the issue with/without the fix

I had intended the regexp to catch both ip and ipv6 routes, but somewhere
along the way, I left out the grouping in the regexp to catch if it was
ip or ipv6 at the start. This caused all the rest of the matches and replaces
to be off causing the issue reported by the bug.

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
8 years agozebra: send ipv4 singlepath delete messages to kernel without nexthop
Don Slice [Fri, 13 Jan 2017 19:23:03 +0000 (11:23 -0800)]
zebra: send ipv4 singlepath delete messages to kernel without nexthop

Problem reported was stale routes left in the kernel in certain cases
when overlapping static routes were used and links were bounced.  The
problem was determined to be an issue where the nexthop was changed
due to recursion as the link is going down, and the next-hop at the
time of deletion doesn't match what was previously installed by the
kernel.  This caused the kernel to reject the deletion and the route
stuck around.

It was pointed out that the kernel doesn't actually require a next-hop
value on the netlink deletion call.  In this fix, we are eliminating
the nexthop for RTM_DELROUTE messages to the kernel in the ipv4 singlepath
case.  This approach could also be valid for other cases but the fix
as is resolved the reported failure case.  More testing should be
performed before similar changes are made for other cases.

Testing included manual testing for the failure condition as well as
complete bgp-smoke and ospf-smoke tests with no new failures.

Ticket: CM-13328
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Reviewed-by: CCR-5562
8 years agobgpd: timers config is accepted but not recorded in running config
Daniel Walton [Fri, 20 Jan 2017 04:17:09 +0000 (04:17 +0000)]
bgpd: timers config is accepted but not recorded in running config

Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-14463

8 years agobgpd: Update BFD status when de-registering with PTM
radhika [Thu, 19 Jan 2017 22:23:21 +0000 (14:23 -0800)]
bgpd: Update BFD status when de-registering with PTM

Ticket: CM-14301
Reviewed By: Donald, Vivek
Testing Done: Unit, Min tests, PTM and BFD Smoke, BGP Smoke

Issue: BFD status is not changed from up to down for bgp peer even after the BFD session has been de-registered by bgpd.

Root Cause:  This issue happens when bgpd detects peer down before getting the BFD down from PTM. bgpd will send the de-reg bfd session message to ptm  after detecting peer down. If ptm receives the de-reg message before it detects the peer down, then the down message will not be sent to Quagga. This causes the bfd status in bgpd to remain unchanged.

Fix: Update the BFD status to down in bgpd before de-registering the session from PTM.

Signed-off-by: Radhika Mahankali <radhika@cumulusnetworks.com>
8 years agobgpd: Add decoded notification code strings to JSON output
Dinesh G Dutt [Mon, 16 Jan 2017 14:24:09 +0000 (06:24 -0800)]
bgpd: Add decoded notification code strings to JSON output

Ticket: CM-14136
Reviewed By: CCR-5585
Testing Done: bgpmin

The JSON output of 'bgp neighbor show' lacked the decoded strings for
the last notification error code/subcode. Decoding these strings outside
quagga is painful, and then needs to match with any updates to the codes
from RFCs/drafts. Further, all apps that look to understanding this need
to then add their own decoders for these strings.

Just add the decoded strings to the JSON output as well. JSON key name
for this is 'lastNotificationReason'.

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
8 years ago*: Add source of route as protocol string in ip route pushed into kernel
Dinesh G Dutt [Wed, 11 Jan 2017 22:33:39 +0000 (14:33 -0800)]
*: Add source of route as protocol string in ip route pushed into kernel

Ticket: CM-14313
Reviewed By:
Testing Done: bgpmin, ospfmin, bgp_kitchen_sink_test

'ip route show' displays all routes as belonging to protocol zebra.
The user has to run an additional command (in vtysh) to get the actual
source of a route (bgp/ospf/static etc.). This patch addresses that by
pushing the appropriate protocol string into the protocol field of the
netlink route update message. Now you can see routes with the correct
origin as well as filter on them (ip route show proto ospf).

'ospf' is used for both IPv4 and IPv6 routes, even though the OSPF
version is different in both cases.

Sample output (old):
9.9.12.13 via 69.254.2.38 dev swp3.2  proto zebra  metric 20
9.9.13.3  proto zebra  metric 20
        nexthop via 69.254.2.30  dev swp1.2 weight 1
        nexthop via 69.254.2.34  dev swp2.2 weight 1
        nexthop via 69.254.2.38  dev swp3.2 weight 1

Sample output (new):
9.9.12.13 via 69.254.2.38 dev swp3.2  proto bgp  metric 20
9.9.13.3  proto bgp  metric 20
        nexthop via 69.254.2.30  dev swp1.2 weight 1
        nexthop via 69.254.2.34  dev swp2.2 weight 1
        nexthop via 69.254.2.38  dev swp3.2 weight 1

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
8 years agotools: Fix unbound newaddr variable, fix too-broad except clauses
Dinesh G Dutt [Wed, 11 Jan 2017 19:33:15 +0000 (11:33 -0800)]
tools: Fix unbound newaddr variable, fix too-broad except clauses

Ticket: CM-14351
Reviewed By: dwalton
Testing Done:attempts to run NCLU test failed, Daniel verified.

Uninit variable bug, plus missed adding ValueError to the except
clauses in a couple of places.

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
8 years agotools: Normalize prefix-lists and IP networks for avoiding unnecessary reload
Dinesh G Dutt [Sun, 8 Jan 2017 15:08:12 +0000 (07:08 -0800)]
tools: Normalize prefix-lists and IP networks for avoiding unnecessary reload

Ticket: CM-14280, CM-14281, CM-14286
Reviewed By: CCR-5546
Testing Done: quagga_service_test, bgp_enhe, bgp_vrf etc.

If the user specifies a network statement such as "network 1.1.1.1/24",
the running config shows this as "network 1.1.1.0/24" which causes
unnecessary withdrawl of the prefix and re-advertisement causing
perturbations. The same thing applies to prefix-lists and of course, IPv6
addresses.

IPv6 addresses were being normalized already, and so we use that same
function to handle the IPv6 portion of the issue. Interestingly community
strings were also getting ensnared in the normalized IPv6 function due to
the presence of ':', but thats OK.

quagga's running config changes 'null0' and 'blackhole' keywords into 'Null0'.
For example: ip route 10.1.1.0/24 blackhole' is displayed as
'ip route 10.1.1.0/24 Null0'. Reload mistakes this and issues a delete of the
Null0 route followed by an add of the "blackhole" route. Unnecessary, and
results in unexpected routing perturabations.

Also fix prefix-list's le/ge behavior: It always prints ge first even if the
user has specified le followed by ge, and it doesn't print l3 32/128 if ge
is also specified, else it prints them.

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
8 years agobgpd: do not allow prefix length on update-source
Don Slice [Thu, 5 Jan 2017 18:49:23 +0000 (10:49 -0800)]
bgpd: do not allow prefix length on update-source

A common misconfiguration that was silently accepted but wouldn't work
was including the prefix length on the update-source; i.e. 10.1.1.1/32.
This commit rejects this config and notifies the user.

Ticket: CM-13485
Signed-off-by: Don Slice <dslice@cumulusnetworks.com.
Reviewed-by: Donald Sharp
8 years agoFRR: Add various TAGS format files to be ignored by git.
Dinesh G Dutt [Sun, 8 Jan 2017 00:44:55 +0000 (16:44 -0800)]
FRR: Add various TAGS format files to be ignored by git.

Add some missing files to .gitignore

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
8 years agotools: Handle deletes of entire interface context as deleting each line
Dinesh G Dutt [Fri, 6 Jan 2017 22:52:25 +0000 (14:52 -0800)]
tools: Handle deletes of entire interface context as deleting each line

Ticket: CM-14260
Reviewed By: CCR-14260
Testing Done: quagga reload tests (quagga_service, bgp_enhe etc.)

Quagga reload handles deletes of entire context by issuing a "no.." on the
entire context itself instead of deleting each individual line of the context.
However, this doesn't work when the context is "interface" since its not
allowed to do "no interface <ifname>" inside quagga. So special case this by
deleting each individual line of the context.

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
8 years agotools: Handle lack of "seq" in prefix-list statements.
Dinesh G Dutt [Fri, 6 Jan 2017 14:50:47 +0000 (06:50 -0800)]
tools: Handle lack of "seq" in prefix-list statements.

Ticket: CM-14259
Reviewed By: CCR-5527
Testing Done:

If users specify "ip prefix-list FOO permit 1.2.3.4/24", running config
displays that line as "ip prefix-list FOO seq 5 permit 1.2.3.4/24", which
causes reload to delete the running config line and add back the one in
the config.

This patch fixes that.

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
8 years agotools: Don't overwrite Quagga.conf on reload, unless user specified.
Dinesh G Dutt [Fri, 6 Jan 2017 02:49:13 +0000 (18:49 -0800)]
tools: Don't overwrite Quagga.conf on reload, unless user specified.

Ticket: CM-14059
Reviewed By: CCR-5524
Testing Done: the usual

At some point in the 3.x release cycle, it was decided to overwrite the
user's Quagga.conf configuration file with the output of running config
when the user did a quagga reload. This is problematic for several reasons
such as: losing user-specified comments, upsetting network automation
scripts which think some thing has changed all the time from the specified
config etc.

This patch fixes this issue by not overwriting the Quagga.conf file unless
the user specifies it via an additional option, or the file being used as
input to quagga reload isn't the default configuration file (incl. path).

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
8 years agobgpd, zebra: Fix for ignored non-default VRF single-hop BFD status messages in Quagga
radhika [Fri, 6 Jan 2017 20:54:25 +0000 (12:54 -0800)]
bgpd, zebra: Fix for ignored non-default VRF single-hop BFD status messages in Quagga

Ticket: CM-13425
Reviewed By: Donald, Kanna
Testing Done: Unit, Min tests, PTM Smoke and Nightly, BGP Smoke

Issue: BFD status up/down not reflected in the Quagga for non-default VRF single-hop BFD sessions.

Root Cause: PTM doesn’t keep track of VRF for Single hop BFD sessions since they are interface-based sessions. The status up/down messages to the quagga for single hop sessions do not have VRF information. In zebra daemon, the interface search based on the interface name extracted from the BFD status message is done across all VRFs. So, the search does not fail in zebra daemon. But, the interface search in bgpd/ospd is done per vrf and default VRF is used for search if no VRF is sent in the status message. So, the search fails and the BFD status changes are ignored.

Fix: The VRF information is extracted from the interface if VRF is not sent in the BFD status messages in zebra daemon and passed to bgpd/ospfd. The interface search will not fail since the appropriate VRF is passed to bgpd/ospfd and BFD satus changes are not ignored.

Signed-off-by: Radhika Mahankali <radhika@cumulusnetworks.com>
8 years agotools: Fix unnecessary routing perturbations due to old style config
Dinesh G Dutt [Tue, 13 Dec 2016 10:46:52 +0000 (02:46 -0800)]
tools: Fix unnecessary routing perturbations due to old style config

Ticket: CM-14060
Reviewed By:
Testing Done:

There are two harmful problems (cause routing changes in the network) with the
2.5.x style config:
    one with the old style specification of "multipath as-relax", and
    the other with ip import-table, used by redistribute neighbor

In 2.5, we had the user specify 'no-as-set' as the suffix to
'bgp bestpath as-path multipath relax' to avoid quagga's default behavior
which'd cause weird routing problems. However, in 3.x, we made 'no-as-set' as
the default, and so its neither required to specify it nor is it shown in the
running config. This means when we do quagga reload, we remove the multipath
as-relax line and add it back with the no-as-set line. This causes all BGP
sessions to be reset.

The problem with the "ip import-table" is that it causes us to unimport the
routes and then add it back again, causing routing prefix changes throughout
the network, potentially causing blackholing of traffic.

This fix addresses both these issues and avoids the unnecessary routing blips.

Signed-off-by: Dinesh Dutt <ddutt@cumulusnetworks.com>
8 years agoMerge pull request #121 from opensourcerouting/snapcraft-packaging
Donald Sharp [Fri, 27 Jan 2017 20:38:43 +0000 (15:38 -0500)]
Merge pull request #121 from opensourcerouting/snapcraft-packaging

snapcraft: Add snapcraft build and documentation files

8 years agosnapcraft: Add snapcraft build and definition files 121/head
Martin Winter [Wed, 25 Jan 2017 21:23:43 +0000 (04:23 +0700)]
snapcraft: Add snapcraft build and definition files

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoMerge pull request #120 from opensourcerouting/snapcraft-base-v3
Russ White [Wed, 25 Jan 2017 20:04:49 +0000 (15:04 -0500)]
Merge pull request #120 from opensourcerouting/snapcraft-base-v3

Snapcraft base changes

8 years agolib: Don't change uid/gid if we are already the correct uid/gid 120/head
Martin Winter [Fri, 20 Jan 2017 19:48:45 +0000 (02:48 +0700)]
lib: Don't change uid/gid if we are already the correct uid/gid

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agovtysh: Add --config_dir option to override compiled in location for vtysh.conf and...
Martin Winter [Sun, 11 Dec 2016 03:06:54 +0000 (19:06 -0800)]
vtysh: Add --config_dir option to override compiled in location for vtysh.conf and Quagga.conf

Only allow the override if vtysh is not run with setuid()

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoldpd: add ctl_socket cli option to override the compiled-in location for the control...
Renato Westphal [Tue, 24 Jan 2017 17:31:40 +0000 (00:31 +0700)]
ldpd: add ctl_socket cli option to override the compiled-in location for the control socket

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
8 years agovtysh: Use HOME environment variable to get homedir and only fallback to passed entry...
Martin Winter [Fri, 20 Jan 2017 19:48:06 +0000 (02:48 +0700)]
vtysh: Use HOME environment variable to get homedir and only fallback to passed entry if no HOME is defined

Snap packages have a local HOME defined inside the SNAP container, but don't get access to passwd entry.

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agovtysh: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Wed, 25 Jan 2017 17:43:58 +0000 (00:43 +0700)]
vtysh: Add vty_socket cli option to override the compiled-in location for the VTY daemon sockets

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoripngd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 17:25:28 +0000 (00:25 +0700)]
ripngd: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoripd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 17:22:59 +0000 (00:22 +0700)]
ripd: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoldpd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 17:19:25 +0000 (00:19 +0700)]
ldpd: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agopimd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 15:58:52 +0000 (22:58 +0700)]
pimd: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoospfd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 15:57:15 +0000 (22:57 +0700)]
ospfd: Add vty_socket cli option to override the compiled-in location for the VTY Socket and add instance number for multi-instance ospf

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoospf6d: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 15:55:26 +0000 (22:55 +0700)]
ospf6d: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoisisd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 15:52:49 +0000 (22:52 +0700)]
isisd: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agobgpd: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 15:45:50 +0000 (22:45 +0700)]
bgpd: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agozebra: Add vty_socket cli option to override the compiled-in location for the VTY...
Martin Winter [Tue, 24 Jan 2017 15:44:28 +0000 (22:44 +0700)]
zebra: Add vty_socket cli option to override the compiled-in location for the VTY Socket

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agolib: Add set_socket_path() to sockopt.c to override the path element of a (vty) socke...
Martin Winter [Tue, 24 Jan 2017 15:42:11 +0000 (22:42 +0700)]
lib: Add set_socket_path() to sockopt.c to override the path element of a (vty) socket (but keep filename)

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agopimd: Add missing 'socket' getopt cmdline option
Martin Winter [Fri, 20 Jan 2017 19:29:25 +0000 (02:29 +0700)]
pimd: Add missing 'socket' getopt cmdline option

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoMerge pull request #112 from LabNConsulting/working/2.0/patch-set/rr1
Donald Sharp [Wed, 25 Jan 2017 01:54:32 +0000 (20:54 -0500)]
Merge pull request #112 from LabNConsulting/working/2.0/patch-set/rr1

2.0, Issue #91 FIx VPN/ENCAP safi handoff to rfapi

8 years agobgpd rfapi: Shift rfapi receive hooks for vpn and encap safis into 112/head
G. Paul Ziemba [Mon, 16 Jan 2017 19:09:12 +0000 (11:09 -0800)]
bgpd rfapi: Shift rfapi receive hooks for vpn and encap safis into
     bgp_update/bgp_withdraw (Issue #91)

Signed-off-by: G. Paul Ziemba <paulz@labn.net>
8 years agoMerge pull request #106 from donaldsharp/sbuild
David Lamparter [Tue, 24 Jan 2017 16:24:07 +0000 (17:24 +0100)]
Merge pull request #106 from donaldsharp/sbuild

debian: Fix changelog so sbuild will work

8 years agodebian: Fix changelog so sbuild will work 106/head
Donald Sharp [Sat, 21 Jan 2017 12:51:22 +0000 (07:51 -0500)]
debian: Fix changelog so sbuild will work

Fix the changelog so a sbuild issued for the
creation of a .deb works.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agoMerge pull request #99 from opensourcerouting/rename-fixes
Donald Sharp [Fri, 20 Jan 2017 16:22:33 +0000 (11:22 -0500)]
Merge pull request #99 from opensourcerouting/rename-fixes

Rename Quagga->FRR Fixes

8 years agoProtobuf: Update library name to reflect name change to FRR 99/head
Martin Winter [Thu, 19 Jan 2017 19:58:55 +0000 (02:58 +0700)]
Protobuf: Update library name to reflect name change to FRR

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoDebian/Doc: Fix correct reference about FRR fork from Quagga
Martin Winter [Thu, 19 Jan 2017 19:53:21 +0000 (02:53 +0700)]
Debian/Doc: Fix correct reference about FRR fork from Quagga

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agobuildtest.sh: Change name from quagga to frr
Martin Winter [Thu, 19 Jan 2017 17:36:29 +0000 (00:36 +0700)]
buildtest.sh: Change name from quagga to frr

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoDoc: Update URL to freerangerouting.org
Martin Winter [Thu, 19 Jan 2017 17:34:03 +0000 (00:34 +0700)]
Doc: Update URL to freerangerouting.org

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoDoc: Update Bug Reporting instructions to FreeRangeRouting and Github Issue Tracker
Martin Winter [Thu, 19 Jan 2017 17:31:01 +0000 (00:31 +0700)]
Doc: Update Bug Reporting instructions to FreeRangeRouting and Github Issue Tracker

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoredhat: Fix spec file changelog to use automatic version for last entry
Martin Winter [Thu, 19 Jan 2017 17:10:48 +0000 (00:10 +0700)]
redhat: Fix spec file changelog to use automatic version for last entry

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoSolaris Package files: Rename Quagga to FRR
Martin Winter [Thu, 19 Jan 2017 17:07:02 +0000 (00:07 +0700)]
Solaris Package files: Rename Quagga to FRR

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agorelease: FRR 2.0-rc1 frr-2.0-rc1
David Lamparter [Thu, 19 Jan 2017 16:45:51 +0000 (17:45 +0100)]
release: FRR 2.0-rc1

8 years agoMerge pull request #83 from LabNConsulting/working/2.0/patch-set/2-no-vrf
David Lamparter [Thu, 19 Jan 2017 16:35:05 +0000 (17:35 +0100)]
Merge pull request #83 from LabNConsulting/working/2.0/patch-set/2-no-vrf

Fix a number of VPN/Encap SAFI related issues (no VRF CLI changes)

8 years agobgpd: fix typo in VPN next hop V6 test (Issue #71) 83/head
Lou Berger [Wed, 18 Jan 2017 16:36:32 +0000 (11:36 -0500)]
bgpd: fix typo in VPN next hop V6 test (Issue #71)
      On top of:
      bgpd: allow VPN next hop to be different AFI than NLRI next
           hop (Issue #71)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agolib: additional patch for 496e83a
Quentin Young [Wed, 18 Jan 2017 06:09:26 +0000 (06:09 +0000)]
lib: additional patch for 496e83a

Fixes a couple off-by-ones introduced in previous commit.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
[cherry-picked from master d1e4a518e6f55ccf80c67b58d16eeb1cbf5923e3]
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agobgpd: use address-family <afi> <safi> in show running for vpn&encap (Issue #80)
Lou Berger [Tue, 17 Jan 2017 18:45:46 +0000 (13:45 -0500)]
bgpd: use address-family <afi> <safi> in show running for vpn&encap (Issue #80)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd rfapi: fix issue where advertised prefixes were not being disambiguated
Lou Berger [Sun, 15 Jan 2017 21:43:20 +0000 (16:43 -0500)]
bgpd rfapi: fix issue where advertised prefixes were not being disambiguated
        by RD

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd rfapi: use VN as nexthop for MPLS tunnels too
Lou Berger [Fri, 13 Jan 2017 15:18:48 +0000 (10:18 -0500)]
bgpd rfapi: use VN as nexthop for MPLS tunnels too
     Also minor show format cleanup

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: allow VPN next hop to be different AFI than NLRI next hop (Issue #71)
Lou Berger [Sat, 14 Jan 2017 13:34:22 +0000 (08:34 -0500)]
bgpd: allow VPN next hop to be different AFI than NLRI next hop (Issue #71)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: fix RD stomping by update group code (Issue #71)
Lou Berger [Sat, 14 Jan 2017 14:46:54 +0000 (09:46 -0500)]
bgpd: fix RD stomping by update group code (Issue #71)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: partial revert of vpn/encap safi show changes (Issue #14)
Lou Berger [Sun, 15 Jan 2017 16:58:06 +0000 (11:58 -0500)]
bgpd: partial revert of vpn/encap safi show changes (Issue #14)
      To remove commands duplicated in bgp_mplsvpn/_encap
      Also until vpn/encap specific show pieces are merged into
      generic afi/safi show.

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agoMerge pull request #78 from pguibert6WIND/fix_str2prefix_rd_as4
Donald Sharp [Tue, 17 Jan 2017 17:56:46 +0000 (12:56 -0500)]
Merge pull request #78 from pguibert6WIND/fix_str2prefix_rd_as4

bgpd: str2prefix_rd support for AS4 format

8 years agobgpd: avoid recalculating as_val value in str2prefix_rd 76/head 78/head
Philippe Guibert [Tue, 17 Jan 2017 16:51:40 +0000 (17:51 +0100)]
bgpd: avoid recalculating as_val value in str2prefix_rd

This is an optimisation that consists in avoiding calling twice atol()
function when converting an ext. community to an AS4 byte or a standard AS byte value.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
8 years agoMerge pull request #77 from pguibert6WIND/frr_6wind_vpnv6fix_1
Donald Sharp [Tue, 17 Jan 2017 13:38:49 +0000 (08:38 -0500)]
Merge pull request #77 from pguibert6WIND/frr_6wind_vpnv6fix_1

bgpd: fix nexthop comparison for nexthop vpnv6 attribute

8 years agobgpd: fix nexthop comparison for nexthop vpnv6 attribute 77/head
Philippe Guibert [Fri, 6 Jan 2017 12:35:40 +0000 (13:35 +0100)]
bgpd: fix nexthop comparison for nexthop vpnv6 attribute

As nexthop attribute for vpnv6 also contains a blank RD and a blank tag,
the IPv6 address length increases from 16 to 24 bytes. The same was
observed for vpnv4 nexthop, but was missing for VPNv6.
The same is done for martian nexthop debugging.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
8 years agobgpd: str2prefix_rd support for AS4 format
Philippe Guibert [Mon, 24 Oct 2016 13:16:36 +0000 (15:16 +0200)]
bgpd: str2prefix_rd support for AS4 format

This commit improves the ability for str2prefix_rd command to support
AS4 format. Until now, only AS2 format and IP format was supported.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
8 years agoMerge pull request #67 from opensourcerouting/stable-test-fixes
Donald Sharp [Fri, 13 Jan 2017 13:51:14 +0000 (08:51 -0500)]
Merge pull request #67 from opensourcerouting/stable-test-fixes

stable/2.0 test fixes

8 years agolib: limit size of vty buffer to 4096 bytes
Quentin Young [Tue, 10 Jan 2017 23:33:50 +0000 (23:33 +0000)]
lib: limit size of vty buffer to 4096 bytes

This removes the automatic resizing of the vty input buffer and places a
hard size cap of 4096 bytes. It also fixes a potentially unsafe strcpy.

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
[cherry-picked from master 2af38873d89e20bd039255418366c1601aa99e64]

8 years agotests: fix mis-fixed format string 67/head
David Lamparter [Thu, 15 Dec 2016 23:14:55 +0000 (00:14 +0100)]
tests: fix mis-fixed format string

PRIu64 is "u", we need "x", so PRIx64...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Cc: Donald Sharp <sharpd@cumulusnetworks.com>
[cherry-picked from master eed831e065694b3746896b126f6ad47548ea9dc0]

8 years agoMerge pull request #38 from donaldsharp/stable_ospf6_fix
David Lamparter [Fri, 13 Jan 2017 10:32:17 +0000 (11:32 +0100)]
Merge pull request #38 from donaldsharp/stable_ospf6_fix

ospf6d: resolve problem with area range lsid creation

8 years agotests: fix exit <> return mix-up in dejagnu
David Lamparter [Thu, 15 Dec 2016 23:09:46 +0000 (00:09 +0100)]
tests: fix exit <> return mix-up in dejagnu

exit 0 exits the entire testrunner... Oops.
Also, "unresolved" breaks too many things, so make this a pass.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
[cherry-picked from master e988dfd35b0d9df437ac043a613472437c8842e6]

8 years agotests: ignore stderr for expect
David Lamparter [Fri, 13 Jan 2017 10:23:18 +0000 (11:23 +0100)]
tests: ignore stderr for expect

expect redirects both stdout and stderr to its input.  This causes
serious problems when libzebra prints log messages to stderr, which are
then asynchronously inserted in the middle of lines of stdout test
output.  Ultimately this makes testbgpmpattr fail on FreeBSD.

(The stdio buffering seems to be slightly different on FreeBSD,
triggering the bug.)

Just ignore stderr for expect.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
8 years agoMerge pull request #65 from LabNConsulting/working/2.0/afi-safi-vty/c
Donald Sharp [Thu, 12 Jan 2017 17:54:30 +0000 (12:54 -0500)]
Merge pull request #65 from LabNConsulting/working/2.0/afi-safi-vty/c

Updated: stable/2.0 pull to pick up bgp afi/safi vty changes (Issues #14 and #61)

8 years agobgpd: convert 'show_ip_bgp_vpnv4' to afi/safi form (Issue #61) 65/head
Lou Berger [Thu, 12 Jan 2017 14:36:24 +0000 (09:36 -0500)]
bgpd: convert 'show_ip_bgp_vpnv4' to afi/safi form (Issue #61)

8 years agobgpd: remove code contained by ifdef KEEP_OLD_VPNV4_COMMANDS
Lou Berger [Thu, 12 Jan 2017 13:54:22 +0000 (08:54 -0500)]
bgpd: remove code contained by ifdef KEEP_OLD_VPNV4_COMMANDS

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: conditionally compile out old vpnv4 syntax (Issue #61)
Lou Berger [Tue, 10 Jan 2017 20:53:03 +0000 (15:53 -0500)]
bgpd: conditionally compile out old vpnv4 syntax (Issue #61)
      (under ifdef KEEP_OLD_VPNV4_COMMANDS)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: restore wildcard handling in show summary (Issue#14)
Lou Berger [Fri, 6 Jan 2017 23:25:56 +0000 (18:25 -0500)]
bgpd: restore wildcard handling in show summary (Issue#14)
      Includes more branch specific afi/safi changes

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agobgpd: restore some missing afi/safi commands (Issue #14)
Lou Berger [Fri, 6 Jan 2017 15:50:31 +0000 (10:50 -0500)]
bgpd: restore some missing afi/safi commands (Issue #14)
      Added defines and parse utility functions
      Fix vty code that treated vpn&encap as AFIs
      and some other related vty printing/handline issues
      Note: Includes branch specific changes (due to new parser)

Signed-off-by: Lou Berger <lberger@labn.net>
8 years agoMerge pull request #51 from donaldsharp/atol_borked
Olivier Dugeon [Mon, 9 Jan 2017 14:26:41 +0000 (15:26 +0100)]
Merge pull request #51 from donaldsharp/atol_borked

Atol borked

8 years agoMerge pull request #47 from donaldsharp/valgrind
Donald Sharp [Mon, 9 Jan 2017 14:17:17 +0000 (09:17 -0500)]
Merge pull request #47 from donaldsharp/valgrind

Valgrind

8 years agoMerge pull request #53 from opensourcerouting/fixes/isis-for-stable
Donald Sharp [Fri, 6 Jan 2017 20:13:43 +0000 (15:13 -0500)]
Merge pull request #53 from opensourcerouting/fixes/isis-for-stable

isisd: clean up own LSPs correctly on update

8 years agoisisd: clean up own LSPs correctly on update 53/head
Christian Franke [Fri, 6 Jan 2017 19:19:40 +0000 (20:19 +0100)]
isisd: clean up own LSPs correctly on update

Signed-off-by: Christian Franke <chris@opensourcerouting.org>
8 years agoMerge pull request #50 from mwinter-osr/redhat-pkg-rename
Donald Sharp [Fri, 6 Jan 2017 17:41:43 +0000 (12:41 -0500)]
Merge pull request #50 from mwinter-osr/redhat-pkg-rename

Redhat pkg rename

8 years agozebra: Allow tag values greater than 2 billion on arm 51/head
Donald Sharp [Fri, 6 Jan 2017 17:25:55 +0000 (12:25 -0500)]
zebra: Allow tag values greater than 2 billion on arm

Due to the usage of atol, values that are larger than
2 billion on arm for tag are not converted correctly.

Ticket: CM-14099
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agobgpd: Allow 'neighbor X local-as Y' to have large values
Donald Sharp [Fri, 6 Jan 2017 17:24:03 +0000 (12:24 -0500)]
bgpd: Allow 'neighbor X local-as Y' to have large values

On ARM platforms specifying a local-as greater than
2 billion causes issues due to atoi usage.

Ticket: CM-14019
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agoconfigure.ac: rename red hat spec from quagga.spec to frr.spec 50/head
Martin Winter [Fri, 6 Jan 2017 17:12:16 +0000 (00:12 +0700)]
configure.ac: rename red hat spec from quagga.spec to frr.spec

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agocumulus files: Rename Project from Quagga to FRR
Martin Winter [Fri, 6 Jan 2017 17:10:57 +0000 (00:10 +0700)]
cumulus files: Rename Project from Quagga to FRR

Default files used by redhat package scripts

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoredhat: rename project from Quagga to FRR
Martin Winter [Fri, 6 Jan 2017 16:45:13 +0000 (23:45 +0700)]
redhat: rename project from Quagga to FRR

Rename all instances of Quagga to FRR in red hat package files

Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
8 years agoMerge pull request #41 from donaldsharp/quagga_to_frr
Martin Winter [Fri, 6 Jan 2017 13:07:41 +0000 (20:07 +0700)]
Merge pull request #41 from donaldsharp/quagga_to_frr

Quagga to frr - Rename of Quagga to FRR (FreeRangeRouting)

8 years agoospfd: Stop attempt to read beyond end of argv 47/head
Donald Sharp [Thu, 5 Jan 2017 17:52:18 +0000 (12:52 -0500)]
ospfd: Stop attempt to read beyond end of argv

When unconfiguring certain commands in ospf, you can
run into situations where we attempt to read beyond
the end of a argv[] vector created.  On certain platforms
this will crash it.

Ticket: CM-14090
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agolib: Stop potential uninitialized memory access
Donald Sharp [Thu, 5 Jan 2017 17:44:23 +0000 (12:44 -0500)]
lib: Stop potential uninitialized memory access

VRF_UNKNOWN = MAX_INT16_T

The vrf macros to determine where in the bitmap something belongs
assume that the valid values of a vrf are 0 - (MAX_INT16 - 1)
so when they attempt to determine where to look in the bitmap
for VRF_DEFAULT, we can get invalid reads of memory.

This happens because bgp can create vrf's with VRF_UNKNOWN
when we get configuration for a vrf before we've been actually
created in zebra.

Ticket: CM-14090
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
8 years agoMerge pull request #45 from opensourcerouting/fixes/isis-for-stable
Donald Sharp [Fri, 6 Jan 2017 00:32:30 +0000 (19:32 -0500)]
Merge pull request #45 from opensourcerouting/fixes/isis-for-stable

isisd: don't generate LSPs with LSP-ID zero on is-type change

8 years agoisisd: don't generate LSPs with LSP-ID zero on is-type change 45/head
Christian Franke [Thu, 5 Jan 2017 19:22:31 +0000 (20:22 +0100)]
isisd: don't generate LSPs with LSP-ID zero on is-type change

Signed-off-by: Christian Franke <chris@opensourcerouting.org>