From be2d39741a25b6eda4b203a30b0fef170eb9d681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Sch=C3=B6chlin?= Date: Fri, 13 Sep 2024 16:48:18 +0200 Subject: [PATCH] add a comment why 28 bytes a substracted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc Schöchlin --- .../files/scripts/scs_check_network_connectivity.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/environments/custom/roles/scs-landscape-nodes/files/scripts/scs_check_network_connectivity.sh b/environments/custom/roles/scs-landscape-nodes/files/scripts/scs_check_network_connectivity.sh index 0bacd982..cc95110a 100755 --- a/environments/custom/roles/scs-landscape-nodes/files/scripts/scs_check_network_connectivity.sh +++ b/environments/custom/roles/scs-landscape-nodes/files/scripts/scs_check_network_connectivity.sh @@ -12,6 +12,7 @@ done < <(sudo vtysh -c "show ip bgp summary"|awk '/^enp/{if ($10 !~/[0-9][0-9]*/ while read node do + # MTU 9100 - (8 bytes for ICMP headers and 20 bytes for Ethernet header) ping -M do -c ${1:-2} -s $((9100 - 28)) $node if [ "$?" != "0" ];then failed="PING:$node $failed"