Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Elijah Grubb
emulab-devel
Commits
3a2162c3
Commit
3a2162c3
authored
Oct 24, 2014
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it work again.
parent
d5c30dd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tbsetup/snmpit_test/portstats.in
tbsetup/snmpit_test/portstats.in
+3
-0
No files found.
tbsetup/snmpit_test/portstats.in
View file @
3a2162c3
...
...
@@ -316,6 +316,7 @@ elsif ($opt{p}) {
#
my
%portMap
=
mapPortsToDevices
(
@ports
);
my
%stats
=
();
my
@nports
=
();
DEVICE:
foreach
my
$name
(
keys
%portMap
)
{
my
@ports
=
@
{
$portMap
{
$name
}};
...
...
@@ -484,8 +485,10 @@ DEVICE: foreach my $name (keys %portMap) {
# Save for printing.
#
$stats
{(
Port
->
isPort
(
$port
)?
$port
->
toString
():
$port
)}
=
$result
;
push
@nports
,
$port
;
}
}
@ports
=
@nports
;
#
# Exit now if they wanted quiet operation
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment