acs::Cluster method external_location (protected)

 <instance of acs::Cluster[i]> external_location qualified_location

Defined in packages/acs-tcl/tcl/cluster-procs.tcl

For addresses communicated to container-external entities, we have to map container-internal IP addresses to external accessible addresses.

Parameters:
qualified_location (required)

Testcases:
No testcase defined.
Source code:
ns_log notice "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX NOT USED !!!!!!!!!!!!!!!"
set containerMapping [::acs::container mapping]
if {$containerMapping ne ""} {
    set d [ns_parseurl $qualified_location]
    dict with d {
        #
        #
        # TODO must be host from containerMapping
        #
        set internal [ns_addrbyhost host.docker.internal]
        if {$host in [list $internal host.docker.internal 127.0.0.1]} {
            set qualified_location [util::join_location  -noabbrev  -proto $proto  -hostname 127.0.0.1  -port $port]
        }
    }
}
return $qualified_location
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: