From 00950b2a56361cb71fb4bf3070667ae4bd593e5b Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Wed, 26 Mar 2008 20:28:54 +0000 Subject: Fix Bug 2871 Internal errors reported with traceroute - used the host command to check if the host exists, if yes only then traceroute to it --- debian/control | 1 + templates/traceroute/node.tag/node.def | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/control b/debian/control index 1d00eea..8912e58 100644 --- a/debian/control +++ b/debian/control @@ -9,6 +9,7 @@ Package: vyatta-op Architecture: all Depends: sed (>= 4.1.5), ethtool, + traceroute, ntpdate, procps (>= 1:3.2.7-3), pciutils, diff --git a/templates/traceroute/node.tag/node.def b/templates/traceroute/node.tag/node.def index 87d9c32..f183741 100644 --- a/templates/traceroute/node.tag/node.def +++ b/templates/traceroute/node.tag/node.def @@ -5,4 +5,9 @@ allowed: vyatta-allowed-hosts -run: /usr/sbin/traceroute $2 +run: if /usr/bin/host $2 &>/dev/null + then + /usr/bin/traceroute $2 + else + echo Cannot identify $2 + fi -- cgit v1.2.3