Hello,
I have removed the index  [i], but still nothing installed !!?

Best regards,

Eng Amer Alghadhban

COE

SANS-GCFW

CEH, SCNP, CCNA


From: amer7...@hotmail.com
To: murphy.mccau...@gmail.com; pox-dev@lists.noxrepo.org
Date: Mon, 23 Feb 2015 17:08:50 +0000
Subject: [pox-dev] Install a flow in for loop




hello,

i want to install a flow table like the following:
But it is not installing  
     for i in range(0,3):
        msg[i] = of.ofp_flow_mod()
        msg[i].idle_timeout = 100
        msg[i].hard_timeout = 120
        msg[i].match.eth_type = packet.IP_TYPE
        msg[i].match.eth_src = packet.src
        msg[i].match.eth_dst = packet.dst
        msg[i].match.ip_dst = dst[i]  # proactive port based ip
        msg[i].actions.append(of.ofp_action_output(port = i+1))
        msgs = str(msg).strip('[]')
        self.connection.send(msgs)

Best regards,

Eng Amer Alghadhban

COE

SANS-GCFW

CEH, SCNP, CCNA
                                                                                
  

Reply via email to