Sha256: 653ac223e55189d34225e0d43d9a41164120079e9d9719d5568332b4c484f757
Contents?: true
Size: 465 Bytes
Versions: 2
Compression:
Stored size: 465 Bytes
Contents
# -*- coding: utf-8 -*- module Dcmgr::Models # VLAN lease information class VlanLease < AccountResource taggable 'vlan' inheritable_schema do Fixnum :tag_id, :null=>false index :tag_id, {:unique=>true} end with_timestamps one_to_many :networks def validate unless 1 <= self.tag_id.to_i && self.tag_id.to_i <= 4095 errors.add(:tag_id, "Tag ID is out of range (1-4095)") end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
wakame-vdc-agents-11.06.0 | lib/dcmgr/models/vlan_lease.rb |
wakame-vdc-dcmgr-11.06.0 | lib/dcmgr/models/vlan_lease.rb |