From dbd9324d41be68b2edcd22a0b352c64d9d6ab8e9 Mon Sep 17 00:00:00 2001 From: Charlie Kim Date: Fri, 28 Jun 2019 00:20:03 -0400 Subject: [PATCH] Update os_upgrade_ztip_design.md for legibility. --- R1906/os_upgrade_ztp_design.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/R1906/os_upgrade_ztp_design.md b/R1906/os_upgrade_ztp_design.md index 2469916..e0f5aa3 100644 --- a/R1906/os_upgrade_ztp_design.md +++ b/R1906/os_upgrade_ztp_design.md @@ -34,6 +34,7 @@ Greenfield fabric discovery page- job request - /execute-job +```json { "job_template_fq_name": ["default-global-system-config", "fabric_onboard_template"], "input": { @@ -70,6 +71,7 @@ job request - "os_version": "18.1R3" } } +``` # 7. Notification impact Three new device states will be added, "IMAGE_UPGRADING", "IMAGE_UPGRADE_SUCCESSFUL", "IMAGE_UPGRADE_FAILED" @@ -81,6 +83,7 @@ None GREENFIELD- Schema- Fabric onboard input schema to accomodate OS version input. +```json { "input_schema": { "title": "fabric info", @@ -293,6 +296,7 @@ Fabric onboard input schema to accomodate OS version input. } } } +``` Fabric onboarding Workflow- Current tasks: @@ -308,9 +312,9 @@ Device discovery spits out a list of devices that have been created, with all th Image upgrade task will find the image associated to the device s platform, and if the input OS version and the image OS version match, it will upgrade the device. Per device states are updated appropriately: -"IMAGE_UPGRADING" - When the task is in progress -"IMAGE_UPGRADE_SUCCESSFUL" - If image upgrade is successful -"IMAGE_UPGRADE_FAILED" - If image upgrade failed +- "IMAGE_UPGRADING" - When the task is in progress +- "IMAGE_UPGRADE_SUCCESSFUL" - If image upgrade is successful +- "IMAGE_UPGRADE_FAILED" - If image upgrade failed On failure, the same is indicated in the job logs and UVEs. Mark the device state and continue with the workflow.