From d7381816f76ffa968ca33e0c107b905b77138b65 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 27 Jun 2022 03:01:47 +0200 Subject: [PATCH] pkgs/switches/junos: fix access bonds --- nix/pkgs/switches/junos.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/pkgs/switches/junos.nix b/nix/pkgs/switches/junos.nix index 596aa19..32dfd2c 100644 --- a/nix/pkgs/switches/junos.nix +++ b/nix/pkgs/switches/junos.nix @@ -70,7 +70,7 @@ let let linkConfig = hostConfig.links.${name}; group = toString linkConfig.group; - isBond = linkConfig.trunk && + isBond = linkConfig.group != null && builtins.length linkConfig.ports > 1; nets = map (net: if net == "mgmt"