Coder Social home page Coder Social logo

Comments (12)

jnfoster avatar jnfoster commented on August 22, 2024

Perhaps try using the Makefiles supplied with each exercise? Those provide all of the necessary arguments to other scripts like simple_switch_mininet.py. And you can generalize from there...

from tutorials.

jnfoster avatar jnfoster commented on August 22, 2024

To answer the specific question: you need to provide the path to the Bmv2 switch, which is usually the binary simple_switch.

from tutorials.

lululouisa avatar lululouisa commented on August 22, 2024

image
yes, i add the argument about the BMv2 on the top of Makefile, but leider it doesnt work.
image

from tutorials.

lululouisa avatar lululouisa commented on August 22, 2024

Sorry, i am not sure how to provide the path to the BMv2 switch.
Yes, in original run_exercise.py for multiple switch, there is a default='simple_switch' in args part. However, i dont know how to add them into simple_switch_mininet.py

from tutorials.

jafingerhut avatar jafingerhut commented on August 22, 2024

Are you running an unmodified exercise that is currently checked into the latest version of this p4lang/tutorials repo? The directory name shown in your screen shot does not look like the directory name of anything in the repo.

from tutorials.

lululouisa avatar lululouisa commented on August 22, 2024

i rename them by myself. I clone the untils and vm to my local and tried a basic forwarding exercise now.

from tutorials.

jnfoster avatar jnfoster commented on August 22, 2024

I think what Andy is asking: can you try running make run on an unmodified tutorial exercise, like basic?

(Also, I remembered that the switch binary is probably simple_switch_grpc.)

from tutorials.

lululouisa avatar lululouisa commented on August 22, 2024

When i make run with original topology.json and original run_exericese.py (3hosts with 3 switches) on basic.p4, it works and ping sucessful.

from tutorials.

lululouisa avatar lululouisa commented on August 22, 2024

emmm, i tried both of simple_switch and simple_switch_grpc, however didnt work~~

from tutorials.

jnfoster avatar jnfoster commented on August 22, 2024

Good!

Obviously something has changed in going from the tutorial code to your custom program and the tutorial code... likely in the Makefile. if you can figure out what that is, you should be able to diagnose the issue.

from tutorials.

lululouisa avatar lululouisa commented on August 22, 2024

whether the p4runtime_lib necessary for basic forwarding?

from tutorials.

jnfoster avatar jnfoster commented on August 22, 2024

Yes.

from tutorials.

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.