[P4-dev] Bug within Mininet Example 1sw_demo

Antonin Bas antonin at barefootnetworks.com
Tue Jan 30 13:39:35 EST 2018


Hi,

I've run into this issue myself. It is a Mininet issue on Ubuntu I believe,
and I usually just ignore it (it doesn't seem to have any adverse
consequences in my specific case).
I think the issue goes away when one installs Mininet from source, which is
what we currently do when we build VMs for P4 developers day events (see
https://github.com/p4lang/tutorials/pull/69).
Someone else may have tried to track down this issue and may be able to
give a more definitive answer. Of course, you can always bring it up with
the Mininet community.

Thanks,

Antonin

On Tue, Jan 30, 2018 at 3:41 AM, He, Mu <mu.he at tum.de> wrote:

> Hi,
>
>
>
> When I tried the Mininet integration code example 1sw_demo.py, everything
> went smoothly, except closing the Mininet CLI.
>
> After I typed in “exit” in the CLI, I got the following error messages.
>
> Traceback (most recent call last):
>
>   File "1sw_demo.py", line 114, in <module>
>
>     main()
>
>   File "1sw_demo.py", line 110, in main
>
>     net.stop()
>
>   File "build/bdist.linux-x86_64/egg/mininet/net.py", line 574, in stop
>
>   File "build/bdist.linux-x86_64/egg/mininet/link.py", line 506, in stop
>
>   File "build/bdist.linux-x86_64/egg/mininet/link.py", line 499, in delete
>
>   File "build/bdist.linux-x86_64/egg/mininet/link.py", line 205, in delete
>
>   File "build/bdist.linux-x86_64/egg/mininet/node.py", line 441, in
> delIntf
>
> KeyError: 'eth0'
>
>
>
> I try to track down the error, and it looks like the interface of P4Host
> is the one with name “eth0”. However, I am not able to fix this bug.
>
> Does anyone experience the same error? How do you fix it?
>
>
>
> Best regards,
>
>
>
> _________________________________________________
>
> Mu He
>
> Chair of Communication Networks
>
> Technische Universität München
>
> Arcisstr. 21, 80333 München
> <https://maps.google.com/?q=Arcisstr.+21,+80333+M%C3%BCnchen&entry=gmail&source=g>
>
> Phone: +49 89 289 23505 <+49%2089%2028923505>
>
>
>
> Mailto: mu.he at tum.de
>
> Web: www.lkn.ei.tum.de
>
>
>



-- 
Antonin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20180130/3507b7b5/attachment-0002.html>


More information about the P4-dev mailing list