def get_shellinabox_console_url(port):

    console_host = CONF.my_ip
    if netutils.is_valid_ipv6(console_host):
        console_host = '[%s]' % console_host
    scheme = 'https' if CONF.console.terminal_cert_dir else 'http'
    return '%(scheme)s://%(host)s:%(port)s' % {'scheme': scheme,
                                               'host': console_host,
                                               'port': port}
Set up the uxd stack and behaviors
dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/console_utils.py/get_shellinabox_console_url--crossover with--dataset/ETHPy150Open saltstack/salt/salt/daemons/flo/worker.py/SaltRaetWorkerSetup.action