From 9cdd0d99aee30f35144cb9f92a879927f7502310 Mon Sep 17 00:00:00 2001 From: David Ramirez Date: Wed, 18 Dec 2024 15:19:43 -0500 Subject: [PATCH] Use HTTP interface for bulk flow update during link down --- main.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 0fa495c2..04e55584 100755 --- a/main.py +++ b/main.py @@ -34,7 +34,8 @@ emit_event, get_vlan_tags_and_masks, map_evc_event_content, merge_flow_dicts, prepare_delete_flow, - send_flow_mods_event) + send_flow_mods_event, + send_flow_mods_http) # pylint: disable=too-many-public-methods @@ -848,7 +849,7 @@ def execute_swap_to_failover(self, event_contents, install_flows): self.controller, "failover_link_down", content=deepcopy(event_contents) ) - send_flow_mods_event( + send_flow_mods_http( self.controller, install_flows, "install" @@ -877,7 +878,7 @@ def execute_clear_old_path( delete_flows ): """Process changes needed to commit clearing the old path""" - send_flow_mods_event( + send_flow_mods_http( self.controller, delete_flows, 'delete' @@ -911,7 +912,7 @@ def prepare_undeploy(self, evc: EVC): def execute_undeploy(self, evcs: list[EVC], remove_flows): """Process changes needed to commit an undeploy""" - send_flow_mods_event( + send_flow_mods_http( self.controller, remove_flows, 'delete'