OpenStack Networking (Neutron)
6ea01444dd
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 |
||
---|---|---|
api-ref | ||
bin | ||
devstack | ||
doc | ||
etc | ||
neutron | ||
playbooks | ||
rally-jobs | ||
releasenotes | ||
roles | ||
tools | ||
.coveragerc | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
.pylintrc | ||
.stestr.conf | ||
.zuul.yaml | ||
babel.cfg | ||
bindep.txt | ||
CONTRIBUTING.rst | ||
HACKING.rst | ||
LICENSE | ||
lower-constraints.txt | ||
README.rst | ||
requirements.txt | ||
setup.cfg | ||
setup.py | ||
test-requirements.txt | ||
TESTING.rst | ||
tox.ini |
Team and repository tags
Welcome!
To learn more about neutron:
- Documentation: https://docs.openstack.org
- Features: https://specs.openstack.org/openstack/neutron-specs
- Defects: https://launchpad.net/neutron
- Release notes: https://docs.openstack.org/releasenotes/neutron/index.html
Get in touch via email. Use [Neutron] in your subject.
To learn how to contribute:
CONTRIBUTING.rst