Skip to content

Commit

Permalink
Use HTTP interface for bulk flow update during link down
Browse files Browse the repository at this point in the history
  • Loading branch information
Ktmi committed Dec 18, 2024
1 parent ef0596e commit 9cdd0d9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 9cdd0d9

Please sign in to comment.