Hi,

i am trying to send a packet through the send_openflow_packet method, to send the packet i do some processing on dict saved as a global variable on the form dict {key:[v1,v2],v3,v4}. When i send the packet the first time everything goes well, but after the second time, the dict form changes and it becomes dict {key:[v1,v2]} which rises an index error. Here is a snippet of the sending packet code:


def sendPADI(self):
        ppp_padi = PPPoE()
        ppp_padi.type=1
        ppp_padi.code =9
        print "the ppp packet is "
        print str(ppp_padi.type)
        eth =Ethernet()
        eth.src        = "\x3e\xde\x23\x4b\x97\x48"
eth.dst = "\x5a\x9d\xd0\x2f\x13\x02" # "\xff\xff\xff\xff\xff\xff"
        eth.type        = 34915
        eth.data = ppp_padi
        #return eth
self.send_openflow_packet(dpid, str(eth), [[openflow.OFPAT_OUTPUT [0,port]]],openflow.OFPP_NONE)
where dpid , port and mac addresses are retrieved from the dict.

Could it be a bug in the send_openflow_packet method.
Any help is appreciated.
Regards,
Karim
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev

Reply via email to