Comments (2)
You are almost there. But why would you assume that "00:aa:bb:00:00:00"
is a valid format for the action data?
I believe that if you use std::string("\x00\xaa\xbb\x00\x00\x00", 6)
instead, it should work.
Actually, you probably need to fix your match key parameter as well. Maybe try std::string("\x01", 1)
instead.
All of those (match params, action args) expect binary strings, so you should write all of them in hexadecimal like I did.
Let me know if it is still not working for you, or close the issue if this solves your problem.
Thanks
from behavioral-model.
It works for me. Thank you very much.
But if the string size is not correct, the same problem(InvalidTableOperation) will occur.
eg.
I need std::string("\x00\x01", 2)
If I enteredstd::string("\x01", 1)
, it will say InvalidTableOperation.
Thank you very much for your answer again.
from behavioral-model.
Related Issues (20)
- Trying to run make HOT 5
- --use-files should create files for outputs even if the interface is not provided HOT 4
- Does multicast replication preserve local metadata in v1model/simple switch? HOT 7
- Is it possible to interact from the BMv2 mininet host to Ganache (Ethereum) server? HOT 2
- Behavior of tables with empty keys HOT 6
- Installation error with thrift HOT 6
- Known issues with using `pip install nnpy` instead of particular commit SHA of nnpy? HOT 2
- Bringing a bmv2 (simple_switch) interface down freezes the switch program in Ubuntu 22.04 HOT 6
- What is the size of PHV? HOT 4
- how to achieve a timer in bmv2 HOT 3
- Can BMv2 interfaces be bound to virtual network cards of two virtual machines? How should this be done specifically? HOT 2
- Can I get the index of a value in the register by custom_lib? HOT 4
- import thrift
- TCP packets seem not to be processed correctly by bmv2 HOT 2
- Problem using multicast in runtime HOT 1
- Empty action-parameter vector is always accessed in ActionFnEntry::execute HOT 3
- How to build behavioral-model on the MacOS(Apple M1 Pro(13.5)) HOT 1
- How to track fileds of metadata with p4dbg? HOT 2
- Approximate conversion of bmv2 p4 performance to hardware performance HOT 3
- Applying the same table twice 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 behavioral-model.