mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 22:43:01 +00:00
nixosTests.frr: fix warning, use nodes.router instead of nodes.router.config
This commit is contained in:
parent
f93219dfa0
commit
1cc81439e7
@ -9,8 +9,7 @@ import ./make-test-python.nix (
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
|
||||
ifAddr =
|
||||
node: iface: (pkgs.lib.head node.config.networking.interfaces.${iface}.ipv4.addresses).address;
|
||||
ifAddr = node: iface: (pkgs.lib.head node.networking.interfaces.${iface}.ipv4.addresses).address;
|
||||
|
||||
ospfConf1 = ''
|
||||
router ospf
|
||||
@ -106,7 +105,7 @@ import ./make-test-python.nix (
|
||||
for gw in client, router1, router2, server:
|
||||
gw.wait_for_unit("frr")
|
||||
|
||||
router1.succeed("${nodes.router1.config.system.build.toplevel}/specialisation/ospf/bin/switch-to-configuration test >&2")
|
||||
router1.succeed("${nodes.router1.system.build.toplevel}/specialisation/ospf/bin/switch-to-configuration test >&2")
|
||||
|
||||
with subtest("Wait for OSPF to form adjacencies"):
|
||||
for gw in router1, router2:
|
||||
|
Loading…
Reference in New Issue
Block a user