nsg-ethz/p4-learning

raise IndexError("Layer [%s] not found" % lname) IndexError: Layer [None] not found

Safaamahrach opened this issue · 5 comments

salam'
I m knew with P4-learning repo.
The controller program of '04-L2_Learning' exercice is well running, and the broadcast table is well populated.
But when I send a ping between hosts like below:
mininet> h3 ping h1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=75.2 ms
64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=12.5 ms
^C
--- 10.0.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 12.514/43.881/75.249/31.368 ms
mininet>

I get an error in the controller API:
Error
Thanks for your comments

And nothing is populated in smac and dmac tables

image

Are you using the p4-learning VM? I just tried and it works for me.

From the solutions folder:

sudo p4run --config p4app_cpu.json

In a second window:

sudo python l2_learning_controller.py s1 cpu

Are you using the digest or the cpu version? What is the scapy version you have installed?

salam'
Thanks for your reply
I m using my own VM

Operating System: Ubuntu 16.04
Python Version Used: Python 2.7
spaCy Version Used: 2.2.0-1

I want to know if I have to passe to python3 or it s ok with python2

Works with our VM.