Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
c5e63a7e
Commit
c5e63a7e
authored
Nov 09, 2000
by
Mac Newbold
Browse files
Fixed problem of cisco2 interfaces overwriting cisco ones
parent
717fb34b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/snmpit
View file @
c5e63a7e
...
...
@@ -743,7 +743,7 @@ sub mac2ifIndex {
"
w.node_id2,w.card2,w.port2 from interfaces as i
"
.
"
left join wires as w on w.node_id1 like concat(left(i.node_id,6),'%')
"
.
"
and (i.card=w.card1 or i.node_id like 'tbsh%') and i.port=w.port1
"
.
"
where
$cond
";
"
and node_id2='cisco'
where
$cond
";
print
"
Using query:
$cmd
\n
"
if
$debug
;
my
%Mod_Port
=
();
$sth
=
$dbh
->
query
(
$cmd
);
...
...
@@ -1048,7 +1048,7 @@ sub ReadTranslationTable {
#print "Got $mac <==> $name\n" if $debug;
}
$sth
=
$dbh
->
query
("
select node_id1,card1,port1,node_id2,card2,port2
"
.
"
from wires;
");
"
from wires
where node_id2='cisco'
;
");
while
(
@
_
=
$sth
->
fetchrow_array
())
{
$name
=
"
$_
[0]:
$_
[1]
";
if
(
$_
[
3
]
=~
/Alpha/i
)
{
$_
[
3
]
=
"
155.99.214.170
";
}
...
...
Write
Preview
Supports
Markdown
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