Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Implements cloning functionality.
Usage in P4RROT:
Clone([UdpDstPort.handle], table_name="clone_table", action_name="assign_clone")
Control Plane needs to fill the table and the clone-sessions. For example:
nikss-ctl clone-session create pipe 1 id 123
nikss-ctl clone-session add-member pipe 1 id 123 egress-port 2 instance 1 nikss-ctl clone-session add-member pipe 1 id 123 egress-port 3 instance 2 nikss-ctl clone-session get pipe 1 id 123
nikss-ctl table add pipe 1 ebpfIngress_clone_table action name ebpfIngress_assign_clone key 5555 data 123