Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Latest commit

 

History

History
52 lines (31 loc) · 1.12 KB

requires.md

File metadata and controls

52 lines (31 loc) · 1.12 KB

requires

JujuInfoClient

JujuInfoClient(endpoint_name, relation_ids=None)

addresses

A flat list of all addresses received from related apps / units.

This list is de-duplicated and sorted by address, so it will be stable for change comparison. If you need to know which app / unit an address comes from, see received_addresses_map.

Note: This uses ingress-address, so it will work with cross-model relations.

addresses_map

A nested dictionary of all addresses received from related apps / units by app name then unit name.

For example::

{
    'app1': {
        'app1/0': '10.0.0.1',
        'app1/1': '10.0.0.2',
    }
}

Note: This uses ingress-address, so it will work with cross-model relations.

unit_count

Number of joined units.

get_private_address

JujuInfoClient.get_private_address()

Deprecated.