diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-07-01 19:33:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-01 19:33:00 +0300 |
commit | 3d6e10019b4c9cd619f1f4dd444476b979eb9bad (patch) | |
tree | 7dba0f128bef7f7c47280125c386186972fceaaf | |
parent | ab27f3f73ad5c728fd5514d34636ab2c8f7abe88 (diff) | |
parent | 1fbcd549ffa2df74f7d75ef4d911ca3eb2e8f2e8 (diff) | |
download | vyos-1x-3d6e10019b4c9cd619f1f4dd444476b979eb9bad.tar.gz vyos-1x-3d6e10019b4c9cd619f1f4dd444476b979eb9bad.zip |
Merge pull request #1384 from vyos/revert-1326-T4429
Revert "op-mode: T4429: Ability to detect external IP address"
-rw-r--r-- | op-mode-definitions/show-ip.xml.in | 6 | ||||
-rwxr-xr-x | src/op_mode/show_ip_external.sh | 19 |
2 files changed, 0 insertions, 25 deletions
diff --git a/op-mode-definitions/show-ip.xml.in b/op-mode-definitions/show-ip.xml.in index d21c38ccc..d342ac192 100644 --- a/op-mode-definitions/show-ip.xml.in +++ b/op-mode-definitions/show-ip.xml.in @@ -7,12 +7,6 @@ <help>Show IPv4 networking information</help> </properties> <children> - <node name="external"> - <properties> - <help>Show IPv4 external address</help> - </properties> - <command>${vyos_op_scripts_dir}/show_ip_external.sh</command> - </node> <node name="neighbors"> <properties> <help>Show IPv4 neighbor (ARP) table</help> diff --git a/src/op_mode/show_ip_external.sh b/src/op_mode/show_ip_external.sh deleted file mode 100755 index 275d05278..000000000 --- a/src/op_mode/show_ip_external.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env bash - -# Detect an external IP address -# Use random services for checking - - -array=( - ipinfo.io/ip - ifconfig.me - ipecho.net/plain - icanhazip.com - v4.ident.me - checkip.amazonaws.com -) - -size=${#array[@]} -index=$(($RANDOM % $size)) - -curl --silent ${array[$index]} | tr -d "[:space:]" && echo |