From d081fa7f07c6e82363c56acdafc3d527ca09c76b Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 9 Apr 2012 21:14:00 -0700 Subject: Replace intf->carrier() check with intf->running() Bug 8006 The "carrier" method in Interface.pm is superseded by the more robust running() method. --- scripts/keepalived/vyatta-show-vrrp.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- cgit v1.2.3