huskar_api/models/tree/holder.py
def list_cluster_routes(self, from_application_name=None,
                            from_cluster_name=None):
        """Gets the route table between clusters.

        :param from_application_name: The name of caller application.
        :param from_cluster_name: The name of caller cluster.
        """
        cluster_names = self.get_children(
            self.type_name, self.application_name)
        force_route_cluster_name = \
            from_cluster_name if self.type_name == SERVICE_SUBDOMAIN else None

        for cluster_name in cluster_names:
            resolved_name = self.cluster_resolver.resolve(
                cluster_name,
                force_route_cluster_name=force_route_cluster_name
            )
            if resolved_name is not None:
                yield (cluster_name, resolved_name)

        if not from_application_name or not from_cluster_name:
            return

        for intent in settings.ROUTE_INTENT_LIST:
            resolved_name = self.cluster_resolver.resolve(
                from_cluster_name, from_application_name,
                intent, force_route_cluster_name=force_route_cluster_name
            )
            yield (intent, resolved_name or from_cluster_name)
Gets the route table between clusters.

        :param from_application_name: The name of caller application.
        :param from_cluster_name: The name of caller cluster.
        
Gets the route table between clusters.
Gets the route table between clusters .
def list_cluster_routes(self, from_application_name=None,
                            from_cluster_name=None):
        cluster_names = self.get_children(
            self.type_name, self.application_name)
        force_route_cluster_name = \
            from_cluster_name if self.type_name == SERVICE_SUBDOMAIN else None
        for cluster_name in cluster_names:
            resolved_name = self.cluster_resolver.resolve(
                cluster_name,
                force_route_cluster_name=force_route_cluster_name
            )
            if resolved_name is not None:
                yield (cluster_name, resolved_name)
        if not from_application_name or not from_cluster_name:
            return
        for intent in settings.ROUTE_INTENT_LIST:
            resolved_name = self.cluster_resolver.resolve(
                from_cluster_name, from_application_name,
                intent, force_route_cluster_name=force_route_cluster_name
            )
            yield (intent, resolved_name or from_cluster_name)
def list_cluster_routes ( self , from_application_name = None , from_cluster_name = None ) : cluster_names = self . get_children ( self . type_name , self . application_name ) force_route_cluster_name = from_cluster_name if self . type_name == SERVICE_SUBDOMAIN else None for cluster_name in cluster_names : resolved_name = self . cluster_resolver . resolve ( cluster_name , force_route_cluster_name = force_route_cluster_name ) if resolved_name is not None : yield ( cluster_name , resolved_name ) if not from_application_name or not from_cluster_name : return for intent in settings . ROUTE_INTENT_LIST : resolved_name = self . cluster_resolver . resolve ( from_cluster_name , from_application_name , intent , force_route_cluster_name = force_route_cluster_name ) yield ( intent , resolved_name or from_cluster_name )
Gets the route table between clusters.
Gets the route table between clusters .
"""Gets the route table between clusters.

        :param from_application_name: The name of caller application.
        :param from_cluster_name: The name of caller cluster.
        """
self
from_application_name
The name of caller application.
The name of caller application .
from_cluster_name
The name of caller cluster.
The name of caller cluster .