{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-data-cisco-flat-l2vpn-fp-l2vpn-route-policy-l2vpn-route-policy-name-schema.json",
  "title": "data_cisco-flat-L2vpn-fp_l2vpn-route-policy_l2vpn-route-policy-name",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-l2vpn-route-policy-retrieval-api-openapi.yml#/components/schemas/data_cisco-flat-L2vpn-fp_l2vpn-route-policy_l2vpn-route-policy-name",
  "type": "object",
  "properties": {
    "cisco-flat-L2vpn-fp:l2vpn-route-policy": {
      "type": "array",
      "description": "Route policy definition (list)",
      "x-yang": {
        "type": "list"
      },
      "items": {
        "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": {
                    "rd": {
                      "type": "array",
                      "x-yang": {
                        "type": "leaf-list"
                      },
                      "items": {
                        "description": "ASN:nn or IPV4-address:nn,VPN Route Distinguisher (leaf-list)",
                        "type": "string",
                        "format": "string"
                      }
                    }
                  }
                },
                "ipv6": {
                  "description": "IPv6 ODN SR (presence)",
                  "type": "object",
                  "x-yang": {
                    "type": "container",
                    "is_presence": "true"
                  },
                  "properties": {
                    "rd": {
                      "type": "array",
                      "x-yang": {
                        "type": "leaf-list"
                      },
                      "items": {
                        "description": "ASN:nn or IPV4-address:nn,VPN Route Distinguisher (leaf-list)",
                        "type": "string",
                        "format": "string"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}