OpenStack Networking (Neutron)
Go to file
Rodolfo Alonso Hernandez 6ea01444dd Add Timer context manager class
This class creates a context that:
* Triggers a timeout exception if the timeout is set.
* Returns the time elapsed since the context was initialized.
* Returns the time spent in the context once it's closed.

The timeout exception can be suppressed; when the time expires, the
context finishes without rising TimerTimeout.

This class can be used to execute blocking methods and finish them if
there is no return. For example, in the followup patch [1], this class
is used in the method "neutron.agent.linux.ip_lib.ip_monitor" to control
how much time the blocking function "IPRSocket.get" is being called. By
using this strategy the method "ip_monitor" can be finished gracefully
using an external event signal in the main loop.

[1] https://review.opendev.org/#/c/660611/

Change-Id: I1f33535b201d49b875437bcc3397fcb465118064
Related-Bug: #1680183
2019-06-05 17:22:31 +00:00
api-ref Fix some typos 2016-06-28 22:46:19 +02:00
bin Use os-xenapi for neutron when XenServer as hypervisor 2017-03-30 18:33:37 +00:00
devstack Add devstack plugin for placement service plugin 2019-05-24 11:34:49 +02:00
doc Merge "Add kill hooks for external processes" 2019-06-05 01:09:51 +00:00
etc Merge "Add kill hooks for external processes" 2019-06-05 01:09:51 +00:00
neutron Add Timer context manager class 2019-06-05 17:22:31 +00:00
playbooks OpenDev Migration Patch 2019-04-19 19:38:27 +00:00
rally-jobs Merge "rally-jobs: Add FloatingIP workloads: assoc/dissoc" 2019-03-01 21:24:43 +00:00
releasenotes Merge "Add kill hooks for external processes" 2019-06-05 01:09:51 +00:00
roles Add "project_name" variable to configure_functional_tests role 2019-05-22 15:30:46 +02:00
tools Replace git.openstack.org URLs with opendev.org URLs 2019-04-23 10:00:45 +08:00
.coveragerc Cleanup coverage configuration 2016-10-17 17:06:19 +05:30
.gitignore Removing existing dirs from .gitignore 2019-05-31 13:35:30 +00:00
.gitreview OpenDev Migration Patch 2019-04-19 19:38:27 +00:00
.mailmap Add mailmap entry 2014-05-16 13:40:04 -04:00
.pylintrc Fix pylint R1717 (consider-using-dict-comprehension) refactor messages 2019-03-14 23:19:58 +00:00
.stestr.conf Fix post gate hook to accommodate for new os-testr 2017-09-12 14:20:12 -06:00
.zuul.yaml Merge "Integrate rally with osprofiler" 2019-05-24 18:31:18 +00:00
babel.cfg Use babel to generate translation file 2013-01-24 00:20:32 +08:00
bindep.txt Add libffi-dev to bindep.txt 2017-06-13 19:26:49 +00:00
CONTRIBUTING.rst Update link for contribution 2017-08-31 16:44:51 +02:00
HACKING.rst Update the documentation link for doc migration 2017-07-22 18:46:13 +09:00
LICENSE Adding Apache Version 2.0 license file. This is the official license agreement under which Quantum code is available to 2011-08-08 12:31:04 -07:00
lower-constraints.txt Merge "Notify ironic on port status changes" 2019-06-01 02:07:46 +00:00
README.rst Update mailinglist from dev to discuss 2018-12-12 12:44:12 +08:00
requirements.txt Exclude broken ironicclient versions 2.7.1 2019-06-04 11:30:24 +08:00
setup.cfg Notify ironic on port status changes 2019-05-27 13:38:42 +02:00
setup.py Updated from global requirements 2017-03-04 11:19:58 +00:00
test-requirements.txt Blacklist bandit 1.6.0 due to directory exclusion bug 2019-05-09 21:00:54 -04:00
TESTING.rst Merge "Fix some formatting issues in TESTING.rst" 2019-04-25 12:10:35 +00:00
tox.ini Use openstack-python3-train-jobs template 2019-05-20 08:58:48 +00:00

Team and repository tags

image

Welcome!

To learn more about neutron:

Get in touch via email. Use [Neutron] in your subject.

To learn how to contribute:

CONTRIBUTING.rst