#897 port free should only apply to physical interfaces
This commit is contained in:
@@ -670,7 +670,10 @@ sub with_port_count {
|
||||
->search(
|
||||
{
|
||||
'dp.ip' => { -ident => 'me.ip' },
|
||||
'dp.type' => { '!=' => 'propVirtual' },
|
||||
'dp.type' => [ '-or' =>
|
||||
{ '=' => undef },
|
||||
{ '!~*' => '^(53|ieee8023adLag|propVirtual|l2vlan|l3ipvlan|135|136|137)$' },
|
||||
],
|
||||
},
|
||||
{ alias => 'dp' }
|
||||
)->count_rs->as_query,
|
||||
|
||||
Reference in New Issue
Block a user