From 29f4ea8e96d1bc3dc5e3ada46ce02e15fa85e5e4 Mon Sep 17 00:00:00 2001
From: Aleksandr Kurbatov <aleksandr.kurbatov@GL1342.local>
Date: Wed, 3 Jul 2024 18:34:12 +0100
Subject: [PATCH] Move 'restore_isis_metric'

Change sequence of steps:
'restore_isis_metric' after 'update_subscription' in order to target the
correct set of nodes (remaining + new).
---
 gso/workflows/iptrunk/migrate_iptrunk.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gso/workflows/iptrunk/migrate_iptrunk.py b/gso/workflows/iptrunk/migrate_iptrunk.py
index 9cb33c89..15579738 100644
--- a/gso/workflows/iptrunk/migrate_iptrunk.py
+++ b/gso/workflows/iptrunk/migrate_iptrunk.py
@@ -834,12 +834,12 @@ def migrate_iptrunk() -> StepList:
         >> lso_interaction(check_ip_trunk_connectivity)
         >> lso_interaction(deploy_new_isis)
         >> lso_interaction(check_ip_trunk_isis)
-        >> should_restore_isis_metric(confirm_continue_restore_isis)
-        >> should_restore_isis_metric(lso_interaction(restore_isis_metric))
         >> lso_interaction(delete_old_config_dry)
         >> lso_interaction(delete_old_config_real)
         >> update_ipam
         >> update_subscription_model
+        >> should_restore_isis_metric(confirm_continue_restore_isis)
+        >> should_restore_isis_metric(lso_interaction(restore_isis_metric))
         >> old_side_is_nokia(netbox_remove_old_interfaces)
         >> new_side_is_nokia(netbox_allocate_new_interfaces)
         >> resync
-- 
GitLab