Legitimate for same MAC to be in two VLANs on same switchport

This commit is contained in:
Oliver Gorwits
2014-04-19 21:41:43 +01:00
parent 30bc957edf
commit 3edef4719d
2 changed files with 2 additions and 2 deletions

View File

@@ -151,14 +151,13 @@ sub store_node {
schema('netdisco')->txn_do(sub {
my $nodes = schema('netdisco')->resultset('Node');
# TODO: probably needs changing if we're to support VTP domains
my $old = $nodes->search(
{ mac => $mac,
vlan => $vlan,
-bool => 'active',
-not => {
switch => $ip,
port => $port,
vlan => $vlan,
},
})->update( { active => \'false' } );