Commit f168c189 authored by Weibin Sun's avatar Weibin Sun
Browse files

move the isSwitchPort test to snmpit_lib

parent cda4601e
......@@ -1709,12 +1709,6 @@ sub CreateOneVlan($$@)
#
if (!$NOSTACKMIB) {
foreach my $port (@ports) {
#
# Switch ports are evil and we don't touch them.
#
if (isSwitchPort($port)) {
next;
}
my ($speed,$duplex) = getInterfaceSettings($port);
#
# If either is not set, we do nothing. We could make
......
......@@ -726,6 +726,13 @@ sub getInterfaceSettings ($) {
my ($interface) = @_;
#
# Switch ports are evil and we don't touch them.
#
if (isSwitchPort($interface)) {
return ();
}
$interface =~ /^(.+):(\d+)$/;
my ($node, $port) = ($1, $2);
if ((!defined $node) || (!defined $port)) {
......
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