Closed TLDart closed 1 year ago
Did you configure the cloning session with runtime APIs? It doesn't look that way.
Thank you for the hasty response, I indeed have not performed any configuration of that sort. Is there document or resource that shows how to do that? Best regards, Duarte
That depends on what API you are using.
Since you seem to be using the p4lang tutorials as a starting point, try looking for clone_session_entries
in the tutorials repo.
Good afternoon,
Indeed all I needed to do was to configure the mirror session.
For this I used
mirroring_add <clone_id> <egress_port>
on the desired switch.
On a quick note before closing the issue, is there any document that lists all the _switchcli commands?
Best regards, Duarte.
There is a document that lists them all, but it only documents some of them, mainly due to lack of time/interest/knowledge in people wanting to document the rest at a similar level of detail (if you want to add documentation to any of them in this file, go for it!): https://github.com/p4lang/behavioral-model/blob/main/docs/runtime_CLI.md
You can get a list of all commands and a brief description of its behavior and the parameters it takes by typing "help" or "help simple_switch_CLI
.
Hello, I am trying to implement a simple example of packet cloning but the clone primitive does not seem to work.
Regarding my testing environment:
Checking the log file (which I am going to only present the useful parts), after using the clone primitive, the cloning operation is started, but the packet never reaches the switch (furthermore, no [.1 ] is ever listed.
When compared to i2e log example, after the line "Cloning packet at ingress", a new packet is processed, numbered.1 , which does not happen in my logs either.
I was wondering if I am doing something wrong, if there is a problem on my end, or if it is just a bug.
Best regards, Duarte
Files
Topology
clone.p4
Logs (for switch 2)