Hiroki Shirokura
d4a94e93e5
topotests: bgp_srv6l3vpn_to_bgp_vrf bgp locator unset test case
...
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-13 23:32:09 +00:00
Hiroki Shirokura
0249b8b612
bgpd: add no-cli for srv6 on bgpd-side
...
(1) Implement zapi wrapper func to release srv6-locator-chunk
(2) Implement no locator NAME command
router bgp 1
segment-routing srv6
no locator loc1
(3) Implement no segment-routing srv6 command
router bgp 1
no segment-routing srv6
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-13 22:38:25 +00:00
Hiroki Shirokura
6d39d7c0dd
topotests: bgp_srv6l3vpn_to_bgp_vrf locator update test case
...
If the SRv6 locator is deleted in zebra, zclient(bgpd)
which allocates SIDs from the locator will update the
RIBs which use those SIDs and make them invalid.
This will cause the VPNv6 route to be withdrawn and
the VPN to stop.
If the SRv6 locator is added again, zclient(bgpd) will
allocate the SIDs from the locator again, and VPNv6
will be re-established.
This commit add a test case to confirm this.
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-07 12:54:39 +00:00
Hiroki Shirokura
9529336a22
topotests: refactor bgp_srv6l3vpn_to_bgp_vrf
...
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-07 12:54:39 +00:00
Hiroki Shirokura
e08c56634c
topotests: update test cases about srv6 locator deletion
...
Before this PR, in case of get locator chunk zapi from
zclient, zebra precreated a down state locator and set
the chunk ownership. After this PR, this is no longer
done, and chunks are no longer automatically generated.
In this commit, we will make a test update to check the
corresponding detailed behavior.
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-07 12:54:39 +00:00
Hiroki Shirokura
d79ff732cd
bgpd: handle srv6 locator notification and update vpn-rib
...
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-07 12:54:39 +00:00
Hiroki Shirokura
0a735cd523
zebra: add srv6's no commands
...
CURRENT_CONFIGURATION:
configure terminal
segment-routing
srv6
locators
locator loc1
locator loc2
locator loc3
CMD1: delete single locator
configure terminal
segment-routing
srv6
locators
no locator loc1
CMD2: delete srv6 whole config (== delete all locators)
configure terminal
segment-routing
no srv6
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-07 12:54:39 +00:00
Hiroki Shirokura
f6e52a81dc
zebra: elliminate srv6 locator auto allocation by zlicnet request
...
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-07 12:54:39 +00:00
Hiroki Shirokura
f5ca329b2d
zebra: implement srv6 locator add/delete notification via ZAPI
...
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-07 12:54:37 +00:00
Hiroki Shirokura
15588d7b63
lib: add zapi encode/decode func for srv6 locator
...
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
2021-09-07 12:54:01 +00: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