Fix vpn agent delete router error

Since commit 4bb78e8c215d24cd2fc9168e7bfbb47ceb89de3e pass a dict
for router_info instead of router_id, we need to changes in
our repo.

Change-Id: I6d7cc8472af8221a4cc05e759cc1bc6c62ce0e7c
Closes-Bug: #1825291
(cherry picked from commit 2bea568b4c)
This commit is contained in:
Dongcan Ye 2019-04-19 02:24:31 +00:00 committed by Dongcan Ye
parent 88bd17d1df
commit a758545cef
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class VPNAgent(l3_extension.L3AgentExtension):
def delete_router(self, context, data):
"""Handles router delete event"""
for device_driver in self.device_drivers:
device_driver.destroy_router(data)
device_driver.destroy_router(data['id'])
def ha_state_change(self, context, data):
"""Enable the vpn process when router transitioned to master.