Commit Graph

5 Commits

Author SHA1 Message Date
James Page 75286e5117 Make peer discover more defensive
Before adding a (unit-name, address) tuple to the list of peers
for a particular address type, ensure that the unit has actually
presented data for the requested address type.

This avoids 'None' values being written to the haproxy configuration
files during initial deployment and scale back of units.

Change-Id: Ia10e1454791d92b9ca6233425b4a6ea89642def0
Closes-Bug: 1849901
2020-07-20 08:24:13 +01:00
Liam Young 1df295844d New address and new key store/retrieval mthods
set_address: New method for specifying units address for net-splits
             deployments
send_all: Send setting to all peers
retrieve_local: Retrieve key from local db
retrieve_remote: Retrieve key from peers

Fix name of interface.yaml (should not be plural)
Fix tox targetss and drop charm-tools from requirements

Change-Id: I4b0b952c3490cb7c0a877cd827333d69e81ebdab
2016-07-12 19:11:58 +00:00
Liam Young 654f1cfd33 Fix connected state name to be consistent with other interfaces 2016-06-08 14:22:54 +00:00
Liam Young c022dc763e Add tox config and fix lint and discription 2016-06-08 14:16:54 +00:00
Liam Young 75b97e76c3 Initial commit of interface 2016-05-20 08:28:56 +00:00