NeutronGatewayContext inherits NeutronAPIContext
This commit is contained in:
parent
655d0d04e2
commit
9f0b502f26
@ -121,10 +121,10 @@ class L3AgentContext(OSContextGenerator):
|
||||
return ctxt
|
||||
|
||||
|
||||
class NeutronGatewayContext(OSContextGenerator):
|
||||
class NeutronGatewayContext(NeutronAPIContext):
|
||||
|
||||
def __call__(self):
|
||||
api_settings = NeutronAPIContext()()
|
||||
api_settings = super(NeutronGatewayContext, self).__call__()
|
||||
ctxt = {
|
||||
'shared_secret': get_shared_secret(),
|
||||
'local_ip':
|
||||
|
@ -445,13 +445,11 @@ NEUTRON_OVS_CONFIG_FILES = {
|
||||
'services': ['neutron-l3-agent', 'neutron-vpn-agent']
|
||||
},
|
||||
NEUTRON_OVS_PLUGIN_CONF: {
|
||||
'hook_contexts': [NeutronGatewayContext(),
|
||||
NeutronAPIContext()],
|
||||
'hook_contexts': [NeutronGatewayContext()],
|
||||
'services': ['neutron-plugin-openvswitch-agent']
|
||||
},
|
||||
NEUTRON_ML2_PLUGIN_CONF: {
|
||||
'hook_contexts': [NeutronGatewayContext(),
|
||||
NeutronAPIContext()],
|
||||
'hook_contexts': [NeutronGatewayContext()],
|
||||
'services': ['neutron-plugin-openvswitch-agent']
|
||||
},
|
||||
EXT_PORT_CONF: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user