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

Tofino Example: no bf_swithcd for one of the switches #56

Open
Excel3884 opened this issue Jun 26, 2023 · 3 comments
Open

Tofino Example: no bf_swithcd for one of the switches #56

Excel3884 opened this issue Jun 26, 2023 · 3 comments

Comments

@Excel3884
Copy link

Hello everyone,
I have been trying to run the tofino example (https://github.com/nsg-ethz/p4-utils/tree/master/examples/tofino). Although, every time I set up the network, I can run run_bfshell.sh for only one of the switches (either s1 or s2). It looks like that bf_switchd is not running at all on the specific switch.
Screenshot from 2023-06-26 10-23-11
Screenshot from 2023-06-26 10-23-24
Is it possible that happens because of the fact that BF Runtime Server is using the same port (50051) every time it's being started?
SDE Version: 9.11.0
Thank you in advance.

Excel

@Excel3884 Excel3884 changed the title Tofino Example: no bf_swithcd for s2 Tofino Example: no bf_swithcd for one of the switches Jun 26, 2023
@Excel3884
Copy link
Author

I realized that the example was working on Ubuntu 22.04, but not on my current distro (Ubuntu 18.04 minimal). The problem was solved by installing GDB.

@edgar-costa
Copy link
Collaborator

edgar-costa commented Jul 18, 2023

How did installing GDB fix the issue? Any idea? Is it a dependency?

@Excel3884
Copy link
Author

Excel3884 commented Jul 19, 2023

Hello,
Unfortunately not. Once I installed GDB, I ran the second switchd using the -g flag to find out what's wrong (manually without running the example's code). Although, I doubt that this solved the issue, as I could run more switchds later without the flag. I guess it's probably a dependency like you said.

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

2 participants