mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
Remove Distributed Port Groups uplinks from network detection Remove networks without any host asociated.
This commit is contained in:
1 parent
f12bf9001f
commit
147b4fd237
1 file changed
+7
@@ -373,6 +373,13 @@ class DatacenterFolder
|
||||
|
||||
next if exist
|
||||
|
||||
# Exclude networks without hosts
|
||||
next if r.obj['host'].empty?
|
||||
# Exclude uplinks
|
||||
unless r.obj['tag'].empty?
|
||||
next if r.obj['tag'][0][:key] == 'SYSTEM/DVS.UPLINKPG'
|
||||
end
|
||||
|
||||
networks[r.obj._ref] = r.to_hash if r.obj.is_a?(RbVmomi::VIM::DistributedVirtualPortgroup) || r.obj.is_a?(RbVmomi::VIM::Network) || r.obj.is_a?(RbVmomi::VIM::OpaqueNetwork)
|
||||
|
||||
if r.obj.is_a?(RbVmomi::VIM::DistributedVirtualPortgroup)
|
||||
|
||||
Reference in new issue
Block a user