p4simulator / p4simulator Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hi, I have run the NS4 with no error in original example "p4simulator-large-scale". However, after I added a new table and action, I cannot install the new table sqy_table successfully. So, I inserted "NS_LOG_ERROR" to your source code in the file "p4-switch-interface.cc" as below:
if (m_p4Model->mt_add_entry(0, parms[1], matchKey, parms[2], actionData, &handle, priority) != bm::MatchErrorCode::SUCCESS)
{
NS_LOG_ERROR("Parse ActionData ERROR");
throw P4Exception(NO_SUCCESS);
}
And I found the function "mt_add_entry" cannot be executed successfully. Some information in my /tmp/p4.log are shown below:
TABLE_SET_DEFAULT:table_set_default sqy_table _drop
TABLE_ADD:table_add sqy_table set_port 0x00000000 => 0x1
Parse ActionData from index:5
Parse ActionData ERROR
Calling target program-options parser
NO_SUCCESS
exception entry: table_add sqy_table set_port 0x00000000 => 0x1
TABLE_ADD:table_add sqy_table set_port 0x00000001 => 0x0
Parse ActionData from index:5
Parse ActionData ERROR
NO_SUCCESS
I do not know how to solve this problem.
Looking forward to your reply, sincerely.
All of the links in the readme point to https://github.com/ns-4/P4Simulator-DEV/wiki/[topic], which Github claims doesn't exist. Most likely, that's a private repository. You should replicate those pages in this repository's wiki and correct the links.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.