Skip to content
GitLab
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
54486015
Commit
54486015
authored
Dec 09, 2005
by
Mike Hibler
Browse files
Purge shark code
parent
5031209b
Changes
4
Hide whitespace changes
Inline
Side-by-side
tbsetup/snmpit_cisco.pm
View file @
54486015
...
...
@@ -332,10 +332,6 @@ sub convertPortFormat($$@) {
return
@ports
;
}
# Shark hack
@ports
=
map
{
if
(
/(sh\d+)-\d(:\d)/
)
{
"
$1$2
"
}
else
{
$_
}}
@ports
;
# End shark hack
if
(
$input
==
$PORT_FORMAT_IFINDEX
)
{
if
(
$output
==
$PORT_FORMAT_MODPORT
)
{
$self
->
debug
("
Converting ifindex to modport
\n
",
2
);
...
...
@@ -1456,7 +1452,7 @@ sub setVlansOnTrunk($$$$) {
my
(
$ifIndex
)
=
$self
->
convertPortFormat
(
$PORT_FORMAT_IFINDEX
,
$port
);
#
# Get the exis
is
ting bitfield for allowed VLANs on the trunk
# Get the existing bitfield for allowed VLANs on the trunk
#
my
$bitfield
=
snmpitGetFatal
(
$self
->
{
SESS
},
["
vlanTrunkPortVlansEnabled
",
$ifIndex
]);
...
...
tbsetup/snmpit_foundry.pm
View file @
54486015
...
...
@@ -257,10 +257,6 @@ sub convertPortFormat($$@) {
return
@ports
;
}
# Shark hack
@ports
=
map
{
if
(
/(sh\d+)-\d(:\d)/
)
{
"
$1$2
"
}
else
{
$_
}}
@ports
;
# End shark hack
if
(
$input
==
$PORT_FORMAT_IFINDEX
)
{
if
(
$output
==
$PORT_FORMAT_MODPORT
)
{
$self
->
debug
("
Converting ifindex to modport
\n
",
2
);
...
...
tbsetup/snmpit_lib.pm
View file @
54486015
...
...
@@ -108,7 +108,6 @@ sub ReadTranslationTable {
$name
=
"
$_
[0]:
$_
[1]
";
if
(
$_
[
2
]
!=
1
)
{
$name
.=
$_
[
2
];
}
$mac
=
"
$_
[3]
";
if
(
$name
=~
/(sh\d+)(-\d)(:\d)?/
)
{
$name
=
"
$1$3
";
}
$Interfaces
{
$name
}
=
$mac
;
$Interfaces
{
$mac
}
=
$name
;
print
"
Interfaces:
$mac
<==>
$name
\n
"
if
$debug
>
1
;
...
...
tbsetup/snmpit_nortel.pm
View file @
54486015
...
...
@@ -315,10 +315,6 @@ sub convertPortFormat($$@) {
return
@ports
;
}
# Shark hack
@ports
=
map
{
if
(
/(sh\d+)-\d(:\d)/
)
{
"
$1$2
"
}
else
{
$_
}}
@ports
;
# End shark hack
if
(
$input
==
$PORT_FORMAT_IFINDEX
)
{
if
(
$output
==
$PORT_FORMAT_MODPORT
)
{
$self
->
debug
("
Converting ifindex to modport
\n
",
2
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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