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
7ae96dc5
Commit
7ae96dc5
authored
Dec 09, 2005
by
Mike Hibler
Browse files
Make a couple of error messages more informational
parent
ffc7b634
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/snmpit_cisco_stack.pm
View file @
7ae96dc5
...
...
@@ -556,7 +556,7 @@ sub removeVlan($@) {
# Prevent the VLAN from being sent across trunks.
#
if
(
!
$self
->
setVlanOnTrunks
(
$vlan_number
,
0
))
{
warn
"
ERROR: Unable to
set up VLANs on
trunks!
\n
";
warn
"
ERROR: Unable to
remove VLAN
$vlan_number
from
trunks!
\n
";
#
# We can keep going, 'cause we can still remove the VLAN
#
...
...
@@ -861,12 +861,13 @@ sub setVlanOnTrunks($$$;@) {
my
$trunkIndex
=
$self
->
{
DEVICES
}{
$src
}
->
getChannelIfIndex
(
@
{
$trunks
{
$src
}{
$dst
}
});
if
(
!
defined
(
$trunkIndex
))
{
warn
"
ERROR - unable to find channel information for
$src
\n
";
warn
"
ERROR - unable to find channel information on
$src
"
.
"
for
$src
-
$dst
EtherChannel
\n
";
$errors
+=
1
;
}
else
{
if
(
!
$self
->
{
DEVICES
}{
$src
}
->
setVlansOnTrunk
(
$trunkIndex
,
$value
,
$vlan_number
))
{
warn
"
ERROR - unable to set trunk on swich
$src
\n
";
warn
"
ERROR - unable to set trunk on swi
t
ch
$src
\n
";
$errors
+=
1
;
}
}
...
...
@@ -881,12 +882,13 @@ sub setVlanOnTrunks($$$;@) {
my
$trunkIndex
=
$self
->
{
DEVICES
}{
$dst
}
->
getChannelIfIndex
(
@
{
$trunks
{
$dst
}{
$src
}
});
if
(
!
defined
(
$trunkIndex
))
{
warn
"
ERROR - unable to find channel information for
$dst
\n
";
warn
"
ERROR - unable to find channel information on
$dst
"
.
"
for
$src
-
$dst
EtherChannel
\n
";
$errors
+=
1
;
}
else
{
if
(
!
$self
->
{
DEVICES
}{
$dst
}
->
setVlansOnTrunk
(
$trunkIndex
,
$value
,
$vlan_number
))
{
warn
"
ERROR - unable to set trunk on swich
$dst
\n
";
warn
"
ERROR - unable to set trunk on swi
t
ch
$dst
\n
";
$errors
+=
1
;
}
}
...
...
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