Inform neutron plugin of neutron-security-groups setting
This commit is contained in:
parent
69a1f1e311
commit
c66147e20a
@ -216,6 +216,13 @@ def neutron_api_relation_joined(rid=None):
|
||||
def neutron_api_relation_changed():
|
||||
CONFIGS.write(NEUTRON_CONF)
|
||||
|
||||
@hooks.hook('neutron-plugin-api-relation-joined')
|
||||
def neutron_plugin_api_relation_joined(rid=None):
|
||||
relation_data = {
|
||||
'neutron_security_groups': config('neutron-security-groups')
|
||||
}
|
||||
relation_set(relation_id=rid, **relation_data)
|
||||
|
||||
@hooks.hook('cluster-relation-changed',
|
||||
'cluster-relation-departed')
|
||||
@restart_on_change(restart_map(), stopstart=True)
|
||||
|
@ -8,8 +8,6 @@ categories:
|
||||
provides:
|
||||
neutron-api:
|
||||
interface: neutron-api
|
||||
# neutron-plugin-api unused at present but will be used for passing config
|
||||
# to neutron plugin subordinates like GRE, VXLAN and VLAN ranges
|
||||
neutron-plugin-api:
|
||||
interface: neutron-plugin-api
|
||||
requires:
|
||||
|
Loading…
Reference in New Issue
Block a user