Add a new method ha_state_change to L3 agent extension

This is needed by VPNaaS agent extension and other advanced
services in case they support L3 HA router.

Change-Id: Idaa0e5914147f7cdc9966d022ac5c6ab0165966a
Depends-On: I70060a6cf129f9dbeae2bd100a64d7358f84e99a
This commit is contained in:
Cao Xuan Hoang 2017-10-18 09:58:36 +07:00
parent b718a497d5
commit 4ec3240db7
2 changed files with 14 additions and 0 deletions

View File

@ -51,3 +51,13 @@ class L3AgentExtension(extension.AgentExtension):
:param context: RPC context.
:param data: Router data.
"""
@abc.abstractmethod
def ha_state_change(self, context, data):
"""Change router state from agent extension.
Called on HA router state change.
:param context: rpc context
:param data: dict of router_id and new state
"""

View File

@ -0,0 +1,4 @@
---
features:
- |
A new abstract method ``ha_state_change`` has been added to ``L3AgentExtension``.