[P4-dev] P4 CLI for P4_2016

Garegin Grigoryan grigorg at clarkson.edu
Tue Aug 29 10:29:52 EDT 2017


Thank you, it worked!

 I ran these commands:
* p4c-bm2-ss -o ipv4_forward.json ipv4_forward.p4
* sudo ~/p4lang/tutorials/examples/veth_setup.sh
* sudo simple_switch --log-console --dump-packet-data 64 -i 0 at veth0 -i
1 at veth2 ipv4_forward.json

Now, how can I run mininet on this simple_switch using *.json file
describing the topology?

On Mon, Aug 28, 2017 at 10:14 PM, Nate Foster <jnfoster at cs.cornell.edu>
wrote:

> And if you forget the precise incantations (as I always do), typing "help"
> at the "RuntimeCmd:" prompt will list all commands and "help <cmd>" will
> give you details on each command.
>
> -N
>
> On Mon, Aug 28, 2017 at 8:51 PM, Vladimir Gurevich <vladimir.gurevich@
> barefootnetworks.com> wrote:
>
>> Hello Garegin,
>>
>> For general guidance on running the model and the CLI I would recommend
>> looking at the P4 Tutorial Presentation  http://p4.org/wp-content/uplo
>> ads/2017/05/p4_d2_2017_p4_16_tutorial.pdf, specifically slides 81-88.
>>
>> Happy hacking,
>> Vladimir
>>
>>
>> On Mon, Aug 28, 2017 at 4:42 PM, Garegin Grigoryan <grigorg at clarkson.edu>
>> wrote:
>>
>>> Hello,
>>>
>>> I am playing with p4 code from this tutorial: https://github.com/p
>>> 4lang/tutorials/tree/master/P4D2_2017/exercises/ipv4_forward
>>>
>>> How can I run P4 CLI while the P4 program is in operation? I want to run
>>> the following commands in the CLI while the switch is operating:
>>>
>>> - table_add  ipv4_lpm <action name> <match fields> => <action
>>> parameters> [priority]
>>> - table_delete  ipv4_lpm <entry handle>
>>> - table_dump ipv4_lpm.
>>>
>>> I am sorry if the question has been answered before, I couldn't find it
>>> in my emails.
>>>
>>>
>>>
>>> --
>>> Sincerely,
>>> Garegin Grigoryan
>>>
>>> _______________________________________________
>>> P4-dev mailing list
>>> P4-dev at lists.p4.org
>>> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>>>
>>
>>
>>
>> --
>> *Vladimir Gurevich*
>>
>> *Barefoot Networks*
>> *Technical Lead, Customer Engineering*
>> Email: vag at barefootnetworks.com
>> Phone: (408) 833-4505
>>
>>
>> _______________________________________________
>> P4-dev mailing list
>> P4-dev at lists.p4.org
>> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>>
>
>


-- 
Sincerely,
Garegin Grigoryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170829/11db7ef4/attachment-0002.html>


More information about the P4-dev mailing list