-
Notifications
You must be signed in to change notification settings - Fork 895
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
Port Mirroring Exercise #335
base: master
Are you sure you want to change the base?
Conversation
This is super cool! Can I ask if you are an existing P4 member or ONF contributor? |
Hi Nate, nope, I'm not. :) |
Can you send me a note at [email protected]? I'll get you set up. |
Sure thing! I've just dropped you an email. |
hello, now I want to use resubmit and clone to make a packet send to the same detination after egress edit several times, can you tell me how to set clone session to make clone function effective? if you can send me you code at [email protected] ,thank you! |
Hi @huhub You may refer to my commit for further details. |
thank you a lot! now I know how to use CLI, and I have already made it, that's very cool.
…---Original---
From: "Xin Zhe Khooi"<[email protected]>
Date: 2020/3/17 10:24:45
To: "p4lang/tutorials"<[email protected]>;
Cc: "Mention"<[email protected]>;"huhub"<[email protected]>;
Subject: Re: [p4lang/tutorials] Port Mirroring Exercise (#335)
Hi @huhub
In short, (1) you simply need to define a session X (that can be any number), when specifying your clone action along with the CloneType. Then, (2) you will need to assign the corresponding outports to session X, that where you would like to send the cloned packets to using the control plan/ CLI.
You may refer to my commit for further details.
I have included a sample solution as well. I hope it helps! 😄
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi @jnfoster , can you review my proposed exercise (I have made some slight changes since the PR was opened) and possibly merge it? Thanks! |
I would like to propose an exercise to introduce the port mirroring features of P4 that involves the clone function/ extern, which many would probably find useful for many cases.