Igor Ryzhov
68d4b72ff3
tests: add one more check for default-originate with route-map
...
Make sure that we don't set communities from a random RIB route when
originating the default route.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2021-09-08 23:37:50 +03:00
Igor Ryzhov
ab798674c0
bgpd: fix aspath memory leak
...
We allocate an as-path using bgp_attr_default_set and should free it
before exiting the function.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2021-09-08 23:37:50 +03:00
Igor Ryzhov
bf844bac67
bgpd: fix default-originate route-map processing
...
When processing a route-map for default-originate, we actually want to
match by attributes in routes from the RIB, but set attributes in the
newly originated route. Currently, it's not the case. Instead, we
construct a dummy path combining attributes from both routes, and we end
up with multiple problems:
- match by as-path doesn't work
- communities from the matched RIB route are copied to the newly
originated route
- we corrupt the RIB routes
To fix the issue, we should use the new route-map API that allows using
separate match/set objects.
Fixes #9584 .
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2021-09-08 23:37:50 +03:00
Igor Ryzhov
c212584717
lib: add ability to supply separate match/set objects to routemaps
...
Sometimes it's needed to match by fields of one object but set fields of
another object. The following commit is an example.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
2021-09-08 23:37:50 +03:00
Russ White
2ca7780ab5
Merge pull request #9533 from mobash-rasool/ospfv3-bug-fixes
...
ospfd: ASBR Summary LSA is not originated when process is reset
2021-09-07 10:59:33 -04:00
Russ White
dd786181cc
Merge pull request #9539 from ton31337/fix/floating_point_cli
...
bgpd: Replace `Enable` to `Disable` for floating-point bw encoding CLI
2021-09-07 10:57:24 -04:00
Russ White
12b5b2f9ff
Merge pull request #9551 from mobash-rasool/ospfv2-bug-fixes-04
...
ospfd: GR Conformance fix in Hello packet DR election
2021-09-07 10:47:09 -04:00
Russ White
91aaac3ac2
Merge pull request #9552 from mobash-rasool/ospfv2-bug-fixes-03
...
ospfd: ANVL Test case 25.22, 25.23 and 28.11 fixes
2021-09-07 10:46:33 -04:00
Christian Hopps
b44f7c3f6d
Merge pull request #9577 from slankdev/slankdev-topotest-nsenter
...
topotests: to create pid file of topotest router
2021-09-07 06:55:25 -04:00
Donatas Abraitis
d9377cb626
Merge pull request #9557 from idryzhov/bgp-view-cleanup
...
bgpd: cleanup special checks for views
2021-09-07 10:14:30 +03:00
Hiroki Shirokura
1994c6bc05
doc: don't use abbreviate
...
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-07 07:11:20 +00:00
Hiroki Shirokura
c84159a90a
topotests: update file format and resolving id
...
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-07 07:07:18 +00:00
Hiroki Shirokura
e03862c34a
topotests: to create pid file of topotest router
...
Create a pid file for the router created by topotest.
By executing nsenter directly against this pid, developers
can execute commands directly from outside the unet shell.
This allows the developer to use script, tab completion, etc.,
and improves efficiency.
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-07 03:55:04 +00:00
Donald Sharp
a76cd3242a
Merge pull request #9569 from LabNConsulting/chopps/parallel-config-nonjson
...
tests: refactor parallel reset/load config for non-json
2021-09-06 18:20:57 -04:00
Donald Sharp
3702e8577f
Merge pull request #9563 from opensourcerouting/build-strict-prototypes
...
build: `-Wstrict-prototypes` (+ BSD `sed`)
2021-09-06 12:28:33 -04:00
Christian Hopps
0254774578
tests: refactor parallel reset/load config for non-json
...
Refactor the bgp_auth test to create common_config code to allow
non-json based tests to reset routers and load configs in parallel.
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-06 11:18:48 -04:00
Donatas Abraitis
331442ef9c
Merge pull request #9550 from donaldsharp/better_fails
...
bgpd: Add `PEER_DOWN_SOCKET_ERROR` to the list of peer failure modes
2021-09-06 12:42:15 +03:00
Donatas Abraitis
53ca9cc9d9
Merge pull request #9561 from idryzhov/bgp-no-router-vrf-default
...
bgpd: fix "no router bgp X vrf default"
2021-09-06 12:41:20 +03:00
Donatas Abraitis
121a6f0977
Merge pull request #9564 from qlyoung/debian-update-proto-list
...
debian: update list of protos in pkg desc
2021-09-06 12:37:31 +03:00
Igor Ryzhov
0f90ef494a
Merge pull request #9521 from opensourcerouting/ospf6d-gr-fixes
...
ospf6d: minor GR fixes
2021-09-06 12:36:54 +03:00
Igor Ryzhov
5c2ef87104
Merge pull request #9547 from ton31337/fix/addpath_non_json_broken
...
bgpd: Drop afi/safi duplicate string notation for AddPath capability
2021-09-06 12:33:01 +03:00
Donald Sharp
89084fc30f
Merge pull request #9567 from LabNConsulting/chopps/bgp-auth-speedup
...
tests: speed up bgp_auth test (24m -> 12m)
2021-09-05 10:09:34 -04:00
Christian Hopps
b668944766
tests: speed up bgp_auth test (24m -> 12m)
...
- Reduce OSPF timers to 1 and 4
- Reduce BGP connect timer to 5
- Apply configs in parallel as single file
- Remove the switches as all links are p2p, perhaps this will help with
reliability?
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-05 05:41:04 -04:00
Quentin Young
eadc947e63
debian: update list of protos in pkg desc
...
Signed-off-by: Quentin Young <qlyoung@nvidia.com>
2021-09-04 12:53:23 -04:00
Quentin Young
5653bb515c
Merge pull request #9199 from LabNConsulting/chopps/micronet-prime
2021-09-04 12:20:00 -04:00
Christian Hopps
a53c08bc13
tests: cleanup: rerun changed files through black
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Christian Hopps
4953ca977f
tests: cleanup - remove unused imports
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Christian Hopps
57f774f56d
tests: Disable test which fails under micronet
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Christian Hopps
f862fe55a4
tests: use common exa-receive.py script
...
New generic script uses a new default node specific log dir to avoid
collisions when running in parallel.
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Christian Hopps
2905398814
tests: add generic exa-receive.py script
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Martin Winter
62c608a9fb
tests: Make bgp_multiview_topo1 predictable
...
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
2021-09-04 09:04:47 -04:00
Christian Hopps
0ce28e746e
tests: remove unneeded mcast group kernel routes and sysctl
...
- The PIM tests do not need kernel routes to help them bind joins and
sources to specific interfaces. They should do that themselves directly.
Also do not change system wide "rp_filter" sysctl away from the value
required by everyone else.
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Christian Hopps
784ad2307e
tests: add back a 10 second delay to see if this fixes the failures
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Christian Hopps
77a7a87cdd
tools: move frr-reload.py to python3 explicitly
...
We already, reasonably, require python3 elsewhere. Do so here, and reap some
benefit.
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Christian Hopps
04464749b6
tests: keep revisions of configs
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Christian Hopps
1973df1d39
tests: use new helper object for mcast-tester and iperf
...
- Decrease igmp query interval to fix pim test run times
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Christian Hopps
a5124c49d3
tests: add helper object for mcast-tester and iperf tool.
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Christian Hopps
86dc61d1b2
tests: remove legacy Topo class from micronet
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Christian Hopps
fe50239bc6
tests: remove legacy Topo class from infra
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:47 -04:00
Christian Hopps
e82b531df9
tests: remove legacy Topo class (fixes many pylint errors)
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:46 -04:00
Christian Hopps
d7d21c3a19
tests: fix pylint test errors
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:46 -04:00
Christian Hopps
c8e5983d8e
tests: fix pylint infra errors
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:46 -04:00
Christian Hopps
a3cecfb608
docker: update with micronet changes
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:46 -04:00
Christian Hopps
77f3acb45e
doc: minor update based on mininet removal
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:46 -04:00
Christian Hopps
351bc82cac
tests: micronet: update defaults for results+logging
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:46 -04:00
Christian Hopps
8db751b853
tests: micronet: adapt tests
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:46 -04:00
Christian Hopps
4958158787
tests: micronet: update infra
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:46 -04:00
Christian Hopps
6a5433ef0b
tests: NEW micronet replacement for mininet
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 09:04:21 -04:00
David Lamparter
3b934c4006
Merge pull request #9541 from donaldsharp/evpn_cleanup
...
typedef cleanup to proper usage of `enum X` or `struct X`
2021-09-04 12:08:38 +02:00
Christian Hopps
bc51ce6810
tests: improve vxlan test determinism
...
Signed-off-by: Christian Hopps <chopps@labn.net>
2021-09-04 04:47:20 -04:00