Skip to content

Commit 1cc8143

Browse files
committed
nixosTests.frr: fix warning, use nodes.router instead of nodes.router.config
1 parent f93219d commit 1cc8143

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

nixos/tests/frr.nix

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ import ./make-test-python.nix (
99
{ pkgs, ... }:
1010
let
1111

12-
ifAddr =
13-
node: iface: (pkgs.lib.head node.config.networking.interfaces.${iface}.ipv4.addresses).address;
12+
ifAddr = node: iface: (pkgs.lib.head node.networking.interfaces.${iface}.ipv4.addresses).address;
1413

1514
ospfConf1 = ''
1615
router ospf
@@ -106,7 +105,7 @@ import ./make-test-python.nix (
106105
for gw in client, router1, router2, server:
107106
gw.wait_for_unit("frr")
108107
109-
router1.succeed("${nodes.router1.config.system.build.toplevel}/specialisation/ospf/bin/switch-to-configuration test >&2")
108+
router1.succeed("${nodes.router1.system.build.toplevel}/specialisation/ospf/bin/switch-to-configuration test >&2")
110109
111110
with subtest("Wait for OSPF to form adjacencies"):
112111
for gw in router1, router2:

0 commit comments

Comments
 (0)