[pox-dev] Fields ignored due to unspecified aaa, bbb, ccc

Nan Zhu zhunanmcgill at gmail.com
Mon Dec 2 05:27:19 PST 2013


Hi, all  

I’m going to build a match object which only cares about nw_src and nw_dst

As the wiki says, I only need to wildcard other fields by setting them as None,  

I firstly build a match from from_packet, and then set the fields as None, however I always receive warnings like Fields ignored due to unspecified nw_src, nw_dst

I checked pox code

    for name in ofp_match_data.keys():
      if getattr(self,name) is None: continue
      if getattr(om,name) is not None: continue
      wcs.append(name)

    msg = msg + " ".join(wcs)


I’m confused by this part, when getattr(self, name) is not None, it will be put in the wcs….why?  

Thank you very much

Best,

--  
Nan Zhu
School of Computer Science,
McGill University



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.noxrepo.org/pipermail/pox-dev-noxrepo.org/attachments/20131202/58ed11bf/attachment.htm>


More information about the pox-dev mailing list