Comments (12)
Perhaps try using the Makefiles
supplied with each exercise? Those provide all of the necessary arguments to other scripts like simple_switch_mininet.py
. And you can generalize from there...
from tutorials.
To answer the specific question: you need to provide the path to the Bmv2 switch, which is usually the binary simple_switch
.
from tutorials.
yes, i add the argument about the BMv2 on the top of Makefile, but leider it doesnt work.
from tutorials.
Sorry, i am not sure how to provide the path to the BMv2 switch.
Yes, in original run_exercise.py for multiple switch, there is a default='simple_switch' in args part. However, i dont know how to add them into simple_switch_mininet.py
from tutorials.
Are you running an unmodified exercise that is currently checked into the latest version of this p4lang/tutorials repo? The directory name shown in your screen shot does not look like the directory name of anything in the repo.
from tutorials.
i rename them by myself. I clone the untils and vm to my local and tried a basic forwarding exercise now.
from tutorials.
I think what Andy is asking: can you try running make run
on an unmodified tutorial exercise, like basic
?
(Also, I remembered that the switch binary is probably simple_switch_grpc
.)
from tutorials.
When i make run with original topology.json and original run_exericese.py (3hosts with 3 switches) on basic.p4, it works and ping sucessful.
from tutorials.
emmm, i tried both of simple_switch and simple_switch_grpc, however didnt work~~
from tutorials.
Good!
Obviously something has changed in going from the tutorial code to your custom program and the tutorial code... likely in the Makefile. if you can figure out what that is, you should be able to diagnose the issue.
from tutorials.
whether the p4runtime_lib necessary for basic forwarding?
from tutorials.
Yes.
from tutorials.
Related Issues (20)
- iperf has no result
- JSON error while make run HOT 1
- ModuleNotFoundError: No module named 'p4.tmp' HOT 3
- Topology.json and MAC Addr of next port HOT 7
- Include a link to the p4-guide installation scripts in the README HOT 5
- gRPC Error: Register reads are not supported yet (UNIMPLEMENTED) HOT 22
- How to close all logs? HOT 14
- ../../utils/Makefile:35: recipe for target 'run' failed HOT 4
- VM Image link issue HOT 9
- VM installation issue HOT 4
- Run the p4c tests HOT 3
- Issue with p4lang tutorials/exercises/basic HOT 2
- error:Invalid JSON file: build/ HOT 1
- xxx.p4.p4info.txt is empty HOT 2
- doubt HOT 1
- Incorrect output when using HashAlgorithm.crc16_custom consecutive times HOT 1
- [build error]When I want to compile the ECN project,error interrupt after I input 'make' command HOT 1
- running bmv2 on DPU BlueField-2 HOT 5
- MRI example,how does the P4 get theinformationof the switch when it is running? HOT 1
- Output format problem of flow table item in mycontroller.py in P4 runtime HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tutorials.