{
  "_id": "5f5efabcdc87324798b9fbf0",
  "name": "iosUpgradeFormData",
  "description": "",
  "incoming": [
    {
      "$id": "formData",
      "title": "IAP Artifacts IOS Upgrade Form",
      "description": "A form to be used in conjunction with Itential's \"Cisco IOS Device Upgrade\" Artifacts ",
      "type": "object",
      "required": [
        "mode",
        "iosDeviceHostname"
      ],
      "properties": {
        "mode": {
          "type": "string",
          "title": "Mode",
          "description": "",
          "enum": [
            "Zero Touch",
            "Normal",
            "Verbose"
          ]
        },
        "iosDeviceHostname": {
          "type": "string",
          "title": "IOS Device Hostname",
          "description": ""
        },
        "flashMemory": {
          "type": "string",
          "title": "Flash Memory",
          "description": ""
        },
        "release": {
          "type": "string",
          "title": "Release",
          "description": "",
          "enum": [
            "csr1000v-universalk9.03.10.03.S.153-3.S3-ext.SPA.bin",
            "csr1000v-universalk9.03.10.02.S.153-3.S2-ext.SPA.bin"
          ]
        },
        "healthcheckVariables": {
          "type": "object",
          "title": "Healthcheck Variables",
          "description": "",
          "required": [],
          "properties": {
            "numberOfRetries": {
              "type": "number",
              "title": "Number of retries",
              "description": "Number of times to retry the healthcheck before concluding a failure"
            },
            "numberOfRetriesStability": {
              "type": "number",
              "title": "Number of retries stability",
              "description": "Number of consecutive successful pings required to conclude that device is stable. This feature will detect unstable interfaces. "
            },
            "secondsBetweenRetry": {
              "type": "number",
              "title": "Seconds between retry",
              "description": "Number of seconds to wait in between each failed ping"
            }
          }
        }
      }
    }
  ],
  "outgoing": [
    {
      "$id": "mode",
      "type": "string"
    },
    {
      "$id": "deviceString",
      "type": "string"
    },
    {
      "$id": "fileName",
      "type": "string"
    },
    {
      "$id": "numberOfRetries",
      "type": "string"
    },
    {
      "$id": "numberOfRetriesStability",
      "type": "string"
    },
    {
      "$id": "secondsBetweenRetry",
      "type": "string"
    },
    {
      "$id": "flashMemory",
      "type": "string",
      "title": "Flash Memory",
      "description": ""
    }
  ],
  "steps": [
    {
      "id": 4,
      "type": "assign",
      "from": {
        "location": "incoming",
        "name": "formData",
        "ptr": "/mode"
      },
      "to": {
        "location": "outgoing",
        "name": "mode",
        "ptr": ""
      }
    },
    {
      "id": 5,
      "type": "assign",
      "from": {
        "location": "incoming",
        "name": "formData",
        "ptr": "/iosDeviceHostname"
      },
      "to": {
        "location": "outgoing",
        "name": "deviceString",
        "ptr": ""
      }
    },
    {
      "id": 6,
      "type": "assign",
      "from": {
        "location": "incoming",
        "name": "formData",
        "ptr": "/release"
      },
      "to": {
        "location": "outgoing",
        "name": "fileName",
        "ptr": ""
      }
    },
    {
      "id": 7,
      "type": "assign",
      "from": {
        "location": "incoming",
        "name": "formData",
        "ptr": "/healthcheckVariables/numberOfRetries"
      },
      "to": {
        "location": "method",
        "name": 3,
        "ptr": "/args/0/value"
      }
    },
    {
      "id": 9,
      "type": "assign",
      "from": {
        "location": "incoming",
        "name": "formData",
        "ptr": "/healthcheckVariables/numberOfRetriesStability"
      },
      "to": {
        "location": "method",
        "name": 2,
        "ptr": "/args/0/value"
      }
    },
    {
      "id": 11,
      "type": "assign",
      "from": {
        "location": "incoming",
        "name": "formData",
        "ptr": "/healthcheckVariables/secondsBetweenRetry"
      },
      "to": {
        "location": "method",
        "name": 1,
        "ptr": "/args/0/value"
      }
    },
    {
      "id": 1,
      "type": "method",
      "library": "Number",
      "method": "toString",
      "args": [
        null,
        null
      ],
      "view": {
        "row": 3,
        "col": 1
      }
    },
    {
      "id": 2,
      "type": "method",
      "library": "Number",
      "method": "toString",
      "args": [
        null,
        null
      ],
      "view": {
        "row": 2,
        "col": 1
      }
    },
    {
      "id": 3,
      "type": "method",
      "library": "Number",
      "method": "toString",
      "args": [
        null,
        null
      ],
      "view": {
        "row": 1,
        "col": 1
      }
    },
    {
      "id": 8,
      "type": "assign",
      "from": {
        "location": "method",
        "name": 3,
        "ptr": "/return"
      },
      "to": {
        "location": "outgoing",
        "name": "numberOfRetries",
        "ptr": ""
      }
    },
    {
      "id": 10,
      "type": "assign",
      "from": {
        "location": "method",
        "name": 2,
        "ptr": "/return"
      },
      "to": {
        "location": "outgoing",
        "name": "numberOfRetriesStability",
        "ptr": ""
      }
    },
    {
      "id": 12,
      "type": "assign",
      "from": {
        "location": "method",
        "name": 1,
        "ptr": "/return"
      },
      "to": {
        "location": "outgoing",
        "name": "secondsBetweenRetry",
        "ptr": ""
      }
    },
    {
      "id": 13,
      "type": "assign",
      "from": {
        "location": "incoming",
        "name": "formData",
        "ptr": "/flashMemory"
      },
      "to": {
        "location": "outgoing",
        "name": "flashMemory",
        "ptr": ""
      }
    }
  ],
  "functions": [],
  "view": {
    "col": 2,
    "row": 4
  },
  "created": "2020-11-04T19:23:13.667Z",
  "createdBy": {
    "_id": "5fa1a84f86171e3df42645e1",
    "provenance": "Local AAA",
    "username": "admin@pronghorn"
  },
  "lastUpdated": "2020-11-06T16:54:20.754Z",
  "lastUpdatedBy": {
    "_id": "5fa1a84f86171e3df42645e1",
    "provenance": "Local AAA",
    "username": "admin@pronghorn"
  }
}