Browse Source

Inform neutron plugin of neutron-security-groups setting

changes/98/286798/1
Liam Young 8 years ago
parent
commit
c66147e20a
  1. 7
      hooks/neutron_api_hooks.py
  2. 2
      metadata.yaml

7
hooks/neutron_api_hooks.py

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

2
metadata.yaml

@ -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…
Cancel
Save