def _get_route_table(self, router_obj): rt_name = 'rt_' + router_obj.uuid rt_fq_name = router_obj.fq_name[:-1] + [rt_name] try: return DBBaseSM().read_vnc_obj(obj_type="route_table", fq_name=rt_fq_name) except vnc_exc.NoIdError: return
def _get_route_table(self, router_obj): rt_name = 'rt_' + router_obj.uuid rt_fq_name = router_obj.fq_name[:-1] + [rt_name] try: return DBBaseSM().read_vnc_obj(obj_type="route_table", fq_name=rt_fq_name) except vnc_exc.NoIdError: self.logger.debug("Route Table %s not found." % (rt_name)) return
def _get_route_table(self, router_obj, project_obj): rt_name = 'rt_' + router_obj.uuid rt_fq_name = project_obj.fq_name + [rt_name] try: rt_uuid = self._cassandra.fq_name_to_uuid('route-table', rt_fq_name) except NoIdError: return (ok, result) = DBBaseSM()._cassandra.read('route-table', rt_uuid) if not ok: return return RouteTable.from_dict(**result[0])
def _virtual_network_read(self, net_uuid): return DBBaseSM().read_vnc_obj(obj_type="virtual_network", uuid=net_uuid)
def _virtual_network_read(self, net_uuid): (ok, result) = DBBaseSM()._cassandra.read('virtual-network', net_uuid) if not ok: return return VirtualNetwork.from_dict(**result[0])