Sha256: b1a0dc0fd7f7a888cc452a4ac329818259d4a23e34fc58f6129fcd9b1393451b
Contents?: true
Size: 694 Bytes
Versions: 2
Compression:
Stored size: 694 Bytes
Contents
# -*- coding: utf-8 -*- module Dcmgr::Models # Network definitions in the DC. class Network < BaseNew inheritable_schema do String :name, :null=>false String :ipv4_gw, :null=>false Fixnum :prefix, :null=>false, :default=>24, :unsigned=>true String :domain_name, :null=>false String :dns_server, :null=>false String :dhcp_server, :null=>false String :metadata_server Text :description index :name, {:unique=>true} end with_timestamps many_to_one :host_pool one_to_many :ip_lease def validate super end def to_hash values.dup.merge({:description=>description.to_s}) end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
wakame-vdc-dcmgr-10.11.0 | lib/dcmgr/models/network.rb |
wakame-vdc-agents-10.11.0 | lib/dcmgr/models/network.rb |