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
ab0c82d9f7
network: dhcp6pd: assign addresses in the delegated prefix instead of a subnet prefix /64 on upstream interface
2021-12-07 19:46:37 +09:00
Yu Watanabe
45aa0e841b
network,udev: do not adjust local assignment bit of specified MAC address
...
People often assigns the MAC address of the enslaved interface to e.g.
bridge interface. So, the local assignment bit should not be adjusted.
Fixes #21649 .
2021-12-07 15:01:04 +09:00
Yu Watanabe
133f65ef2c
test-network: start dhcpd after address is assigned
2021-12-06 19:18:55 +09:00
Yu Watanabe
5f7f1f824f
test-network: make start_isc_dhcpd() take IP version
2021-12-06 19:18:55 +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
94f0bd624b
test-network: add more basic tests for network json formats
2021-11-30 10:03:51 +09:00
Yu Watanabe
007899f43e
network/netdev: verify specified MAC address
...
Drop multicast bit and set local bit of the specified MAC address.
This also makes failure in generating persistent MAC address
non-critical.
2021-11-27 06:39:04 +09:00
Zbigniew Jędrzejewski-Szmek
66a8eddd6d
Merge pull request #21360 from yuwata/network-json
...
network: json: add more information
2021-11-26 11:04:52 +01:00
Yu Watanabe
146726b2f5
test-network: add basic tests of json output
2021-11-25 22:35:35 +09:00
Yu Watanabe
a8840714f3
network: make MACAddress= takes hardware address with its length is INFINIBAND_ALEN
...
Also, the multicast and local bits in the specified MAC address for
ethernet are adjusted.
2021-11-25 22:03:19 +09:00
Yu Watanabe
b36caceb88
test-network: check if actually alternative name is set
...
Fixes #21404 .
2021-11-17 12:58:08 +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
caad88a22b
test-network: add test cases for DHCPv6 prefix delegation
2021-10-26 20:43:10 +09:00
Yu Watanabe
5b47f35d0e
test-network: reconfigure interface instead of restarting networkd
2021-10-26 08:20:29 +09:00
Frantisek Sumsal
035af7adfe
test: disable ProtectHome= when collecting coverage as well
...
Depending on the location of the original build dir, either ProtectHome=
or ProtectSystem= may get in the way when creating the gcov metadata
files.
Follow-up to:
* 02d7e73013
* 6c9efba677
2021-10-23 21:27:20 +02:00
Frantisek Sumsal
6c9efba677
test: loosen certain sandbox restrictions when collecting coverage
...
With `ProtectSystem=strict` gcov is unable to write the *.gcda files
with collected coverage. Let's add a yet another switch to make such
restriction less strict to make gcov happy.
This addresses following errors:
```
...
systemd-networkd[272469]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-249.a.p/binfmt-util.c.gcda:Cannot open
systemd-networkd[272469]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-249.a.p/base-filesystem.c.gcda:Cannot open
systemd-networkd[272469]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-249.a.p/barrier.c.gcda:Cannot open
systemd-networkd[272469]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-249.a.p/ask-password-api.c.gcda:Cannot open
systemd-networkd[272469]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-249.a.p/apparmor-util.c.gcda:Cannot open
systemd-networkd[272469]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-249.a.p/acpi-fpdt.c.gcda:Cannot open
...
```
2021-10-21 17:36:45 +02:00
Frantisek Sumsal
dded88acb9
test: wait a bit for the given PID to die if it's still alive
...
When playing around with the coverage-enabled build I kept hitting
an issue where dnsmasq failed to start because the previous instance was
still shutting down. This should, hopefully, help to mitigate that.
2021-10-21 15:59:57 +02:00
Yu Watanabe
a4a1385e07
test-network: cleanup dnsmasq related file on setup
...
Just for safety.
2021-10-20 03:49:05 +09:00
Yu Watanabe
888f57c11c
test-network: drop pid_file argument from stop_dnsmasq()
2021-10-20 03:49:05 +09:00
Yu Watanabe
ed08ed4a45
test-network: use constant variables in dnsmasq command
2021-10-20 03:49:05 +09: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
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
8be102f8b8
test-network: kernel treats the lowest IP address as unicast since 5.14
...
See kernel's 94c821c74bf5fe0c25e09df5334a16f98608db90.
2021-09-13 21:41:16 +02:00
Yu Watanabe
b06469a66c
test-network: add tests for KeepMaster=
2021-09-04 08:15:30 +09:00
Tom Yan
c918b70a4d
network: default LinkLocalAddresssing= to no for link stacked with a passthru mode MACVLAN/MACVTAP
...
For similar reason to the case of a bridge slave: we don't want any IP configuration for it.
2021-08-26 06:11:41 +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
Yu Watanabe
c4f7a34756
network: do not assume the highest priority when Priority= is unspecified
...
Previously, when Priority= is unspecified, networkd configured the rule with
the highest (=0) priority. This commit makes networkd distinguish the case
the setting is unspecified and one explicitly specified as Priority=0.
Note.
1) If the priority is unspecified on configure, then kernel dynamically picks
a priority for the rule.
2) The new behavior is consistent with 'ip rule' command.
Replaces #15606 .
2021-08-18 15:57:45 +09:00
Maxime de Roucy
d419ef0243
network: add address label on dhcpv4
...
Fixes : #13967
2021-08-17 02:40:18 +09:00
Yu Watanabe
1d0c9bd753
test-network: add a testcase for recreating stacked netdevs
2021-08-12 15:03:50 +09:00
Yu Watanabe
af0d4e6ef5
test-network: test static lease outside of pool
2021-08-11 16:43:26 +09:00
Yu Watanabe
3bad5487e9
test-network: add a testcase to enter unmanaged state on reconfiguring
2021-08-10 14:44:47 +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
Yu Watanabe
4df8a8e809
test-network: add a testcase for semi-static route with Gateway=_dhcp4 when UseGateway=no
2021-07-15 04:17:14 +09:00