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

Regis Martins regisftm at gmail.com
Thu Apr 20 15:04:04 EDT 2017


Thank you Avinash!! I will try it and let you know! 

Regards,

Regis Martins

Sent via iPhone... on somewhere in this planet.

> On 20 Apr 2017, at 14:12, Avinash Herle <avinash.herle at barefootnetworks.com> wrote:
> 
> Hi Regis,
> 
> Here are a few sample test scripts available in the 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.
> 
> Regards,
> Avinash
> 
>> 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/a69a27a0/attachment-0002.html>


More information about the P4-dev mailing list