Class: OsCtld::DB::Containers

Inherits:
PooledList
  • Object
show all
Defined in:
lib/osctld/db/containers.rb

Instance Method Summary collapse

Methods inherited from PooledList

#contains?, #each_by_ids, #find, #select_by_ids

Instance Method Details

#add(obj) ⇒ Object



6
7
8
9
10
11
# File 'lib/osctld/db/containers.rb', line 6

def add(obj)
  OsCtld::NetInterface.sync_host_link_registry do
    OsCtld::NetInterface.validate_container_host_link_claims!(obj)
    super
  end
end

#remove(obj) ⇒ Object



13
14
15
16
17
18
# File 'lib/osctld/db/containers.rb', line 13

def remove(obj)
  OsCtld::NetInterface.sync_host_link_registry do
    OsCtld::NetInterface.validate_container_host_links_released!(obj)
    super
  end
end