diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-09-17 16:32:13 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-09-17 16:32:13 -0700 |
commit | 3a404a543ede63a37095ef7d7c16dd725362ac45 (patch) | |
tree | 7e6d26c69545c2d5306b8563456cfcd6fc6f3312 | |
parent | ce9c3ff84c4482fbf95c001a26ee9ccdc332e027 (diff) | |
download | vyatta-op-3a404a543ede63a37095ef7d7c16dd725362ac45.tar.gz vyatta-op-3a404a543ede63a37095ef7d7c16dd725362ac45.zip |
Fix script for bond with no slaves
-rwxr-xr-x | scripts/vyatta-show-bonding.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/vyatta-show-bonding.pl b/scripts/vyatta-show-bonding.pl index 68e65e2..c3f5b01 100755 --- a/scripts/vyatta-show-bonding.pl +++ b/scripts/vyatta-show-bonding.pl @@ -76,7 +76,8 @@ sub show_brief { $mode =~ s/ [0-9]+$//; my ( $state, $link ) = get_state_link($intf); my $slaves = get_sysfs_value( $intf, "bonding/slaves" ); - printf $format, $intf, $mode, $state, $link, $slaves; + printf $format, $intf, $mode, $state, $link, + $slaves ? $slaves : ''; } } |