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
92c4dff2
Commit
92c4dff2
authored
Feb 23, 2011
by
Leigh B Stoller
Browse files
Minor fix to delete vlan that looks at the vlan_id to see if its a
lanid or a vname.
parent
1d51a59e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/snmpit.in
View file @
92c4dff2
...
...
@@ -2514,7 +2514,13 @@ sub doDeleteVlan($@) {
#
if
(
defined
(
$experiment
))
{
foreach
my
$vlan_name
(
@vlan_names
)
{
my
$vlan
=
VLan
->
Lookup
(
$vlan_name
);
my
$vlan
;
if
(
$vlan_name
=~
/^\d*$/
)
{
$vlan
=
VLan
->
Lookup
(
$vlan_name
);
}
else
{
$vlan
=
VLan
->
Lookup
(
$experiment
,
$vlan_name
);
}
if
(
defined
(
$vlan
)
&&
!
$experiment
->
SameExperiment
(
$vlan
->
GetExperiment
()))
{
die
("
$vlan
is not in the correct experiment
\n
");
...
...
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