{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-nexus/json-schema/cisco-nexus-ipv4-inst-payload-schema.json",
  "title": "Ipv4InstPayload",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-nexus-routing-api-openapi.yml#/components/schemas/Ipv4InstPayload",
  "type": "object",
  "properties": {
    "ipv4Inst": {
      "type": "object",
      "properties": {
        "children": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "ipv4Dom": {
                "type": "object",
                "properties": {
                  "attributes": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "VRF name"
                      }
                    }
                  },
                  "children": {
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "$ref": "#/$defs/Ipv4Route"
                        },
                        {
                          "type": "object",
                          "properties": {
                            "ipv4RtStaticBfd": {
                              "type": "object",
                              "properties": {
                                "attributes": {
                                  "type": "object",
                                  "properties": {
                                    "intf": {
                                      "type": "string"
                                    },
                                    "nexthop": {
                                      "type": "string",
                                      "format": "ipv4"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "$defs": {
    "Ipv4Nexthop": {
      "type": "object",
      "description": "IPv4 next-hop specification for a static route. DN format is sys/ipv4/inst/dom-{vrfName}/rt-[{prefix}]/nh-[{nhIf}]-addr-[{nhAddr}]-vrf-[{nhVrf}].",
      "properties": {
        "ipv4Nexthop": {
          "type": "object",
          "properties": {
            "attributes": {
              "type": "object",
              "properties": {
                "nhAddr": {
                  "type": "string",
                  "description": "Next-hop IP address",
                  "format": "ipv4"
                },
                "nhIf": {
                  "type": "string",
                  "description": "Next-hop egress interface (e.g., eth1/1, vlan100). Use unspecified for recursive lookup."
                },
                "nhVrf": {
                  "type": "string",
                  "description": "Next-hop VRF context",
                  "default": "default"
                },
                "pref": {
                  "type": "string",
                  "description": "Route preference / administrative distance (0-255)"
                },
                "rtname": {
                  "type": "string",
                  "description": "Route identifier name"
                },
                "tag": {
                  "type": "string",
                  "description": "Route tag value (0-4294967295)"
                },
                "status": {
                  "type": "string",
                  "description": "Set to deleted to remove a next-hop entry",
                  "enum": [
                    "",
                    "deleted"
                  ]
                }
              }
            }
          }
        }
      }
    },
    "Ipv4Route": {
      "type": "object",
      "description": "IPv4 static route managed object. DN format is sys/ipv4/inst/dom-{vrfName}/rt-[{prefix}].",
      "properties": {
        "attributes": {
          "type": "object",
          "properties": {
            "dn": {
              "type": "string",
              "description": "Distinguished name"
            },
            "prefix": {
              "type": "string",
              "description": "Destination IPv4 prefix in CIDR notation",
              "format": "ipv4-network"
            }
          }
        },
        "children": {
          "type": "array",
          "description": "Child next-hop objects",
          "items": {
            "$ref": "#/$defs/Ipv4Nexthop"
          }
        }
      }
    }
  }
}