Skip to content

Commit

Permalink
Fix network_ports relation of a LB
Browse files Browse the repository at this point in the history
  • Loading branch information
Ladas committed May 3, 2017
1 parent 96aac65 commit 5a5d38f
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 5a5d38f

Please sign in to comment.