Legitimate for same MAC to be in two VLANs on same switchport
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
* Search for localenv could not find $HOME
|
||||
* Fixes to allow output of get_init_file to be used as init script
|
||||
* Legitimate for same MAC to be in two VLANs on same switchport
|
||||
|
||||
2.025001 - 2014-04-08
|
||||
|
||||
|
||||
@@ -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' } );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user