Frantisek Sumsal
33b0e0c09a
test-network: copy rules from source & build trees if needed
...
When running with --build-dir= we need to copy over udev rules from
$BUILD_DIR/udev.d/ and $SOURCE_TREE/udev.d/ to make stuff work as
expected.
2023-10-30 21:13:00 +00:00
Ronan Pigott
2beecc7077
test-network: add dhcp rapid commit test
2023-10-27 10:55:55 -07:00
Yu Watanabe
dd59a609be
test-network: suppress too much outputs of state file
...
Follow-up for 0f9efffaeb
.
2023-10-26 12:26:19 +09:00
Yu Watanabe
0f9efffaeb
test-network: wait for the state file being updated
...
Also, sync state files before read.
Addresses the first issue in #29678 .
2023-10-24 23:22:27 +09:00
Yu Watanabe
cb0e97e7de
test-network: drop unnecessary explicit stop of dnsmasq
2023-10-12 18:34:20 +09:00
Yu Watanabe
aa7336f1d3
test-network: add test case for renewing DHCP lease
2023-10-12 18:33:52 +09:00
Yu Watanabe
46f2eb517c
test-network: add tests for DHCP IPv6 only mode
...
For [DHCPv4] IPv6OnlyMode= and [DHCPServer] IPv6OnlyPreferredSec=.
2023-10-11 21:42:13 +09:00
Yu Watanabe
2d7ca6b45d
test-network: add test for DHCPv6 information requesting mode
...
For issue #28566 .
2023-10-08 16:31:59 +09:00
Yu Watanabe
34290c6aa9
test-network: test for NTP servers by DHCPv6 protocol
...
For issue #29148 .
2023-10-08 15:45:35 +09:00
Yu Watanabe
e081ffc114
test-network: move get_dbus_dhcp_client_state() and friends to global
2023-10-06 10:16:27 +01:00
Yu Watanabe
6b524d70e3
test-network: add tests for [DHCPv4] RequestAddress= setting
2023-10-05 11:14:29 +09:00
Yu Watanabe
b5c8f47102
test-network: test SIP servers obtained by DHCP
...
For issue #29145 .
2023-10-04 08:41:26 +02:00
Yu Watanabe
fcdd21ec6a
tree-wide: fix typo
2023-10-04 08:58:10 +09:00
Yu Watanabe
d5adff70c0
test-network: add test for multiple IPv6 null addresses
...
This also merges test_address_null() into test_address_static().
2023-09-18 10:22:08 +09:00
Yu Watanabe
47f1ce1677
test-network: add testcase for [DHCPServer] ServerAddress= with null address
2023-09-08 20:03:40 +09:00
Susant Sahani
681007ac20
test-network: Add test for PREF64
2023-09-06 15:53:11 +09:00
Yu Watanabe
a832087979
Merge pull request #29023 from pelaufer/dhcp-prefix-dbus
...
Add dhcp client prefix lease information to networkd json output
2023-09-05 00:16:19 +09:00
pelaufer
e1ef777192
Adding tests for dhcp client and dhcp6 client dbus state interface
2023-09-02 14:53:23 -06:00
pelaufer
8fb6320e4b
Add dhcp client prefix lease information to networkd json output
2023-09-02 13:45:03 -06:00
Yu Watanabe
1d4c874d3c
Merge pull request #24570 from topimiettinen/nft-sets-v2
...
network: firewall integration with NFT sets
2023-09-01 20:13:39 +09:00
Topi Miettinen
c742d7e801
test: testing for networkd NFTSet feature
2023-08-26 21:37:35 +03:00
Susant Sahani
e448fcd01a
test-network: re-add test for custom client identifier
2023-08-24 19:55:31 +09:00
Yu Watanabe
6ed69be98a
Revert "network: DHCP6 client- Allow to send manual DUID"
...
This reverts commits 89e73ce86f
and
543d2a4d45
.
The commit assign "custom" to fixed DUID type 5. When making DUID fully
configurable, the type number should be also configurable. Also, the
fully custom DUID should be acceptable for DHCPv4.
2023-08-24 19:50:36 +09:00
Susant Sahani
288f58c0b4
CI: network - Add test for route hoplimit
2023-08-18 15:52:14 +05:30
Luca Boccassi
f9e653cfb7
Merge pull request #28870 from ssahani/rto-min-network
...
network: Route - allow to set TCP RTO
2023-08-18 09:23:45 +01:00
Susant Sahani
543d2a4d45
CI: network dhcp6 - Add test for custom client identifier
2023-08-17 23:52:33 +05:30
Susant Sahani
1791956e9c
CI: network - Add test for route TCP RTO
2023-08-17 23:49:32 +05:30
Frantisek Sumsal
79f902eb09
Add .pylintrc to globally suppress warnings we don't really care about
...
Also, drop the respective disable directives from existing files.
2023-08-10 18:13:29 +02:00
Yu Watanabe
f2bcd3245a
test-network: add more tests for address properties
2023-07-31 18:15:26 +09:00
Yu Watanabe
d19704cd21
test-network: add testcase for overriding Address.RouteMetric=
...
For issue #25843 .
2023-07-31 02:31:17 +09:00
Yu Watanabe
2ede355908
test-network: add tests for several invalid neighbor settings, and overriding settings
...
This also makes the checks stricter.
2023-07-31 00:40:03 +09:00
Luca Boccassi
fc3fe92bc8
Merge pull request #28508 from yuwata/network-next-dhcp4
...
network: several cleanups and fixes for DHCPv4 client
2023-07-29 12:15:38 +01:00
Susant Sahani
ab2d9e2971
CI: network - Add test for rp_filter
2023-07-28 15:05:12 +05:30
Yu Watanabe
4001653ddb
network/dhcp4: always honor specified gateway address
...
Follow-up for 77451f654a
.
Now, gateway for routes to DNS or NTP servers should be correctly picked,
hence it is not necessary to adjust the gateway address in
dhcp4_request_route_auto() again.
Also, similar for classless static routes, let's always honor
gateway address specified in (non-classless) static routes.
2023-07-28 05:47:11 +09:00
Yu Watanabe
0ce86f5eeb
network/dhcp4: always find suitable gateway for destination address
...
And if not found, refuse to configure the route.
If a DHCP server provides classless static or static routes, then we
should use the gateway for accessing a node in the range specified in
the route. E.g. if a DHCP server provides the default gateway is
192.168.0.1, and classless static route for 8.0.0.0/8 with gateway
192.168.0.2, then we should access 8.8.8.8 through 192.168.0.2 rather
than 192.168.0.1, but should use 192.168.0.1 for 9.9.9.9.
Fixes #28358 .
2023-07-28 05:45:51 +09:00
Frantisek Sumsal
8bdece7479
network: fix fetching link properties
...
This fixes regression introduced in 5a0c810462
with which all requests
for link properties ended up with EINVAL as we kept hitting
the signature_is_single() assert in sd_bus_get_property().
2023-07-18 23:08:19 +02:00
Frantisek Sumsal
7e107bc31f
test-network: probe a couple of uncovered networkctl codepaths
2023-07-18 21:42:39 +02:00
Frantisek Sumsal
aca99a3a38
test-network: validate JSON where applicable
2023-07-18 21:42:39 +02:00
Frantisek Sumsal
c1dd58b3b6
test-network: check for captive portals received via NDISC
...
This requires fairly recent radvd that supports sending RAs with captive
portals [0].
Also, this should hopefully provide coverage for issues like:
- https://github.com/systemd/systemd/issues/28229
- https://github.com/systemd/systemd/issues/28231
- https://github.com/systemd/systemd/issues/28277
[0] https://github.com/radvd-project/radvd/pull/141
2023-07-18 11:38:58 +02:00
Frantisek Sumsal
5a000cd46f
test-network: correctly support running systemd-udevd from the build dir
...
We create the udevadm -> systemd-udevd symlink during the install phase,
so it doesn't exist in the just compiled tree. This worked in CI since
the symlink is manually created there post-build.
2023-07-17 12:56:58 +02:00
Yu Watanabe
fc25920c94
test-network: add tests for null addresses
...
For issue #26113 .
2023-07-07 19:11:37 +09:00
Yu Watanabe
86f6760038
test-network: add one more testcase for DHCPv4 classless route
...
For issue #28280 .
2023-07-07 06:57:08 +09:00
Yu Watanabe
62eaf8d039
test-network: drop ExecReload= in networkd.service and udevd.service
...
Follow-up for 0e07cdb0e7
and
f84331539d
.
2023-07-06 14:55:58 +09:00
Ronan Pigott
1219391c9f
test-network: add test for an invalid captive portal uri
...
This could probably be extended to include many more invalid uri
2023-07-03 13:47:12 -07:00
Yu Watanabe
e4948bb2cd
test-network: add test for static route with preferred source
...
This adds possible reproducer for issue #28009 (though, the issue is
highly racy, hence this may not trigger the issue reliably).
2023-07-03 16:13:49 +09:00
Yu Watanabe
7e30527806
test-network: check route more strictly
2023-07-03 16:06:17 +09:00
Yu Watanabe
86c2a76e09
Merge pull request #28132 from rpigott/dhcp-captive-portal
...
Implement RFC8910: captive portal dhcp options
2023-07-03 14:51:56 +09:00
Ronan Pigott
dbe960f07f
test-network: add tests for captive portal dhcp options
2023-07-02 01:13:43 -07:00
Frantisek Sumsal
a5e478b24c
test: fix test_vxlan with the latest iproute2
...
Some options were renamed and some options with default values are not
shown unless -d(etails) is repeated.
See: https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=1215e9d3862387353d8672296cb4c6c16e8cbb72
2023-06-30 17:33:40 +00:00
Yu Watanabe
856a247e19
test-network: add test for global IPv6PrivacyExtensions= setting
2023-06-29 21:58:23 +09:00