Comments (4)
Thanks for reporting!
from pyroute2.
Fixed. Please notice, that now usage of .release()
routines is required :
from pyroute2 import IPRoute
ip = IPRoute()
[…]
ip.release()
and the same for IPDB:
from pyroute2 import IPDB
ipdb = IPDB()
[…]
ipdb.release()
The .release()
routine must be called even in the case of exceptions, so it is better to call it from finally
clause:
from pyroute2 import IPRoute
ip = IPRoute()
try:
[…]
except […]:
[…]
finally:
ip.release()
I had to remove the deamonic flag from threads a long time ago, but didn't 'cause of the interactive interpreter. Now they become daemons only when one runs pyroute2 from the interactive Python shell, otherwise one must explicitly call .release()
to initiate the shutdown sequence of the object.
Is that ok?
from pyroute2.
works like a charm!
Thx for the quick fix. :)
from pyroute2.
You're welcome!
from pyroute2.
Related Issues (20)
- How get named counter in pyroute2
- Unconditionally importing readline causes curses resize handler to break HOT 6
- source package for 0.7.11 missing on pypi HOT 2
- IPRoute decoding exceptions on linux kernel 6.6 (IFLA_INET6_ADDR_GEN_MODE) HOT 1
- NDP Route Change not properly recognized
- No longer able to rename interface after update to any version later than 0.7.6: "could not setup alt ifnames" HOT 12
- Unable to move interface to network NS HOT 5
- Unable to set IP6_TNL_F_IGN_ENCAP_LIMIT on ip6tnl HOT 1
- NDB Kernel not sending RTM_DELROUTE HOT 6
- Extended capabilities in iwutil scan HOT 1
- linux network namespace. commit after del_ip, will print “fail <class 'NoneType'>”
- `IPRoute2.tc` 'flow' filter buggy when in map mode
- Parse conntrack updates to structure NFCTAttrTuple or dicrinary
- Get conntrack TCP OFFLOAD entries looks broken
- lost src and src_len in ndb.routes.create
- IPRoute.flush_addr(altname='some-alt-name') does not work
- Support for `ip route save` and `ip route restore` commands
- rule add dont work, fails on socket issue, ubuntu 18. tests fails as well HOT 2
- pyroute2.netlink.exceptions.NetlinkDumpInterrupted: (-1, 'dump interrupted')
- shed_cake.py bug, unable to add a cake qdisc under a parent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyroute2.