Giter Club home page Giter Club logo

Comments (7)

jurijnota avatar jurijnota commented on July 24, 2024 1

Hi @caopeirui,
the module sswitch_runtime is included in the behavioral model. You can check out the requirements for P4-Utils here. The difference between the SimpleSwitchThriftAPI and the SimpleSwitchP4RuntimeAPI is that the former is the legacy control plane API of the behavioral model, the latter is a new one based on P4Runtime that aims at becoming the new standard for the control plane of all the P4 devices. Unfortunately, SimpleSwitchP4RuntimeAPI does not support registers operations yet, so you may still want to use the legacy API.

from p4-utils.

caopeirui avatar caopeirui commented on July 24, 2024

By the way, would you mind telling me the most significant difference between SimpleSwitchThriftAPI and SimpleSwitchP4RuntimeAPI ?

from p4-utils.

yhx-coder avatar yhx-coder commented on July 24, 2024

maybe you can find it in the file "behavioral-model/targets/simple_switch/thrift/simple_switch.thrift"

from p4-utils.

trailll avatar trailll commented on July 24, 2024

hello,I have met the same problem,and I find file 'sswitch_runtime' in behavioral model ,then i copy it to p4utils/utils/ and slolve the issue,but then it told me that i miss other moudules,when i copy one ,the other apper,all those missing modules can be found in behavioral model,so the issues is caused by bm2?

from p4-utils.

ryanyux avatar ryanyux commented on July 24, 2024

This is because the directory of simple_switch is not included in the python path.
you can create a path file in /path_to_python/lib/python3.10/site-packages,

vim simple_switch.pth

then you can paste the path of simple_switch in the simple_switch.pth file

/path_to_behavioral-model/targets/simple_switch

from p4-utils.

MohamadAlAdraa avatar MohamadAlAdraa commented on July 24, 2024

hello,I have met the same problem,and I find file 'sswitch_runtime' in behavioral model ,then i copy it to p4utils/utils/ and slolve the issue,but then it told me that i miss other moudules,when i copy one ,the other apper,all those missing modules can be found in behavioral model,so the issues is caused by bm2?

Hi @trailll,

Where you able to solve the problem?

Thanks

from p4-utils.

MohamadAlAdraa avatar MohamadAlAdraa commented on July 24, 2024

This is because the directory of simple_switch is not included in the python path. you can create a path file in /path_to_python/lib/python3.10/site-packages,

vim simple_switch.pth

then you can paste the path of simple_switch in the simple_switch.pth file

/path_to_behavioral-model/targets/simple_switch

Hi @ryanyux,

I tried your suggestion but did not work.

from p4-utils.

Related Issues (20)

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.