Monkey patching l2gateway agent code

The patch set monkey patches the
L2 gateway agent code to avoid oslo
exceptions

Co-Authored-By: Selvakumar S <selvakumar.s2@hp.com>

Change-Id: Ic0034a7b1f9355e64551eb7d37edda81ffda2d31
stable/ocata
Maruti 2015-02-15 22:09:32 -08:00
parent 8c18d5a2a2
commit 1221900722
4 changed files with 38 additions and 1 deletions

View File

View File

@ -0,0 +1,17 @@
# Copyright 2015 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
import eventlet
eventlet.monkey_patch()

View File

@ -0,0 +1,20 @@
# Copyright 2015 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
from networking_l2gw.services.l2gateway import l2gw_agent
def main():
l2gw_agent.main()

View File

@ -30,7 +30,7 @@ data_files =
[entry_points]
console_scripts =
neutron-l2gateway-agent = networking_l2gw.services.l2gateway.l2gw_agent:main
neutron-l2gateway-agent = networking_l2gw.cmd.eventlet.agent:main
neutron-l2gw = networking_l2gw.l2gatewayclient.shell:main
[build_sphinx]