Comments (4)
For anyone else having the same problem.
So because the logs indicated lack of primitives that obviously do exist in simple_switch, I checked the target being used. I edited the following line in p4apprunner.py
:
switch_args.append('--behavioral-exe "%s"' % 'simple_switch')
to
switch_args.append('--behavioral-exe "%s"' % '~/behavioral-model/targets/simple_switch/simple_switch')
Meaning, I made it point to my local copy of bmv2. The first line appears at several places and you'll have to change it everywhere if you plan to use all Mininet topologies. The same has to be done for the compiler, obviously. Line 118 becomes:
rv = run_command('~/p4c/build/p4c-bm2-ss %s' % ' '.join(compiler_args))
I had already updated the compiler directory, but I forgot about this (now fairly obvious) issue.
from tutorials.
from tutorials.
@jafingerhut I usually keep non-essential executables in my workspace and I was unaware I had placed a simple_switch binary elsewhere on my Ubuntu folders, hence the problem. Anyway, thanks for the tip! :)
from tutorials.
The VM image came with a pre-installed version of simple_switch, installed under /usr/local/bin. If you want to use the image with the latest version of bmv2, the correct solution is indeed to build it and re-install it, as @jafingerhut suggested. You can also install it to a local directory and update your PATH accordingly, but I don't think that's worth the trouble.
All the software that was shipped inside the VM image should be compatible. The only case where you would experience an issue IMO is if you try to update one component (e.g. p4c), without updating the rest (e.g. bmv2). That's probably what you did here.
from tutorials.
Related Issues (20)
- Unwanted packets during the p4 in mininet
- 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
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.