]> git.proxmox.com Git - mirror_frr.git/log
mirror_frr.git
5 years agotests/topotests: bgp_l3vpn_to_bgp_vrf double the amount of time to wait during scalin...
Lou Berger [Thu, 13 Jun 2019 21:01:30 +0000 (21:01 +0000)]
tests/topotests: bgp_l3vpn_to_bgp_vrf double the amount of time to wait during scaling tests

Signed-off-by: Lou Berger <lberger@labn.net>
5 years agoMerge pull request #4499 from kssoman/core
Lou Berger [Thu, 13 Jun 2019 20:08:11 +0000 (16:08 -0400)]
Merge pull request #4499 from kssoman/core

bgpd: Process core when bgp instance is deleted

5 years agobgpd, lib: Add iana_afi2str and iana_safi2str for eye pleasing strings (#4439)
David Lamparter [Thu, 13 Jun 2019 20:06:49 +0000 (22:06 +0200)]
bgpd, lib: Add iana_afi2str and iana_safi2str for eye pleasing strings (#4439)

bgpd, lib: Add iana_afi2str and iana_safi2str for eye pleasing strings

5 years agoMerge pull request #4500 from opensourcerouting/clippy-improve
Quentin Young [Thu, 13 Jun 2019 19:06:24 +0000 (15:06 -0400)]
Merge pull request #4500 from opensourcerouting/clippy-improve

clippy: batch of improvements

5 years agoMerge pull request #4509 from opensourcerouting/spanish-intquisition
Quentin Young [Thu, 13 Jun 2019 18:00:50 +0000 (14:00 -0400)]
Merge pull request #4509 from opensourcerouting/spanish-intquisition

lib: make printfrr int64_t usable

5 years agoMerge pull request #4502 from opensourcerouting/topotest-backward-compat
Donald Sharp [Thu, 13 Jun 2019 13:19:02 +0000 (09:19 -0400)]
Merge pull request #4502 from opensourcerouting/topotest-backward-compat

topotests: backward compatibility fix

5 years agoMerge pull request #4448 from opensourcerouting/cxx-container-of
Mark Stapp [Thu, 13 Jun 2019 12:38:05 +0000 (08:38 -0400)]
Merge pull request #4448 from opensourcerouting/cxx-container-of

lib: const-unaware container_of for C++

5 years agoMerge pull request #4506 from opensourcerouting/fix-outdated-candidate
Donald Sharp [Thu, 13 Jun 2019 10:01:28 +0000 (06:01 -0400)]
Merge pull request #4506 from opensourcerouting/fix-outdated-candidate

lib: fix outdated candidate configuration issue

5 years agoDocker binary image on Debian Buster (#4504)
David Lamparter [Wed, 12 Jun 2019 22:24:27 +0000 (00:24 +0200)]
Docker binary image on Debian Buster (#4504)

Docker binary image on Debian Buster

5 years agoMerge pull request #4510 from sworleys/DOC-systemd-devel
David Lamparter [Wed, 12 Jun 2019 17:58:17 +0000 (19:58 +0200)]
Merge pull request #4510 from sworleys/DOC-systemd-devel

doc: Add systemd-devel to fedora build instruction

5 years agobuild: use -O2, not -Os
David Lamparter [Wed, 12 Jun 2019 15:37:24 +0000 (17:37 +0200)]
build: use -O2, not -Os

apparently -Os is quite a bit slower...

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agotools: add vim snippet
David Lamparter [Wed, 12 Jun 2019 15:32:29 +0000 (17:32 +0200)]
tools: add vim snippet

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agolib: make "%Ld" work for int64_t
David Lamparter [Wed, 12 Jun 2019 15:08:01 +0000 (17:08 +0200)]
lib: make "%Ld" work for int64_t

... without compiler plugins.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agolib: use snprintfrr() in "hidden" printfs
David Lamparter [Wed, 12 Jun 2019 15:11:21 +0000 (17:11 +0200)]
lib: use snprintfrr() in "hidden" printfs

We need to be calling snprintfrr() instead of snprintf() in places that
wrap snprintf in some user-exposed way; otherwise the extensions won't
be available for those functions.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agozebra: fix stats printing formats
David Lamparter [Wed, 12 Jun 2019 17:35:08 +0000 (19:35 +0200)]
zebra: fix stats printing formats

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agolib/clippy: expand some macros
David Lamparter [Tue, 11 Jun 2019 13:35:28 +0000 (15:35 +0200)]
lib/clippy: expand some macros

At least the "easy" cases of macros work.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agolib/clippy: assert() for non-optional args
David Lamparter [Tue, 4 Jun 2019 18:27:05 +0000 (20:27 +0200)]
lib/clippy: assert() for non-optional args

This is mostly to help static analysis; since we know from the command
string which args are optional and which aren't, we can add assert()
statements on them.

Fixes: #3270
Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agolib/clippy: error out on unsupported bits
David Lamparter [Tue, 4 Jun 2019 15:07:57 +0000 (17:07 +0200)]
lib/clippy: error out on unsupported bits

clippy can't process #ifdef or similar bits inside of an argument list
(e.g. within the braces of a DEFUN or DEFPY statement.)  Improve error
reporting to catch these cases instead of generating broken C code.

Fixes: #3840
Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: improve env var handling for cross build
David Lamparter [Tue, 4 Jun 2019 14:20:20 +0000 (16:20 +0200)]
build: improve env var handling for cross build

We can use `$ac_precious_vars` to get at autoconf's conception of which
environment variables are relevant.  This makes "HOST_..." setup more
consistent for cross-compilation setups.

Fixes: #4006
Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: improve clippy options
David Lamparter [Tue, 4 Jun 2019 13:35:16 +0000 (15:35 +0200)]
build: improve clippy options

* adds a `--with-clippy=...` option to use a prebuilt clippy binary
* limits the autoconf tests done for `--enable-clippy-only`
  (e.g. no libyang)

Fixes: #3921
Fixes: #4006
Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: remove tests/Makefile.in
David Lamparter [Tue, 4 Jun 2019 12:28:36 +0000 (14:28 +0200)]
build: remove tests/Makefile.in

this was accidentally added in 370c8e07

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: use -Wno-yacc on bison 3.3+
David Lamparter [Tue, 4 Jun 2019 12:23:29 +0000 (14:23 +0200)]
build: use -Wno-yacc on bison 3.3+

we only support bison, we don't care about yacc compatibility.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobuild: slim down configure.ac
David Lamparter [Tue, 4 Jun 2019 12:12:30 +0000 (14:12 +0200)]
build: slim down configure.ac

Quite a few tests are deprecated/unnecessary at this point.  Remove
everything that is pointless.

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agodoc: Add systemd-devel to fedora build instruction
Stephen Worley [Wed, 12 Jun 2019 15:59:21 +0000 (11:59 -0400)]
doc: Add systemd-devel to fedora build instruction

systemd-devel is a neccessary package for building frr, added to
the install list.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
5 years agolib: fix outdated candidate configuration issue
Renato Westphal [Mon, 27 May 2019 22:48:13 +0000 (19:48 -0300)]
lib: fix outdated candidate configuration issue

Even when using the classic CLI mode (i.e. when --tcli is not
used), the northbound code still uses vty->candidate_config
to perform configuration changes. From the perspective of the
user, the running configuration is being edited directly, but
under the hood the northbound layer does a full configuration
transaction for each command.  When the running configuration is
edited by a northbound client other than the CLI (e.g. kernel,
gRPC), vty->candidate_config might become outdated, and this can
lead to lots of weird problems. To fix this, always regenerate
vty->candidate_config before each configuration command when
using the classic CLI mode. When using the transactional CLI,
the user needs to update the candidate manually using the "update"
command, otherwise the "commit" command will fail with this error:
"% Candidate configuration needs to be updated before commit".

Fixes some problems reported by Don after moving an interface from
one VRF to another one while zebra is running.

Reported-by: Don Slice <dslice@cumulusnetworks.com>
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
5 years agoMerge pull request #3509 from faickermo/fix_bgp_ipv6_default_nexthop
Donald Sharp [Wed, 12 Jun 2019 12:23:03 +0000 (08:23 -0400)]
Merge pull request #3509 from faickermo/fix_bgp_ipv6_default_nexthop

bgpd: Set bgp default nexthop value of IPv6

5 years agodocker: Docker binary image on Debian Buster
Rob Gil [Tue, 11 Jun 2019 15:47:08 +0000 (11:47 -0400)]
docker: Docker binary image on Debian Buster

Utilizes debian buster and the support libyang from the vendor.

Signed-off-by: Rob Gil <rob@rem5.com>
5 years agoMerge pull request #4498 from ak503/ldpd
Quentin Young [Tue, 11 Jun 2019 18:16:35 +0000 (14:16 -0400)]
Merge pull request #4498 from ak503/ldpd

ldpd: Fix shutdown

5 years agotopotests: backward compatibility fix
Rafael Zalamena [Tue, 11 Jun 2019 16:53:13 +0000 (13:53 -0300)]
topotests: backward compatibility fix

Allow old topologies to use default parameters from `pytest.ini`.

Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
5 years agolib: const-unaware container_of for C++
David Lamparter [Mon, 3 Jun 2019 13:41:05 +0000 (15:41 +0200)]
lib: const-unaware container_of for C++

This version of container_of() should work on C++, by ditching the
unavailable builtins (at the cost of no longer checking for "const"
violations.)

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agobgpd: Process core when bgp instance is deleted
Soman K S [Tue, 11 Jun 2019 13:20:09 +0000 (06:20 -0700)]
bgpd: Process core when bgp instance is deleted

* When the bgp is being deleted and routes are in clear workqueue
  and new aggregate address being allocated
* Added flag BGP_FLAG_DELETE_IN_PROGRESS in bgp structure to
  bgp instance is being  deleted
* When adding aggregate route check this flag and  peer_self is valid

Signed-off-by: Soman K S <somanks@vmware.com>
5 years agoMerge pull request #4482 from opensourcerouting/warnings-20190606
Russ White [Tue, 11 Jun 2019 12:33:48 +0000 (08:33 -0400)]
Merge pull request #4482 from opensourcerouting/warnings-20190606

*: fix some dumb printf format warnings

5 years agoMerge pull request #4494 from donaldsharp/no_src_for_you
Russ White [Tue, 11 Jun 2019 12:13:04 +0000 (08:13 -0400)]
Merge pull request #4494 from donaldsharp/no_src_for_you

pimd: The PIM_OIF_FLAG_PROTO_SRC flag was never used

5 years agoMerge pull request #4483 from donaldsharp/pim_mroute_debug_detail
Russ White [Tue, 11 Jun 2019 12:08:49 +0000 (08:08 -0400)]
Merge pull request #4483 from donaldsharp/pim_mroute_debug_detail

pimd: debug pim XXX detail now include the non detail data as well

5 years agoMerge pull request #4491 from opensourcerouting/watchfrr-sd-timeout
Russ White [Tue, 11 Jun 2019 11:59:52 +0000 (07:59 -0400)]
Merge pull request #4491 from opensourcerouting/watchfrr-sd-timeout

tools: retain WATCHDOG_USEC when reloading

5 years agoldpd: Fix shutdown
dturlupov [Tue, 11 Jun 2019 11:55:10 +0000 (14:55 +0300)]
ldpd: Fix shutdown

When we stopped ldpd, we get fatal error message from wait().
This commit fix it.

Signed-off-by: Dmitrii Turlupov <dturlupov@factor-ts.ru>
5 years ago*: fix some dumb printf format warnings
David Lamparter [Thu, 6 Jun 2019 21:48:15 +0000 (23:48 +0200)]
*: fix some dumb printf format warnings

Some types like `time_t` vary across platforms and always need to be
cast when printed.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
5 years agoMore compiler cleanup (#4487)
David Lamparter [Tue, 11 Jun 2019 11:31:52 +0000 (13:31 +0200)]
More compiler cleanup (#4487)

More compiler cleanup

5 years agoZebra.h header cleanup (#4444)
David Lamparter [Tue, 11 Jun 2019 09:36:17 +0000 (11:36 +0200)]
Zebra.h header cleanup (#4444)

Zebra.h header cleanup

5 years agoMerge pull request #4481 from donaldsharp/pim_zlookup_fixup
David Lamparter [Tue, 11 Jun 2019 09:10:40 +0000 (11:10 +0200)]
Merge pull request #4481 from donaldsharp/pim_zlookup_fixup

pimd: Allow zlookup socket to drain

5 years agoMerge pull request #4493 from sworleys/Pbr-NHT-Fix
David Lamparter [Tue, 11 Jun 2019 08:59:25 +0000 (10:59 +0200)]
Merge pull request #4493 from sworleys/Pbr-NHT-Fix

zebra, pbrd: PBR handle nexthop tracking correctly

5 years agozebra,pbrd: Update pbrd to handle NHT properly
Stephen Worley [Mon, 10 Jun 2019 04:39:40 +0000 (00:39 -0400)]
zebra,pbrd: Update pbrd to handle NHT properly

Update pbrd to properly handle nexthop tracking.

When we get a notification that a change happened on a nexthop,
re-install it if its still valid.

Before, we were running over all routes and re-queueing them if they
were PBR routes. This commit removes that and puts all the processing
in PBR instead.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
5 years agopbrd: Set next/prev to NULL on cached nexthops
Stephen Worley [Mon, 10 Jun 2019 04:36:59 +0000 (00:36 -0400)]
pbrd: Set next/prev to NULL on cached nexthops

When we copy a new nexthop to cache and track, set its
next and prev pointers to NULL. We don't want those since
this is to be treated as a single nexthop.Other nexthops that
aren't in a group could hash to this nexthop so it doesn't
make sense to keep those pointers in the cache.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
5 years agotools: retain sanity when reloading under systemd
David Lamparter [Sun, 9 Jun 2019 23:35:04 +0000 (01:35 +0200)]
tools: retain sanity when reloading under systemd

Without this, we end up restarting watchfrr with the systemd watchdog
non-functional & tripped a bit later.  Also, if watchfrr is in the
"control" cgroup, systemd 232 will kill it.  (241 apparently doesn't.
Can't find anything about this in systemd's ChangeLog though.)

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
5 years agoMerge pull request #4488 from donaldsharp/pim_solo
Mark Stapp [Mon, 10 Jun 2019 15:30:01 +0000 (11:30 -0400)]
Merge pull request #4488 from donaldsharp/pim_solo

Pim solo

5 years agoMerge pull request #4492 from dslicenc/bgp-l2vpn-parse
Mark Stapp [Mon, 10 Jun 2019 15:28:58 +0000 (11:28 -0400)]
Merge pull request #4492 from dslicenc/bgp-l2vpn-parse

bgpd: add l2vpn evpn to afi safi parse utility

5 years agobgpd: add l2vpn evpn to afi safi parse utility
Don Slice [Mon, 10 Jun 2019 12:48:36 +0000 (05:48 -0700)]
bgpd: add l2vpn evpn to afi safi parse utility

Problem reported with "clear bgp l2vpn evpn * soft" clearing the
wrong afi/safi (cleared ipv6 unicast instead).  Determined that
the calling function used the argv_find_and_parse_afi/safi routines
to determine the correct afi/safi to pass on.  Since l2vpn/evpn were
missing from the lookup, the command defaulted to ipv6 unicast.  This
fix just adds that afi/safi to the lookup routine.

Ticket: CM-25167
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
5 years agopimd: The PIM_OIF_FLAG_PROTO_SRC flag was never used
Donald Sharp [Sat, 8 Jun 2019 11:30:36 +0000 (07:30 -0400)]
pimd: The PIM_OIF_FLAG_PROTO_SRC flag was never used

Nor should it be.  So remove from system.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #4484 from donaldsharp/pbr_tab_complete
Renato Westphal [Sat, 8 Jun 2019 00:48:53 +0000 (21:48 -0300)]
Merge pull request #4484 from donaldsharp/pbr_tab_complete

Pbr tab complete

5 years agopimd: Remove unnecessary boolean to pim_rpf_update
Donald Sharp [Thu, 2 May 2019 22:25:57 +0000 (18:25 -0400)]
pimd: Remove unnecessary boolean to pim_rpf_update

We already log whether or not we add nht tracking, having
an additional boolean to say to log another line is
a bit over the top.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #4480 from opensourcerouting/inet_ntop
Quentin Young [Fri, 7 Jun 2019 15:23:16 +0000 (11:23 -0400)]
Merge pull request #4480 from opensourcerouting/inet_ntop

inet_ntop but faster

5 years agoMerge pull request #4486 from idryzhov/master
Donald Sharp [Fri, 7 Jun 2019 14:32:03 +0000 (10:32 -0400)]
Merge pull request #4486 from idryzhov/master

eigrpd: fix invalid command definitions

5 years agopimd: Compiler warning about unset usage
Donald Sharp [Fri, 7 Jun 2019 13:28:39 +0000 (09:28 -0400)]
pimd: Compiler warning about unset usage

While this is impossible, make the compilers a bit happier
for those of us having to use something old.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com
5 years agolib: On some platforms function did not return anything
Donald Sharp [Fri, 7 Jun 2019 13:27:38 +0000 (09:27 -0400)]
lib: On some platforms function did not return anything

On some compiler platforms the md5 setup function was
not returning anything.  Place failure case on the bottom
to properly handle this situation.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Include proper header
Donald Sharp [Fri, 7 Jun 2019 13:26:46 +0000 (09:26 -0400)]
lib: Include proper header

bcopy is being used in the new printf code.  Let's actually
include the proper header for it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib, pimd, sharpd: Various output string cleanups
Donald Sharp [Fri, 7 Jun 2019 13:25:53 +0000 (09:25 -0400)]
lib, pimd, sharpd: Various output string cleanups

Various compilers in our CI system were complaining about various
auto-conversions.  Let's get these cleaned up a bit more.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoeigrpd: fix invalid command definitions
Igor Ryzhov [Fri, 7 Jun 2019 13:21:17 +0000 (16:21 +0300)]
eigrpd: fix invalid command definitions

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
5 years agoMerge pull request #4449 from opensourcerouting/py-detect
Donald Sharp [Fri, 7 Jun 2019 11:19:35 +0000 (07:19 -0400)]
Merge pull request #4449 from opensourcerouting/py-detect

build: refactor & revamp python autoconf logic

5 years agopimd: debug pim XXX detail now include the non detail data as well
Donald Sharp [Thu, 6 Jun 2019 23:05:23 +0000 (19:05 -0400)]
pimd: debug pim XXX detail now include the non detail data as well

If you have turned on a pim debug XXX detail, also include the
base form as well.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agopimd: Allow zlookup socket to drain
Donald Sharp [Thu, 6 Jun 2019 20:23:09 +0000 (16:23 -0400)]
pimd: Allow zlookup socket to drain

When pim is started and has nothing to talk to zebra about
over the zlookup socket and interface events are happening
then the zlookup socket is not being drained.

This eventually leads to a situation where the kernel send buffer
fills up and zebra is unable to write anything down the pipe.
At this time the zapi starts buffering data in `struct buffer`
which of course slowly fills up as pim has nothing to do.

As a bit of a hack allow the zlookup socket to wake up 1 time
a minute and ask for information about the default route
and do nothing with it.  This will cause the socket buffers
to be drained and the system will be happy.

Long term we need to get rid of this synchronous/asynchronous
duality that pim has.  This is on the radar but is not something
that could be fixed in an afternoon or a week of effort in my
opinion.  Given time constraints right now.  Let's put this
in place and then once we get pim completely async then
we can just remove the zlookup( I hope ) code.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #4457 from mjstapp/fix_sa_warning
Rafael Zalamena [Thu, 6 Jun 2019 19:33:25 +0000 (16:33 -0300)]
Merge pull request #4457 from mjstapp/fix_sa_warning

bgpd,babeld,bfdd,lib,ripngd,nhrpd: clean up SA warnings

5 years agotests: exercise frr_inet_ntop()
David Lamparter [Thu, 6 Jun 2019 17:35:03 +0000 (19:35 +0200)]
tests: exercise frr_inet_ntop()

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agolib: add optimized inet_ntop()
David Lamparter [Thu, 6 Jun 2019 17:10:29 +0000 (19:10 +0200)]
lib: add optimized inet_ntop()

This commit is brought to you by: "Manuel - Gas Gas Gas" (Initial D)

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agolib: add OPTIMIZE + assume() to compiler.h
David Lamparter [Thu, 6 Jun 2019 16:51:32 +0000 (18:51 +0200)]
lib: add OPTIMIZE + assume() to compiler.h

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agoMerge pull request #4428 from mjstapp/topo_update_ospf6
Rafael Zalamena [Thu, 6 Jun 2019 18:57:49 +0000 (15:57 -0300)]
Merge pull request #4428 from mjstapp/topo_update_ospf6

topotests: migrate ospf6 test to topogen framework

5 years agotests: Add ip6_route_zebra lib function
Mark Stapp [Thu, 6 Jun 2019 15:49:15 +0000 (11:49 -0400)]
tests: Add ip6_route_zebra lib function

Add a common function to retrieve and canonicalize
'show ipv6 route' output for use in topotests. Use that in
the test_ospf6_topo1 test; update the corresponding 'expected'
results files to match the lib function.

Replace some 'print' with 'logger' statements in that test also.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
5 years agolib,bgpd,babeld,ripngd,nhrpd,bfdd: clean up SA warnings
Mark Stapp [Tue, 4 Jun 2019 19:06:26 +0000 (15:06 -0400)]
lib,bgpd,babeld,ripngd,nhrpd,bfdd: clean up SA warnings

Clean up several SA warnings.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
5 years agoMerge pull request #4370 from pguibert6WIND/fix_interface_rtadv2
Donald Sharp [Thu, 6 Jun 2019 14:25:09 +0000 (10:25 -0400)]
Merge pull request #4370 from pguibert6WIND/fix_interface_rtadv2

Fix Router advertisements per VRF

5 years agoMerge pull request #4468 from donaldsharp/isis_v6_addr_count
David Lamparter [Thu, 6 Jun 2019 13:18:20 +0000 (15:18 +0200)]
Merge pull request #4468 from donaldsharp/isis_v6_addr_count

isisd: The RFC states that v6 addresses are limited to 16 in a hello …

5 years agoMerge pull request #4333 from opensourcerouting/printfrr
Donald Sharp [Wed, 5 Jun 2019 17:30:42 +0000 (13:30 -0400)]
Merge pull request #4333 from opensourcerouting/printfrr

printfrr() world domination tour

5 years agoMerge pull request #4431 from donaldsharp/mad_gainz
Rafael Zalamena [Wed, 5 Jun 2019 14:30:19 +0000 (11:30 -0300)]
Merge pull request #4431 from donaldsharp/mad_gainz

Switch over to `-N FOO` adding FOO to the various directories/files we open up

5 years agoMerge pull request #4459 from donaldsharp/bfd_access_list_ignore
Rafael Zalamena [Wed, 5 Jun 2019 13:15:16 +0000 (10:15 -0300)]
Merge pull request #4459 from donaldsharp/bfd_access_list_ignore

bfdd: Modify bfdd to quietly accept access-lists

5 years agopbrd: Allow autocompletion for pbr-map PBRMAP
Donald Sharp [Wed, 5 Jun 2019 10:51:08 +0000 (06:51 -0400)]
pbrd: Allow autocompletion for pbr-map PBRMAP

Allow the end user to auto-complete the pbr-map name.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib, pbrd, sharpd, vtysh: Add autocompletion for 'nexthop-group'
Donald Sharp [Wed, 5 Jun 2019 10:33:00 +0000 (06:33 -0400)]
lib, pbrd, sharpd, vtysh: Add autocompletion for 'nexthop-group'

Add some auto-completion for the nexthop-group command

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobfdd: Modify bfdd to quietly accept access-lists
Donald Sharp [Wed, 5 Jun 2019 01:38:11 +0000 (21:38 -0400)]
bfdd: Modify bfdd to quietly accept access-lists

The `access-list ...` command was causing bfdd to return
'unknown commands'.  Make bfdd at least cognizant of
access-lists enough to not create strange error messages

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoisisd: The RFC states that v6 addresses are limited to 16 in a hello packet
Donald Sharp [Wed, 5 Jun 2019 01:15:43 +0000 (21:15 -0400)]
isisd: The RFC states that v6 addresses are limited to 16 in a hello packet

The RFC states we can send only up to 16 v6 addresses in a hello packet
and cannot send sub tlv's of that type.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agodoc: Update the documentation to reflect -N changes
Donald Sharp [Fri, 31 May 2019 00:16:46 +0000 (20:16 -0400)]
doc: Update the documentation to reflect -N changes

The -N <namespace> option is now used to control the location
of various control files and sockets.  Update the documentation
to reflect this.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years ago*: Convert over to all -N namespace to change DAEMON_VTY_DIR
Donald Sharp [Thu, 30 May 2019 23:55:26 +0000 (19:55 -0400)]
*: Convert over to all -N namespace to change DAEMON_VTY_DIR

When the user specifies -N namespace allow it to influence the
frr_vtydir(DAEMON_VTY_DIR) to have namespace in it's path
like so: $frrstate_dir/<namespace>

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoMerge pull request #4456 from opensourcerouting/workflow-update
Mark Stapp [Tue, 4 Jun 2019 17:38:39 +0000 (13:38 -0400)]
Merge pull request #4456 from opensourcerouting/workflow-update

workflow updates for version numbers & C++

5 years agotopotests: test bgp ipv6 vrf lite unnumbered with ipv6 rt advertisements
Philippe Guibert [Wed, 27 Mar 2019 10:13:38 +0000 (11:13 +0100)]
topotests: test bgp ipv6 vrf lite unnumbered with ipv6 rt advertisements

bgp ipv6 implies that routing advertisements be available for all vrf.
in the case of the vrf backend is network namespace, this should be
tested too. in addition to configure addresses per interface on a
separate vrf, the test also checks for BGP connectivity.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agotopotests: test bgp ipv6 unnumbered with ipv6 rt advertisements
Philippe Guibert [Wed, 27 Mar 2019 10:13:38 +0000 (11:13 +0100)]
topotests: test bgp ipv6 unnumbered with ipv6 rt advertisements

bgp ipv6 implies that routing advertisements be available for all vrf.
in the case of the vrf backend is network namespace, this should be
tested too. in addition to configure addresses per interface on a
separate vrf, the test also checks for BGP connectivity.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agozebra: keep rtadv_sock field in zrouter for optimisation
Philippe Guibert [Wed, 27 Mar 2019 14:05:58 +0000 (15:05 +0100)]
zebra: keep rtadv_sock field in zrouter for optimisation

in the case the vrf backend is vrf-lite, there is no need to have
separate sockets. use a socket located in zrouter, so that when needing
the socket, a common API is used. that API will return the appropriate
socket value.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agozebra: move rtadv service from zrouter to zvrf
Philippe Guibert [Wed, 27 Mar 2019 09:25:13 +0000 (10:25 +0100)]
zebra: move rtadv service from zrouter to zvrf

when network namespace is used as vrf backend, there is need to have
separate contexts for rtadv contexts.
route advertisements have to look for appropriate interface based on
zvrf context.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
5 years agoworkflow: document current C++ approach
David Lamparter [Tue, 4 Jun 2019 16:12:19 +0000 (18:12 +0200)]
workflow: document current C++ approach

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agoworkflow: update notes for release numbering
David Lamparter [Tue, 4 Jun 2019 16:02:35 +0000 (18:02 +0200)]
workflow: update notes for release numbering

People have been complaining our major version number increases to
fast and/or in a meaningless way...

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years ago*: Convert to using frr_vtydir instead of DAEMON_VTY_DIR
Donald Sharp [Thu, 30 May 2019 23:38:00 +0000 (19:38 -0400)]
*: Convert to using frr_vtydir instead of DAEMON_VTY_DIR

In a variety of places we are using DAEMON_VTY_DIR, convert
to use frr_vtydir.  This will allow us in a future commit
to have the -N namespace option be automatically used.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agoldpd: Allow for -N <namespace> to influence location of LDPD_SOCKET
Donald Sharp [Thu, 30 May 2019 23:23:15 +0000 (19:23 -0400)]
ldpd: Allow for -N <namespace> to influence location of LDPD_SOCKET

If --ctl_socket is used this will override any other option and will
be used

If -N <namespace> is used, then we will setup the LDPD_SOCKET
in $frr_statedir/<namespace>/ldpd.sock

If neither option is used, then we will use $frr_statedir/ldpd.sock

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobfdd: Allow -N to influence BFDD_CONTROL_SOCKET
Donald Sharp [Thu, 30 May 2019 23:10:35 +0000 (19:10 -0400)]
bfdd: Allow -N to influence BFDD_CONTROL_SOCKET

When selecting to run bfdd with -N allow the namespace passed
in to be added to the $frr_statedir/<namespace name>/bfdd.sock

If --bfdctl is passed in that will override the -N option.

If neither --bfdctl or -N is passed in then the default
of  $frr_statedir/bfdd.sock is used.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agolib: Allow -N to modify the zapi domain socket
Donald Sharp [Thu, 30 May 2019 22:51:00 +0000 (18:51 -0400)]
lib: Allow -N to modify the zapi domain socket

When using -z, allow that to override the zapi domain socket
path.  If using -N add the namespace name to the path to
$frr_statedir/<namespace>/zserv.api.  If you don't specify
the -N or -z option then it is $frr_statedir/zserv.api

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobuild: refactor & revamp python autoconf logic
David Lamparter [Mon, 27 May 2019 22:35:24 +0000 (00:35 +0200)]
build: refactor & revamp python autoconf logic

Signed-off-by: David Lamparter <equinox@diac24.net>
5 years agoMerge pull request #4452 from donaldsharp/mroute_count
Russ White [Tue, 4 Jun 2019 13:16:34 +0000 (09:16 -0400)]
Merge pull request #4452 from donaldsharp/mroute_count

pim: Add `clear ip mroute [vrf NAME] count` command

5 years agoMerge pull request #4454 from donaldsharp/evpn_vni_seq_display
Russ White [Tue, 4 Jun 2019 13:15:35 +0000 (09:15 -0400)]
Merge pull request #4454 from donaldsharp/evpn_vni_seq_display

zebra: When displaying `show evpn arp-cache vni XX` add local and rem…

5 years agoMerge pull request #3555 from pguibert6WIND/bgp_wording_vrf_table
Russ White [Tue, 4 Jun 2019 13:14:37 +0000 (09:14 -0400)]
Merge pull request #3555 from pguibert6WIND/bgp_wording_vrf_table

bgpd: use the wording vrf instead of table

5 years agoMerge pull request #4455 from lkrishnamoor/revert
Donald Sharp [Tue, 4 Jun 2019 11:41:09 +0000 (07:41 -0400)]
Merge pull request #4455 from lkrishnamoor/revert

Revert of PR 4078 and PR 4315

5 years agoMerge pull request #4453 from donaldsharp/deprecate_bgp
David Lamparter [Tue, 4 Jun 2019 11:15:45 +0000 (13:15 +0200)]
Merge pull request #4453 from donaldsharp/deprecate_bgp

Deprecate bgp

5 years agoRevert of PR 4078 and PR 4315
Lakshman Krishnamoorthy [Mon, 3 Jun 2019 22:36:02 +0000 (15:36 -0700)]
Revert of PR 4078 and PR 4315

Signed-off-by: Lakshman Krishnamoorthy <lkrishnamoor@vmware.com>
5 years agozebra: When displaying `show evpn arp-cache vni XX` add local and remote seq
Donald Sharp [Mon, 3 Jun 2019 19:11:17 +0000 (15:11 -0400)]
zebra: When displaying `show evpn arp-cache vni XX` add local and remote seq

Add the local and remote sequence number to the `show evpn arp-cache vni XX` command.

VNI 1000111 #ARP (IPv4 and IPv6, local and remote) 15

IP                       Type   State    MAC               Remote VTEP           Seq #'s
fe80::202:ff:fe00:15     remote active   00:02:00:00:00:15 6.0.0.31              0/0
fe80::202:ff:fe00:8      local  active   00:02:00:00:00:08                       0/0
60.1.1.111               local  active   00:02:00:00:00:08                       0/0
2060:1:1:1::11           local  active   00:e0:ec:38:49:a1                       0/0
fe80::202:ff:fe00:11     remote active   00:02:00:00:00:11 6.0.0.30              0/0
2060:1:1:1::211          remote active   00:02:00:00:00:11 6.0.0.30              0/0
2060:1:1:1::121          remote active   00:02:00:00:00:0c 6.0.0.29              0/0
60.1.1.211               remote active   00:02:00:00:00:11 6.0.0.30              0/0
fe80::202:ff:fe00:c      remote active   00:02:00:00:00:0c 6.0.0.29              0/0
60.1.1.11                local  active   00:e0:ec:38:49:a1                       0/0
fe80::2e0:ecff:fe38:49a1 local  active   00:e0:ec:38:49:a1                       0/0
60.1.1.221               remote active   00:02:00:00:00:15 6.0.0.31              0/0
2060:1:1:1::111          local  active   00:02:00:00:00:08                       0/0
2060:1:1:1::221          remote active   00:02:00:00:00:15 6.0.0.31              0/0
60.1.1.121               remote active   00:02:00:00:00:0c 6.0.0.29              0/0

The seq numbers are at 0/0 because we have had no mobility events.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Remove BGP_OPT_CONFIG_CISCO
Donald Sharp [Mon, 3 Jun 2019 19:06:16 +0000 (15:06 -0400)]
bgpd: Remove BGP_OPT_CONFIG_CISCO

The BGP_OPT_CONFIG_CISCO command could no longer be set
as such remove it from the system as a viable option to
be used.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Remove `[no] bgp config-type <cisco|zebra>`
Donald Sharp [Mon, 3 Jun 2019 18:58:26 +0000 (14:58 -0400)]
bgpd: Remove `[no] bgp config-type <cisco|zebra>`

This command has been deprecated for a year and no-one has complained.
Remove from system.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
5 years agobgpd: Remove BGP_OPT_MULTIPLE_INSTANCE flag
Donald Sharp [Mon, 3 Jun 2019 16:55:48 +0000 (12:55 -0400)]
bgpd: Remove BGP_OPT_MULTIPLE_INSTANCE flag

Since we no-longer allow you to select multiple-instance
or not from the cli, let's completely remove the flag
as well.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>