{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-operations-cisco-crosswork-optimization-engine-operations-sr-policy-routes-post-output-schema.json",
  "title": "operations_cisco-crosswork-optimization-engine-operations_sr-policy-routes-post-output",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-operations-api-openapi.yml#/components/schemas/operations_cisco-crosswork-optimization-engine-operations_sr-policy-routes-post-output",
  "type": "object",
  "properties": {
    "cisco-crosswork-optimization-engine-operations:output": {
      "type": "object",
      "properties": {
        "status": {
          "description": "Enumeration of the request state (leaf)",
          "type": "string",
          "format": "enumeration",
          "default": "error",
          "enum": [
            "error",
            "accepted",
            "rejected"
          ]
        },
        "message": {
          "description": "The details of status above (leaf)",
          "type": "string",
          "format": "string"
        },
        "results": {
          "type": "array",
          "description": "(list)",
          "items": {
            "type": "object",
            "properties": {
              "head-end": {
                "description": "The IP address of the SR policy source. (leaf)",
                "type": "string",
                "format": "union"
              },
              "end-point": {
                "description": "The IP address of the SR policy destination. (leaf)",
                "type": "string",
                "format": "union"
              },
              "color": {
                "description": "The color for the SR policy. (leaf)",
                "type": "integer",
                "format": "uint32"
              },
              "path-computation-status": {
                "description": "The IGP path computation status for an SR policy (leaf)",
                "type": "string",
                "format": "enumeration",
                "default": "success",
                "enum": [
                  "success",
                  "failure"
                ]
              },
              "path-computation-message": {
                "description": "The details of IGP path computation status above (leaf)",
                "type": "string",
                "format": "string"
              },
              "igp-route": {
                "type": "array",
                "description": "(list)",
                "items": {
                  "type": "object",
                  "properties": {
                    "node": {
                      "description": "The hostname of the source-node for the interface (leaf)",
                      "type": "string",
                      "format": "string"
                    },
                    "interface": {
                      "description": "The name of the interface (leaf)",
                      "type": "string",
                      "format": "string"
                    },
                    "interface-use": {
                      "description": "Route portion using that interface, ranges from 0 to 1 (leaf)",
                      "type": "number",
                      "format": "double"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}