diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2012-04-09 21:14:00 -0700 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2012-04-09 21:14:00 -0700 |
commit | d081fa7f07c6e82363c56acdafc3d527ca09c76b (patch) | |
tree | 85135b05cb3f185cbdd291c303596a71ac3bc354 | |
parent | 93a711195d4e4ac2496adce138614ba8817bd19e (diff) | |
download | vyatta-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-x | scripts/keepalived/vyatta-show-vrrp.pl | 2 |
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'; |