Hello

Maybe you can try


dhcp_packet = pkt.get_protocol(dhcp.dhcp)

if not dhcp_packet:

    # not dhcp packet

    return

# ... handling dhcp packet


2015-10-07 15:40 GMT+08:00 Shuoling Deng <mr.dengshuol...@gmail.com>:

> it looks like parse every PAKCET-IN ?
>
> would this cause heavy load to Controller.
>
>
> On Wed, Oct 7, 2015 at 12:52 AM, alyosha <tan...@gmail.com> wrote:
>
>> Nice to e-meet you. My name is Okano Yuu.
>> I created a new ryu application, simple_dhcp_server for DHCPServer.
>>
>> I tested this application with 2 VMs, and this application worked well.
>> VM1... DHCPClient
>> VM2... DHCPServer(Ryu & OpenVSwitch)
>>
>> I set  one flowentry on OpenVSwitch  "ovs-ofctl add-flow br-test
>> udp,actions=Controller".
>>
>> This application supports pep8.
>> Check this code and comments please.
>>
>> Thanks!
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> Ryu-devel mailing list
>> Ryu-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>
>>
>
>
> --
> Shuoling Deng
> Dept. of Computer Science and Technology
> Xi'an Jiaotong University
> Xi'an, 710049, P.R. China
>
>
> ------------------------------------------------------------------------------
> Full-scale, agent-less Infrastructure Monitoring from a single dashboard
> Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
> Physical-Virtual-Cloud Infrastructure monitoring from one console
> Real user monitoring with APM Insights and performance trend reports
> Learn More
> http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
> _______________________________________________
> Ryu-devel mailing list
> Ryu-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>


-- 
Yi Tseng (a.k.a Takeshi)
Taiwan National Chiao Tung University
Department of Computer Science
W2CNLab

http://blog.takeshi.tw
------------------------------------------------------------------------------
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports 
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911&iu=/4140
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to