Skip to content

Commit

Permalink
switch back to old
Browse files Browse the repository at this point in the history
  • Loading branch information
kthare10 committed Sep 9, 2024
1 parent cdb50b4 commit 1c3b387
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions fabric_cf/orchestrator/core/orchestrator_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,14 +513,9 @@ def modify_slice(self, *, token: str, slice_id: str, slice_graph: str) -> List[d
slice_object.add_reservations()

# Slice has sliver modifications - add/remove/update for slivers requiring AM updates
graph_id = slice_obj.get_graph_id()
modify_state = slice_object.has_sliver_updates_at_authority()
if modify_state or slice_object.has_topology_diffs(topology_diff=topology_diff):
FimHelper.delete_graph(graph_id=slice_obj.get_graph_id())
graph_id = asm_graph.get_graph_id()
else:
if asm_graph:
asm_graph.delete_graph()
FimHelper.delete_graph(graph_id=slice_obj.get_graph_id())
graph_id = asm_graph.get_graph_id()

slice_obj.graph_id = graph_id
config_props = slice_obj.get_config_properties()
Expand Down

0 comments on commit 1c3b387

Please sign in to comment.