summary refs log tree commit diff
path: root/nixos/tests/networking.nix
Commit message (Collapse)AuthorAge
* networking.greTunnels: support ip6gre*jpathy2022-03-17
|
* nixos/tests/networking: Fix link testMartin Weinelt2022-02-24
| | | | | | | | | 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.
* nixos/test/networking: test bonding netdev creationMartin Weinelt2022-02-22
| | | | | | | | | | | | | 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.
* nixos/networkd: Add routes from interfaces to [Route] section of .network fileLuflosi2022-01-20
| | | | Closes https://github.com/NixOS/nixpkgs/pull/93635.
* nixos/networking: add options for configuring a GRE tunnelMatthew Leach2021-12-07
| | | | | Add `networking.greTunnels` option that allows a GRE tunnel to be configured in NixOS.
* nixos/networking: support FOU encapsulation for sitspennae2021-10-16
|
* nixos/networking: add foo-over-udp endpoint supportpennae2021-10-16
| | | | | | 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.
* nixos/lib/qemu-flags: rename to qemu-commonrnhmjoj2021-09-18
| | | | | | 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.
* nixos/network-interfaces: Fix wlan interface macJohn Whitman2021-09-01
|
* nixos/tests/networking: Fix str literal comparisonaszlig2021-05-09
| | | | | | | | Linter error: use ==/!= to compare constant literals (str, bytes, int, float, tuple) Signed-off-by: aszlig <aszlig@nix.build>
* Merge pull request #107382 from rnhmjoj/no-udev-settleMichele Guerini Rocco2021-02-20
|\ | | | | nixos/{networkd,dhcpcd}: remove udev-settle hack
| * nixos/tests/networking: test interface renamingrnhmjoj2021-02-19
| |
* | nixos/tests/networking: fix DHCP rangeAndrey Golovizin2021-02-10
|/ | | | | | | | | | | | 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.
* nixos/tests/networking: Alleviate race in scripted testSarah Brofeldt2020-11-25
|
* nixos/tests/networking: fix macvlan testsCharlotte Van Petegem2020-07-26
| | | | The range option still needs to be defined in dhcpd4 to be able to give out static IP addresses
* nixos/tests/networking.nix: test the services.dhcpd4.machines optionBas van Dijk2020-07-20
| | | | | | | | | 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`.
* nixosTests.networking: test setting MTU and MAC AddressFlorian Klink2020-04-13
| | | | | 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.
* nixosTests.networking.virtual: fix with networkdFlorian Klink2020-04-13
| | | | | We only need to wait for network.target to get up, and the network-addresses-${interfaceName} units are scripted networking only.
* nixosTests.networking: make routing table comparison more reliableFlorian Klink2020-04-13
| | | | | | 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.
* nixos/networkd: respect systemd.network.links also with disabled ↵Florian Klink2020-03-19
| | | | | | | | | | | 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.
* Revert Merge #82310: nixos/systemd: apply .linkVladimír Čunát2020-03-13
| | | | | | | | | | | | ...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.
* nixos/networkd: respect systemd.network.links also with disabled ↵Florian Klink2020-03-11
| | | | | | | systemd-networkd This mirrors the behaviour of systemd - It's udev that parses `.link` files, not `systemd-networkd`.
* tests/networking: remove pkgs.lib usages.Félix Baylac-Jacqué2020-03-11
|
* nixos/tests/networking: use new tempAddress optionrnhmjoj2020-02-01
|
* nixosTests.networking: Port tests to pythonChristian Kampka2019-12-17
|
* nixos/tests/{ferm,networking}: fix eval with networkdLinus Heckemann2019-10-08
| | | | | | | | | | | | | | 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
* networking.useDHCP: disallow for networkdRobin Gloster2019-09-24
| | | | | This setting will be removed with the switch to systemd-networkd. The use of per interface config is encouraged instead.
* Merge staging-next into stagingFrederik Rietdijk2019-08-28
|\
| * Merge branch 'master' into flip-map-foreachDanylo Hlynskyi2019-08-05
| |\
| * | mass replace "flip map -> forEach"danbst2019-08-05
| | | | | | | | | | | | | | | | | | | | | See `forEach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /forEach /g' ```
| * | Revert "mass replace "flip map -> foreach""danbst2019-08-05
| | | | | | | | | | | | This reverts commit 3b0534310c89d04fc3a9c5714b5a4d0f9fb0efca.
| * | mass replace "flip map -> foreach"danbst2019-07-14
| | | | | | | | | | | | | | | | | | | | | See `foreach`-introduction commit. ``` rg 'flip map ' --files-with-matches | xargs sed -i 's/flip map /foreach /g' ```
* | | treewide: remove redundant quotesvolth2019-08-26
| |/ |/|
* | nixos/network-interfaces: make `preferTempAddr=false` work againrnhmjoj2019-07-09
|/
* treewide: remove wkennington as maintainerJörg Thalheim2019-01-26
| | | | | | 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.
* nixos/tests/networking: Fix syntax erroraszlig2018-11-12
| | | | | | | Introduced by 6c68fbd4e1f8beac39cb1f499ff90c78256262d6. Signed-off-by: aszlig <aszlig@nix.build> Cc: @Ekleog
* tests: refactor to carry the package set as an argumentLéo Gaspard2018-11-11
| | | | | This way, the package set will be possible to pass without re-importing all the time
* tests/docs: remove remnants of old allowPing default (#49198)Robin Gloster2018-10-30
| | | | | 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.
* nixos/tests/networking.virtual: prevent non-deterministic failure (#46949)xeji2018-09-20
| | | | The test failed non-deterministically on Hydra because interfaces sometimes weren't yet fully cleaned up when the result was checked.
* nixos/tests/networking.*.macvlan: disable reverse path checkUli Baum2018-09-02
| | | | | | | | 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
* nixos/tests/networking: fix "virtual" testsUli Baum2018-08-26
| | | | | | | `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
* nixos/tests/networking: fix routes testsUli Baum2018-08-26
| | | | | The output format of `ip route` changed, it now explicitly shows "proto static" for static routes.
* [bot] nixos/*: remove unused arguments in lambdasvolth2018-07-20
|
* Merge pull request #27688 from rnhmjoj/routesMichael Raskin2018-02-19
|\ | | | | nixos/networking-interfaces: make static routes configurable
| * nixos/tests: rename IP addresses/routes optionsrnhmjoj2018-02-17
| |
| * nixos/networking-interfaces: rename IP addresses/routes optionsrnhmjoj2018-02-17
| |
| * nixos/tests: add test for static routesrnhmjoj2018-02-17
| |
* | nixos/tests: fix random failures of privacy testrnhmjoj2018-02-17
|/
* nixos/tests: add test for temporary IPv6 addressesrnhmjoj2018-02-01
|
* nixos/tests: add test for virtual interfacesrnhmjoj2018-01-31
|