Skip to content

Commit

Permalink
Merge pull request ManageIQ#14969 from Ladas/fix_network_ports_relati…
Browse files Browse the repository at this point in the history
…on_of_lb

Fix network_ports relation of a LB
  • Loading branch information
agrare authored May 3, 2017
2 parents dd8c13c + 5a5d38f commit 0ee5e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/load_balancer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class LoadBalancer < ApplicationRecord
has_many :load_balancer_pools, :through => :load_balancer_listeners
has_many :load_balancer_pool_members, -> { distinct }, :through => :load_balancer_pools

has_many :network_ports
has_many :network_ports, :as => :device
has_many :cloud_subnet_network_ports, :through => :network_ports
has_many :cloud_subnets, :through => :cloud_subnet_network_ports
has_many :floating_ips, :through => :network_ports
Expand Down

0 comments on commit 0ee5e4c

Please sign in to comment.