Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added network_vif to network model.

  • Loading branch information...
commit 22a23d0935a65fc63f4049ba77b6a381480d404e 1 parent 75907f7
@rakshasa rakshasa authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.