summaryrefslogtreecommitdiff
path: root/test/test-network/systemd-networkd-tests.py
Commit message (Collapse)AuthorAgeFilesLines
* network: Implement B.A.T.M.A.N. Advanced interface typeAnnika Wickert2021-02-251-0/+13
|
* test-network: add tests for dropping unnecessary nexthopsYu Watanabe2021-02-231-0/+28
|
* test-network: add tests for Blackhole= setting in [NextHop] sectionYu Watanabe2021-02-231-0/+23
|
* test-network: test wireguard peer in drop-in configYu Watanabe2021-02-221-14/+28
| | | | Closes #18241.
* test-network: add a test for OnLink= in [NextHop] sectionYu Watanabe2021-02-211-0/+5
|
* test-network: add tests for Broadcast= with boolean settingsYu Watanabe2021-02-201-0/+9
|
* test-network: add tests for NextHop= setting in [Route]Yu Watanabe2021-02-191-0/+12
|
* test-network: add tests for Family= in [NextHop]Yu Watanabe2021-02-171-1/+5
|
* test-network: merge test_address_static and ↵Yu Watanabe2021-02-121-33/+19
| | | | test_address_preferred_lifetime_zero_ipv6
* test-network: support protocol and linkdown flag for ff00::/8 routeYu Watanabe2021-02-091-4/+4
| | | | Fixes #18507.
* Merge pull request #18380 from yuwata/test-network-ipv6-proxy-ndpYu Watanabe2021-01-271-0/+12
|\ | | | | test-network: add tests for IPv6ProxyNDPAddress=
| * test-network: add tests for IPv6ProxyNDPAddress=Yu Watanabe2021-01-271-0/+12
| |
* | test-network: retry several times if expected LLDP info is not obtainedYu Watanabe2021-01-261-4/+10
|/ | | | | | | | 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.
* save link activation policy to state file and display in networkctlDan Streetman2021-01-211-0/+1
|
* test: add ActivationPolicy= unit testsDan Streetman2021-01-211-0/+48
|
* test-network: add tests for route advmssYu Watanabe2021-01-091-32/+33
|
* test-network: add tests for fib rules with Family=both vs networkctl reload ↵Yu Watanabe2020-12-301-12/+41
| | | | or reconfigure
* network: set FRA_PROTOCOL to RTPROT_STATIC by defaultYu Watanabe2020-12-291-1/+1
|
* test-network: add tests for [IPv6AcceptRA] PrefixDenyList= or friendsYu Watanabe2020-12-241-4/+36
|
* test-network: increase wait_online timeout to handle longer dhcpv4 transient ↵Dan Streetman2020-12-141-1/+3
| | | | | | | | | | | | | | 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.
* test-network: add tests for IPv6 routes with reject typeYu Watanabe2020-12-041-0/+60
|
* test-network: sleep 1s after reloading configsYu Watanabe2020-12-041-0/+2
| | | | | | 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.
* test-network: confirm that IPv4ll address is dropped after DHCPv4 lease is ↵Yu Watanabe2020-12-021-18/+31
| | | | acquired
* networkd: start ipv4ll when dhcp has trouble getting a leaseZbigniew Jędrzejewski-Szmek2020-11-301-3/+0
| | | | Fixes #13316.
* networkd: merge ll addressing fallback modes into normal "boolean" valuesZbigniew Jędrzejewski-Szmek2020-11-301-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 29e81083bd2fcb2dbf83f67ef358c7d25adf7e9d. There is no special "fallback" mode now, so the check doesn't make sense anymore.
* Merge pull request #17474 from yuwata/network-drop-link-deserialization-logicYu Watanabe2020-11-271-1/+0
|\ | | | | network: drop link deserialization logic
| * network: do not serialize/deserialize addressesYu Watanabe2020-10-281-1/+0
| | | | | | | | | | | | 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.
* | license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|/
* test-network: add a test case for DNSSL in RAYu Watanabe2020-10-241-0/+4
| | | | Closes #4590.
* test-network: add tests for routes managed by ManagerYu Watanabe2020-10-231-0/+60
|
* network: when Gateway=_dhcp4, set several properties based on lease if they ↵Yu Watanabe2020-10-151-1/+1
| | | | | | | | | | | | 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.
* test-network: add test for issue #17304Yu Watanabe2020-10-131-0/+16
|
* test-network: do not fail when multiple ipv6 default gateways are configuredYu Watanabe2020-10-081-7/+9
| | | | | When multiple ipv6 default gateways are set, kernel seems to merge them into a multipath route.
* test-network: add a test case for IPv4 route with IPv6 gatewayYu Watanabe2020-10-081-0/+36
|
* test-network: also remove IPv6 rulesYu Watanabe2020-10-071-0/+3
|
* test-network: add a missing netdev in the listYu Watanabe2020-10-071-0/+1
|
* test-network: add missing file in the listYu Watanabe2020-10-071-0/+1
|
* Merge pull request #17085 from ↵Zbigniew Jędrzejewski-Szmek2020-09-181-0/+5
|\ | | | | | | | | yuwata/network-configure-mdb-entries-on-bridge-master network: allow to configure mdb entries on bridge master
| * test-network: add test for bridge MDB entries on bridge masterYu Watanabe2020-09-171-0/+5
| |
* | Merge pull request #15050 from ssahani/fq-pieYu Watanabe2020-09-181-0/+26
|\ \ | | | | | | network: tc: add support for FQ-PIE packet scheduler
| * | test-network: add tests for FQ-PIEYu Watanabe2020-09-171-0/+26
| |/
* | Merge pull request #16929 from ssahani/network-bare-udpYu Watanabe2020-09-171-0/+14
|\ \ | | | | | | network: introduce Bare UDP Tunnelling
| * | test-network: add tests for BareUDP netdevYu Watanabe2020-09-171-0/+14
| |/
* | test-network: add test for Independent= for vxlanYu Watanabe2020-09-171-1/+7
|/
* test-network: add test for [BridgeMDB] sectionYu Watanabe2020-09-171-0/+13
|
* test-network: add test for ENOBUFS issue #17012Yu Watanabe2020-09-111-0/+12
| | | | | The issue seems already fixed by PR #16982 and its follow-up commit 4934ba2121d76229659939e19ab7d70a89446629.
* test-network: update tests for issue #16784Yu Watanabe2020-09-101-28/+37
|
* test-network: add test for IPv6Token=prefixstableYu Watanabe2020-09-081-18/+12
|
* test-network: stop networkd and its socketMichael Biebl2020-08-281-5/+9
| | | | | | | | With the changes from 2c0dffe82db574b6b9e850e48f444674e4e1d7ea, 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.
* test-network: add a test case for reconfiguring routing policy rulesYu Watanabe2020-08-211-0/+19
| | | | C.f. #16784.