[P4-dev] An interactive shell for P4Runtime

hemant at mnkcg.com hemant at mnkcg.com
Wed Apr 17 09:54:37 EDT 2019



Counters would be useful.  Digest messages from the server to client would be useful after that.







From: P4-dev <p4-dev-bounces at lists.p4.org> On Behalf Of Antonin Bas via P4-dev
Sent: Tuesday, April 16, 2019 11:01 PM
To: p4-dev <p4-dev at lists.p4.org>
Subject: [P4-dev] An interactive shell for P4Runtime


Hi all,


Just wanted to let everyone know that I have been working on an interactive shell for P4Runtime based on IPython. I have pushed the first version here: https://github.com/p4lang/p4runtime-shell

It is really meant to be a shell, and not a CLI. It may be less intuitive than the bmv2 runtime_CLI to use but it is meant to be more powerful and to enable a more programmatic approach.


It is still very much a work in progress, but of course I appreciate any early feedback.


It currently supports:

 * establishing a stream channel with the P4Runtime server

 * retrieving the P4Info from the server (or alternatively it can push a new forwarding pipeline config)

 * inspecting the P4Info

 * Table entry programming


Let me know if some features (e.g. reading counters?) are important to you and maybe they can be prioritized.






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20190417/8deae82e/attachment.html>

More information about the P4-dev mailing list