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