]>
git.puffer.fish Git - mirror/frr.git/log
Rodny Molina [Wed, 12 Dec 2018 00:23:23 +0000 (00:23 +0000)]
Minor adjustments to address CI warnings
Rodny Molina [Tue, 27 Nov 2018 01:21:31 +0000 (01:21 +0000)]
fabricd: Disabling OpenFabric optimization to avoid considering T0 devices only as DNRs
Signed-off-by: Rodny Molina <rmolina@linkedin.com>
Christian Franke [Fri, 23 Nov 2018 23:36:37 +0000 (00:36 +0100)]
isisd: Provide statistics over number of generated purges
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 23 Nov 2018 20:36:26 +0000 (21:36 +0100)]
isisd: Provide statistics over number of LSP regenerations
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 23 Nov 2018 20:32:18 +0000 (21:32 +0100)]
isisd: Provide statistics about retransmitted LSPs
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 23 Nov 2018 16:50:33 +0000 (17:50 +0100)]
isisd: Provide statistics about sent/received PDU count
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 23 Nov 2018 03:46:09 +0000 (04:46 +0100)]
fabricd: Update neighbor list on adjacency state change
We should update our neighbors list immediately when an adjacency
changes state, not when we run SPF.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 23 Nov 2018 03:26:19 +0000 (04:26 +0100)]
fabricd: make triggered csnp delay configurable
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 23 Nov 2018 02:34:16 +0000 (03:34 +0100)]
fabricd: Improve LSP flooding log
Also track when we received an LSP as do not reflood, as well as the
time when we last considered flooding it.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 23 Nov 2018 02:13:56 +0000 (03:13 +0100)]
fabricd: Add `show openfabric flooding` command
Add a command to show to what neighbors an LSP has been flooded.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 23 Nov 2018 01:11:07 +0000 (02:11 +0100)]
isisd: Make lspid_print non-static
`lspid_print` is useful in other places, so make it available
in `isis_lsp.h`.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 23 Nov 2018 00:38:24 +0000 (01:38 +0100)]
isisd: Move code to find LSP out of show database
Finding an LSP by its id is useful not only for the
`show isis database` command.
So move it out into its own function to make it reusable.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 23 Nov 2018 00:12:24 +0000 (01:12 +0100)]
fabricd: Populate NL from adjdb, not spf
We should really populate the neighbor list for the flooding
optimization from our local adjacency database and not from
a one-hop SPF.
If we use SPF, we may end up never exchanging information with
some neighbors since the bidirectional connection check for spf
fails, since LSPs did not get exchanged.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 16 Nov 2018 15:31:37 +0000 (16:31 +0100)]
isisd: Provide better flooding debugging
Show from where LSP flooding is triggered.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 16 Nov 2018 15:07:18 +0000 (16:07 +0100)]
isisd: Remove unused t_send_lsp timer
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 16 Nov 2018 15:05:54 +0000 (16:05 +0100)]
isisd: Add debug output for tx-queues
To allow easier debugging of LSP transmission scheduling, add a debug
mode where all tx-queue insertions/deletions are logged.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Donald Sharp [Fri, 7 Dec 2018 00:32:07 +0000 (19:32 -0500)]
Merge pull request #3438 from opensourcerouting/bgp-rfapi-default-value
bgpd: don't show default value in configuration
Donald Sharp [Fri, 7 Dec 2018 00:31:26 +0000 (19:31 -0500)]
Merge pull request #3437 from opensourcerouting/bugfix/topotests-use-copy
tests/topotests: Use copied tests in Docker
Donald Sharp [Fri, 7 Dec 2018 00:30:55 +0000 (19:30 -0500)]
Merge pull request #3436 from opensourcerouting/bugfix/topotest-sbin-dir
tests/topotests: Also search sbin for modprobe
Donald Sharp [Fri, 7 Dec 2018 00:30:18 +0000 (19:30 -0500)]
Merge pull request #3421 from pguibert6WIND/bgp_lp_finish_called_too_early
bgpd: delay destruction of label pool
Russ White [Thu, 6 Dec 2018 23:43:03 +0000 (18:43 -0500)]
Merge pull request #3425 from chiragshah6/evpn_dev1
bgpd: set attribute change flag to evpn imported route
Rafael Zalamena [Thu, 6 Dec 2018 19:26:10 +0000 (17:26 -0200)]
bgpd: don't show default value in configuration
Don't show the configuration line `rfp full-table-download off` by
default as it is not the default value, instead only show
`rfp full-table-download on` (the non-default value) when it is
configured.
This standardizes this knob to the FRR default behavior.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Christian Franke [Thu, 6 Dec 2018 17:31:34 +0000 (18:31 +0100)]
tests/topotests: Also search sbin for modprobe
We call `modprobe -n` to check if mpls modules are available to be
loaded. We do this as normal user, to only ask for root permissions
if we are actually loading the module.
This breaks if `modprobe` is in `/sbin` and normal users don't have
sbin in path.
So add `/sbin` to the search path to work around this.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Thu, 6 Dec 2018 14:26:57 +0000 (15:26 +0100)]
tests/topotests: Use copied tests in Docker
If we mount the tests into the container from the host, we also
mount any `*.pyc` files with them, which will lead to issues
as the mount is done read-only to avoid any changes to the host.
Since the tests are now integrated and we already create a writeable
copy of the FRR tree, just use the tests from the FRR tree to avoid
this issue.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Donald Sharp [Thu, 6 Dec 2018 12:53:30 +0000 (07:53 -0500)]
Merge pull request #3419 from opensourcerouting/freebsd-route-warning-fix
zebra: fix some boot up warnings on FreeBSD
Chirag Shah [Wed, 5 Dec 2018 01:08:47 +0000 (17:08 -0800)]
bgpd: set attribute change flag to evpn imported
EVPN route's attribute changes,
mark attribute change flag to imported unicast route.
A scenario where AS_PATH attribute have changed for an EVPN type-5
route, set attribute change
to imported route.
Ticket:CM-23008
Reviewed By:
Testing Done:
Validated via marking EVPN route with AS_PATH prepand.
At the receiving VTEP, ensure attribute change flag is set to
imported unicast route and bgp update sent to VTEPs subsequent
bgp peers with AS_PATH prepend update.
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Rafael Zalamena [Wed, 5 Dec 2018 19:22:56 +0000 (17:22 -0200)]
zebra: don't log errors on unsupported medias
When using `SIOCGIFMEDIA` check for `EINVAL`, otherwise we might print
an error message on an unsupported interface.
FreeBSD source code reference:
https://github.com/freebsd/freebsd/blob/master/sys/net/if_media.c#L300
And:
https://github.com/freebsd/freebsd/blob/
8cb4b0c0181bd45318ee8977f77aea90c53bb224 /usr.sbin/rtsold/if.c#L211
/*
* EINVAL simply means that the interface does not support
* the SIOCGIFMEDIA ioctl. We regard it alive.
*/
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Philippe Guibert [Wed, 5 Dec 2018 16:54:57 +0000 (17:54 +0100)]
bgpd: delay destruction of label pool
label pool finalisation must be delayed after route deletion on bgp.
otherwise a crash will happen, while labels will be released.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Lou Berger [Wed, 5 Dec 2018 15:24:33 +0000 (10:24 -0500)]
Merge pull request #3418 from pguibert6WIND/bgp_rfapi_path_info_extra_free
bgpd: reuse bgp_path_info_extra_free() routing in rfapi
Rafael Zalamena [Wed, 5 Dec 2018 13:51:25 +0000 (11:51 -0200)]
zebra: refactor route socket message handling
Some address types were not being skipped triggering a warning log
message, so lets refactor this code to properly handle known and unknown
types.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Philippe Guibert [Wed, 5 Dec 2018 14:09:35 +0000 (15:09 +0100)]
bgpd: reuse bgp_path_info_extra_free() routing in rfapi
rfapi code should use bgp_path_info_extra_free() routine.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Rafael Zalamena [Wed, 5 Dec 2018 13:50:25 +0000 (11:50 -0200)]
zebra: always define ROUNDUP and ROUND_TYPE
Move the declaration of ROUNDUP and ROUND_TYPE to outside of
`ifdef SA_SIZE`. We'll use these definitions in the next commit.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Sri Mohana Singamsetty [Tue, 4 Dec 2018 18:19:18 +0000 (10:19 -0800)]
Merge pull request #3372 from nitinsoniism/show_evpn_mac_vni_all_detail
zebra: Add "show evpn mac vni all detail" command
Olivier Dugeon [Tue, 4 Dec 2018 17:33:36 +0000 (18:33 +0100)]
Merge pull request #3174 from opensourcerouting/feature/isis-triggered-hello
Feature: IS-IS triggered hello
Quentin Young [Tue, 4 Dec 2018 16:36:11 +0000 (11:36 -0500)]
Merge pull request #3410 from opensourcerouting/bugfix/topotest-docker-build-context
Revert "tests/topotests: Change docker build context"
David Lamparter [Tue, 4 Dec 2018 16:29:50 +0000 (17:29 +0100)]
Merge pull request #3340 from nitinsoniism/show_evpn_vni_detail
zebra: Add "show evpn vni detail" command
Christian Franke [Tue, 4 Dec 2018 15:11:41 +0000 (16:11 +0100)]
topotests: Update json_cmp_result to return readable result
Before this update, json_cmp_results which were formatted as strings
would not show the error mesage but just an object reference.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Tue, 4 Dec 2018 15:11:08 +0000 (16:11 +0100)]
topotests/isis-topo1: Set useful IS-IS debugs
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Wed, 10 Oct 2018 14:00:16 +0000 (16:00 +0200)]
isisd: trigger hellos on adjacency state change
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Wed, 10 Oct 2018 13:43:01 +0000 (15:43 +0200)]
isisd: add send_hello_sched function
Add a function send_hello_sched so that the logic for scheduling a
hello is not replicated inconsistently into different locations.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
David Lamparter [Tue, 4 Dec 2018 14:43:15 +0000 (15:43 +0100)]
Merge pull request #3413 from chiragshah6/evpn_dev1
zebra: dup addr detect clear cmd non-zero return
David Lamparter [Tue, 4 Dec 2018 14:34:59 +0000 (15:34 +0100)]
Merge pull request #3357 from ton31337/fix/optional_args_for_extcommunity-lists
bgpd: Remove extcommunity-list by name without typing full rule
Christian Franke [Wed, 10 Oct 2018 13:06:17 +0000 (15:06 +0200)]
lib: add thread_timer_remain_msec function
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Tue, 6 Nov 2018 19:37:24 +0000 (20:37 +0100)]
isisd: Move dr election timer to the end of isis_dr_commence
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Wed, 10 Oct 2018 09:16:39 +0000 (11:16 +0200)]
isisd: reduce code duplication for levels
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Mon, 5 Nov 2018 19:07:11 +0000 (20:07 +0100)]
isisd: Add level&circuit thread argument to circuit
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Chirag Shah [Mon, 3 Dec 2018 03:08:22 +0000 (19:08 -0800)]
zebra: dup addr detect clear cmd non-zero return
Clear dup address vni needs to return non-zero value
in case of command is not successful.
Ticket:CM-23122
Testing Done:
run clear command and check upon failure return code is non-zero.
root@TORS1:~# vtysh -c "clear evpn dup-addr vni 1000 ip 45.0.1.26"
% Requested IP's associated MAC 00:01:02:03:04:05 is still in duplicate
% state
root@TORS1:~# echo $?
1
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Renato Westphal [Mon, 3 Dec 2018 23:30:00 +0000 (21:30 -0200)]
Merge pull request #3370 from pguibert6WIND/default_vrf_initialization
Default vrf initialization
Renato Westphal [Mon, 3 Dec 2018 20:20:27 +0000 (18:20 -0200)]
Merge pull request #3404 from donaldsharp/nexthop_cleanup
lib: Cleanup nexthop2str code to be consistent
Renato Westphal [Mon, 3 Dec 2018 20:17:59 +0000 (18:17 -0200)]
Merge pull request #3402 from pacovn/Coverity_1475198_1475199
pbrd sharpd: return check fixes (Coverity
1475198 1475199 )
F. Aragon [Fri, 30 Nov 2018 17:09:05 +0000 (18:09 +0100)]
pbrd: return check (Coverity
1475199 )
Signed-off-by: F. Aragon <paco@voltanet.io>
F. Aragon [Fri, 30 Nov 2018 17:02:09 +0000 (18:02 +0100)]
sharpd: return check (Coverity
1475198 )
Signed-off-by: F. Aragon <paco@voltanet.io>
Christian Franke [Sat, 1 Dec 2018 18:40:38 +0000 (19:40 +0100)]
Revert "tests/topotests: Change docker build context"
This reverts commit
659782730bffea2d21e2fa22550db3166017061e .
Apparently, the build context is inferred from the Dockerfile path.
Yay for sensible documentation. :/
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Donald Sharp [Sat, 1 Dec 2018 17:46:13 +0000 (12:46 -0500)]
Merge pull request #3409 from opensourcerouting/feature/cleanup-topotest-docker-docs
Feature/cleanup topotest docker docs
Donald Sharp [Sat, 1 Dec 2018 16:55:43 +0000 (11:55 -0500)]
Merge pull request #3408 from opensourcerouting/revert-empty-init
Revert "isisd lib ospfd pbrd python: fix empty init"
Christian Franke [Sat, 1 Dec 2018 16:16:01 +0000 (17:16 +0100)]
tests/topotests: Set -o cache_dir=/tmp
We are mounting the topotests from the host into the container
and mark them as read-only to avoid any modifications to the host.
Pytest tries to create a .pytest_chache directory in that location
which fails because of the read-only mount.
Configure a different cache dir which is writable to resolve this.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Sat, 1 Dec 2018 15:54:58 +0000 (16:54 +0100)]
tests/topotests: Change docker build context
In order to support automated builds, the build context needs to be
the repository root.
So adapt our dockerfile and buildscript for this. Also, add files which
should not be included into the build context in .dockerignore to limit
the size of the build context to something sensible.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
David Lamparter [Sat, 1 Dec 2018 15:49:45 +0000 (16:49 +0100)]
Revert "isisd lib ospfd pbrd python: fix empty init"
This reverts commit
48944eb65e1d1ced03d46121d923d9d613a480d5 .
We're using GNU C, not ISO C - and this commit triggers new (real)
warnings about {0} instead of bogus ones about {}.
Signed-off-by: David Lamparter <equinox@diac24.net>
Donald Sharp [Sat, 1 Dec 2018 15:45:23 +0000 (10:45 -0500)]
Merge pull request #3405 from LabNConsulting/working/master/fix-vrf
bgpd: partially revert
e23b9ef6d271223d29c7f91a10d98aa6dcd252b3
Christian Franke [Sat, 1 Dec 2018 15:33:34 +0000 (16:33 +0100)]
tests/topotests: Update documentation
The documentation needs an update to match the integrated version.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Donald Sharp [Fri, 30 Nov 2018 23:50:49 +0000 (18:50 -0500)]
Merge pull request #3378 from opensourcerouting/remove-config-lock
*: remove the configuration lock from all daemons
Donald Sharp [Fri, 30 Nov 2018 23:50:25 +0000 (18:50 -0500)]
Merge pull request #3386 from pguibert6WIND/bgp_fs_pbr_ignores_null_ip
bgpd: bgp pbr ignores bgp fs entries with 0.0.0.0 ips written.
Donald Sharp [Fri, 30 Nov 2018 23:36:25 +0000 (18:36 -0500)]
Merge pull request #3390 from pguibert6WIND/bgp_flowspec_new_redirect_ip_draft
bgpd: add new draft for redirect ip for flowspec
Donald Sharp [Fri, 30 Nov 2018 23:26:31 +0000 (18:26 -0500)]
Merge pull request #3403 from opensourcerouting/bfd-fix-mhop-bsd
bfdd: fix multihop on FreeBSD
Donald Sharp [Fri, 30 Nov 2018 21:07:34 +0000 (16:07 -0500)]
lib: Cleanup nexthop2str code to be consistent
We sometimes store ifindex information in the NEXTHOP_TYPE_IPV[4|6]
so let's let us display that information as well when dumping
a nexthop.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Donald Sharp [Fri, 30 Nov 2018 20:39:50 +0000 (15:39 -0500)]
Merge pull request #3396 from opensourcerouting/feature/topotests-docker
feature: docker image for topotests
Lou Berger [Fri, 30 Nov 2018 19:35:25 +0000 (19:35 +0000)]
bgpd: partially revert
e23b9ef6d271223d29c7f91a10d98aa6dcd252b3
previous change was to fix rnh module in Zebra for leaked routes
this reverts that fix, so probably reintroduces the problem.
Signed-off-by: Lou Berger <lberger@labn.net>
Rafael Zalamena [Fri, 30 Nov 2018 17:02:23 +0000 (15:02 -0200)]
bfdd: fix multihop on FreeBSD
Some systems have a extra `struct sockaddr*` field (`_len`) which must
be filled in order for the peer lookup to work.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Philippe Guibert [Tue, 27 Nov 2018 12:35:28 +0000 (13:35 +0100)]
bgpd: bgp pbr ignores bgp fs entries with 0.0.0.0 ips written.
when converting bgp fs entries to bgp pbr entries, the fields of the
flowspec are analysed. In the case src ip or dst ip is set to 0.0.0.0,
that field is ignored, thus preventing from injecting a rule that can
not be injected into the pbr. This can be done by avoiding mentioning
the field in the bitmask structure used to convert data to pbr entries.
PR=61620
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Acked-by: Emmanuel Vize <emmanuel.vize@6wind.com>
Philippe Guibert [Tue, 27 Nov 2018 15:32:45 +0000 (16:32 +0100)]
bgpd: add new draft for redirect ip for flowspec
that new option will overwrite simpson draft. There is a new ecommunity
option whose type is 0x1 and subtype is 0xc. That option is defined
here on iana.org/assignments/bgp-extended-communities page:
- bgp-extended-communities.xhtml#trans-ipv4
It contains the IP address to redirect traffic to. The understanding of
the draft is the following one:
- if that community is only present, then the ip contained inside will
be chosen as nexthop.
- if that community is provided along with simpson extended community,
then only the new redirect ip draft will be used. however, both will be
displayed.
- in other cases, if there is only the simpson extended community, then
the nexthop IP of the NLRI will be chosen.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Don Slice [Wed, 28 Nov 2018 15:57:01 +0000 (15:57 +0000)]
zebra: handle neighbor delete from kernel for ipv4 link-local
Problem reported that kernel neighbor entries could end up in "FAILED"
state when the neighbor entry was deleted. This fix handles the
notification of the event from netlink messages and re-inserts the
deleted entry.
Signed-off-by: Don Slice <dslice@cumulusnetworks.com>
Russ White [Thu, 29 Nov 2018 20:27:58 +0000 (15:27 -0500)]
Merge pull request #3391 from pguibert6WIND/doc_ldp_prefered_connection
doc: add ldp information over transport connection
Russ White [Thu, 29 Nov 2018 20:26:14 +0000 (15:26 -0500)]
Merge pull request #3394 from karamalla0406/frr3360
bgpd: The default IP route not advertised with configured RD
Russ White [Thu, 29 Nov 2018 20:24:03 +0000 (15:24 -0500)]
Merge pull request #3383 from qlyoung/fix-static-routes-again
staticd: fix null0 routes (again)
Russ White [Thu, 29 Nov 2018 20:19:38 +0000 (15:19 -0500)]
Merge pull request #3342 from opensourcerouting/nb-operational-data
Northbound: improved support for YANG-modeled operational data
Donald Sharp [Thu, 29 Nov 2018 18:10:02 +0000 (13:10 -0500)]
Merge pull request #3397 from mjstapp/fix_stream_macros
libs,bgpd: remove deprecated stream lib macros
Mark Stapp [Thu, 29 Nov 2018 16:13:15 +0000 (11:13 -0500)]
lib,bgpd: remove deprecated stream lib macros
A couple of deprecated lib/stream macros have aged out; remove
them, and replace the one remaining use.
Signed-off-by: Mark Stapp <mjs@voltanet.io>
Christian Franke [Thu, 29 Nov 2018 15:05:44 +0000 (16:05 +0100)]
topotests: Only set -t when input is a terminal
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Thu, 29 Nov 2018 14:22:23 +0000 (15:22 +0100)]
topotests: Adapt docker changes for integrated tests
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Tue, 20 Nov 2018 15:32:09 +0000 (16:32 +0100)]
docker/frr-topotests: Fix missing $ in if check
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Fri, 9 Nov 2018 14:42:10 +0000 (15:42 +0100)]
docker/compile_frr: Don't build with disable shared
With libyang, we need to build the frr_user_types.so libyang
plugin for FRR to work.
This means we cannot build with disable shared.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Mon, 5 Nov 2018 16:44:18 +0000 (17:44 +0100)]
docker: Improve README and frr-topotests usage
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Mon, 5 Nov 2018 16:23:37 +0000 (17:23 +0100)]
Dockerfile: Install libyang
Recent versions of FRR require libyang to build. So install it from
the FRR CI servers.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Thu, 1 Nov 2018 17:14:23 +0000 (18:14 +0100)]
Docker: Fail if compilation is unsucessful
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Tue, 30 Oct 2018 17:26:38 +0000 (18:26 +0100)]
Docker: Document additional environment variables
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Thu, 18 Oct 2018 11:48:55 +0000 (13:48 +0200)]
Docker: Use pytest as default command
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Thu, 18 Oct 2018 11:04:01 +0000 (13:04 +0200)]
Docker: move openvswitch setup to separate script
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Thu, 18 Oct 2018 10:27:37 +0000 (12:27 +0200)]
Docker: Allow executing topotests while in subdir of FRR repo
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Thu, 18 Oct 2018 10:27:16 +0000 (12:27 +0200)]
Docker: really cleanup when TOPOTEST_CLEAN is specified
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Thu, 18 Oct 2018 10:07:24 +0000 (12:07 +0200)]
Docker: Update buildscript not to delete old images
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Thu, 18 Oct 2018 09:56:20 +0000 (11:56 +0200)]
Docker: Call the run script frr-topotests.sh
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Thu, 18 Oct 2018 09:32:00 +0000 (11:32 +0200)]
Dockerfile: Use iputils-ping instead of inetutils-ping, install strace
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Thu, 18 Oct 2018 09:31:20 +0000 (11:31 +0200)]
Docker: Update buildscripts to be more efficient
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Wed, 17 Oct 2018 18:31:52 +0000 (20:31 +0200)]
docker: Install topotests into image
Also: Change directory layout so we can do an indempotent sync from host
later.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Wed, 17 Oct 2018 17:56:26 +0000 (19:56 +0200)]
docker: reindent shell scripts
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Wed, 17 Oct 2018 17:35:15 +0000 (19:35 +0200)]
docker: Run container with its own network namespace
For normal operation, there is no need for the container to run
in the host network environment or to have access to the users
X Session.
To accomodate usecases which need this, there is now a `TOPOTEST_OPTIONS`
environment variable to provide additional options to the docker run
command.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Christian Franke [Wed, 17 Oct 2018 16:27:35 +0000 (18:27 +0200)]
Dockerfile: Move to project root and combine RUNs
According to https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#run
`apt-get update` should always be combined with `apt-get install` in
the same `RUN` statement, to avoid installation of outdated packages.
Also, combine some more `RUN`s together as to avoid fewer layers.
Finally, remove some comments which are superflous. Comments shouldn't
describe what is done, especially when it's obvious. They should
explain why something is done.
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Rafael Zalamena [Mon, 16 Apr 2018 20:53:25 +0000 (17:53 -0300)]
docker: add support for running inside container
Based on the original @cfra idea of running topotest on docker.
Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Christian Franke [Thu, 29 Nov 2018 14:29:08 +0000 (15:29 +0100)]
Merge pull request #3384 from donaldsharp/topotests
Topotests
Kishore Aramalla [Thu, 29 Nov 2018 03:18:08 +0000 (19:18 -0800)]
bgpd: The default IP route not advertised with configured RD
When "default-originate ipv4" is configured, a type-5 route is installed in
the local node and advertised to the peer with auto-rd.
When the above was followed by configuring an RD in IP VRF, Type-5 are
generated for only the non-default routes.
Fixed this issue by withdrawing the default route with auto-rd and advertising
the route with confiured RD.
Signed-off-by: Kishore Aramalla karamalla@vmware.com