当前位置: 首页>>代码示例>>Python>>正文


Python service.get_backend_core_proxy函数代码示例

本文整理汇总了Python中service.get_backend_core_proxy函数的典型用法代码示例。如果您正苦于以下问题:Python get_backend_core_proxy函数的具体用法?Python get_backend_core_proxy怎么用?Python get_backend_core_proxy使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了get_backend_core_proxy函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: _remove

	def _remove(self):
		elems = [get_element_info(e) for e in self.info()['elements']]
		conns = [get_connection_info(c) for c in self.info()['connections']]
		for e in elems:
			e.set_exists(None)
		for c in conns:
			c.set_exists(None)
		get_backend_core_proxy().topology_remove(self.topology_id)
开发者ID:GLab,项目名称:ToMaTo,代码行数:8,代码来源:remote_info.py

示例2: _remove

	def _remove(self):
		elems = self.info()['elements']
		conns = self.info()['connections']
		get_backend_core_proxy().topology_remove(self.topology_id)
		for e in elems:
			get_element_info(e).set_exists(False)
		for c in conns:
			get_connection_info(c).set_exists(False)
开发者ID:hu19891110,项目名称:ToMaTo,代码行数:8,代码来源:remote_info.py

示例3: get_network_list

def get_network_list():
	"""
	get the list of networks
	:return: list of networks
	:rtype: list(dict)
	"""
	return get_backend_core_proxy().network_list()
开发者ID:GLab,项目名称:ToMaTo,代码行数:7,代码来源:remote_info.py

示例4: _template_id

def _template_id(tech, name):
    """
	get template id by tech and name
	:param tech: template tech
	:param name: template name
	:return: template id
	"""
    return get_backend_core_proxy().template_id(tech, name)
开发者ID:GLab,项目名称:ToMaTo,代码行数:8,代码来源:remote_info.py

示例5: _profile_id

def _profile_id(type, name):
	"""
	get profile id by tech and name
	:param type: profile type
	:param name: profile name
	:return: profile id
	"""
	return get_backend_core_proxy().profile_id(type, name)
开发者ID:GLab,项目名称:ToMaTo,代码行数:8,代码来源:remote_info.py

示例6: get_template_list

def get_template_list(type=None):
	"""
	get the list of all templates
	:param str type: filter for type if wanted
	:return: list of templates
	:rtype: list(dict)
	"""
	return get_backend_core_proxy().template_list(type)
开发者ID:GLab,项目名称:ToMaTo,代码行数:8,代码来源:remote_info.py

示例7: get_site_list

def get_site_list(organization=None):
	"""
	get the list of sites
	:param organization: if not None, filter by this organization.
	:return: list of sites, filtered if requested
	:rtype: list(dict)
	"""
	return get_backend_core_proxy().site_list(organization)
开发者ID:GLab,项目名称:ToMaTo,代码行数:8,代码来源:remote_info.py

示例8: get_profile_list

def get_profile_list(type=None):
	"""
	get the list of all profile
	:param str type: filter for type if wanted
	:return: list of profiles
	:rtype: list(dict)
	"""
	return get_backend_core_proxy().profile_list(type)
开发者ID:GLab,项目名称:ToMaTo,代码行数:8,代码来源:remote_info.py

示例9: _modify

	def _modify(self, attrs):
		site = None
		if ('site' in attrs) and (self.get_site_name() != attrs['site']):
			site = self.get_site_name()
		res = get_backend_core_proxy().host_modify(self.name, attrs)
		if site is not None:
			get_site_info(site).invalidate_info()
			get_site_info(attrs['site']).invalidate_info()
		return res
开发者ID:GLab,项目名称:ToMaTo,代码行数:9,代码来源:remote_info.py

示例10: create

	def create(el1, el2, attrs):
		"""
		create connection
		:param ElementInfo el1:
		:param ElementInfo el2:
		:param dict attrs: connection attributes
		:return:
		"""
		return get_backend_core_proxy().connection_create(el1.get_id(), el2.get_id(), attrs)
开发者ID:hu19891110,项目名称:ToMaTo,代码行数:9,代码来源:remote_info.py

示例11: get_network_instance_list

def get_network_instance_list(network=None, host=None):
	"""
	get the list of network instances
	:param network: filter by network
	:param host: filter by host
	:return: list of network instances
	:rtype: list(dict)
	"""
	return get_backend_core_proxy().network_instance_list(network, host)
开发者ID:GLab,项目名称:ToMaTo,代码行数:9,代码来源:remote_info.py

示例12: get_host_list

def get_host_list(site=None, organization=None):
	"""
	get the list of hosts, filtered by site or organization, if requested.
	:param str site: site filter
	:param str organization: organization filter
	:return: list of hosts
	:rtype: list(dict)
	"""
	return get_backend_core_proxy().host_list(site, organization)
开发者ID:GLab,项目名称:ToMaTo,代码行数:9,代码来源:remote_info.py

示例13: set_permission

	def set_permission(self, user, role):
		"""
		set the permission of a user
		:param str user: username of target user
		:param str role: role as in topology_role
		"""
		res = get_backend_core_proxy().topology_set_permission(self.topology_id, user, role)
		if self._info is not None:
			self._info['permissions'][user] = role
		return res
开发者ID:GLab,项目名称:ToMaTo,代码行数:10,代码来源:remote_info.py

示例14: get_topology_list

def get_topology_list(full=False, organization_filter=None, username_filter=None):
	"""
	get the list of topologies
	:param bool full: expand children info
	:param str organization_filter: list of organizations
	:param str username_filter: username to filter for
	:return: list of topologies
	:rtype: list(dict)
	"""
	return get_backend_core_proxy().topology_list(full=full, organization_filter=organization_filter, username_filter=username_filter)
开发者ID:GLab,项目名称:ToMaTo,代码行数:10,代码来源:remote_info.py

示例15: _action

	def _action(self, action, params):
		elems = self.info()['elements']
		conns = self.info()['connections']
		res = get_backend_core_proxy().topology_action(self.topology_id, action, params)
		for e in elems:
			get_element_info(e).invalidate_info()
			get_element_info(e).invalidate_exists()
		for c in conns:
			get_connection_info(c).invalidate_info()
			get_connection_info(c).invalidate_exists()
		return res
开发者ID:GLab,项目名称:ToMaTo,代码行数:11,代码来源:remote_info.py


注:本文中的service.get_backend_core_proxy函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。