-
Notifications
You must be signed in to change notification settings - Fork 67
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
For table with empty key, table_add
method will return Error: Invalid table name (xxx)
#38
Comments
This seems related to issue: #35 You can not do a |
But default action in P4 cannot make actions' arguments specific for each switch. |
You should be able to set the default action with 1 argument no? |
Thank you, but using the p4 code of the table is action test_action(bit<32> arg) {
meta.test = arg;
}
table test_tbl{
key = {}
actions = {
test_action;
NoAction;
}
default_action = NoAction;
} |
Maybe it is a bug, I would have to try it myself. Can you try to define the table without the line |
OK, I've tried this, there is no difference. action test_action(bit<32> arg) {
meta.test = arg;
}
table test_tbl{
actions = {
test_action;
NoAction;
}
default_action = NoAction;
} |
I have some tables that have no match keys, when I use
controller.table_add
to add table action, it output withThe text was updated successfully, but these errors were encountered: