Schema endpoint-patch.json
Resolve referenced schemas (may reorder keys)
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"description": "Patch request schema for updating an existing endpoint.",
"title": "Schema to modify an endpoint with new values.",
"properties": {
"ip_address": {
"type": "string",
"description": "IP address on which the endpoint sends/receives flows. IP address must be unique in the network.",
"anyOf": [
{
"format": "ipv4"
},
{
"format": "ipv6"
}
]
},
"attached_network_device": {
"type": "object",
"description": "Peer network device (switch) details. This cannot be an endpoint.",
"required": [
"chassis_id",
"port_id"
],
"properties": {
"chassis_id": {
"description": "Matches the chassis_id of the peer network device. Where LLDP is implemented on the network device interfaces, the LLDP Chassis ID should match this value.",
"anyOf": [
{
"type": "string",
"pattern": "^([0-9a-f]{2}-){5}([0-9a-f]{2})$",
"description": "When the Chassis ID is a MAC address, use this format."
},
{
"type": "string",
"pattern": "^.+$",
"description": "When the Chassis ID is anything other than a MAC address, a freeform string may be used."
}
]
},
"port_id": {