I run my python app from command line as 'sudo python3 myapp' and I get (logged in with su gives same results):
[Errno 9] Bad file descriptor
at:
File "/usr/local/lib/python3.11/site-packages/pyroute2/netlink/rtnl/iprsocket.py", line 71, in sendto_gate
return self._sendto(msg.data, addr)
from:
ipr.rule('add',
table=self.table_id,
priority=priority,
src='100.66.2.224',
src_len=29,
action='FR_ACT_TO_TBL')
a lot of Pyroute2 tests fails with 'sudo make test'. Test report attached.
testreport.txt
I run my python app from command line as 'sudo python3 myapp' and I get (logged in with su gives same results):
[Errno 9] Bad file descriptor
at:
File "/usr/local/lib/python3.11/site-packages/pyroute2/netlink/rtnl/iprsocket.py", line 71, in sendto_gate
return self._sendto(msg.data, addr)
from:
ipr.rule('add',
table=self.table_id,
priority=priority,
src='100.66.2.224',
src_len=29,
action='FR_ACT_TO_TBL')
a lot of Pyroute2 tests fails with 'sudo make test'. Test report attached.
testreport.txt