Inform neutron plugin of neutron-security-groups setting

This commit is contained in:
Liam Young 2014-06-17 16:07:02 +01:00
parent 69a1f1e311
commit c66147e20a
2 changed files with 7 additions and 2 deletions

View File

@ -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)

View File

@ -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: