| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
For issue #31950.
|
|
|
|
|
|
|
| |
Add a test for the new bridge netlink attributes IFLA_BR_FDB_N_LEARNED and
IFLA_BR_FDB_MAX_LEARNED.
Signed-off-by: Gregor Herburger <gregor.herburger@ew.tq-group.com>
|
|
|
|
|
|
| |
dhcpd is not available on CentOS Stream 10
See https://github.com/systemd/systemd/issues/33717
|
| |
|
|
|
|
| |
The current latest release is v2.19, hence the test is typically skipped now.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hopefully fixes the following failure:
```
======================================================================
FAIL: test_ipv6_token_prefixstable (__main__.NetworkdRATests.test_ipv6_token_prefixstable)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/systemd/tests/testdata/test-network/systemd-networkd-tests.py", line 5705, in test_ipv6_token_prefixstable
self.assertNotIn('2002:da8:1:0:b47e:7975:fc7a:7d6e/64', output) # the 1st prefixstable
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: '2002:da8:1:0:b47e:7975:fc7a:7d6e/64' unexpectedly found in
'19: veth99@veth-peer: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000\n
inet6 2002:da8:1:0:b47e:7975:fc7a:7d6e/64 scope global tentative dynamic mngtmpaddr noprefixroute \n
valid_lft 2100sec preferred_lft 1000sec\n
inet6 2002:da8:1:0:da5d:e50a:43fd:5d0f/64 scope global dynamic mngtmpaddr noprefixroute \n
valid_lft 2100sec preferred_lft 1000sec\n
inet6 fe80::1034:56ff:fe78:9abc/64 scope link proto kernel_ll \n
valid_lft forever preferred_lft forever'
----------------------------------------------------------------------
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously, we did not set lifetime for redirect route, and redirect
routes were removed only when received a RA from the target address.
Thus, routes that redirect on-link addresses were never removed.
RFCs mention nothing about the lifetime of redirection. But the previous
implementation does not pass the IPv6 Core Conformance Tests.
This makes
- remember all received RAs and manage them by the sender address
(previously, remembered only one with the highest preference),
- then use the router lifetime as one for redirect route,
- remove redirect route also when the router corresponds to the sender
address is dropped (previously, considered only target address).
Note, even if we recieve a new RA, we do not update existing redirect
routes. The lifetime of the redirect route is updated only when a new
Redirect message is received.
Closes #32527.
|
| |
|
|
|
|
|
| |
Then, we can easily find relevant journal entry on failure.
This is especially useful when the test is running with --no-journal.
|
| |
|
| |
|
|
|
|
|
|
| |
Fixes a bug introduced by 7ef26afca555a5e167ebc59514490906a46db2cb.
Fixes #33098.
|
|
|
|
| |
Let's not fail if directories already exist in cp_r().
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
PID1 may invoke a helper process, e.g. sd-close, during the test.
So, processes other than networkd and PID1 may be shown.
```
testtap99: tap pi multi_queue vnet_hdr persist filter
Attached to processes:systemd-network(2852)(sd-close)(2863)systemd(1)
```
Closes #33055.
|
|
|
|
|
|
|
|
|
| |
Due to the bug in kernel 6.9 caused by
https://github.com/torvalds/linux/commit/8debcf5832c3e8a6baaea27c75ad8a6ba5077beb,
the net_id udev builtin does not work for netdevsim interface.
So, eni99np1 cannot be used with kernel 6.9 anymore.
Workaround for #32910.
|
| |
|
|
|
|
|
|
| |
Previously, one of the test route has the same address in destination
and gateway. Even it is a test case, that's super spurious. Let's use a
different address.
|
| |
|
|
|
|
|
|
| |
Also,
- drop unused fail_assert arguments,
- use wait_links() and check_networkd_log() in wait_activated().
|
|
|
|
| |
This also improves performance of test_delete_links().
|
|
|
|
|
|
|
| |
This adds checks for the kernel bug caused by
https://github.com/torvalds/linux/commit/3ddc2231c8108302a8229d3c5849ee792a63230d,
it will be fixed by
https://patchwork.kernel.org/project/netdevbpf/patch/20240510072932.2678952-1-edumazet@google.com/
|
|
|
|
|
| |
This should be useful when the test run as a service, e.g.
running on a mkosi image.
|
|
|
|
| |
Also this makes several checks more strict.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Some DHCP client log messages report "DHCP4" or "DHCP6" instead of
"DHCPv4" or "DHCPv6" as used within the rest of the codebase. Typos
fixed.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Follow-up for fb573007430ab0dbe45517b58837d2fa5cfa1a48.
|
|\
| |
| | |
network/tc: fix stack overflow
|
| | |
|
|\ \
| |/
|/| |
network: add mechanism to configure default UseDomains= setting
|
| |
| |
| |
| | |
page and add test
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The sender must be the first-hop router of the destination. Previously,
we only accepted Redirect messages whose sender is the current default
router with the highest priority.
See RFC 4861 section 8.1 for more details.
Fixes #31981.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Setting MTU announced in RA message to routes is problematic, as the
value may be larger than the device MTU (IFLA_MTU), and in such case the
route cannot be used.
These two properties are now set per-interface, and gracefully handled
such invalid cases. Hence not necessary to set them to each route.
Follow-up for #32195.
|
|\ \
| | |
| | | |
network: several cleanups for IPv6 MTU
|
| |/ |
|
|/
|
|
| |
For issue #31605.
|
|
|
|
| |
handling
|
|
|
|
| |
Closes #28421.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Addresses https://github.com/systemd/systemd/pull/30021#issuecomment-1971090682.
|
|
|
|
|
| |
This also renames several variables, and replace RuntimeError with
assert.
|