mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-24 10:01:24 +01:00
Merge pull request #15 from nttmcl/apgw-vrrp-jira224
AFS 224: vrrp: support preempt_delay change config
This commit is contained in:
commit
6774eea291
@ -55,11 +55,12 @@ def vrrp_list(app, instance_name=None):
|
||||
|
||||
def vrrp_config_change(app, instance_name,
|
||||
priority=None, advertisement_interval=None,
|
||||
preempt_mode=None, accept_mode=None):
|
||||
preempt_mode=None, accept_mode=None,
|
||||
preempt_delay=None):
|
||||
"""change configuration of an instance.
|
||||
None means no change.
|
||||
"""
|
||||
config_change = vrrp_event.EventVRRPConfigChangeRequest(
|
||||
instance_name, priority, advertisement_interval,
|
||||
preempt_mode, accept_mode)
|
||||
preempt_mode, preempt_delay, accept_mode)
|
||||
return app.send_event(vrrp_event.VRRP_MANAGER_NAME, config_change)
|
||||
|
||||
@ -200,8 +200,12 @@ class RpcVRRPManager(app_manager.RyuApp):
|
||||
|
||||
priority = config_values.get('priority')
|
||||
interval = config_values.get('advertisement_interval')
|
||||
preempt_mode = config_values.get('preempt_mode')
|
||||
preempt_delay = config_values.get('preempt_delay')
|
||||
vrrp_api.vrrp_config_change(self, instance_name, priority=priority,
|
||||
advertisement_interval=interval)
|
||||
advertisement_interval=interval,
|
||||
preempt_mode=preempt_mode,
|
||||
preempt_delay=preempt_delay)
|
||||
return {}
|
||||
|
||||
def _list(self, msgid, params):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user