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 8 years ago
parent 8c18d5a2a2
commit 1221900722
  1. 0
      networking_l2gw/cmd/__init__.py
  2. 17
      networking_l2gw/cmd/eventlet/__init__.py
  3. 20
      networking_l2gw/cmd/eventlet/agent.py
  4. 2
      setup.cfg

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

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

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

Loading…
Cancel
Save