<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/tests/atf_python/sys/net/vnet.py, branch release/14.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-09-11T06:33:55Z</updated>
<entry>
<title>tests: disable transmit checksum offloading for epair interfaces</title>
<updated>2025-09-11T06:33:55Z</updated>
<author>
<name>Michael Tuexen</name>
<email>tuexen@FreeBSD.org</email>
</author>
<published>2025-09-04T11:52:37Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c456341202556f1119ae21c8a707d5dd327f5149'/>
<id>urn:sha1:c456341202556f1119ae21c8a707d5dd327f5149</id>
<content type='text'>
When transmit checksum offloading is enabled, if_epair does not
compute checksums, it just marks packets that this computation still
needs to be done. However, some test cases verify the checksum.
Therefore disable this for IPv4 and IPv6.

Reviewed by:		kp
Differential Revision:	https://reviews.freebsd.org/D52379

(cherry picked from commit bd8296e7173aa625f6d4d766aac2df6be639e49a)
</content>
</entry>
<entry>
<title>vnet tests: verify that we can load if_epair and if_bridge</title>
<updated>2024-08-22T19:01:33Z</updated>
<author>
<name>Kristof Provost</name>
<email>kp@FreeBSD.org</email>
</author>
<published>2024-07-18T20:36:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=09d61b28a00a0645087859ca124c17499c6941e1'/>
<id>urn:sha1:09d61b28a00a0645087859ca124c17499c6941e1</id>
<content type='text'>
We're going to start running many of the vnet tests in nested jails (so they
can run in parallel). That means the tests won't be able to load kernel modules,
which we commonly do for if_epair and if_bridge.

Just assume that all vnet tests need this, because so many of them do that we
don't want to manually annotate all of them.
This is essentially a no-op on non-nested tests.

Do the same for the python test framework.

While here also have pflog_init actually call pft_init. While having pflog
loaded implies we have pf too pft_init also checks for vimage support, and now
for if_epair.

Reviewed by:	markj
MFC after:	1 month
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D46039

(cherry picked from commit ae8d58814089308028046ac80aeeb9cbb784bd0a)
</content>
</entry>
<entry>
<title>testing: improve vnet support in pytest</title>
<updated>2023-05-16T15:00:45Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2023-05-16T15:00:45Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=584ad4126c76721b7f5da39d4ca4818ded7d64db'/>
<id>urn:sha1:584ad4126c76721b7f5da39d4ca4818ded7d64db</id>
<content type='text'>
* Allow vnet object to be directly referenced
 (self.vnet1 vs self.vnet_map["vnet1"])
* Allow iface object to be directly reference
 (vnet.bridge vs vnet.iface_alias_map["bridge"])
* Allow arbitrary interface alias names insted of ifX
* Add wait_objects_any() method for waiting object from
 multiple vnets
* Add wait() method for indefinite sleep on vnet handlers

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>testing: add support for using custom interfaces in pytest framework.</title>
<updated>2023-05-15T10:44:20Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2023-05-15T10:44:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f3065e767def62d9b593dd7528c0eb121a7e1439'/>
<id>urn:sha1:f3065e767def62d9b593dd7528c0eb121a7e1439</id>
<content type='text'>
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>testing: handling non-root users with VNETs in pytest-based tests.</title>
<updated>2023-02-09T14:49:27Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2023-02-09T14:31:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6332ef8941999b0c074d1ece0e1e108447c70b98'/>
<id>urn:sha1:6332ef8941999b0c074d1ece0e1e108447c70b98</id>
<content type='text'>
Currently isolation and resource requirements are handled directly
 by the kyua runner, based on the requirements specified by the test.
It works well for simple tests, but may cause discrepancy with tests
 doing complex pre-setups. For example, all tests that perform
 VNET setups require root access to properly function.

This change adds additional handling of the "require_user" property
 within the python testing framework. Specifically, it requests
 root access if the test class signals its root requirements and
 drops privileges to the desired user after performing the pre-setup.

Differential Revision: https://reviews.freebsd.org/D37923
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>pytest: delete interfaces from inside the jail.</title>
<updated>2023-01-25T16:34:17Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2023-01-25T16:32:52Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=20ea7f26e41375828a390fba613b86acfe366add'/>
<id>urn:sha1:20ea7f26e41375828a390fba613b86acfe366add</id>
<content type='text'>
This change follows the approach used in 80fc25025ffc, to
 minimise the impact of the delayed interface migration.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>tests: Add an IPv4 loopback address of 127.0.0.1/8 to the lo0</title>
<updated>2023-01-11T14:34:41Z</updated>
<author>
<name>Jose Luis Duran</name>
<email>jlduran@gmail.com</email>
</author>
<published>2023-01-11T14:33:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4856aeaaed17726a1dfa5dd6c736e5b0851255b6'/>
<id>urn:sha1:4856aeaaed17726a1dfa5dd6c736e5b0851255b6</id>
<content type='text'>
 interface by default when creating VNETSs using pytest.

Reviewed By: asomers
Differential Revision: https://reviews.freebsd.org/D38021
</content>
</entry>
<entry>
<title>testing: improve python vnet wrapper.</title>
<updated>2022-12-29T19:59:11Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2022-12-29T19:07:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f63825ff21a3bee2630ea8b0ed27a4583cc4242b'/>
<id>urn:sha1:f63825ff21a3bee2630ea8b0ed27a4583cc4242b</id>
<content type='text'>
* Derive jail name from class name and method name, instead of just
method name. This change reduces the chances of different tests
clashing.
 Old: 'jail_test_one'. New: 'pytest:TestExampleSimplest:test_one'
* Simplify vnetX_handler() method signature by skipping obj_map (unused)
 and pipe. The latter can be accessed as the vnet property.
* Add `send_object()` method as a pair to the `wait_object` inside the
 VnetTestTemplate class.
* Add `test_id` property to the BaseTest method. Previously it was
 provided only for the VnetTestTemplate class. This change makes
 the identifier easily accessible for all users.

MFC after:	2 weeks
</content>
</entry>
<entry>
<title>netlink: connect netlink tests to the build</title>
<updated>2022-12-16T12:02:50Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2022-12-16T12:02:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3873bdc2f28f6aab6b426ccb6c85ab2a41483264'/>
<id>urn:sha1:3873bdc2f28f6aab6b426ccb6c85ab2a41483264</id>
<content type='text'>
Reviewed By: ngie
Differential Revision: https://reviews.freebsd.org/D37708
</content>
</entry>
<entry>
<title>tests: add routing tests for switching between same prefixes</title>
<updated>2022-08-07T19:45:25Z</updated>
<author>
<name>Alexander V. Chernikov</name>
<email>melifaro@FreeBSD.org</email>
</author>
<published>2022-08-06T10:36:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7064c94a02af2f8665636a8594557b9e93ad71bf'/>
<id>urn:sha1:7064c94a02af2f8665636a8594557b9e93ad71bf</id>
<content type='text'>
Differential Revision: https://reviews.freebsd.org/D36055
MFC after:	2 weeks
</content>
</entry>
</feed>
