From 9395a9633758928a821ac47b8f8e6d2910297c41 Mon Sep 17 00:00:00 2001 From: catvayor Date: Sun, 23 Feb 2025 09:48:37 +0100 Subject: [PATCH] test(vault01/network): use netchecker to see connectivity looses --- machines/nixos/vault01/networking.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/machines/nixos/vault01/networking.nix b/machines/nixos/vault01/networking.nix index de59fe1..3fb2f3f 100644 --- a/machines/nixos/vault01/networking.nix +++ b/machines/nixos/vault01/networking.nix @@ -303,10 +303,12 @@ in ]; script = '' if ping -c 1 8.8.8.8 > /dev/null || ping -c 1 1.1.1.1 > /dev/null; then + echo network is up ${lib.concatMapStringsSep "\n " ( { interfaceName, ... }: "networkctl up ${interfaceName}" ) userVlans} else + echo network is down ${lib.concatMapStringsSep "\n " ( { interfaceName, ... }: "networkctl down ${interfaceName}" ) userVlans}