Skip to content

Commit

Permalink
Temporarily remove many-to-many from NetworkRouter
Browse files Browse the repository at this point in the history
With this commit we remove relation which allows NetworkRouter to
relate to multiple FloatingIps directly (instead via CloudNetwork).
Until ManageIQ/manageiq-schema#217 is merged
we are not able to use such direct relation or else UI crashes.

Signed-off-by: Miha Pleško <[email protected]>
  • Loading branch information
miha-plesko committed Jul 13, 2018
1 parent b7b3991 commit 4d2221a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
class ManageIQ::Providers::Nuage::NetworkManager::NetworkRouter < ::NetworkRouter
has_many :floating_ips, :dependent => :destroy

# TODO(miha-plesko): remove when https://github.com/ManageIQ/manageiq-schema/pull/217 is merged
def floating_ips
FloatingIp.none
end
end

0 comments on commit 4d2221a

Please sign in to comment.