This commit is contained in:
2026-04-21 23:34:56 +03:00
parent 1cf7e9c967
commit 76793279c1

View File

@@ -79,7 +79,7 @@
{{ pathprefix }}
DIGITS="{{ dev2_lldp_digits }}";
cat /var/run/lldp_server.json 2>/dev/null \
| grep -E "${DIGITS}\"" -A 10 \
| grep -Ei "ikeja${DIGITS}\"" -A 10 \
| grep address \
| grep -vE 'subtype|ipv6' \
| awk -F'"' '{ print $4 }' \
@@ -93,7 +93,7 @@
{{ pathprefix }}
DIGITS="{{ dev2_lldp_digits }}";
cat /var/run/lldp_server.json 2>/dev/null \
| grep -E "${DIGITS}\"" -A 15 \
| grep -Ei "ikeja${DIGITS}\"" -A 15 \
| grep 'address_ipv6' \
| awk -F'"' '{ print $4 }' \
| head -n1