[pox-dev] L2 and L3 calling from another
durga
c.vijaya.durga at gmail.com
Fri Nov 15 15:00:49 PST 2013
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 <amer7777 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20131116/cb912593/attachment-0001.htm>
More information about the pox-dev
mailing list