{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-l3vpn-route-policy-schema.json",
  "title": "l3vpn-route-policy",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-l3vpn-route-policy-retrieval-api-openapi.yml#/components/schemas/l3vpn-route-policy",
  "type": "object",
  "properties": {
    "name": {
      "description": "Route-Policy name (leaf)",
      "x-yang": {
        "type": "leaf"
      },
      "type": "string",
      "format": "string"
    },
    "color": {
      "type": "array",
      "description": "SR policy color (list)",
      "x-yang": {
        "type": "list"
      },
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "description": "<1-4294967295> - SR policy color (leaf)",
            "x-yang": {
              "type": "leaf"
            },
            "type": "integer",
            "format": "uint32"
          },
          "ipv4": {
            "description": "IPv4 ODN SR (presence)",
            "type": "object",
            "x-yang": {
              "type": "container",
              "is_presence": "true"
            },
            "properties": {
              "prefix": {
                "type": "array",
                "x-yang": {
                  "type": "leaf-list"
                },
                "items": {
                  "description": "<A.B.C.D/prefix> - IPv4 Prefix List (leaf-list)",
                  "type": "string",
                  "format": "string"
                }
              }
            }
          },
          "ipv6": {
            "description": "(presence)",
            "type": "object",
            "x-yang": {
              "type": "container",
              "is_presence": "true"
            },
            "properties": {
              "ipv6-prefix": {
                "type": "array",
                "x-yang": {
                  "type": "leaf-list"
                },
                "items": {
                  "description": "<X:X::X/length> - IPv6 Prefix List (leaf-list)",
                  "type": "string",
                  "format": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}