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

did not find a p4 program for switch s1 #33

Open
hahada5 opened this issue Nov 1, 2021 · 2 comments
Open

did not find a p4 program for switch s1 #33

hahada5 opened this issue Nov 1, 2021 · 2 comments

Comments

@hahada5
Copy link

hahada5 commented Nov 1, 2021

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 :)

@dsaharia
Copy link

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
      }
    }

@edgar-costa
Copy link
Contributor

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

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

No branches or pull requests

3 participants