| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
|
|
| |
The test was looking at the wrong interface and relying on silly
behaviour by the dummy driver, which autocreated a `dummy0` interface on
modprobe.
Fix this by making it look at the actual `foo` interface that the test
creates.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Previously the bonding driver would create an initial `bond0` interface
when it was loaded. If the network management integration used that
interface and did not recreate it, it was stuck to the default
`balance-rr` mode.
Deploying systemds modprobe.d configuration sets `max_bonds=0`, so we
don't run into that issue anymore.
Hence we now make sure that we can indeed create `bond0` with `802.3ad`
(LACP), which is a non default mode.
|
|
|
|
| |
Closes https://github.com/NixOS/nixpkgs/pull/93635.
|
|
|
|
|
| |
Add `networking.greTunnels` option that allows a GRE tunnel to be
configured in NixOS.
|
| |
|
|
|
|
|
|
| |
allows configuration of foo-over-udp decapsulation endpoints. sadly networkd
seems to lack the features necessary to support local and peer address
configuration, so those are only supported when using scripted configuration.
|
|
|
|
|
|
| |
The current name is misleading: it doesn't contain cli arguments,
but several constants and utility functions related to qemu.
This commit also removes the use of `with import ...` for clarity.
|
| |
|
|
|
|
|
|
|
|
| |
Linter error:
use ==/!= to compare constant literals (str, bytes, int, float, tuple)
Signed-off-by: aszlig <aszlig@nix.build>
|
|\
| |
| | |
nixos/{networkd,dhcpcd}: remove udev-settle hack
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
|
| |
Exclude static 192.168.*.2 addresses from the dynamic address range to
prevent different interfaces from getting the same address.
Seems like configuring a fixed IPv4 address does not automatically
exclude it from the dynamic address range.
Should fix occasional failures of
nixos.tests.networking.scripted.macvlan and possibly other networking
tests relying on DHCP.
|
| |
|
|
|
|
| |
The range option still needs to be defined in dhcpd4 to be able to give out static IP addresses
|
|
|
|
|
|
|
|
|
| |
This modifies the `router` to not give out a range of IP addresses but
only give out a fixed address based on the MAC address using the
`services.dhcpd4.machines` option.
To get access to the MAC address the `qemuNicMac` function is defined
and exported from `qemu-flags.nix`.
|
|
|
|
|
| |
Both the scripted and networkd backend now support setting MTU and MAC
Address, so do this in a test to ensure it doesn't break.
|
|
|
|
|
| |
We only need to wait for network.target to get up, and the
network-addresses-${interfaceName} units are scripted networking only.
|
|
|
|
|
|
| |
This was whitespace-sensitive, kept fighting with my editor and broke
the tests easily. To fix this, let python convert the output to
individual lines, and strip whitespace from them before comparing.
|
|
|
|
|
|
|
|
|
|
|
| |
systemd-networkd
This mirrors the behaviour of systemd - It's udev that parses `.link`
files, not `systemd-networkd`.
This was originally applied in 36ef112a477034fc6d1d9170bf1bcda0140a8d1d,
but was reverted due to 1115959a8d4d73ad73341563dc8bbf52230a281e causing
evaluation errors on hydra.
|
|
|
|
|
|
|
|
|
|
|
|
| |
...even when networkd is disabled
This reverts commit ce78f3ac701017008aa7f1db387b871b7ae65e01, reversing
changes made to dc34da0755b3c36469965659c0ee4a1337e81c05.
I'm sorry; Hydra has been unable to evaluate, always returning
> error: unexpected EOF reading a line
and I've been unable to reproduce the problem locally. Bisecting
pointed to this merge, but I still can't see what exactly was wrong.
|
|
|
|
|
|
|
| |
systemd-networkd
This mirrors the behaviour of systemd - It's udev that parses `.link`
files, not `systemd-networkd`.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The networking.virtual test does not work with networkd yet, for
multiple reasons:
- network-online.target is not reached, because tun0 and tap0 are
considered as required for online but _not_ brought up or assigned
the configured addresses
- the commands later in the test rely on some units from the scripted
network setup
cc @fpletz networkd exper
cc @globin we looked at this together
|
|
|
|
|
| |
This setting will be removed with the switch to systemd-networkd. The
use of per interface config is encouraged instead.
|
|\ |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
See `forEach`-introduction commit.
```
rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /forEach /g'
```
|
| | |
| | |
| | |
| | | |
This reverts commit 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
See `foreach`-introduction commit.
```
rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /foreach /g'
```
|
| |/
|/| |
|
|/ |
|
|
|
|
|
|
| |
He prefers to contribute to his own nixpkgs fork triton.
Since he is still marked as maintainer in many packages
this leaves the wrong impression he still maintains those.
|
|
|
|
|
|
|
| |
Introduced by 6c68fbd4e1f8beac39cb1f499ff90c78256262d6.
Signed-off-by: aszlig <aszlig@nix.build>
Cc: @Ekleog
|
|
|
|
|
| |
This way, the package set will be possible to pass without re-importing
all the time
|
|
|
|
|
| |
This has been defaulting to true since 16.03, we don't need this code
anymore, also the note in the documentation has been obsolete for quite
a while.
|
|
|
|
| |
The test failed non-deterministically on Hydra because interfaces
sometimes weren't yet fully cleaned up when the result was checked.
|
|
|
|
|
|
|
|
| |
Generated reverse path filtering rules for the macvlan interface
seem to be incorrect, causing the test to fail - sometimes or always,
depending on the dhcpcd version used.
- Disable reverse path checking temporarily to avoid blocking the channel
- Print more diagnostic information for debugging
|
|
|
|
|
|
|
| |
`ip route` now displays extended tun attributes, so the expected
output of this test changed.
Upstream change: https://git.kernel.org/pub/scm/network/iproute2/iproute2.git/commit/?id=118eda77d6602616bc523a17ee45171e879d1818
|
|
|
|
|
| |
The output format of `ip route` changed, it now explicitly
shows "proto static" for static routes.
|
| |
|
|\
| |
| | |
nixos/networking-interfaces: make static routes configurable
|
| | |
|
| | |
|
| | |
|
|/ |
|
| |
|
| |
|