[P4-dev] switch.p4 - how to ping

Avinash Herle avinash.herle at barefootnetworks.com
Thu Apr 20 13:12:09 EDT 2017

Hi Regis,

Here are a few sample test scripts
<https://github.com/p4lang/switch/tree/master/tests/ntf-tests> available in
the p4lang switch <https://github.com/p4lang/switch> repo. Follow the
instructions to run switch ntf-tests. You can use the tests as reference to
create your own tests with different topologies as well.


On Thu, Apr 20, 2017 at 4:42 AM, Regis Martins <regisftm at gmail.com> wrote:

> Hiya fellas!
> I'm new with P4 and I'm trying to make a very simple scenario to work:
> h1>----<sw1>----<h2
> My mission now is, from host 1, ping host 2. (but using switch.p4)
> I cloned, at first, the behavioral-model and the p4c-bm and ran the
> l2_switch, and after configuring the correct mc_mgrp, I could ping h1 to h2.
> Then, I cloned the switch (switch.p4), compiled it with no erros and tried
> to run it.
> It seems fine, but no ping.
> I also tried cloning the whole p4factory, same result.
> I can imagine that I'm missing a lot of information here. But, please, let
> me know what else is important and I will provide.
> Thanks first!
> *Regis Martins*
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170420/2eec2b8f/attachment-0002.html>

More information about the P4-dev mailing list