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
Yu Watanabe
da7d684825
test-network: add testcase for automatic tunnel local address selection
2021-12-12 14:11:38 +09:00
Yu Watanabe
42592d0ad4
test-network: support the case that the default config files are not installed yet
2021-12-07 20:33:20 +09:00
Yu Watanabe
84cc85f983
test-network: add test for 6rd
2021-12-07 20:33:20 +09:00
Yu Watanabe
a27588d4e7
network: dhcp-pd: rename [DHCPv6PrefixDelegation] -> [DHCPPrefixDelegation]
...
This just changes the names of settings, variables, functions, files, and so on.
No functionality is changed.
Preparation for supporting 6rd.
2021-12-07 20:30:30 +09:00
Yu Watanabe
6016f1cfbb
test-network: re-arrange DHCP6-PD subnet IDs to test searching free subnet ID
2021-12-01 20:35:03 +09:00
Yu Watanabe
6c8d6bdd40
test-network: add testcases for uplink interface detection for RADV with DHCPv6-PD
2021-12-01 20:35:03 +09:00
Yu Watanabe
6387cac3f3
test-network: add tests for creating routes to wireguard's AllowedIPs=
2021-12-01 04:00:16 +09:00
Yu Watanabe
3e3b0d2a40
test-network: make udevd also generate debugging logs
2021-11-17 08:32:45 +09:00
Yu Watanabe
7a2e124b08
test-network: add testcases for Token=prefixstable with UUID
2021-11-14 13:29:44 +09:00
Yu Watanabe
0b251e8bf9
test-network: add testcases for CAKE settings
2021-11-09 10:58:44 +09:00
Yu Watanabe
ab7b261663
Merge pull request #21210 from yuwata/network-dhcp-server-introduce-router-setting
...
network: dhcp-server: introduce Router= setting to specify router address
2021-11-03 12:41:34 +09:00
Yu Watanabe
32d97330df
test-network: add a testcase for Router= setting
2021-11-03 03:15:05 +09:00
Yu Watanabe
0874be35c3
test-network: add test case for MTUBytes= for veth
2021-11-02 12:35:07 +09:00
Yu Watanabe
1ac845ffbe
test-network: add more tests for [Address] section
2021-10-28 02:12:34 +09:00
Yu Watanabe
8edcd775e8
test-network: add tests for invalid [IPv6AddressLabel] section
2021-10-28 01:40:19 +09:00
Yu Watanabe
3dfa7311e2
test-network: add tests for invalid IPv6 token
2021-10-28 01:17:14 +09:00
Yu Watanabe
caad88a22b
test-network: add test cases for DHCPv6 prefix delegation
2021-10-26 20:43:10 +09:00
Zbigniew Jędrzejewski-Szmek
22d3cfe54c
tests: add spdx license header to test unit/link/network/conf files
...
Those are all consumed by our parser, so they all support comments.
I was considering whether they should have a license header at all,
but in the end I decided to add it because those files are often created
by copying parts of real unit files. And if the real ones have a license,
then those might as well. It's easier to add it than to make an exception.
2021-10-18 09:04:45 +02:00
Yu Watanabe
308d01f3c4
network: do not request RAPID_COMMIT option
...
The option must not be included in OPTION_REQUEST option.
See the "Client ORO" field in
https://www.iana.org/assignments/dhcpv6-parameters/dhcpv6-parameters.xhtml#dhcpv6-parameters-2
This deprecates RapidCommit= setting. Note that sd-dhcp6-client always
sets the RAPID_COMMIT option in the solicit message.
2021-10-13 02:46:24 +09:00
Yu Watanabe
fe2a8b3d3f
test-network: add tests for Token= in [IPv6Prefix]
2021-10-07 01:24:50 +09:00
Yu Watanabe
b48b6bd3b9
test-network: replace deprecated settings
2021-10-07 01:24:50 +09:00
Yu Watanabe
40971657ce
test-network: add tests for duplicated address setting
...
Also, add more tests for PreferredLifetime=0
C.f. #20891 .
2021-10-04 18:26:35 +09:00
Yu Watanabe
b06469a66c
test-network: add tests for KeepMaster=
2021-09-04 08:15:30 +09:00
Yu Watanabe
ab47f96041
test-network: add more testcases for *Allow/DenyList=
2021-08-23 20:37:36 +09:00
Yu Watanabe
180c5116b3
test-network: add testcases that gateway address is IPv6 link local
2021-08-22 15:35:22 +09:00
Maxime de Roucy
d419ef0243
network: add address label on dhcpv4
...
Fixes : #13967
2021-08-17 02:40:18 +09:00
Yu Watanabe
af0d4e6ef5
test-network: test static lease outside of pool
2021-08-11 16:43:26 +09:00
Luca Boccassi
32a2ee2bb4
Merge pull request #20375 from yuwata/network-bridge-vlan-issue-20373
...
network: fix bridge and openvswitch issues
2021-08-05 11:18:03 +01:00
Yu Watanabe
801cf85935
Merge pull request #20377 from yuwata/network-bridge-fdb-20305
...
network: always append new bridge FDB entries
2021-08-05 02:44:24 +09:00
Yu Watanabe
988b0660aa
test-network: add a test case for issue #20373
2021-08-04 23:22:20 +09:00
Yu Watanabe
4a906586f8
test-network: add a testcase for UplinkInterface= in [IPv6SendRA]
2021-08-04 22:21:00 +09:00
Yu Watanabe
cca07d910a
test-network: add a testcase for vxlan with IPv6 local address
2021-08-04 18:33:23 +09:00