hello, is it really from pox.*forearding*.l2_multi import * and not 'from pox.forwarding.l2_multi import * also, dpid is an attribute of event, I think you can use event.dpid ==1, not sure if parsed packet has an attribute of dpid . Please use a debug / print to check value of p.dpid
Cheers! Durga On Sat, Nov 16, 2013 at 5:17 AM, Amer <amer7...@hotmail.com> wrote: > Hello, > > > I want to create a handle packetin method, if the incoming packet is from > specific switch run l2 if it from another run l3 > What I did > > from pox.forearding.l2_multi import * > > def H_P (event): > p = event.parsed > If (p.dpid == "1"): > sw= Switch() > sw._handle_PacketIn(event) > Else: > #. L3.learning > > I have received this error: > NoneType object has no Len() > > Pox.py l2l3 openflow.discovery > > Any help is appreciated > > Best regards, > Amer >