summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-17 16:32:13 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-17 16:32:13 -0700
commit3a404a543ede63a37095ef7d7c16dd725362ac45 (patch)
tree7e6d26c69545c2d5306b8563456cfcd6fc6f3312
parentce9c3ff84c4482fbf95c001a26ee9ccdc332e027 (diff)
downloadvyatta-op-3a404a543ede63a37095ef7d7c16dd725362ac45.tar.gz
vyatta-op-3a404a543ede63a37095ef7d7c16dd725362ac45.zip
Fix script for bond with no slaves
-rwxr-xr-xscripts/vyatta-show-bonding.pl3
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 : '';
}
}