Currently, default 'vrrp_statistics' is zero. Thereby TimerEventSender() kicks 
VRRPRouter._EventStatisticsOut() without waiting. Since CPU usage will be 100%, 
this is an unsuitable default value.

Signed-off-by: Satoshi Kobayashi <[email protected]>
---
 ryu/services/protocols/vrrp/event.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ryu/services/protocols/vrrp/event.py 
b/ryu/services/protocols/vrrp/event.py
index e339a96..1658c40 100644
--- a/ryu/services/protocols/vrrp/event.py
+++ b/ryu/services/protocols/vrrp/event.py
@@ -120,7 +120,7 @@ class VRRPConfig(object):
                  priority=vrrp.VRRP_PRIORITY_BACKUP_DEFAULT, ip_addresses=None,
                  advertisement_interval=vrrp.VRRP_MAX_ADVER_INT_DEFAULT_IN_SEC,
                  preempt_mode=True, preempt_delay=0, accept_mode=False,
-                 statistics_interval=0, resource_id=None):
+                 statistics_interval=1, resource_id=None):
         # To allow version and priority default
         assert vrid is not None
         assert ip_addresses is not None
-- 
1.7.1


------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable 
security intelligence. It gives you real-time visual feedback on key
security issues and trends.  Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to