summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2012-04-09 21:14:00 -0700
committerStephen Hemminger <shemminger@vyatta.com>2012-04-09 21:14:00 -0700
commitd081fa7f07c6e82363c56acdafc3d527ca09c76b (patch)
tree85135b05cb3f185cbdd291c303596a71ac3bc354
parent93a711195d4e4ac2496adce138614ba8817bd19e (diff)
downloadvyatta-cfg-system-d081fa7f07c6e82363c56acdafc3d527ca09c76b.tar.gz
vyatta-cfg-system-d081fa7f07c6e82363c56acdafc3d527ca09c76b.zip
Replace intf->carrier() check with intf->running()
Bug 8006 The "carrier" method in Interface.pm is superseded by the more robust running() method.
-rwxr-xr-xscripts/keepalived/vyatta-show-vrrp.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/keepalived/vyatta-show-vrrp.pl b/scripts/keepalived/vyatta-show-vrrp.pl
index ecf2bf75..3eadd605 100755
--- a/scripts/keepalived/vyatta-show-vrrp.pl
+++ b/scripts/keepalived/vyatta-show-vrrp.pl
@@ -78,7 +78,7 @@ sub get_state_link {
$state = 'admin down';
}
- if ($intf->carrier() == 1) {
+ if ($intf->running() == 1) {
$link = 'up';
} else {
$link = 'down';