def update_network_interface_state(interface_uuid, state): ni = get_interface(interface_uuid) ni['state'] = state ni['state_updated'] = time.time() etcd.put('networkinterface', None, interface_uuid, ni) if state == 'deleted': etcd.delete('macaddress', None, ni['macaddr'])
def update_network_state(network_uuid, state): n = get_network(network_uuid) n['state'] = state n['state_updated'] = time.time() etcd.put('network', None, network_uuid, n) if state == 'deleted': etcd.delete('vxlan', None, n['vxid']) etcd.delete('ipmanager', None, n['uuid'])
def hard_delete(self): etcd.delete('instance', None, self.uuid) db.delete_metadata('instance', self.uuid) etcd.delete_all('attribute/instance', self.uuid) etcd.delete_all('event/instance', self.uuid)
def delete_metadata(object_type, name): etcd.delete('metadata', object_type, name)
def delete_namespace(namespace): etcd.delete('namespace', None, namespace)
def free_console_port(port): etcd.delete('console', config.NODE_NAME, port)
def hard_delete(self): etcd.delete('network', None, self.uuid) etcd.delete('vxid', None, self.vxid) etcd.delete_all('attribute/network', self.uuid) etcd.delete_all('event/network', self.uuid) db.delete_metadata('network', self.uuid)
def hard_delete(self): etcd.delete('blob', None, self.uuid) etcd.delete_all('attribute/blob', self.uuid) etcd.delete_all('event/blob', self.uuid)
def hard_delete_network(network_uuid): etcd.delete('network', None, network_uuid) etcd.delete_all('event/network', network_uuid) delete_metadata('network', network_uuid)
def free_console_port(port): etcd.delete('console', config.parsed.get('NODE_NAME'), port)
def delete_ipmanager(network_uuid): etcd.delete('ipmanager', None, uuid)
def _db_delete_attribute(self, attribute): if self.__in_memory_only and attribute in self.__in_memory_values: del self.__in_memory_values[attribute] else: etcd.delete('attribute/%s' % self.object_type, self.__uuid, attribute)
def deallocate_vxid(vxid): etcd.delete('vxlan', None, vxid)
def _free_console_port(self, port): if port: etcd.delete('console', config.NODE_NAME, port)
def hard_delete_instance(instance_uuid): etcd.delete('instance', None, instance_uuid) etcd.delete_all('event/instance', instance_uuid) delete_metadata('instance', instance_uuid)
def hard_delete(self): etcd.delete('macaddress', None, self.macaddr) etcd.delete('networkinterface', None, self.uuid) etcd.delete_all('attribute/networkinterface', self.uuid) etcd.delete_all('event/networkinterface', self.uuid) db.delete_metadata('networkinterface', self.uuid)
def hard_delete_network_interface(interface_uuid): etcd.delete('networkinterface', None, interface_uuid) etcd.delete_all('event/networkinterface', interface_uuid)
def hard_delete(self): etcd.delete('artifact', None, self.uuid) etcd.delete_all('attribute/artifact', self.uuid) etcd.delete_all('event/artifact', self.uuid)
def free_console_port(port): see_this_node() etcd.delete('console', config.parsed.get('NODE_NAME'), port)