Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
06ce0872
Commit
06ce0872
authored
Aug 15, 2006
by
Robert Ricci
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some typos in Keith's code, and fix a prototype to work with
newer perl versions.
parent
f66b9dbf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
tbsetup/snmpit.in
tbsetup/snmpit.in
+1
-0
tbsetup/snmpit_cisco_stack.pm
tbsetup/snmpit_cisco_stack.pm
+1
-1
tbsetup/snmpit_lib.pm
tbsetup/snmpit_lib.pm
+3
-3
No files found.
tbsetup/snmpit.in
View file @
06ce0872
...
...
@@ -44,6 +44,7 @@ sub doRecreateVlans($);
sub
doTrunkEnable
($$@);
sub
doTrunkDisable
($$);
sub
doRestorePortStatus
($@);
sub
doSynchLeader
($);
#
# Defaults
...
...
tbsetup/snmpit_cisco_stack.pm
View file @
06ce0872
...
...
@@ -975,7 +975,7 @@ sub switchesWithPortsInVlan($$) {
my
@switches
=
();
foreach
my
$devicename
(
keys
%
{
$self
->
{
DEVICES
}})
{
my
$device
=
$self
->
{
DEVICES
}{
$devicename
};
if
(
$device
->
vlanHasPorts
(
$vlan_
m
umber
))
{
if
(
$device
->
vlanHasPorts
(
$vlan_
n
umber
))
{
push
@switches
,
$devicename
;
}
}
...
...
tbsetup/snmpit_lib.pm
View file @
06ce0872
...
...
@@ -173,9 +173,9 @@ sub getExperimentTrunks($$) {
my
(
$pid
,
$eid
)
=
@_
;
my
@ports
;
my
$query
=
"
select distinct r.node_id,v.iface from reserved as r
"
.
"
left join vinterfaces as v on v.node_id=r.node_id
"
.
"
where r.pid='
$pid
' and r.eid='
$eid
' and v.type='vlan' and
"
.
my
$query
=
"
select distinct r.node_id,v.iface from reserved as r
"
.
"
left join vinterfaces as v on v.node_id=r.node_id
"
.
"
where r.pid='
$pid
' and r.eid='
$eid
' and v.type='vlan' and
"
.
"
v.iface is not NULL
";
# $query = "select node_id , iface from trunk_test";
...
...
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