On Jun 12, 2013, at 5:32 AM, hansinie vitharana wrote:
> Hi,
>
> I am trying to add flows to the POX controller and I want to give following
> commands..
>
> POX>from pox.core import core
>
> POX>import pox.openflow.libopenflow_01 as of
> POX>msg = of.ofp_flow_mod()
> POX>msg.priority = 10
> POX>msg.match.dl_type = 0x800
> POX>msg.match.nw_src = IPAddr("10.0.0.1")
>
> when I give this command I get the error "NameError: name 'IPAddr' is not
> defined"
>
> Am I missing anything here ?
Yes.
from pox.lib.addresses import IPAddr
-- Murphy