Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "failed to open netns" error in RISCV64. #1128

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

zhouliang-eswin
Copy link
Contributor

@zhouliang-eswin zhouliang-eswin commented Sep 5, 2023

The method bellow can be used to verify the modification in riscv64.

  1. Create a test.py file with the following content.
from pyroute2 import IPDB, NetNS
with IPDB(NetNS("test")) as ipdb_ns:
    print(ipdb_ns)
  1. Run the following command to see if there exists any error.
ip netns add test
python3 test.py

The method bellow can be used to verify the modification in riscv64.
1. Create a test.py file with the following content.
from pyroute2 import IPDB, NetNS
with IPDB(NetNS("test")) as ipdb_ns:
    print(ipdb_ns)
2. Run the following command to see if there exists any error.
ip netns add test
python3 test.py

Signed-off-by: zhouliang-eswin <zhouliang1@eswincomputing.com>
@zhouliang-eswin
Copy link
Contributor Author

@svinota Hi svinota, I saw you merged 1 similiar commit for loongarch64 , could you please help to merge this one for riscv64. Thanks.

@svinota svinota merged commit 655ac2e into svinota:master Oct 27, 2023
@svinota
Copy link
Owner

svinota commented Oct 27, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants