Guest User

Untitled

a guest
Sep 25th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. >>> from pyroute2 import netns
  2. >>> netns.create("test")
  3. >>> netns.create("test")
  4. Traceback (most recent call last):
  5.   File "<stdin>", line 1, in <module>
  6.   File "/usr/local/lib/python2.7/dist-packages/pyroute2/netns/__init__.py", line 162, in create
  7.     os.close(os.open(netnspath, os.O_RDONLY | os.O_CREAT | os.O_EXCL, 0))
  8. OSError: [Errno 17] File exists: '/var/run/netns/test'
Advertisement
Add Comment
Please, Sign In to add comment