Skip to content
Browse files

Added network_vif to network model.

  • Loading branch information...
1 parent 75907f7 commit 22a23d0935a65fc63f4049ba77b6a381480d404e @rakshasa rakshasa committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 dcmgr/lib/dcmgr/models/network.rb
View
2 dcmgr/lib/dcmgr/models/network.rb
@@ -28,6 +28,8 @@ def delete_reserved(ipaddr)
:ipv4=>IPAddress::IPv4.new(ipaddr).to_i).destroy
end
end
+
+ one_to_many :network_vif
one_to_many :network_vif_ip_lease, :class=>NetworkVifIpLease, :extend=>NetworkVifIpLeaseMethods
many_to_one :nat_network, :key => :nat_network_id, :class => self

0 comments on commit 22a23d0

Please sign in to comment.
Something went wrong with that request. Please try again.