# TESTING get_sd_endpoints
endpoints_all_clusters:
{%- for e in get_sd_endpoints("any-endpoint-set-id") %}
 - id: {{e.id}}
   protocol: {{e.protocol}}
   fqdn: {{e.fqdn}}
   ip6_address: {{e.ip6_address}}
   port: {{e.port}}
   ready: {{e.ready}}
{%- endfor %}
ready_endpoints:
{%- for e in get_sd_endpoints("any-endpoint-set-id") | ready_endpoints %}
 - id: {{e.id}}
   protocol: {{e.protocol}}
   fqdn: {{e.fqdn}}
   ip6_address: {{e.ip6_address}}
   port: {{e.port}}
   ready: {{e.ready}}
{%- endfor %}
endpoints_current_cluster:
{%- for e in get_sd_endpoints_current_cluster("any-endpoint-set-id") %}
 - id: {{e.id}}
   protocol: {{e.protocol}}
   fqdn: {{e.fqdn}}
   ip6_address: {{e.ip6_address}}
   port: {{e.port}}
{%- endfor %}
endpoints_man:
{%- for e in get_sd_endpoints("any-endpoint-set-id", ["MAN"]) %}
 - id: {{e.id}}
   protocol: {{e.protocol}}
   fqdn: {{e.fqdn}}
   ip6_address: {{e.ip6_address}}
   port: {{e.port}}
{%- endfor %}
# TESTING get_sd_pods
podss_all_clusters:
{%- for p in get_sd_pods("any_service_id") %}
 - id: {{p.id}}
   node_id: {{p.node_id}}
   dns_persistent_fqdn: {{p.dns.persistent_fqdn}}
   dns_transient_fqdn: {{p.dns.transient_fqdn}}
{%- endfor %}
pods_current_cluster:
{%- for p in get_sd_pods_current_cluster("any_service_id") %}
 - id: {{p.id}}
   node_id: {{p.node_id}}
   dns_persistent_fqdn: {{p.dns.persistent_fqdn}}
   dns_transient_fqdn: {{p.dns.transient_fqdn}}
{%- endfor %}
pods_man:
{%- for p in get_sd_pods("any_service_id", ["MAN"]) %}
 - id: {{p.id}}
   node_id: {{p.node_id}}
   dns_persistent_fqdn: {{p.dns.persistent_fqdn}}
   dns_transient_fqdn: {{p.dns.transient_fqdn}}
{%- endfor %}
