From 4a565f17557a10e09b3434abb129f4ff4f6937ef Mon Sep 17 00:00:00 2001 From: Boris Odnopozov Date: Tue, 17 Sep 2019 23:33:41 +0300 Subject: [PATCH] Add distributed_virtual_lans to persister This is required for https://github.com/ManageIQ/manageiq-providers-ovirt/pull/401 required for: https://bugzilla.redhat.com/show_bug.cgi?id=1576509 --- .../providers/inventory/persister/builder/infra_manager.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/models/manageiq/providers/inventory/persister/builder/infra_manager.rb b/app/models/manageiq/providers/inventory/persister/builder/infra_manager.rb index e142cba037b..a39df3ae53d 100644 --- a/app/models/manageiq/providers/inventory/persister/builder/infra_manager.rb +++ b/app/models/manageiq/providers/inventory/persister/builder/infra_manager.rb @@ -199,6 +199,13 @@ def lans ) end + def distributed_virtual_lans + add_properties( + :manager_ref => %i(switch uid_ems), + :parent_inventory_collections => %i(distributed_virtual_switches), + ) + end + def subnets add_properties( :manager_ref => %i(lan ems_ref),