nsg-ethz/p4-learning

did not find a p4 program for switch s1

hahada5 opened this issue · 2 comments

Hi, thanks for sharing the tutorials.

Today I want to try "recirculate" and after I do sudo p4run, it fails and log shows Exception: Did not find a p4 program for switch s1

Then I tried use python file, but it fails either. Does someone face this problem before?
Appreciate for you help :)

Having the same issue. To solve it change the json configuration file and add program parameter to the switch.
For E.g. - In Counter example, add

"switches": {
      "s1": {
        "cli_input": "direct_commands.txt",
        "program": "direct_counter.p4" // add this line
      }
    }

@hahada5 did you solve this problem? I just tried and it does work for me. Are we talking about examples/recirculation?