Skip to content
Snippets Groups Projects
Verified Commit 4de17b34 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

update all workflows to use the new pattern for pp_interaction

parent 1db68edf
Branches
Tags
1 merge request!96Make use of new callback step for external provisioning
This commit is part of merge request !96. Comments created here will be created in the context of that merge request.
...@@ -344,12 +344,12 @@ def create_iptrunk() -> StepList: ...@@ -344,12 +344,12 @@ def create_iptrunk() -> StepList:
>> initialize_subscription >> initialize_subscription
>> get_info_from_ipam >> get_info_from_ipam
>> reserve_interfaces_in_netbox >> reserve_interfaces_in_netbox
>> pp_interaction(provision_ip_trunk_iface_dry, 3) >> pp_interaction(provision_ip_trunk_iface_dry, "Provision IPtrunk interface [DRY RUN]")
>> pp_interaction(provision_ip_trunk_iface_real, 3) >> pp_interaction(provision_ip_trunk_iface_real, "Provision IPtrunk interface [FOR REAL]")
>> pp_interaction(check_ip_trunk_connectivity, 2, False) >> pp_interaction(check_ip_trunk_connectivity, "Check IPtrunk connectivity")
>> pp_interaction(provision_ip_trunk_isis_iface_dry, 3) >> pp_interaction(provision_ip_trunk_isis_iface_dry, "Provision ISIS interface [DRY RUN]")
>> pp_interaction(provision_ip_trunk_isis_iface_real, 3) >> pp_interaction(provision_ip_trunk_isis_iface_real, "Provision ISIS interface [FOR REAL]")
>> pp_interaction(check_ip_trunk_isis, 2, False) >> pp_interaction(check_ip_trunk_isis, "Validate IPtrunk")
>> allocate_interfaces_in_netbox >> allocate_interfaces_in_netbox
>> set_status(SubscriptionLifecycle.ACTIVE) >> set_status(SubscriptionLifecycle.ACTIVE)
>> resync >> resync
......
...@@ -506,17 +506,17 @@ def migrate_iptrunk() -> StepList: ...@@ -506,17 +506,17 @@ def migrate_iptrunk() -> StepList:
>> store_process_subscription(Target.MODIFY) >> store_process_subscription(Target.MODIFY)
>> unsync >> unsync
>> reserve_interfaces_in_netbox >> reserve_interfaces_in_netbox
>> pp_interaction(set_isis_to_90000, 3) >> pp_interaction(set_isis_to_90000, "Set ISIS metric to 90.000")
>> pp_interaction(disable_old_config_dry, 3) >> pp_interaction(disable_old_config_dry, "Disable old configuration [DRY RUN]")
>> pp_interaction(disable_old_config_real, 3) >> pp_interaction(disable_old_config_real, "Disable old configuration [FOR REAL]")
>> pp_interaction(deploy_new_config_dry, 3) >> pp_interaction(deploy_new_config_dry, "Deploy new configuration [DRY RUN]")
>> pp_interaction(deploy_new_config_real, 3) >> pp_interaction(deploy_new_config_real, "Deploy new configuration [FOR REAL]")
>> confirm_continue_move_fiber >> confirm_continue_move_fiber
>> pp_interaction(deploy_new_isis, 3) >> pp_interaction(deploy_new_isis, "Deploy new ISIS interface")
>> confirm_continue_restore_isis >> confirm_continue_restore_isis
>> pp_interaction(restore_isis_metric, 3) >> pp_interaction(restore_isis_metric, "Restore original ISIS metric")
>> pp_interaction(delete_old_config_dry, 3) >> pp_interaction(delete_old_config_dry, "Delete old configuration [DRY RUN]")
>> pp_interaction(delete_old_config_real, 3) >> pp_interaction(delete_old_config_real, "Delete old configuration [FOR REAL]")
>> update_ipam >> update_ipam
>> update_subscription_model >> update_subscription_model
>> update_netbox >> update_netbox
......
...@@ -62,8 +62,8 @@ def modify_isis_metric() -> StepList: ...@@ -62,8 +62,8 @@ def modify_isis_metric() -> StepList:
>> store_process_subscription(Target.MODIFY) >> store_process_subscription(Target.MODIFY)
>> unsync >> unsync
>> modify_iptrunk_subscription >> modify_iptrunk_subscription
>> pp_interaction(provision_ip_trunk_isis_iface_dry, 3) >> pp_interaction(provision_ip_trunk_isis_iface_dry, "Provision ISIS interface [DRY RUN]")
>> pp_interaction(provision_ip_trunk_isis_iface_real, 3) >> pp_interaction(provision_ip_trunk_isis_iface_real, "Provision ISIS interface [FOR REAL]")
>> resync >> resync
>> done >> done
) )
...@@ -279,8 +279,8 @@ def modify_trunk_interface() -> StepList: ...@@ -279,8 +279,8 @@ def modify_trunk_interface() -> StepList:
>> unsync >> unsync
>> modify_iptrunk_subscription >> modify_iptrunk_subscription
>> update_interfaces_in_netbox >> update_interfaces_in_netbox
>> pp_interaction(provision_ip_trunk_iface_dry, 3) >> pp_interaction(provision_ip_trunk_iface_dry, "Provision IPtrunk interface [DRY RUN]")
>> pp_interaction(provision_ip_trunk_iface_real, 3) >> pp_interaction(provision_ip_trunk_iface_real, "Provision IPtrunk interface [FOR REAL")
>> allocate_interfaces_in_netbox >> allocate_interfaces_in_netbox
>> resync >> resync
>> done >> done
......
...@@ -83,9 +83,9 @@ def terminate_iptrunk() -> StepList: ...@@ -83,9 +83,9 @@ def terminate_iptrunk() -> StepList:
config_steps = ( config_steps = (
init init
>> pp_interaction(set_isis_to_90000, 3) >> pp_interaction(set_isis_to_90000, "Set ISIS metric to 90.000")
>> pp_interaction(deprovision_ip_trunk_dry, 3) >> pp_interaction(deprovision_ip_trunk_dry, "Deprovision IPtrunk [DRY RUN]")
>> pp_interaction(deprovision_ip_trunk_real, 3) >> pp_interaction(deprovision_ip_trunk_real, "Deprovision IPtrunk [FOR REAL]")
) )
ipam_steps = init >> deprovision_ip_trunk_ipv4 >> deprovision_ip_trunk_ipv6 ipam_steps = init >> deprovision_ip_trunk_ipv4 >> deprovision_ip_trunk_ipv6
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment