Giter VIP home page Giter VIP logo

p4simulator's Issues

Parse ActionData ERROR

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.