summaryrefslogtreecommitdiff
path: root/scripts/vyatta-show-interfaces.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/vyatta-show-interfaces.pl')
-rwxr-xr-xscripts/vyatta-show-interfaces.pl6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/vyatta-show-interfaces.pl b/scripts/vyatta-show-interfaces.pl
index f999c3c..0cfb720 100755
--- a/scripts/vyatta-show-interfaces.pl
+++ b/scripts/vyatta-show-interfaces.pl
@@ -250,7 +250,7 @@ sub conv_descriptions {
my @descriptions;
my $line = '';
foreach my $elem (split(' ', $description)){
- if ((length($line) + length($elem)) >= 29){
+ if ((length($line) + length($elem)) >= 24){
push(@descriptions, $line);
$line = "$elem ";
} else {
@@ -263,8 +263,8 @@ sub conv_descriptions {
sub run_show_intf_brief {
my @intfs = @_;
- my $format = "%-12s %-33s %-4s %s\n";
- my $format2 = "%-12s %s\n";
+ my $format = "%-16s %-33s %-4s %s\n";
+ my $format2 = "%-16s %s\n";
print "Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down\n";
printf($format, "Interface","IP Address","S/L","Description");
printf($format, "---------","----------","---","-----------");