forked from DGNum/infrastructure
test(vault01/network): use netchecker to see connectivity looses
This commit is contained in:
parent
417c39d469
commit
9395a96337
1 changed files with 2 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue