{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-data-ietf-network-state-networks-network-network-network-id-node-node-node-id-schema.json",
  "title": "data_ietf-network-state_networks_network_network-network-id_node_node-node-id",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-data-api-openapi.yml#/components/schemas/data_ietf-network-state_networks_network_network-network-id_node_node-node-id",
  "type": "object",
  "properties": {
    "ietf-network-state:node": {
      "type": "array",
      "description": "The inventory of nodes of this network. (list)",
      "x-yang": {
        "type": "list"
      },
      "items": {
        "type": "object",
        "properties": {
          "node-id": {
            "description": "Uniquely identifies a node within the containing\nnetwork. (leaf)",
            "x-yang": {
              "type": "leaf"
            },
            "type": "string",
            "format": "string"
          },
          "supporting-node": {
            "type": "array",
            "description": "Represents another node that is in an underlay network\nand that supports this node.  Used to represent layering\nstructure. (list)",
            "x-yang": {
              "type": "list"
            },
            "items": {
              "type": "object",
              "properties": {
                "network-ref": {
                  "description": "References the underlay network of which the\nunderlay node is a part. (leaf)",
                  "x-yang": {
                    "type": "leaf"
                  },
                  "type": "string",
                  "format": "leafref"
                },
                "node-ref": {
                  "description": "References the underlay node itself. (leaf)",
                  "x-yang": {
                    "type": "leaf"
                  },
                  "type": "string",
                  "format": "leafref"
                }
              }
            }
          },
          "ietf-network-topology-state:termination-point": {
            "type": "array",
            "description": "A termination point can terminate a link.\nDepending on the type of topology, a termination point\ncould, for example, refer to a port or an interface. (list)",
            "x-yang": {
              "type": "list"
            },
            "items": {
              "type": "object",
              "properties": {
                "ietf-network-topology-state:tp-id": {
                  "description": "Termination point identifier. (leaf)",
                  "x-yang": {
                    "type": "leaf"
                  },
                  "type": "string",
                  "format": "string"
                },
                "ietf-network-topology-state:supporting-termination-point": {
                  "type": "array",
                  "description": "This list identifies any termination points on which a\ngiven termination point depends or onto which it maps.\nThose termination points will themselves be contained\nin a supporting node.  This dependency information can be\ninferred from the dependencies between links.  Therefore,\nthis item is not separately configurable.  Hence, no\ncorresponding constraint needs to be articulated.\nThe corresponding information is simply provided by the\nimplementing system. (list)",
                  "x-yang": {
                    "type": "list"
                  },
                  "items": {
                    "type": "object",
                    "properties": {
                      "ietf-network-topology-state:network-ref": {
                        "description": "This leaf identifies in which topology the\nsupporting termination point is present. (leaf)",
                        "x-yang": {
                          "type": "leaf"
                        },
                        "type": "string",
                        "format": "leafref"
                      },
                      "ietf-network-topology-state:node-ref": {
                        "description": "This leaf identifies in which node the supporting\ntermination point is present. (leaf)",
                        "x-yang": {
                          "type": "leaf"
                        },
                        "type": "string",
                        "format": "leafref"
                      },
                      "ietf-network-topology-state:tp-ref": {
                        "description": "Reference to the underlay node (the underlay node must\nbe in a different topology). (leaf)",
                        "x-yang": {
                          "type": "leaf"
                        },
                        "type": "string",
                        "format": "leafref"
                      }
                    }
                  }
                },
                "ietf-l3-unicast-topology-state:l3-termination-point-attributes": {
                  "description": "Contains termination point attributes (non-presence)",
                  "type": "object",
                  "x-yang": {
                    "type": "container",
                    "is_presence": "false"
                  },
                  "properties": {
                    "ietf-l3-unicast-topology-state:ip-address": {
                      "type": "array",
                      "x-yang": {
                        "type": "leaf-list"
                      },
                      "items": {
                        "description": "IPv4 or IPv6 address. (leaf-list)",
                        "type": "string",
                        "format": "union"
                      }
                    }
                  }
                }
              }
            }
          },
          "ietf-l3-unicast-topology-state:l3-node-attributes": {
            "description": "Contains node attributes (non-presence)",
            "type": "object",
            "x-yang": {
              "type": "container",
              "is_presence": "false"
            },
            "properties": {
              "ietf-l3-unicast-topology-state:name": {
                "description": "Node name (leaf)",
                "x-yang": {
                  "type": "leaf"
                },
                "type": "string",
                "format": "string"
              },
              "ietf-l3-unicast-topology-state:flag": {
                "type": "array",
                "x-yang": {
                  "type": "leaf-list"
                },
                "items": {
                  "description": "Node flags (leaf-list)",
                  "type": "string",
                  "format": "identityref"
                }
              },
              "ietf-l3-unicast-topology-state:router-id": {
                "type": "array",
                "x-yang": {
                  "type": "leaf-list"
                },
                "items": {
                  "description": "Router-id for the node (leaf-list)",
                  "type": "string",
                  "format": "string"
                }
              },
              "ietf-l3-unicast-topology-state:prefix": {
                "type": "array",
                "description": "A list of prefixes along with their attributes (list)",
                "x-yang": {
                  "type": "list"
                },
                "items": {
                  "type": "object",
                  "properties": {
                    "ietf-l3-unicast-topology-state:prefix": {
                      "description": "IP prefix value (leaf)",
                      "x-yang": {
                        "type": "leaf"
                      },
                      "type": "string",
                      "format": "union"
                    },
                    "ietf-l3-unicast-topology-state:metric": {
                      "description": "Prefix metric (leaf)",
                      "x-yang": {
                        "type": "leaf"
                      },
                      "type": "integer",
                      "format": "uint32"
                    },
                    "ietf-l3-unicast-topology-state:flag": {
                      "type": "array",
                      "x-yang": {
                        "type": "leaf-list"
                      },
                      "items": {
                        "description": "Prefix flags (leaf-list)",
                        "type": "string",
                        "format": "identityref"
                      }
                    },
                    "ietf-sr-topology-state:sr": {
                      "description": "Containing SR attributes for a prefix. (presence)",
                      "type": "object",
                      "x-yang": {
                        "type": "container",
                        "is_presence": "true"
                      },
                      "properties": {
                        "ietf-sr-topology-state:value-type": {
                          "description": "This leaf defines how value must be interpreted. (leaf)",
                          "x-yang": {
                            "type": "leaf"
                          },
                          "type": "string",
                          "format": "enumeration",
                          "default": "index",
                          "enum": [
                            "index",
                            "absolute"
                          ]
                        },
                        "ietf-sr-topology-state:start-sid": {
                          "description": "Value associated with prefix. The value must be\ninterpreted in the context of value-type. (leaf)",
                          "x-yang": {
                            "type": "leaf"
                          },
                          "type": "integer",
                          "format": "uint32"
                        },
                        "ietf-sr-topology-state:range": {
                          "description": "Indicates how many SIDs can be allocated. (leaf)",
                          "x-yang": {
                            "type": "leaf"
                          },
                          "type": "integer",
                          "format": "uint32"
                        },
                        "ietf-sr-topology-state:algorithm": {
                          "description": "Prefix-sid algorithm. (leaf)",
                          "x-yang": {
                            "type": "leaf"
                          },
                          "type": "string",
                          "format": "identityref"
                        },
                        "ietf-sr-topology-state:last-hop-behavior": {
                          "description": "Configure last hop behavior. (leaf)",
                          "x-yang": {
                            "type": "leaf"
                          },
                          "type": "string",
                          "format": "enumeration",
                          "default": "explicit-null",
                          "enum": [
                            "explicit-null",
                            "no-php",
                            "php"
                          ]
                        },
                        "ietf-sr-topology-state:is-local": {
                          "description": "'true' if the SID is local. (leaf)",
                          "x-yang": {
                            "type": "leaf"
                          },
                          "type": "string",
                          "format": "boolean"
                        },
                        "ietf-sr-topology-state:is-node": {
                          "description": "'true' if the Prefix-SID refers to the router identified\n by the prefix.  Typically, the leaf 'is-node' (N-Flag)\n is set on Prefix-SIDs attached to a router loopback\n address. (leaf)",
                          "x-yang": {
                            "type": "leaf"
                          },
                          "type": "string",
                          "format": "boolean"
                        },
                        "ietf-sr-topology-state:is-readvertisment": {
                          "description": "'true' if the prefix to which this Prefix-SID is attached,\n has been propagated by the router from another\n topology by redistribution. (leaf)",
                          "x-yang": {
                            "type": "leaf"
                          },
                          "type": "string",
                          "format": "boolean"
                        }
                      }
                    }
                  }
                }
              },
              "cisco-crosswork-isis-topology:isis-node-attributes": {
                "description": "ISIS attributes for a specific node (non-presence)",
                "type": "object",
                "x-yang": {
                  "type": "container",
                  "is_presence": "false"
                },
                "properties": {
                  "cisco-crosswork-isis-topology:system-id": {
                    "description": "ISIS System ID, a 6 octet numerical value (leaf)",
                    "x-yang": {
                      "type": "leaf"
                    },
                    "type": "string",
                    "format": "string"
                  },
                  "cisco-crosswork-isis-topology:area": {
                    "type": "array",
                    "x-yang": {
                      "type": "leaf-list"
                    },
                    "items": {
                      "description": "List of Area addresses.\n*** Should we return only a single Area address corresponding\nto the current network?? (leaf-list)",
                      "type": "string",
                      "format": "string"
                    }
                  },
                  "cisco-crosswork-isis-topology:level": {
                    "description": "Level 1, Level 2 or Level 1 & 2 (leaf)",
                    "x-yang": {
                      "type": "leaf"
                    },
                    "type": "string",
                    "format": "enumeration",
                    "default": "level-1",
                    "enum": [
                      "level-1",
                      "level-2",
                      "level-all"
                    ]
                  }
                }
              },
              "cisco-crosswork-ospf-topology:ospf-node-attributes": {
                "description": "Contains node's OSPF attributes (non-presence)",
                "type": "object",
                "x-yang": {
                  "type": "container",
                  "is_presence": "false"
                },
                "properties": {
                  "cisco-crosswork-ospf-topology:ospf-router-id": {
                    "description": "OSPF router ID, which is an IPv4 address.\n*** Note, only one router-ID is reported, corresponwing\nto the IGP domain of the current network (leaf)",
                    "x-yang": {
                      "type": "leaf"
                    },
                    "type": "string",
                    "format": "string"
                  },
                  "cisco-crosswork-ospf-topology:area-id": {
                    "type": "array",
                    "x-yang": {
                      "type": "leaf-list"
                    },
                    "items": {
                      "description": "List of OSPF area IDs, each represented as an IPv4 address value\n*** Should we report all Areas or just the one corresponwing to\nthe network?? (leaf-list)",
                      "type": "string",
                      "format": "string"
                    }
                  }
                }
              },
              "ietf-sr-topology-state:sr": {
                "description": "Containing SR attributes. (non-presence)",
                "type": "object",
                "x-yang": {
                  "type": "container",
                  "is_presence": "false"
                },
                "properties": {
                  "ietf-sr-topology-state:srgb": {
                    "type": "array",
                    "description": "List of global blocks to be advertised. (list)",
                    "x-yang": {
                      "type": "list"
                    },
                    "items": {
                      "type": "object",
                      "properties": {
                        "ietf-sr-topology-state:lower-bound": {
                          "description": "Lower value in the label range. (leaf)",
                          "x-yang": {
                            "type": "leaf"
                          },
                          "type": "integer",
                          "format": "uint32"
                        },
                        "ietf-sr-topology-state:upper-bound": {
                          "description": "Upper value in the label range. (leaf)",
                          "x-yang": {
                            "type": "leaf"
                          },
                          "type": "integer",
                          "format": "uint32"
                        }
                      }
                    }
                  },
                  "ietf-sr-topology-state:srlb": {
                    "type": "array",
                    "description": "List of SRLBs. (list)",
                    "x-yang": {
                      "type": "list"
                    },
                    "items": {
                      "type": "object",
                      "properties": {
                        "ietf-sr-topology-state:lower-bound": {
                          "description": "Lower value in the label range. (leaf)",
                          "x-yang": {
                            "type": "leaf"
                          },
                          "type": "integer",
                          "format": "uint32"
                        },
                        "ietf-sr-topology-state:upper-bound": {
                          "description": "Upper value in the label range. (leaf)",
                          "x-yang": {
                            "type": "leaf"
                          },
                          "type": "integer",
                          "format": "uint32"
                        }
                      }
                    }
                  },
                  "ietf-sr-topology-state:node-capabilities": {
                    "description": "Shows the SR capability of the node. (non-presence)",
                    "type": "object",
                    "x-yang": {
                      "type": "container",
                      "is_presence": "false"
                    },
                    "properties": {
                      "ietf-sr-topology-state:transport-planes": {
                        "type": "array",
                        "description": "List of supported transport planes. (list)",
                        "x-yang": {
                          "type": "list"
                        },
                        "items": {
                          "type": "object",
                          "properties": {
                            "ietf-sr-topology-state:transport-plane": {
                              "description": "Transport plane supported (leaf)",
                              "x-yang": {
                                "type": "leaf"
                              },
                              "type": "string",
                              "format": "identityref"
                            }
                          }
                        }
                      },
                      "ietf-sr-topology-state:entropy-readable-label-depth": {
                        "description": "Maximum label stack depth that a router can read. (leaf)",
                        "x-yang": {
                          "type": "leaf"
                        },
                        "type": "integer",
                        "format": "byte"
                      }
                    }
                  },
                  "ietf-sr-topology-state:msd": {
                    "description": "Node MSD is the lowest MSD supported by the node. (leaf)",
                    "x-yang": {
                      "type": "leaf"
                    },
                    "type": "integer",
                    "format": "byte"
                  },
                  "ietf-sr-topology-state:information-source": {
                    "description": "Indicates the type of the information source. (leaf)",
                    "x-yang": {
                      "type": "leaf"
                    },
                    "type": "string",
                    "format": "enumeration",
                    "default": "unknown",
                    "enum": [
                      "unknown",
                      "locally-configured",
                      "ospfv2",
                      "ospfv3",
                      "isis",
                      "bgp-ls",
                      "system-processed",
                      "other"
                    ]
                  },
                  "ietf-sr-topology-state:information-source-instance": {
                    "description": "The name indicating the instance of the information\nsource. (leaf)",
                    "x-yang": {
                      "type": "leaf"
                    },
                    "type": "string",
                    "format": "string"
                  },
                  "ietf-sr-topology-state:information-source-state": {
                    "description": "The container contains state attributes related to\nthe information source. (non-presence)",
                    "type": "object",
                    "x-yang": {
                      "type": "container",
                      "is_presence": "false"
                    },
                    "properties": {
                      "ietf-sr-topology-state:credibility-preference": {
                        "description": "The preference value to calculate the traffic\nengineering database credibility value used for\ntie-break selection between different\ninformation-source values.\nHigher value is more preferable. (leaf)",
                        "x-yang": {
                          "type": "leaf"
                        },
                        "type": "integer",
                        "format": "uint16"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}