Closed 1908639561 closed 2 years ago
Hi @1908639561 ,
I think your environment is not properly set. @yfle0707 Do you have clues about this?
Lam
Hi, @1908639561 , which SDE version you are using?
Also, could you please try commentating "import pltfm_pm_rpc" and try if we actually need that module?
Hi,@laochonlam @yfle0707 .Thank you so much for receiving your response! I am using SDE-8.9.1. but I am not using a real P4 physical switch, I installed SDE-8.9.1 on a server with ubuntu-16.04 because I wanted to do it on Tofino Model first. Also, when I run it after commenting out "import pltfm_pm_rpc", it has this problem:
When I commented out the sentences at the same time, it worked successfully.But I don't know why and what are the effects of doing so. https://github.com/in-ATP/ATP/blob/ddca27f035edcd970abdbbfef400045d79afd3fa/ptf/ptfTest.py#L4 https://github.com/in-ATP/ATP/blob/ddca27f035edcd970abdbbfef400045d79afd3fa/ptf/ptfTest.py#L11 https://github.com/in-ATP/ATP/blob/ddca27f035edcd970abdbbfef400045d79afd3fa/ptf/ptfTest.py#L56
Output after successful run:
Hi, @1908639561 , which SDE version you are using?
Also, could you please try commentating "import pltfm_pm_rpc" and try if we actually need that module?
Hi,
The variable self.platform_type is not used, thus, it does not impact on the current program.
OK!Thank you very much for your replies!
when I ran $SDE/run_p4_tests.sh -t ~/switchML/ptf/ -p switchml.
Target is asic-model Setting up veth interfaces No of Veths is 64 Adding CPU veth Connecting to localhost port 7777 to check status on these devices: [0] Waiting for device 0 to be ready Started port clean script WARNING: No route found for IPv6 destination :: (no default route?) Traceback (most recent call last): File "/home/sde-test/bf-sde-8.9.1/install/bin/ptf", line 522, in
test_modules = load_test_modules(config)
File "/home/sde-test/bf-sde-8.9.1/install/bin/ptf", line 413, in load_test_modules
mod = imp.load_module(modname, *imp.find_module(modname, [root]))
File "/home/sde-test/switchML/ptf/ptfTest.py", line 4, in
import pltfm_pm_rpc
ImportError: No module named pltfm_pm_rpc
I have no clue about this. Hope to get your answer.