From 1b62801f49d8b6c8529328a7518c1cc1285b4b36 Mon Sep 17 00:00:00 2001 From: Satoshi Kobayashi Date: Fri, 31 Jan 2014 11:24:31 +0900 Subject: [PATCH] vrrp: fix busy timer by the default parameter 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 Signed-off-by: FUJITA Tomonori --- ryu/services/protocols/vrrp/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ryu/services/protocols/vrrp/event.py b/ryu/services/protocols/vrrp/event.py index e339a96a..79cacafe 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=30, resource_id=None): # To allow version and priority default assert vrid is not None assert ip_addresses is not None