Thank you
I have solved this problem but I am facing another :)

with this flow match i am receiving the down error

    match = of.ofp_match()
    msg.match.eth_type = packet.IP_TYPE
    msg.match.nw_src = packet.next.srcip
    msgd.idle_timeout = idle_timeout
    msgd.hard_timeout = hard_timeout
    msgd.priority = priority
    msgd.actions.append(of.ofp_action_nw_addr.set_dst(packet.next.dstip))
    msgd.actions.append(of.ofp_action_output(port = lport))
    msgd.buffer_id = buf
    core.openflow.sendToDPID(dstsw, msgd)

AttributeError: 'str' object has no attribute 'IP_TYPE'

Thank you

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:53:57 +0000
Subject: Re: [pox-dev] Install a flow in for loop




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