Yu Watanabe
e5e0743189
network: assume prefix length is full address size
...
The commit 0f707207b9fc04d45ad176930cfefc77c0068545 enables strong
warning about missing prefix length in Address= setting.
The change was done in v241, and was about 4 years ago.
Let's drop the legacy assumption and make the parser consistent with
'ip address' command.
C.f. #11307 .
Closes #26102 .
2023-01-19 22:09:10 +09:00
Yu Watanabe
a93cc5d911
test-network: drop unused file
2023-01-19 21:22:22 +09:00
Nick Rosbrook
f68f644a16
test-network: add a test for renaming device to current altname
2022-12-15 10:36:14 -05:00
Yu Watanabe
b448fc0a6f
test-network: try to change MAC address more
...
Follow-up for 23b6bf274fc1a46d8778bfc979d3c803d61a1f5c.
2022-12-07 15:08:23 +01:00
Jian Zhang
23b6bf274f
test-network: add test for bond mac address config
...
Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>
2022-12-06 14:41:31 +08:00
Yu Watanabe
77d5f36d93
test-network: add tests for RTT and ACK filter for CAKE
2022-11-19 07:08:26 +09:00
Yu Watanabe
d8746f1620
test-network: explicitly prepare default.link
...
On CentOS CI (Arch), 99-default.link is masked. Let's explicitly provide
the same .link file with a different prefix number.
2022-11-01 22:38:37 +09:00
Luca Boccassi
0be7f1936c
Merge pull request #25143 from yuwata/network-reconfigure-interface-when-renamed
...
network: reconfigure interface when renamed
2022-10-31 21:14:24 +01:00
Luca Boccassi
4b9cfe08ba
Merge pull request #25166 from yuwata/network-router-preference
...
network: adjust route metric based on router preference
2022-10-31 20:59:36 +01:00
Yu Watanabe
fa4d3fed46
test-network: add testcase for reconfiguring interface
2022-10-31 09:35:05 +09:00
Yu Watanabe
ee3cbfdbbc
test-network: rewrite wait-online address family tests
...
Fixes #25154 .
2022-10-28 12:26:52 +02:00
Yu Watanabe
bb80f633bf
test-network: add testcase for router preference
2022-10-28 15:56:59 +09:00
Topi Miettinen
a4640bed74
test: testing for networkd NetLabel feature
2022-08-29 14:23:17 +09:00
Yu Watanabe
93e898d624
test-network: add test for TCPCongestionControlAlgorithm=
2022-08-26 19:47:27 +09:00
Yu Watanabe
b249834bc3
test-network: add test for issue #24377
...
The issue has been already fixed by
b05e52000b4eee764b383cc3031da0a3739e996e (PR #24020 ).
2022-08-20 20:50:02 +09:00
Yu Watanabe
3af934bceb
test-network: add tests for IPv4ACD and renewing DHCP address
2022-08-18 15:44:53 +09:00
Yu Watanabe
fd022b1da5
test-network: drop unused .network file
2022-08-18 15:44:53 +09:00
Luca Boccassi
e4e6cfaad0
Merge pull request #24301 from yuwata/network-tuntap
...
network/tuntap: introduce KeepFileDescriptor= setting
2022-08-16 23:06:16 +01:00
Yu Watanabe
21d0ed68ee
test-network: add tests for MTUBytes= for bridge master and ports
...
Prompted by #24311 .
2022-08-16 21:46:40 +00:00
Yu Watanabe
ae014ecb3d
test-network: add tests for KeepCarrier= for tuntap interfaces
2022-08-16 21:57:35 +09:00
Yu Watanabe
4c7d13f4b2
test-network: split test_qdisc() and test_qdisc2()
...
And check module availability in each tests.
This also sorts qdisc tests.
2022-08-09 19:37:50 +09:00
Yu Watanabe
5cdc7c89cb
test-network: rename tun99 and tap99
...
The names seem to be used in AWS.
This also merges test_tun() and test_tap().
2022-08-09 19:37:49 +09:00
Yu Watanabe
e4e0b239f6
test-network: add test case for #23197
2022-08-02 03:43:04 +09:00
Yu Watanabe
72c747e6d1
test-network: add a test case for IPv4LLStartAddress=
2022-07-15 04:01:56 +09:00
Yu Watanabe
589af70b87
test-network: merge two DHCPv6 client tests
2022-07-09 11:44:25 +09:00
Yu Watanabe
0730e3767d
test-network: merge two more tests with test_dhcp_client_ipv4_only
2022-07-09 11:44:25 +09:00
Yu Watanabe
15519a81ac
test-network: drop test_dhcp_client_ipv4_ipv6
...
As the test is covered by test_dhcp_client_reuse_address_as_static.
2022-07-09 11:44:25 +09:00
Yu Watanabe
e81083f2d8
test-network: drop 25-dhcp-v4-server-veth-peer.network
2022-07-09 11:44:25 +09:00
Yu Watanabe
b17947d9cf
test-network: drop meaningless test
...
On DHCPv6 lease renew, the kernel do not drop static routes, and hence
we do not try to reassign them. Hence, the test is mostly meaningless.
2022-07-09 11:44:25 +09:00
Yu Watanabe
18f2638f48
test-network: merge DHCP client tests to improve performance
2022-07-08 13:04:02 +00:00
Yu Watanabe
2f0260c1bb
test-network: add tests for erspan version 0 and 2
2022-06-01 04:02:49 +09:00
Yu Watanabe
f7ad162879
test-network: rename one .netdev to make the file removed after the test
...
Follow-up for 7809cab71738aa582ac30e7dbc8d1e76c303ff9e.
2022-04-06 18:14:45 +09:00
Yu Watanabe
0c91c7a241
network: l2tp: change create type to independent
...
L2TP tunnel does not have underlying interface. Let's change its type to
independent.
2022-02-27 09:36:48 +09:00
Yu Watanabe
8b49ee2dcd
network: l2tp: make Local= optionally take interface name
2022-02-27 09:36:48 +09:00
Yu Watanabe
ee9918ae46
test-network: add test case for activation policy for stacked netdevs
...
For issue #22593 .
2022-02-24 16:25:05 +09:00
Yu Watanabe
3c39b9cf37
test-network: remove unused configs
2022-02-24 08:37:30 +09:00
Yu Watanabe
07b7337aff
network: dhcp-pd: allow to assign the same subnet prefix to multiple interfaces
...
There is no reason networkd refuses that. Especially, when multiple
downstream interfaces are connected to the same network, it is natural to
assign the same subnet prefix to them.
Prompted by #22571 .
2022-02-22 20:39:32 +09:00
Daan De Meyer
1e86c83308
test: Prefix all network/netdev config files used by systemd-networkd-tests.py
...
Let's make sure these take preference over any generic network config files shipped
by the OS (in this case specifically, mkosi).
2022-02-15 22:53:43 +00:00
Yu Watanabe
b6d5dab7bb
test-network: add missing tests for bridge properties
2022-02-10 18:04:34 +09:00
Santa Wiryaman
97f27f8a16
Add support for isolated
parameter
...
Add the "Isolated" parameter in the *.network file, e.g.,
[Bridge]
Isolated=true|false
When the Isolated parameter is true, traffic coming out of this port
will only be forward to other ports whose Isolated parameter is false.
When Isolated is not specified, the port uses the kernel default
setting (false).
The "Isolated" parameter was introduced in Linux 4.19.
See man bridge(8) for more details.
But even though the kernel and bridge/iproute2 recognize the "Isolated"
parameter, systemd-networkd did not have a way to set it.
2022-02-09 17:37:37 +09:00
Yu Watanabe
7809cab717
test-network: add testcase for external tunnel
2022-02-03 11:12:34 +09:00
Yu Watanabe
6a8ab6dd1e
Merge pull request #22332 from yuwata/network-dhcp-server-dns-server-address
...
network: dhcp-server: allow to specify server address for DNS= or friends
2022-02-02 07:07:22 +09:00
Yu Watanabe
c5f7a08739
test-network: add tests for DNS=_server_address in [DHCPServer]
2022-02-02 05:01:59 +09:00
Yu Watanabe
020483b248
test-network: set xfrm interface ID
...
This also unifies two tests for xfrm, and checks the output of
'ip link' command.
Fixes #22329 .
2022-02-01 13:26:43 +09:00
Yu Watanabe
1e8e9730d2
test-network: add testcases for configuring SR-IOV by .link file
2022-01-19 15:00:53 +09:00
Yu Watanabe
902bbdc4b6
network: use scope link for direct unicast routes by default
...
Strictly speaking, this breaks the backward compatibility, but I guess
in most cases people already sets Scope=link for such routes.
This behavior matches with how 'ip route' command adds such route by
default.
Prompted by https://twitter.com/jplitza/status/1480500562391179270 .
2022-01-13 22:46:52 +00:00
Yu Watanabe
14b451f20a
test-network: add testcase for invalid AllowedIPs=
2021-12-31 02:31:12 +09:00
Yu Watanabe
49ad8da779
test-network: add testcase for vxlan local address auto selection
2021-12-25 15:32:06 +09:00
Yu Watanabe
7726526cc6
Merge pull request #21648 from yuwata/network-tunnel-local-automatic-address-selection
...
network: tunnel: automatic local address selection
2021-12-25 15:05:13 +09:00
Yu Watanabe
4862fb693d
test-network: use dnsmasq for testing DHCP4-6RD
2021-12-18 10:09:07 +09:00