Commit 92c4dff2 authored by Leigh B Stoller's avatar 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
......@@ -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");
Supports Markdown
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