Comments (2)
I'm not too familiar with this repo, but you will probably need to do the following:
- update this Python file so that the extra argument is provided to the bmv2 process: https://github.com/p4lang/p4app/blob/master/docker/scripts/mininet/p4_mininet.py
- rebuild the p4app docker image locally, probably with a command like this one:
docker built -t p4app:latest .
- run p4app again (which should use your new local image, unless you run
p4app update
)
Note that the filename you provide with --notification-addr
will be located inside the docker container IIRC, so if you want to access it from the machine which is running the container, you will need to update the volume mounts for the container accordingly (https://github.com/p4lang/p4app/blob/master/p4app#L55).
Depending on what you are trying to do, it may be better not to use p4app and run the different components yourself (bmv2, p4c).
from p4app.
I modified the p4_mininet.py
file but it doesn't make any effect. I think that when the docker image is built there is installed internally another p4app files, so it doesn't take the changes into account... The folder container_name:/scripts
in the current container should be updated with the new scripts (for example the p4_mininet.py
script or others). I would like to modify the IP host address, the interface name and the Mac address but I couldn't do it.
from p4app.
Related Issues (20)
- P4app can't import pycrptodome HOT 15
- p4app run error
- p4app can
- p4app can't compile HOT 3
- simple_router.p4app fails to compile HOT 2
- Mininet crash when "program" is placed in subdirectory
- Simple_Switch stops to work and pops up AttributeError: 'module' object has no attribute 'P4RuntimeStub' HOT 1
- docker throwing error
- Set link bandwidth in multiswitch.p4app HOT 3
- The scapy sniff can not work correctly?
- packet drop in p4 switches
- PSA support
- Logs available for "s1" switch only
- Docker can't rebuild the image HOT 1
- Logging seems broken
- Setting Host IP Not Working
- RuntimeCmd: Error: Table has no action _drop()
- Unable to ping when "auto-control-plane" is set to false in p4app.json
- File "./p4apprunner.py", !! Unable to run the example program! 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 p4app.