[P4-discuss] Unable to Demo P4 tutorials

Antonin Bas antonin at barefootnetworks.com
Sat Apr 30 19:37:34 EDT 2016


Adding back mailing list.

Hi Vishal,

As we can see from the output, the P4 compiler, as well as simple_switch,
are not accessible.
You should not be observing this issue if you follow the README
instructions. You may have to edit this file (
https://github.com/p4lang/tutorials/blob/master/examples/env.sh) to point
to the locations where you cloned the behavioral-model repository and the
p4c-bm repository.

Thanks,

Antonin

On Fri, Apr 29, 2016 at 9:43 PM, vishal sr <imvishalsr at gmail.com> wrote:

> Hello Antonin,
> As i previously stated, i have problems running the copy_to_cpu demo.
>
> Below is the output of run_switch.sh command.
>
> run_switch.sh: line 32:
> /home/vishal/tutorials/examples/../../p4c-bmv2/p4c_bm/__main__.py: No such
> file or directory
> sudo:
> /home/vishal/tutorials/examples/../../bmv2/targets/simple_switch/simple_switch:
> command not found
> run_switch.sh: line 39:
> /home/vishal/tutorials/examples/../../bmv2/targets/simple_switch/sswitch_CLI:
> No such file or directory
> READY!!!
> run_switch.sh: line 41: fg: job has terminated
>
>
> Thank you,
> Vishal S
>
>
> On Apr 29, 2016, at 6:05 PM, Antonin Bas <antonin at barefootnetworks.com>
> wrote:
>
> Hi Vishal,
>
> This is more a question for the p4-dev mailing list, as it concerns the P4
> development tools.
>
> I just tested on my machine with the latest version of everything
> (behavioral model, p4c-bm, tutorials) and everything was working fine.
> Maybe if you send the output of the run_switch.sh command, we will be able
> to help you debug. I have observed that sometimes, the first time you run
> run_switch.sh it fails, because libtool takes too long to load the shared
> libraries for simple_switch and the script times out.
> You can also edit run_switch.sh to add the --log-console option to
> simple_switch. It will tell you if the packets are actually received and
> processed by the switch.
>
> Best,
>
> Antonin
>
> On Thu, Apr 28, 2016 at 7:54 PM, vishal sr <imvishalsr at gmail.com> wrote:
>
>> Hello,
>> I want to run the copy_to_cpu p4 program. I have done with all the
>> necessary steps to run the demo and also ran the veth_setup. After
>> configuring the switch and made listener ready, i could send one packet
>> with send_one.py (Packet contents are displayed) but unable to receive them
>> with receiver.py (packet is not displayed). I am getting the following
>> warning so not sure whether the packet is transmitted.
>>
>> vishal at ubuntu:~/tutorials/examples/copy_to_cpu$ sudo python send_one.py
>> WARNING: No route found for IPv6 destination :: (no default route?)
>> 0000   AA BB CC DD EE FF 00 0C  29 4B CB 11 08 00 45 00   ........)K....E.
>> 0010   00 3B 00 01 00 00 40 06  1E 89 C0 A8 90 81 0A 00   .;.... at .........
>> 0020   01 0A 00 14 00 50 00 00  00 00 00 00 00 00 50 02   .....P........P.
>> 0030   20 00 65 CB 00 00 61 61  61 61 61 61 61 61 61 61    .e...aaaaaaaaaa
>> 0040   61 61 61 61 61 61 61 61  61                        aaaaaaaaa
>> .
>> Sent 1 packets.
>>
>> vishal at ubuntu:~/tutorials/examples/copy_to_cpu$ sudo python receive.py
>> WARNING: No route found for IPv6 destination :: (no default route?)
>>
>> Sincerely,
>> Vishal S
>> _______________________________________________
>> P4-discuss mailing list
>> P4-discuss at lists.p4.org
>> http://lists.p4.org/mailman/listinfo/p4-discuss_lists.p4.org
>>
>
>
>
> --
> Antonin
>
>
>


-- 
Antonin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-discuss_lists.p4.org/attachments/20160430/31c0a67a/attachment-0002.html>


More information about the P4-discuss mailing list