@itentialopensource/cisco-ios-upgrade
Version:
[Deprecated] Itential automation Artifact for cisco ios device upgrade
1,091 lines (1,090 loc) • 29.3 kB
JSON
{
"name": "Cisco IOS Upgrade - Ansible upgrade",
"tasks": {
"4372": {
"name": "stringConcat",
"canvasName": "concat",
"summary": "Create backup statement2",
"description": "Create backup statement2",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "automatic",
"displayName": "String",
"variables": {
"incoming": {
"str": "$var.e1b4.output",
"stringN": [
"\n\r"
]
},
"outgoing": {
"combinedStrings": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>concat</span>"
},
{
"key": "summary",
"highlightString": "<span class='highlight-string'>Concat</span>enates strings together."
},
{
"key": "description",
"highlightString": "<span class='highlight-string'>Concat</span>enates a string with a second string(s). The second parameter can be a string or array."
}
],
"groups": [],
"actor": "Pronghorn",
"x": 1.048202614379085,
"y": -0.277526395173454,
"scheduled": false
},
"6412": {
"name": "evaluation",
"canvasName": "evaluation",
"summary": "If Verbose",
"description": "Run an evaluation",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"displayName": "WorkFlowEngine",
"type": "operation",
"variables": {
"incoming": {
"all_true_flag": false,
"evaluation_groups": [
{
"all_true_flag": false,
"evaluations": [
{
"query": "",
"operand_1": {
"variable": "mode",
"task": "job",
"editable": true
},
"operator": "==",
"operand_2": {
"variable": "Verbose",
"task": "static"
}
}
]
}
]
},
"outgoing": {
"return_value": null
}
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>eval</span>uation"
},
{
"key": "summary",
"highlightString": "Run <span class='highlight-string'>Eval</span>uation Task"
},
{
"key": "description",
"highlightString": "Run an <span class='highlight-string'>eval</span>uation"
}
],
"groups": [],
"x": 3.0900195694716244,
"y": -0.3926218708827404
},
"7961": {
"name": "childJob",
"summary": "PING",
"description": "Run a child Job inside a Workflow",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"displayName": "WorkFlowEngine",
"type": "operation",
"variables": {
"incoming": {
"task": "",
"workflow": "Cisco IOS Upgrade - Connection Health Check",
"variables": {
"deviceString": {
"variable": "",
"task": "job",
"value": "deviceString"
},
"numberOfRetries": {
"variable": "",
"task": "job",
"value": "numberOfRetries",
"editable": true
},
"numberOfRetriesStability": {
"variable": "",
"task": "job",
"value": "numberOfRetriesStability",
"editable": true
},
"secondsBetweenRetry": {
"variable": "",
"task": "job",
"value": "secondsBetweenRetry",
"editable": true
}
}
},
"outgoing": {
"job_details": null
}
},
"deprecated": false,
"matched": [
{
"key": "name",
"highlightString": "<span class='highlight-string'>child</span>Job"
},
{
"key": "summary",
"highlightString": "Run <span class='highlight-string'>Child</span> Job"
},
{
"key": "description",
"highlightString": "Run a <span class='highlight-string'>child</span> Job inside a Workflow"
}
],
"groups": [],
"actor": "job",
"x": 2.700067249495629,
"y": -0.26062322946175637
},
"workflow_start": {
"name": "workflow_start",
"groups": [],
"x": 0.3661417322834646,
"y": -0.27388535031847133
},
"workflow_end": {
"name": "workflow_end",
"groups": [],
"x": 3.4637964774951078,
"y": -0.27140974967061926
},
"550d": {
"name": "runCommand",
"summary": "Backup Running Config",
"description": "This method will run the provided command on a device",
"location": "Adapter",
"locationType": "AutomationGateway",
"app": "AutomationGateway",
"displayName": "AutomationGateway",
"type": "automatic",
"variables": {
"incoming": {
"devices": "$var.job.deviceArray",
"command": "$var.e1b4.output",
"options": {},
"adapter_id": "$var.job.adapter_id"
},
"outgoing": {
"result": "$var.job.result"
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "name",
"highlightString": "<span class='highlight-string'>runCommand</span>"
}
],
"groups": [],
"actor": "Pronghorn",
"x": 1.238197424892704,
"y": -0.2697986577181208,
"scheduled": false
},
"cf07": {
"name": "setConfig",
"summary": "Wipe Boot Statement",
"description": "This method will set the configuration on a device based on the configuration line(s) provided",
"location": "Adapter",
"locationType": "AutomationGateway",
"app": "AutomationGateway",
"displayName": "AutomationGateway",
"type": "automatic",
"variables": {
"incoming": {
"deviceName": "$var.job.deviceString",
"changes": [
{
"parents": [],
"old": "boot system"
}
],
"adapter_id": "$var.job.adapter_id"
},
"outgoing": {
"result": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "name",
"highlightString": "<span class='highlight-string'>setConfig</span>"
}
],
"groups": [],
"actor": "Pronghorn",
"x": 1.5329619312906222,
"y": -0.26912181303116145,
"scheduled": false
},
"46b": {
"name": "makeData",
"summary": "Build Boot Statement",
"description": "Make Data",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"displayName": "Tools",
"type": "automatic",
"variables": {
"incoming": {
"input": "[{\"parents\":[],\"new\":\"boot system <!flashMemory!><!version!>\"}]",
"outputType": "json",
"variables": "$var.job.variables"
},
"outgoing": {
"output": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "name",
"highlightString": "<span class='highlight-string'>makeData</span>"
}
],
"groups": [],
"actor": "Pronghorn",
"x": 1.7818012999071495,
"y": -0.26487252124645894,
"scheduled": false
},
"5e23": {
"name": "setConfig",
"summary": "Set Boot Statement",
"description": "This method will set the configuration on a device based on the configuration line(s) provided",
"location": "Adapter",
"locationType": "AutomationGateway",
"app": "AutomationGateway",
"displayName": "AutomationGateway",
"type": "automatic",
"variables": {
"incoming": {
"deviceName": "$var.job.deviceString",
"changes": "$var.46b.output",
"adapter_id": "$var.job.adapter_id"
},
"outgoing": {
"result": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "name",
"highlightString": "<span class='highlight-string'>setConfig</span>"
}
],
"groups": [],
"actor": "Pronghorn",
"x": 2.0510677808727946,
"y": -0.26062322946175637,
"scheduled": false
},
"4c22": {
"name": "runCommand",
"summary": "Reload Device",
"description": "This method will run the provided command on a device",
"location": "Adapter",
"locationType": "AutomationGateway",
"app": "AutomationGateway",
"displayName": "AutomationGateway",
"type": "automatic",
"variables": {
"incoming": {
"devices": "$var.job.deviceArray",
"command": "reload\ny",
"options": {},
"adapter_id": "$var.job.adapter_id"
},
"outgoing": {
"result": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "name",
"highlightString": "<span class='highlight-string'>runCommand</span>"
}
],
"groups": [],
"actor": "Pronghorn",
"x": 2.3899721448467965,
"y": -0.25920679886685555,
"scheduled": false
},
"25e4": {
"name": "evaluation",
"summary": "ping outcome",
"description": "Run an evaluation",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"displayName": "WorkFlowEngine",
"type": "operation",
"variables": {
"incoming": {
"all_true_flag": false,
"evaluation_groups": [
{
"all_true_flag": false,
"evaluations": [
{
"query": "outcome",
"operand_1": {
"variable": "job_details",
"task": "7961"
},
"operator": "==",
"operand_2": {
"variable": "success",
"task": "static"
}
}
]
}
]
},
"outgoing": {
"return_value": null
}
},
"deprecated": false,
"matched": [
{
"key": "name",
"highlightString": "<span class='highlight-string'>eval</span>uation"
},
{
"key": "summary",
"highlightString": "Run <span class='highlight-string'>Eval</span>uation Task"
},
{
"key": "description",
"highlightString": "Run an <span class='highlight-string'>eval</span>uation"
}
],
"groups": [],
"x": 2.9262883235485977,
"y": -0.2608695652173913
},
"99b8": {
"name": "newVariable",
"summary": "Create a Job Variable",
"description": "Create a new Job variable by Job ID and assign it a value.",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"displayName": "WorkFlowEngine",
"type": "operation",
"variables": {
"incoming": {
"name": "outcome",
"value": "success"
},
"outgoing": {
"value": null
}
},
"deprecated": false,
"matched": [
{
"key": "summary",
"highlightString": "Create a <span class='highlight-string'>Job</span> Variable"
},
{
"key": "description",
"highlightString": "Create a new <span class='highlight-string'>Job</span> variable by Job ID and assign it a value."
}
],
"groups": [],
"x": 3.28897586431833,
"y": -0.40843214756258234
},
"a70d": {
"name": "newVariable",
"summary": "Create a Job Variable",
"description": "Create a new Job variable by Job ID and assign it a value.",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"displayName": "WorkFlowEngine",
"type": "operation",
"variables": {
"incoming": {
"name": "outcome",
"value": "failure"
},
"outgoing": {
"value": null
}
},
"deprecated": false,
"matched": [
{
"key": "summary",
"highlightString": "Create a <span class='highlight-string'>Job</span> Variable"
},
{
"key": "description",
"highlightString": "Create a new <span class='highlight-string'>Job</span> variable by Job ID and assign it a value."
}
],
"groups": [],
"x": 3.289628180039139,
"y": -0.10013175230566534
},
"1d40": {
"name": "decisionTask",
"summary": "Failed ping test",
"description": "Failed ping test",
"location": "Application",
"app": "MOP",
"displayName": "Command Templates",
"type": "manual",
"variables": {
"incoming": {
"title": "Failed ping test",
"body": "Ping after Reload has <b>failed</b>! <br>Please take corrective action.",
"variables": {},
"btn_success": "Retry",
"btn_failure": "Abort"
},
"outgoing": {},
"error": ""
},
"view": "/mop/task/decisionTask",
"deprecated": false,
"matched": [
{
"key": "name",
"highlightString": "<span class='highlight-string'>deci</span>sionTask"
},
{
"key": "summary",
"highlightString": "MOP <span class='highlight-string'>Deci</span>sion Task"
},
{
"key": "description",
"highlightString": "MOP <span class='highlight-string'>Deci</span>sion Task"
}
],
"groups": [],
"x": 3.1037581699346406,
"y": -0.08597285067873303,
"scheduled": false
},
"4cf7": {
"name": "ViewData",
"canvasName": "ViewData",
"summary": "Upgrade completed",
"description": "View data in a pretty format",
"location": "Application",
"app": "WorkFlowEngine",
"displayName": "Tools",
"type": "manual",
"variables": {
"incoming": {
"header": "Upgrade completed",
"message": "Device has returned online after an upgrade reload.",
"body": "",
"btn_success": "CONTINUE",
"btn_failure": ""
},
"outgoing": {},
"error": ""
},
"view": "/workflow_engine/task/ViewData",
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>ViewData</span>"
}
],
"groups": [],
"x": 3.0939334637964775,
"y": -0.7035573122529645,
"scheduled": false
},
"b0ca": {
"name": "getTime",
"canvasName": "getTime",
"summary": "Generate dateTime stamp",
"description": "Generate dateTime stamp",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "automatic",
"displayName": "Time",
"variables": {
"incoming": {
"timezone": "-05:00",
"offsetDuration": "",
"format": "YYYYMMDD_HHmmss"
},
"outgoing": {
"time": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "displayName",
"highlightString": "<span class='highlight-string'>Time</span>"
},
{
"key": "canvasName",
"highlightString": "get<span class='highlight-string'>Time</span>"
},
{
"key": "summary",
"highlightString": "Get <span class='highlight-string'>time</span>"
},
{
"key": "description",
"highlightString": "Gets the current <span class='highlight-string'>time</span> with an optional offset, timezone shift, and format string"
}
],
"groups": [],
"actor": "Pronghorn",
"x": 0.5228346456692914,
"y": -0.2789808917197452,
"scheduled": false
},
"fce7": {
"name": "query",
"canvasName": "query",
"summary": "Query dateTime from dateTime obj",
"description": "Query dateTime from dateTime obj",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"pass_on_null": false,
"query": "time",
"obj": "$var.b0ca.time"
},
"outgoing": {
"return_data": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>query</span>"
},
{
"key": "summary",
"highlightString": "<span class='highlight-string'>Query</span> Data Using 'json-query' Format"
},
{
"key": "description",
"highlightString": "<span class='highlight-string'>Query</span> data using a dot/bracket notation string and a matching key/value pair."
}
],
"groups": [],
"x": 0.636437908496732,
"y": -0.27149321266968324,
"scheduled": false
},
"1ddd": {
"name": "evaluation",
"canvasName": "evaluation",
"summary": "Evaluate Backup task response",
"description": "Evaluate Backup task response",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"all_true_flag": false,
"evaluation_groups": [
{
"all_true_flag": false,
"evaluations": [
{
"query": "[0].status",
"operand_1": {
"variable": "result",
"task": "550d"
},
"operator": "==",
"operand_2": {
"variable": "success",
"task": "static"
}
}
]
}
]
},
"outgoing": {
"return_value": null
}
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>eval</span>uation"
},
{
"key": "summary",
"highlightString": "Run <span class='highlight-string'>Eval</span>uation Task"
},
{
"key": "description",
"highlightString": "Run an <span class='highlight-string'>eval</span>uation"
}
],
"groups": [],
"x": 1.3812589413447782,
"y": -0.2697986577181208
},
"4bac": {
"name": "ViewData",
"canvasName": "ViewData",
"summary": "Device Backup Failed",
"description": "Device Backup Failed",
"location": "Application",
"app": "WorkFlowEngine",
"displayName": "Tools",
"type": "manual",
"variables": {
"incoming": {
"header": "Backup Failed!",
"message": "Device backup failed",
"body": "$var.job.result",
"btn_success": "TERMINATE",
"btn_failure": ""
},
"outgoing": {},
"error": ""
},
"view": "/workflow_engine/task/ViewData",
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>View</span><span class='highlight-string'>Data</span>"
},
{
"key": "summary",
"highlightString": "<span class='highlight-string'>View</span> <span class='highlight-string'>Data</span>"
},
{
"key": "description",
"highlightString": "Displays a message and runtime <span class='highlight-string'>data</span> to an operator. This can be used to request a decision, or used for acknowledgement only."
}
],
"groups": [],
"x": 3.2939914163090127,
"y": 0.2543604651162791,
"scheduled": false
},
"62a4": {
"name": "stub",
"canvasName": "stub",
"summary": "Stub",
"description": "Create a stub for an automated task",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "automatic",
"displayName": "Tools",
"variables": {
"incoming": {
"type": "success",
"delay": "",
"response": ""
},
"outgoing": {
"response": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>stub</span>"
},
{
"key": "summary",
"highlightString": "<span class='highlight-string'>Stub</span>"
},
{
"key": "description",
"highlightString": "Create a <span class='highlight-string'>stub</span> for an automated task"
}
],
"groups": [],
"actor": "Pronghorn",
"x": 1.3841201716738198,
"y": 0.26308139534883723,
"scheduled": false
},
"e1b4": {
"name": "makeData",
"canvasName": "makeData",
"summary": "Create backup statement1",
"description": "Create backup statement1",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "automatic",
"displayName": "Tools",
"variables": {
"incoming": {
"input": "copy running-config <!flashMemory!>running-config-BACKUP-<!timeStamp!>",
"outputType": "string",
"variables": "$var.job.variables"
},
"outgoing": {
"output": null
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>make</span>Data"
}
],
"groups": [],
"actor": "Pronghorn",
"x": 0.8578431372549019,
"y": -0.27149321266968324,
"scheduled": false
},
"7f77": {
"name": "setObjectKey",
"canvasName": "setObjectKey",
"summary": "Set Object Key",
"description": "Set an object key",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "automatic",
"displayName": "Object",
"variables": {
"incoming": {
"obj": "$var.job.variables",
"path": [
"timeStamp"
],
"value": "$var.fce7.return_data"
},
"outgoing": {
"object": "$var.job.variables"
},
"error": ""
},
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>setObject</span>Key"
}
],
"groups": [],
"actor": "Pronghorn",
"x": 0.7246732026143791,
"y": -0.27601809954751133,
"scheduled": false
},
"e48f": {
"name": "ViewData",
"canvasName": "ViewData",
"summary": "Device reload failed",
"description": "Device reload failed",
"location": "Application",
"app": "WorkFlowEngine",
"displayName": "Tools",
"type": "manual",
"variables": {
"incoming": {
"header": "Device reload failed",
"message": "Reload command has been issued on the device. During boot up process device appears offline, and may take couple of minutes before returning back to operational state. You may monitor device state during boot up process using a console.\nPlease press continue to proceed to health check",
"body": "",
"btn_success": "Continue",
"btn_failure": ""
},
"outgoing": {},
"error": ""
},
"view": "/workflow_engine/task/ViewData",
"deprecated": false,
"matched": [
{
"key": "canvasName",
"highlightString": "<span class='highlight-string'>View</span><span class='highlight-string'>Data</span>"
},
{
"key": "summary",
"highlightString": "<span class='highlight-string'>View</span> <span class='highlight-string'>Data</span>"
},
{
"key": "description",
"highlightString": "Displays a message and runtime <span class='highlight-string'>data</span> to an operator. This can be used to request a decision, or used for acknowledgement only."
}
],
"groups": [],
"x": 2.3902439024390243,
"y": 0.03863987635239567,
"scheduled": false
}
},
"transitions": {
"231": {},
"535": {},
"3454": {},
"3471": {},
"4372": {
"550d": {
"type": "standard",
"state": "success"
}
},
"6412": {
"99b8": {
"type": "standard",
"state": "failure"
},
"4cf7": {
"type": "standard",
"state": "success"
}
},
"7961": {
"25e4": {
"type": "standard",
"state": "success"
}
},
"8026": {},
"8064": {},
"workflow_start": {
"b0ca": {
"type": "standard",
"state": "success"
}
},
"workflow_end": {},
"c0b5": {},
"9e7b": {},
"133e": {},
"8f57": {},
"5d68": {},
"d03e": {},
"90ac": {},
"7cd8": {},
"f567": {},
"7a87": {},
"de12": {},
"edcb": {},
"4aaa": {},
"5ff2": {},
"53ba": {},
"fcff": {},
"ebb3": {},
"72f3": {},
"c305": {},
"11bc": {},
"cdd2": {},
"dae7": {},
"550d": {
"1ddd": {
"type": "standard",
"state": "success"
}
},
"cf07": {
"46b": {
"type": "standard",
"state": "success"
}
},
"46b": {
"5e23": {
"type": "standard",
"state": "success"
}
},
"5e23": {
"4c22": {
"type": "standard",
"state": "success"
}
},
"4c22": {
"7961": {
"type": "standard",
"state": "success"
},
"e48f": {
"type": "standard",
"state": "error"
}
},
"25e4": {
"6412": {
"type": "standard",
"state": "success"
},
"1d40": {
"type": "standard",
"state": "failure"
}
},
"99b8": {
"workflow_end": {
"type": "standard",
"state": "success"
}
},
"a70d": {
"workflow_end": {
"type": "standard",
"state": "success"
}
},
"1d40": {
"7961": {
"type": "revert",
"state": "success"
},
"a70d": {
"type": "standard",
"state": "failure"
}
},
"b9f": {},
"4cf7": {
"99b8": {
"type": "standard",
"state": "success"
}
},
"b0ca": {
"fce7": {
"type": "standard",
"state": "success"
}
},
"fce7": {
"7f77": {
"type": "standard",
"state": "success"
}
},
"1ddd": {
"cf07": {
"type": "standard",
"state": "success"
},
"62a4": {
"type": "standard",
"state": "failure"
}
},
"4bac": {
"a70d": {
"type": "standard",
"state": "success"
}
},
"62a4": {
"4bac": {
"type": "standard",
"state": "success"
}
},
"e1b4": {
"4372": {
"type": "standard",
"state": "success"
}
},
"7f77": {
"e1b4": {
"type": "standard",
"state": "success"
}
},
"e48f": {
"7961": {
"type": "standard",
"state": "success"
}
}
},
"font_size": 14,
"created": "2020-11-05T21:30:15.541Z",
"created_by": {
"provenance": "Local AAA",
"username": "admin@pronghorn",
"firstname": "admin",
"inactive": false,
"email": ""
},
"createdVersion": "5.10.4-2020.1.27",
"groups": [],
"last_updated": "2020-11-09T22:54:27.543Z",
"last_updated_by": {
"provenance": "Local AAA",
"username": "admin@pronghorn",
"firstname": "admin",
"inactive": false,
"email": ""
},
"lastUpdatedVersion": "5.8.0",
"type": "automation",
"description": null,
"tags": []
}