{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "update_bgp_connection",
  "type": "object",
  "properties": {
    "unset": {
      "description": "Properties to UNSET (RouterOS `!prop`), so they no longer apply — e.g. ['dst-address'] removes the destination-address match. snake_case or kebab-case. Not for setting a value.",
      "type": "array",
      "items": {
        "type": "string",
        "pattern": "^[a-z][a-z0-9_-]*$"
      }
    },
    "name": {
      "type": "string",
      "description": "Existing BGP connection name"
    },
    "remote_address": {
      "type": "string"
    },
    "remote_as": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "remote_port": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "as": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "local_role": {
      "type": "string"
    },
    "local_address": {
      "type": "string"
    },
    "local_port": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "router_id": {
      "type": "string"
    },
    "cluster_id": {
      "type": "string"
    },
    "address_families": {
      "type": "string"
    },
    "hold_time": {
      "type": "string"
    },
    "keepalive_time": {
      "type": "string"
    },
    "multihop": {
      "type": "boolean"
    },
    "nexthop_choice": {
      "type": "string"
    },
    "use_bfd": {
      "type": "boolean"
    },
    "tcp_md5_key": {
      "type": "string"
    },
    "connect": {
      "type": "boolean"
    },
    "listen": {
      "type": "boolean"
    },
    "input_filter": {
      "type": "string"
    },
    "input_accept_nlri": {
      "type": "string"
    },
    "input_allow_as": {
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "input_ignore_as_path_len": {
      "type": "boolean"
    },
    "output_filter": {
      "type": "string"
    },
    "output_network": {
      "type": "string"
    },
    "output_default_originate": {
      "type": "string"
    },
    "output_redistribute": {
      "type": "string"
    },
    "output_as_override": {
      "type": "boolean"
    },
    "output_keep_sent_attributes": {
      "type": "boolean"
    },
    "output_no_client_to_client_reflection": {
      "type": "boolean"
    },
    "routing_table": {
      "type": "string"
    },
    "comment": {
      "type": "string"
    },
    "disabled": {
      "type": "boolean"
    }
  },
  "required": ["name"],
  "additionalProperties": false
}
