-
Notifications
You must be signed in to change notification settings - Fork 188
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
Can you show me the range match P4 and its controller example #45
Comments
Hi @Nano5e Can you show me how do you add it? Also, can you look at the switch logs and dump the table entries after you added it? |
Sorry for not being able to get back to you in time. A demo based on MPLSI implement a demo based on MPLS to test range match in P4 language. but I fail, it seems that I can't add range match entries to the table via runtime_api. main files:
Some details
There are four ports: 1,2,3,4. Incoming packets are counted on every port of s4 switch. (This can be accomplished using exact match, but I want to test range match.)
However, this does not work. However if I add const entries in P4 file (
It works. |
Hi, Sorry for the very late reply. I did not see this. This is how the range entries are parsed: That means you have to do it as "start->end". you could have checked the CLI output logs, probably it complained with the following message:
|
There seem to be bugs when attempting to add range match entries to tables. Specifically, I have been unable to successfully add such entries via controller.py , as the range match never seems to hit.
The text was updated successfully, but these errors were encountered: