Skip to content

Commit

Permalink
added STI model ManageIQ::Providers::InfraManager::ExternalDistribute…
Browse files Browse the repository at this point in the history
…dVirtualSwitch
  • Loading branch information
ahrechushkin committed Apr 23, 2024
1 parent e9dbcc1 commit 04dcd53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/manageiq/providers/infra_manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class InfraManager < BaseManager

has_many :distributed_virtual_switches, :dependent => :destroy, :foreign_key => :ems_id, :inverse_of => :ext_management_system
has_many :distributed_virtual_lans, -> { distinct }, :through => :distributed_virtual_switches, :source => :lans
has_many :external_distributed_virtual_switches, :dependent => :destroy, :foreign_key => :ems_id, :inverse_of => :ext_management_system
has_many :host_virtual_switches, -> { distinct }, :through => :hosts
has_many :host_virtual_lans, -> { distinct }, :through => :hosts

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class ManageIQ::Providers::InfraManager::ExternalDistributedVirtualSwitch < Switch
belongs_to :ext_management_system, :foreign_key => :ems_id, :inverse_of => :external_distributed_virtual_switches, :class_name => "ManageIQ::Providers::InfraManager"
end

0 comments on commit 04dcd53

Please sign in to comment.