Commit 09cf5509 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add stringify so I can print stacks into print statments.

parent 567127cf
......@@ -18,6 +18,7 @@ use snmpit_lib;
use libdb;
use libtestbed;
use overload ('""' => 'Stringify');
our %devices;
our $parallelized = 1;
......@@ -152,6 +153,18 @@ sub new($$$@) {
return $self;
}
#
# Stringify for output.
#
sub Stringify($)
{
my ($self) = @_;
my $stack_id = $self->{STACKID};
return "[Stack ${stack_id}]";
}
#
# List all VLANs on all switches in the stack
#
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment