Commit d2ce75ac authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Kill some obsolete code.

parent 846a98d6
...@@ -577,15 +577,6 @@ sub AddInterface($$$$;$$) ...@@ -577,15 +577,6 @@ sub AddInterface($$$$;$$)
$interface->Destroy(); $interface->Destroy();
return undef; return undef;
} }
if ($self->type() eq "vlan" && !$initialize) {
my $nodeiface = $node->node_id() . ":" . $iface;
my $vlanid = $self->lanid();
DBQueryWarn("update vlans set ".
" members=CONCAT_WS(' ', members, '$nodeiface') ".
"where id='$vlanid'");
}
return $interface; return $interface;
} }
...@@ -619,15 +610,6 @@ sub AddMember($$;$) ...@@ -619,15 +610,6 @@ sub AddMember($$;$)
$member->Destroy(); $member->Destroy();
return undef; return undef;
} }
# Keep vlans table in sync.
if ($self->type() eq "vlan" && !$initialize) {
my $member = $node->node_id() . ":" . $iface;
my $vlanid = $self->lanid();
DBQueryWarn("update vlans set ".
" members=CONCAT_WS(' ', members, '$member') ".
"where id='$vlanid'");
}
return $member; return $member;
} }
......
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