Yu Watanabe
37baf8db56
Merge pull request #18380 from yuwata/test-network-ipv6-proxy-ndp
...
test-network: add tests for IPv6ProxyNDPAddress=
2021-01-27 10:47:36 +09:00
Yu Watanabe
f0d87798ea
test-network: retry several times if expected LLDP info is not obtained
...
As LLDP thing does not get involved in the link status, `networkctl lldp`
may not provide an expected information even if the link is in
'configured' state.
Fixes #17360 .
2021-01-26 18:48:44 +01:00
Yu Watanabe
cff0cadcac
test-network: add tests for IPv6ProxyNDPAddress=
2021-01-27 01:28:28 +09:00
Dan Streetman
a853652ae9
save link activation policy to state file and display in networkctl
2021-01-21 12:05:17 -05:00
Dan Streetman
2236d75df9
test: add ActivationPolicy= unit tests
2021-01-21 12:05:17 -05:00
Yu Watanabe
0b5dc24953
test-network: add tests for route advmss
2021-01-09 00:01:53 +09:00
Yu Watanabe
49ff3f34d5
test-network: add tests for fib rules with Family=both vs networkctl reload or reconfigure
2020-12-30 03:32:07 +09:00
Yu Watanabe
1e5fd3216a
network: set FRA_PROTOCOL to RTPROT_STATIC by default
2020-12-29 16:03:26 +09:00
Yu Watanabe
635f2a6692
test-network: add tests for [IPv6AcceptRA] PrefixDenyList= or friends
2020-12-24 17:16:15 +09:00
Dan Streetman
b226c15cfb
test-network: increase wait_online timeout to handle longer dhcpv4 transient timeout
...
Previous commits changed the dhcpv4 retransmission algorithm to be
slightly slower, changing the amount of time it takes to notify
systemd-networkd that the dhcpv4 configuration has (transiently)
failed from around 14 second up to 28 seconds.
Since the test_dhcp_client_with_ipv4ll_without_dhcp_server test
configures an interface to use dhcpv4 without any operating dhcpv4
server running, it must increase the amount of time it waits for
the test interface to reach degraded state.
2020-12-14 18:19:32 -05:00
Yu Watanabe
452d86a532
test-network: add tests for IPv6 routes with reject type
2020-12-04 16:50:35 +09:00
Yu Watanabe
37b9c79e5d
test-network: sleep 1s after reloading configs
...
As interfaces will be reconfigured asynchronously after `networkctl reload`.
So, right after `networkctl reload` is finished, interfaces may be still
in 'configured' state with the old .network files.
2020-12-04 11:28:52 +09:00
Yu Watanabe
240e41372e
test-network: confirm that IPv4ll address is dropped after DHCPv4 lease is acquired
2020-12-02 18:50:13 +09:00
Zbigniew Jędrzejewski-Szmek
0107b769b1
networkd: start ipv4ll when dhcp has trouble getting a lease
...
Fixes #13316 .
2020-11-30 12:37:36 +09:00
Zbigniew Jędrzejewski-Szmek
3ca1fab70a
networkd: merge ll addressing fallback modes into normal "boolean" values
...
They are not really boolean, because we have both ipv4 and ipv6, but
for each protocol we have either unset, no, and yes.
From https://github.com/systemd/systemd/issues/13316#issuecomment-582906817 :
LinkLocalAddressing must be a boolean option, at least for ipv4:
- LinkLocalAddressing=no => no LL at all.
- LinkLocalAddressing=yes + Static Address => invalid configuration, warn and
interpret as LinkLocalAddressing=no, no LL at all.
(we check that during parsing and reject)
- LinkLocalAddressing=yes + DHCP => LL process should be subordinated to the
DHCP one, an LL address must be acquired at start or after a short N
unsuccessful DHCP attemps, and must not stop DHCP to keeping trying. When a
DHCP address is acquired, drop the LL address. If the DHCP address is lost,
re-adquire a new LL address.
(next patch will move in this direction)
- LinkLocalAddressing=fallback has no reason to exist, because LL address must
always be allocated as a fallback option when using DHCP. Having both DHCP
and LL address at the same time is an RFC violation, so
LinkLocalAdressing=yes correctly implemented is already the "fallback"
behavior. The fallback option must be deprecated and if present in older
configs must be interpreted as LinkLocalAddressing=yes.
(removed)
- And for IPv6, the LinkLocalAddress option has any sense at all? IPv6-LL
address aren't required to be always set for every IPv6 enabled interface (in
this case, coexisting with static or dynamic address if any)? Shouldn't be
always =yes?
(good question)
This effectively reverts 29e81083bd
. There is no
special "fallback" mode now, so the check doesn't make sense anymore.
2020-11-30 12:37:36 +09:00
Yu Watanabe
dca63b5b46
Merge pull request #17474 from yuwata/network-drop-link-deserialization-logic
...
network: drop link deserialization logic
2020-11-27 09:08:01 +09:00
Yu Watanabe
db9ecf0501
license: LGPL-2.1+ -> LGPL-2.1-or-later
2020-11-09 13:23:58 +09:00
Yu Watanabe
7b829a7b3b
network: do not serialize/deserialize addresses
...
The link state file is always removed when networkd is stopping. So,
the deserialization logic does not work. Moreover, the ADDRESSES=
entry is not used by sd-network, so serialization is also not necessary.
2020-10-28 18:15:57 +09:00
Yu Watanabe
80762cccdc
test-network: add a test case for DNSSL in RA
...
Closes #4590 .
2020-10-24 14:08:51 +02:00
Yu Watanabe
43d4bc9f56
test-network: add tests for routes managed by Manager
2020-10-23 23:07:12 +09:00
Yu Watanabe
610e747748
test-network: use new IPv6SendRA= setting
2020-10-19 14:55:21 +09:00
Yu Watanabe
9087e3d609
test-network: do not use deprecated value
2020-10-15 07:08:27 +09:00
Yu Watanabe
c27abcf4fb
network: when Gateway=_dhcp4, set several properties based on lease if they are not explicitly specified
...
Before this commit, event when Gateway=_dhcp4 or _ra is set, the
route was configured with 'protocol static', and other properties
specified by RouteTable=, RouteMTU=, or etc, were ignored.
This commit makes set the route protocol based on the protocol the
gateway address is obtained, and apply other settings if it is not
explicitly specified in the [Route] section.
2020-10-15 07:06:23 +09:00
Yu Watanabe
21266e60e9
test-network: add test for issue #17304
2020-10-13 20:32:17 +09:00
Yu Watanabe
d9005dec6e
test-network: do not fail when multiple ipv6 default gateways are configured
...
When multiple ipv6 default gateways are set, kernel seems to merge them
into a multipath route.
2020-10-08 02:51:23 +09:00
Yu Watanabe
297f9d86fe
test-network: add a test case for IPv4 route with IPv6 gateway
2020-10-08 02:51:13 +09:00
Yu Watanabe
0a2808a208
test-network: drop meaningless Scope= settings in the config
2020-10-07 15:22:10 +02:00
Yu Watanabe
66493453b3
test-network: also remove IPv6 rules
2020-10-07 03:23:27 +09:00
Yu Watanabe
713bfdaa6c
test-network: add a missing netdev in the list
2020-10-07 03:23:27 +09:00
Yu Watanabe
47f8411249
test-network: disable RA in test_sriov
...
We usually disable IPv6AcceptRA= if the test does not require any
dynamic address configuration, as it makes slightly slow down the test.
C.f. 491b79aeac
.
2020-10-07 03:23:27 +09:00
Yu Watanabe
5cf52d90a9
test-network: add missing file in the list
2020-10-07 03:23:27 +09:00
Yu Watanabe
6dcc637574
test-network: drop duplicated address
2020-10-07 03:23:27 +09:00
Zbigniew Jędrzejewski-Szmek
05d418fed9
Merge pull request #17085 from yuwata/network-configure-mdb-entries-on-bridge-master
...
network: allow to configure mdb entries on bridge master
2020-09-18 13:06:44 +02:00
Yu Watanabe
1034044260
Merge pull request #15050 from ssahani/fq-pie
...
network: tc: add support for FQ-PIE packet scheduler
2020-09-18 03:50:02 +09:00
Yu Watanabe
dc0e90d2e0
Merge pull request #16929 from ssahani/network-bare-udp
...
network: introduce Bare UDP Tunnelling
2020-09-17 20:34:15 +09:00
Yu Watanabe
9f773037a0
test-network: add test for bridge MDB entries on bridge master
2020-09-17 18:15:25 +09:00
Yu Watanabe
1578266b02
test-network: add tests for FQ-PIE
2020-09-17 17:18:48 +09:00
Yu Watanabe
130604719a
test-network: add tests for BareUDP netdev
2020-09-17 16:46:29 +09:00
Yu Watanabe
039971ea43
test-network: add test for Independent= for vxlan
2020-09-17 15:58:41 +09:00
Yu Watanabe
cc0276cc3e
test-network: add test for [BridgeMDB] section
2020-09-17 00:04:59 +09:00
Yu Watanabe
766f8f388f
test-network: add test for ENOBUFS issue #17012
...
The issue seems already fixed by PR #16982 and its follow-up commit
4934ba2121
.
2020-09-11 18:07:47 +02:00
Yu Watanabe
87adeabfb7
test-network: update tests for issue #16784
2020-09-10 18:57:07 +09:00
Yu Watanabe
68248f43fc
test-network: add test for IPv6Token=prefixstable
2020-09-08 14:32:44 +09:00
Michael Biebl
3aa645f0c0
test-network: stop networkd and its socket
...
With the changes from 2c0dffe82d
, starting
systemd-networkd.service will also activate systemd-networkd.socket.
When tearing down a test, we need to stop the socket as well, to make
sure networkd can't be activated accidentally with the wrong
configuration.
2020-08-28 21:03:09 +02:00
Yu Watanabe
9dffe6fc27
test-network: add a test case for reconfiguring routing policy rules
...
C.f. #16784 .
2020-08-21 15:27:38 +09:00
Yu Watanabe
c9d223e803
test-network: add tests for prefix routes
2020-07-29 01:50:54 +09:00
Yu Watanabe
7f8c1e95a5
test-network: add test for duplicated IPv6Token=
2020-07-22 20:26:11 +09:00
Yu Watanabe
f91b234077
test-network: drop unnecessary sleep() in NetworkdStateFileTests.test_state_file
2020-07-22 19:55:15 +09:00
Yu Watanabe
66479677a9
test-network: add tests for DNS= with port number and SNI
2020-07-21 04:08:22 +09:00
Yu Watanabe
571f953934
test-network: wait for addresses are not in tentative state
2020-07-15 17:15:25 +09:00
Yu Watanabe
c5fcd8a70a
test-network: check assigned address is not tentative state
2020-07-15 17:14:30 +09:00
Yu Watanabe
491b79aeac
test-network: set IPv6AcceptRA=no if no dynamic addresses are not required
2020-07-15 17:14:30 +09:00
Dan Streetman
001c07cfff
test-netowrk: in test_bridge_configure_without_carrier, avoid strange test failures
...
For some reason the wait-online is failing intermittently; it's unclear
exactly why, but this hopefully avoids the failure for unrelated PR.
This is a workaround (not fix) for #16105
2020-07-08 17:05:03 -04:00
Dan Streetman
4e3376d43a
test-network: don't print networkctl output for passing subtests
...
This just clutters up the logs.
2020-07-08 16:13:14 -04:00
Yu Watanabe
c03ef420fa
network: tc: rename several settings which take size in bytes
2020-07-02 16:51:11 +02:00
Yu Watanabe
3d2c26925f
test-network: add tests for SR-IOV
...
This also adjusts test_sysctl_disable_ipv6(), as rt_trap flag may be
added to routes on some environments.
2020-07-01 13:51:35 +09:00
Yu Watanabe
440988666c
test-network: remove unused config
2020-06-25 17:30:19 +09:00
Lennart Poettering
c4e90266db
Merge pull request #16093 from yuwata/network-htb-add-settings-15213
...
network: tc: add several settings for HTB
2020-06-24 19:07:41 +02:00
Yu Watanabe
b753e8358c
test-network: add tests for ETS
2020-06-19 01:10:51 +09:00
Yu Watanabe
2ee7e54b9e
test-network: add tests for HTB settings
2020-06-17 16:52:03 +09:00
Dan Streetman
6d0f38017c
test: in test_bridge_configure_without_carrier, ignore setup_state
...
This test is failing becuase the setup state isn't reaching 'configured'
for unknown reasons; ignore the setup state for now to prevent failures
of CI until the reason can be investigated.
2020-06-13 10:19:03 +02:00
Yu Watanabe
60b316b1e9
test-network: wait 2min for the bridge being in configured state
...
On some CIs, it may takes more than 40 seconds.
Hopefully fixes #16105 .
2020-06-09 17:19:22 +02:00
Yu Watanabe
29f69c5741
test-network: add test for IPv4AcceptLocal=
2020-06-08 13:51:50 +09:00
Frantisek Sumsal
7887e58051
test: avoid failing due to unexpected precision
...
After today's Arch Linux image update, there seems to be a slight change
in delay reporting which breaks some asserts in
systemd-networkd-tests.py:
Expected:
limit 100 delay 50.0ms 10.0ms loss 20%
Current:
limit 100 delay 50ms 10ms loss 20%
2020-06-06 18:33:35 +02:00
Yu Watanabe
891ff9633f
test-network: add tests for QFQ
2020-06-03 17:25:48 +09:00
Yu Watanabe
da3509f0f5
test-network: add test for wireguard without peers
2020-06-01 14:23:03 +09:00
Dan Streetman
0fc0d85fae
test: add bridge configure-without-carrier test
...
Verify configure-without-carrier works, and retains configuration
across carrier losses/gains.
2020-05-26 09:52:55 -04:00
Dan Streetman
9bacf4313e
test: expand configure-without-carrier test
...
The test currently doesn't actually test configure-without-carrier since
it does have carrier for the entire test. It now forces carrier down
before starting the network portion of the test. Also, it tests to verify
the configuration is retained across future carrier losses/gains.
2020-05-26 09:52:55 -04:00
Dan Streetman
06c2b0c76b
test: verify RoutesToDNS= is independent of UseGateway=
2020-04-21 17:21:37 -04:00
Dan Streetman
7c0d36ff5f
test: modify/add tests for UseRoutes= and UseGateway= configuration
...
The last commit changed the UseGateway= default to the value of UseRoutes=
so the tests need to check for all combinations of the two parameters.
2020-04-21 17:15:02 -04:00
Yu Watanabe
0d7bd445d2
test-network: add a test case for DHCPv4.UseGateway=no
2020-03-16 19:34:47 +09:00
Yu Watanabe
970ab1fcc0
test-network: add a test case for HHF
2020-03-12 15:47:03 +09:00
Yu Watanabe
41bb371bb0
test-network: add a test case for PFIFOFast
2020-03-12 15:39:10 +09:00
Yu Watanabe
73136507ac
test-network: add a test case for PFIFOHeadDrop
2020-03-12 15:38:15 +09:00
Yu Watanabe
7b1a31a3d0
test-network: add a test case for BFIFO
2020-03-12 15:37:15 +09:00
Yu Watanabe
557fa421ff
test-network: add a test case for DRR
2020-03-12 15:35:51 +09:00
Yu Watanabe
be94e591fb
test-network: add test case for PIE
2020-03-12 15:34:46 +09:00
Yu Watanabe
bba1f90ff5
Merge pull request #14890 from yuwata/network-tc-next
...
network: tc-next
2020-03-07 01:44:15 +09:00
Chris Down
5bb67b107f
Merge pull request #14956 from ssahani/delegated-prefix-14474
...
nettwork: introduce delegated prefix assign
2020-03-06 16:13:13 +00:00
Yu Watanabe
f6c6af3811
test-network: add a test case for CAKE
2020-03-02 15:59:37 +09:00
Yu Watanabe
f2c5c1296a
test-network: add a test case for sfb
2020-03-02 15:48:24 +09:00
Yu Watanabe
95edcf3fac
test-network: add a test case for GRED
2020-03-02 15:48:24 +09:00
Yu Watanabe
bc0769c9f7
test-network: add a test case for PFIFO
2020-03-02 15:48:11 +09:00
Yu Watanabe
f1de1eb3e3
test-network: add test case for HTB class
2020-03-02 15:46:28 +09:00
Yu Watanabe
931c8c824a
test-network: add a test case for HTB
2020-03-02 15:46:28 +09:00
Yu Watanabe
834ea1a466
test-network: remove unnecessary dummy interface
2020-03-02 15:44:03 +09:00
Yu Watanabe
4c2e1833ec
test-network: add a test case for [DHCPv4] UseRoutes=no
2020-03-02 01:28:27 +09:00
Yu Watanabe
3c874fd79d
test-network: add a test case for [IPv6Prefix] Assign=yes
2020-03-01 00:49:24 +09:00
Yu Watanabe
40afe4916a
test-network: add one more test case for VRF=
2020-02-26 19:21:53 +09:00
Yu Watanabe
1d6cfd25a2
Merge pull request #14833 from kpfleming/multiple-ipv6token-addresses
...
Support multiple IPv6Token 'static' addreses on an interface
2020-02-12 02:10:44 +09:00
Kevin P. Fleming
c24c83dc67
network: Allow multiple IPv6Token 'static' items to generate addresses
...
This patch allows multiple addresses using 'static' IPv6Tokens to
be generated for a single network interface.
2020-02-10 18:40:57 +09:00
Yu Watanabe
38d1255a52
test-network: add tests for qdisc Handle=
2020-02-10 17:49:02 +09:00
Yu Watanabe
f7ada4b8ec
test-network: tentatively stops .socket units for udevd
...
To suppress the following warning:
---
Warning: Stopping systemd-udevd.service, but it can still be activated by:
systemd-udevd-control.socket
systemd-udevd-kernel.socket
2020-02-10 00:51:00 +09:00
Kevin P. Fleming
b241fa00e9
network: Add test for explicit 'static' IPv6Token
...
Add a test case for an explicitly-specified 'static' IPv6Token.
Signed-off-by: Kevin P. Fleming <kevin@km6g.us>
2020-02-10 00:41:34 +09:00
Zbigniew Jędrzejewski-Szmek
c3b41d8811
Merge pull request #14805 from yuwata/network-ipv6-token-follow-up
...
network: rename eui64 to static
2020-02-07 17:05:33 +01:00
Yu Watanabe
3d55b5a9de
test-network: add test for teql
2020-02-07 17:41:49 +09:00
Yu Watanabe
ab9dc1db47
test-network: add more tests for traffic control
2020-02-07 17:41:43 +09:00
Yu Watanabe
e2c4070edf
network: rename eui64 to static
...
See RFC 4291.
Follow-up for 5f506a5560
.
2020-02-07 13:30:40 +09:00
Yu Watanabe
87bbebeab6
test-network: add tests for IPv6Token=
2020-02-05 17:44:42 +09:00
Yu Watanabe
641aa41200
test-network: use udevd in build directory
...
Fixes #14764 .
2020-02-05 17:25:35 +09:00
Zbigniew Jędrzejewski-Szmek
427928caa4
network: change "Gateway=dhcp" to "Gateway=_dhcp" ( #14774 )
...
This way we avoid confusion with a DNS name. Fixes #14773 .
2020-02-05 13:41:30 +09:00
Yu Watanabe
f2f1b52c6f
Merge pull request #14767 from yuwata/network-split-qdisc-section
...
network: split TrafficControlQueueingDiscipline section into small pieces
2020-02-05 13:35:25 +09:00
Zbigniew Jędrzejewski-Szmek
ca58d00c68
network: FairQueueTrafficPolicing→FairQueueing
...
This never made into a release, so we can change the name with impunity.
Suggested by Davide Pesavento.
I opted to add the "ing" ending. "Fair queuing" is the name of the general
concept and algorithm, and "Fair queue" is mostly used for the implementation
name.
2020-02-04 17:37:16 +01:00
Zbigniew Jędrzejewski-Szmek
60ed2dcfc7
network: TokenBufferFilter→TokenBucketFilter
...
This never made into a release, so we can change the name with impunity.
Noticed by Davide Pesavento.
2020-02-04 17:28:15 +01:00
Yu Watanabe
18de0969c5
network: split TrafficControlQueueingDiscipline section into small pieces
...
Closes #14763 .
2020-02-04 21:45:39 +09:00
Yu Watanabe
41fd8fe716
test-network: add a test case for IPv6PrefixDelegation.DNS=linklocal
2020-02-04 13:57:12 +09:00
Yu Watanabe
6be8e78e32
test-network: add test for UID based routing policy
2020-02-02 22:43:38 +09:00
Yu Watanabe
a05a6e8bba
test-network: fix test_qdisc2()
...
quantum and initial_quantum may suffixed with 'b'.
2020-01-28 22:33:31 +01:00
Dan Streetman
0c020321c8
test-network: simplify wait_online() by calling wait_operstate()
...
The wait_operstate() function now rechecks the condition for a timeout,
so the wait_online() function can simply call it to check for the
setup_state.
2020-01-09 15:19:19 -05:00
Dan Streetman
a4632dc7d1
test-network: convert wait_operstate() to recheck condition for timeout seconds
...
Failing after a single check leads to extra sleeps scattered through
test cases, and can also lead to false failures. Instead perform a
recheck for a number of seconds until the state matches, and fail only
if the timeout is exceeded.
This allows removing all the manual sleeps in the testcases.
2020-01-09 15:19:19 -05:00
Dan Streetman
19cf3143cf
test-network: rename check_operstate() to wait_operstate()
...
Rename only, no functional change; this makes following patches easier
to read.
2020-01-09 15:19:19 -05:00
Zbigniew Jędrzejewski-Szmek
629548c405
Merge pull request #14488 from yuwata/networkctl-show-logs
...
networkctl: status command also shows logs of networkd
2020-01-08 10:49:39 +01:00
Yu Watanabe
fc79e6ff5e
test-network: suppress logs in status command
2020-01-07 22:20:43 +09:00
Yu Watanabe
214c5bae09
test-network: add test for Gateway=DHCP
2020-01-07 19:11:19 +09:00
Lennart Poettering
dc5737470e
Merge pull request #14194 from yuwata/network-multipath-routing-12541
...
network: introduce multipath routing
2020-01-03 15:38:03 +01:00
Yu Watanabe
a3d3565451
test-network: add a test case for CoDel
2019-12-28 22:25:49 +09:00
Yu Watanabe
0fd8b71809
test-network: add a test case for DHCPv4.SendDecline=
2019-12-21 00:26:44 +09:00
Yu Watanabe
a0ce990e71
test-network: add test case for multipath routing
2019-12-18 22:12:57 +09:00
Yu Watanabe
6e5df4036f
Merge pull request #14337 from yuwata/network-tc-fq-more
...
network: tc: introduce more FQ settings
2019-12-17 23:30:10 +09:00
Yu Watanabe
7a2f6fb6f1
test-network: pass environment variables to networkctl
2019-12-16 10:56:02 +09:00
Yu Watanabe
6934ace05d
test-network: add a test case for netdev altname
2019-12-16 10:56:02 +09:00
Yu Watanabe
4ef289250f
test-network: add a test case for new FQ settings
2019-12-14 12:33:37 +09:00
Yu Watanabe
2e048b14eb
Merge pull request #13915 from ddstreet/ipv6_mtu
...
Set ipv6 mtu after link-up or device mtu change
2019-12-13 18:33:04 +09:00
Yu Watanabe
9401e48855
test-network: add a test case for the new settings of FQ-CoDel
2019-12-12 23:37:03 +09:00
Yu Watanabe
0baddbd5ee
test-network: add a test case for FQ
2019-12-12 17:26:31 +09:00
Yu Watanabe
40821c2ac3
test-network: add a test case for fq-codel
2019-12-11 00:06:31 +09:00
Yu Watanabe
bfb68540d5
Merge pull request #14280 from yuwata/network-tbf-more
...
network: tc: add more options for TBF
2019-12-11 00:02:43 +09:00
Yu Watanabe
886e07a9cf
test-network: add tests for new TBF settings
2019-12-10 01:28:38 +09:00
Yu Watanabe
0810e6d787
test-network: add a test case for SendOption=
2019-12-10 01:28:09 +09:00
Yu Watanabe
bc942f69aa
test-network: make test_bind_carrier more stable
2019-12-08 19:52:01 +00:00
Yu Watanabe
debda5a4e5
Merge pull request #14273 from ssahani/ifb
...
network: introduce IFB
2019-12-08 05:13:08 +09:00
Yu Watanabe
b076d5d76d
test-network: add test case for IFB
2019-12-08 00:03:29 +09:00
Yu Watanabe
dc7d3c5fd4
test-network: add test case for IPv4 DAD
2019-12-06 23:29:28 +09:00
Dan Streetman
7db0544705
test-network: add tests to verify IPv6MTUBytes
2019-12-05 17:53:10 -05:00
Dan Streetman
3e82152543
test-network: disable restart limiting for networkd
...
Some of the tests restart networkd rapidly, so restart limiting
must be disabled to avoid start ratelimiting from causing test
failures.
2019-12-05 17:53:10 -05:00
Dan Streetman
fd372b1a68
test-network: in wait_online() allow a few seconds to reach setup_state
2019-12-05 17:53:03 -05:00
Dan Streetman
befd4b8b60
test-network: read link attribute at any depth
2019-12-05 17:50:15 -05:00
Dan Streetman
9dfc1a9339
test-network: allow specifying only individual drop-in files
2019-12-05 17:50:10 -05:00
Yu Watanabe
0ab9279132
test-network: add a test case for SFQ
2019-12-04 20:58:33 +09:00
Yu Watanabe
1b628c4f64
test-network: add test case for TBF
2019-12-04 20:57:48 +09:00
Dan Streetman
426654d728
test-network: Remove/replace non-capturing group regex
...
The systemd-networkd-tests.py has some regex that uses non-capturing
groups, but there is no need to use that with assertRegex; the
groups aren't referenced so it doesn't matter if it's capturing or
non-capturing. However, there are a few places where optional groups
should have been used instead, so this changes that.
Specifically, groups like this:
(?:whatever |)
should actually be:
(whatever )?
Additionally, this is specifically needed for these tests to run on
Debian systems, because this assertRegex:
'Link File: (?:/usr)/lib/systemd/network/99-default.link'
needs to be:
'Link File: (/usr)?/lib/systemd/network/99-default.link'
2019-11-01 12:32:49 -04:00
Dan Streetman
7471bcb06e
test: check /usr/lib and /lib for systemd binaries
...
Fedora uses /usr/lib while Debian uses /lib; find the right location
2019-11-01 12:00:57 -04:00
Dan Streetman
856423f14d
test/test-network/systemd-networkd-tests.py: suppress stderr for functionality checks
2019-11-01 12:00:53 -04:00
Yu Watanabe
ef3c8a92b7
test-network: add tests for qdisc
2019-10-30 09:33:51 +09:00
Yu Watanabe
dcd9f07ccf
network: add tests for "networkctl reconfigure"
2019-10-24 14:23:17 +09:00
Yu Watanabe
66de86712c
test-network: add tests for "networkctl reload"
2019-10-24 14:20:48 +09:00
Zbigniew Jędrzejewski-Szmek
c8966bffdd
Merge pull request #13663 from ssahani/dhcp-send-option-data
...
network: DHCPv4 client- add support to send arbitary option and data
2019-10-16 11:31:22 +02:00
Yu Watanabe
7acb7707ff
test-network: disable IPv6AcceptRA= to speed up tests
2019-10-15 00:14:09 +09:00
Yu Watanabe
086bcf5dca
test-network: add a test case for nexthop
2019-10-14 21:55:57 +09:00
Zbigniew Jędrzejewski-Szmek
5afe558cfd
Merge pull request #12818 from yuwata/network-issue-8726
...
network: disable kernel creating prefix route when RouteTable= is set
2019-10-03 15:21:35 +02:00
Susant Sahani
98f0e10429
test-network: Drop start dnsmasq
2019-09-20 08:09:25 +00:00
Yu Watanabe
edfbf051e1
Merge pull request #13559 from ssahani/ipv6ra-route
...
network: make networkd able to advertise IPv6 routes on links
2019-09-18 00:13:08 +09:00
Susant Sahani
9633f977ea
Add test for IPv6 Route advertisement
2019-09-17 12:10:19 +02:00
Yu Watanabe
7b3770a75f
test-network: add one more test case for LinkLocalAddressing=
2019-09-17 09:45:22 +09:00
Yu Watanabe
2aa7d367ec
network: do not create default route for ipv4 link local addressing
...
When nspawn container with private network starts, networkd creates
the default route for the interface. The route may cause problem on
the host side, and it can be created with DefaultRouteOnDevice= now.
Hence, this makes networkd not create the route implicitly any more.
Closes #13418 .
2019-09-15 22:33:11 +09:00
Zbigniew Jędrzejewski-Szmek
57ad760746
network: drop all checks of ipv6_disabled sysctl
...
*We* control the sysctl setting. If the user configured IPv6, then we apply the
settings, and just make sure that at some point during the configuration the
sysctl is disabled (i.e. ipv6 enabled) if we have IPv6 configured.
Replaces #13283 .
2019-08-27 15:31:48 +02:00
Zbigniew Jędrzejewski-Szmek
4eaa2486b8
Merge pull request #13235 from yuwata/network-routing-policy-rule-family-13233
...
network: add RoutingPolicyRule.Family= setting
2019-08-19 10:08:23 +02:00
Yu Watanabe
e4783b548a
test-network: update test for PreferredLifetime=0
2019-08-19 00:06:50 +09:00
Yu Watanabe
65c24cd087
test-network: add tests for RoutingPolicyRule.Family=ipv6 and both
2019-08-16 22:02:17 +09:00
William A. Kennington III
d1bdafd214
networkd: Keep track of static neighbors
...
We need to keep track of the static neighbors that are configured on the
interface so that we can delete stale entries that were removed.
2019-08-12 20:28:19 +09:00
William A. Kennington III
0b1cd3e25a
networkd: Routes should take the gateway into account
...
Otherwise, changing the default gateway doesn't purge old gateway routes
left on the system during daemon restart. This also fixes removing other
foreign gateway routes that don't match the expected configuration.
Tested:
Changed gateway addresses prior to the patch and they lingered on
the system during each reconfiguration. Applied this patch and
reconfigured gateways and other routes multiple times and it removed
the foreign routes that had gateways that didn't match.
Signed-off-by: William A. Kennington III <william@wkennington.com>
2019-08-07 20:32:36 +09:00
Yu Watanabe
36bc2ffbc1
test-network: add tests for new entries in "networkctl status"
2019-07-30 00:02:14 +09:00
Yu Watanabe
e8489008cb
network: rename IGMPVersion= -> MulticastIGMPVersion=
2019-07-26 11:00:56 +09:00
Yu Watanabe
72e04ea31c
test-network: use [DHCPv4] and [DHCPv6] sections instead of deprecated [DHCP] section
2019-07-25 12:38:57 +09:00
Yu Watanabe
c904709288
test-network: add test for Bridge.IGMPVersion=
2019-07-25 10:05:17 +09:00
Yu Watanabe
e3cbaeab86
test-network: add tests for issue #6088
2019-07-23 22:08:58 +09:00
Yu Watanabe
dd9b10c84f
network: add fallback logic for old kernels
...
It seems that old kernels do not support prefix routes with
non-default route tables. This adds a fallback logic when adding route
fails. In that case, prefix route is created by kernel and the default
route table is used.
2019-07-22 11:36:11 +09:00
Yu Watanabe
156ddf8df7
network: disable kernel creating prefix route when RouteTable= is set
...
Closes #8726 .
2019-07-22 11:34:22 +09:00
Zbigniew Jędrzejewski-Szmek
f7e7bb6546
Merge pull request #13070 from yuwata/network-set-route-to-dhcp-dns
2019-07-19 09:35:22 +02:00
Yu Watanabe
fb2ba3305b
test-network: add test for neighbor with ipv6 lladdr
2019-07-19 07:14:58 +09:00
Yu Watanabe
195a18c17d
test-network: add tests for routes to DNS servers provided by DHCPv4
2019-07-19 01:56:14 +09:00
Yu Watanabe
693283cd58
Revert "test-network: extend sleep time"
...
This reverts commit 7d7bb5c861
.
Still the CIs are flaky and the commit just slow down them.
2019-07-17 23:13:40 +09:00
Yu Watanabe
217246a990
test-network: drop warn_about_firewalld() as it is not necessary any more
2019-07-17 06:59:12 +09:00
Yu Watanabe
2225e7fd88
test-network: stop firewalld in setUpModule()
2019-07-17 06:59:12 +09:00
Yu Watanabe
336d18f0ff
test-network: add tests for link state file vs resolvectl or timedatectl
2019-07-17 06:59:12 +09:00
Yu Watanabe
7d7bb5c861
test-network: extend sleep time
...
Even if addresses provided by DHCP is assigned, the state file may not
be written yet, or resolved may not receive the state change signal
yet, or resolved may not process the signal yet...
2019-07-17 01:01:10 +09:00
Yu Watanabe
e2aea43f31
test-network: make wait_online() check setup state
...
Previously, event if link's setup state is in failed, tests may pass,
as systemd-networkd-wait-online success if the state is in failed state.
This makes tests be checked more strictly.
2019-07-16 01:32:24 +09:00
Yu Watanabe
e0c1341df2
test-network: add tests for DHCPv4.UseDomains=
2019-07-15 00:43:15 +09:00
Yu Watanabe
6d60f9dbe6
test-network: add tests for route with type local, multicast, anycast, or broadcast
2019-07-12 09:39:43 +09:00
Yu Watanabe
5424fd9573
test-network: test more bridge properties
...
Imported from networkd-test.py
2019-07-12 09:39:43 +09:00
Yu Watanabe
6fa0524133
Merge pull request #12971 from yuwata/network-reassign-static-routes
...
network: reassign static routes and process reply address messages
2019-07-12 09:36:16 +09:00
Yu Watanabe
c1b01a62d1
test-network: add test for route reassignment
2019-07-11 22:37:58 +09:00
Yu Watanabe
74761cf37e
test-network: add testcase that Neighbor.LinkLayerAddress= is IP address
2019-07-11 22:22:29 +09:00
Yu Watanabe
d86f5c194c
test-network: use Neighbor.LinkLayerAddress= instead of deprecated Neighbor.MACAddress=
2019-07-11 22:22:29 +09:00
Lennart Poettering
66d3159739
Merge pull request #13018 from yuwata/network-tunnel-follow-up-13016
...
network: drop assertions about Tunnel.family
2019-07-11 12:10:39 +02:00
Yu Watanabe
cef94248ff
test-network: drop test_udev_driver as it is unstable
...
The test unexpectedly succeeds on KVM with sanitizer CI.
At least tentatively, let's drop the test.
2019-07-11 11:17:20 +02:00
Lennart Poettering
7e82b4059b
Merge pull request #13006 from yuwata/network-split-dhcp-12917
...
networkd: DHCPv6 - separate DHCPv6 options from DHCPv4 options
2019-07-11 10:28:03 +02:00
Yu Watanabe
42a29fcb12
test-network: add testcases Tunnel.Remote=any and Local=any
2019-07-11 15:09:50 +09:00
Yu Watanabe
e64dc40615
test-network: add test for Xfrm netdev
2019-07-11 11:51:23 +09:00
Yu Watanabe
95082dbef5
test-network: add test for AssignToLoopback= setting
2019-07-11 09:59:06 +09:00
Yu Watanabe
e2d5aab32a
test-network: add tests for UseDNS= in [DHCP] section
2019-07-10 17:44:43 +09:00
Yu Watanabe
b6d587d1d2
test-network: enable systemd-resolved.service
2019-07-10 17:40:14 +09:00
Yu Watanabe
16e233d0bb
Merge pull request #12970 from ddstreet/gh12969
...
src/network/networkd-dhcp4.c: set prefsrc for classless or static routes
2019-07-08 21:18:04 +09:00
Yu Watanabe
c38d2d4d59
test-network: add tests for DHCP.UseRoutes=no with custom route settings
...
This adds test for b5799eeb07
.
Closes #12951 .
2019-07-06 08:23:10 +09:00
Yu Watanabe
4c882c16be
test-network: add testcase for DHCP client with static address
...
Testcase for #12969 .
2019-07-06 07:39:23 +09:00
Yu Watanabe
6f94379833
test-network: add tests for BridgeVLAN
2019-07-05 16:39:39 +09:00
Yu Watanabe
aaae57139b
test-network: show debug logs of networkd
2019-07-05 02:47:42 +09:00
Yu Watanabe
e28fd95ffb
test-network: add udev related tests for networkctl
2019-07-02 09:43:21 +02:00
Yu Watanabe
6b9518a0e8
test-network: add test for Property= in [Match] section
2019-07-01 06:53:35 +09:00
Yu Watanabe
2cf6fdff19
test-network: change default sleep time of start_networkd()
2019-06-18 13:10:23 +09:00