Hello All,

I am having a problem with installing flow entry
I am getting error:  Fields ignored due to unspecified prerequisites
DEBUG:libopenflow_01:Problematic match: ofp_match
  wildcards:
nw_tos|tp_dst|dl_dst|dl_src|in_port|dl_vlan_pcp|nw_proto|dl_vlan|tp_src|dl_type|nw_src(/0)
(1100000010000011111111 = 3020ff)
  nw_dst: 10.0.0.10

Does anyone have any idea why this is happening ?

I am using the following code.


from pox.core import core
import pox.openflow.libopenflow_01 as of
import pox.lib.packet as pkt
from pox.lib.addresses import EthAddr,IPAddr
import time

log= core.getLogger()


class Icmp(object):
        def __init__(self,connection):
                core.openflow.addListeners(self)
                self.connection=connection

        def _handle_PacketIn(self,event):
                packet=event.parsed
                log.debug(packet)

                if packet.find("arp"):
                        log.debug("ARP Message Received")

                if packet.find("icmp"):
                        log.debug("Icmp message received")

        def _handle_ConnectionUp(self,event):

                #Install Flows

                msg = of.ofp_flow_mod()
                msg.match.nw_dst = IPAddr("10.0.0.10")
                msg.actions.append(of.ofp_action_output(port = 3))
                self.connection.send(msg)
                log.debug("Installing flow for future packet processing")


def launch():

        def start_switch(event):
                log.debug("Controlling %s"%(event.connection))
                Icmp(event.connection)
        core.openflow.addListenerByName("ConnectionUp",start_switch)

Thanks,
Sandesh Shrestha

Reply via email to