On Sat, 18 Jan 2014 22:22:12 +0800
Shuoling Deng <mr.dengshuol...@gmail.com> wrote:

> Hello, Everyone.
> 
> In ryu/topology/swiches.py.
> 
>  there is a code snippet I don't understand the meaning clearly, just
> as follows:
> 
>>    @staticmethod
>>     def _drop_packet(msg):
>>         buffer_id = msg.buffer_id
>>         if buffer_id == msg.datapath.ofproto.OFP_NO_BUFFER:
>>             return
>>
>>         dp = msg.datapath
>>         # TODO:XXX
>>         if dp.ofproto.OFP_VERSION == ofproto_v1_0.OFP_VERSION:
>>             dp.send_packet_out(buffer_id, msg.in_port, [])
>>         else:
>>             LOG.error('cannot drop_packet. unsupported version. %x',
>>
>>                       dp.ofproto.OFP_VERSION)
>>
> 
> In the logic of "else" for none-OF_VERSION_1.0:
>         WHY does this program snippet call  "Log.error()" and show the
> message of "cannot drop packet, unsupported version."?
> Is it a Bug?

I guess it's a 'not-implemented-yet' bug.

> BTW, when I use the CPQD1.3 switches to have a test of My App, My
> Console print these error message frequently. So I issue these
> question.

------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to