{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "create_wireless_interface",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "pattern": "^\\S+$",
      "description": "Name for the new wireless interface (no spaces)."
    },
    "ssid": {
      "type": "string"
    },
    "disabled": {
      "default": false,
      "type": "boolean"
    },
    "comment": {
      "type": "string"
    },
    "radio_name": {
      "description": "Required for legacy wireless systems, e.g. 'wlan1'",
      "type": "string"
    },
    "mode": {
      "type": "string",
      "enum": [
        "ap-bridge",
        "bridge",
        "station",
        "station-pseudobridge",
        "station-bridge",
        "station-wds",
        "ap-bridge-wds",
        "alignment-only"
      ]
    },
    "frequency": {
      "type": "string"
    },
    "band": {
      "type": "string",
      "enum": [
        "2ghz-b",
        "2ghz-b/g",
        "2ghz-b/g/n",
        "5ghz-a",
        "5ghz-a/n",
        "5ghz-a/n/ac",
        "2ghz-g",
        "2ghz-n",
        "5ghz-n",
        "5ghz-ac"
      ]
    },
    "channel_width": {
      "type": "string",
      "enum": ["20mhz", "40mhz", "80mhz", "160mhz", "20/40mhz-eC", "20/40mhz-Ce"]
    },
    "security_profile": {
      "type": "string"
    },
    "mtu": {
      "description": "Interface MTU in bytes",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "arp": {
      "description": "ARP mode for the interface",
      "type": "string",
      "enum": ["disabled", "enabled", "proxy-arp", "reply-only", "local-proxy-arp"]
    },
    "hide_ssid": {
      "description": "Legacy: do not broadcast the SSID in beacons (AP modes)",
      "type": "boolean"
    },
    "wireless_protocol": {
      "description": "Legacy: wireless protocol, e.g. '802.11', 'nv2', 'nstreme'",
      "type": "string"
    },
    "scan_list": {
      "description": "Legacy: frequencies/ranges to scan (e.g. 'default' or '5180-5320')",
      "type": "string"
    },
    "frequency_mode": {
      "description": "Legacy: regulatory frequency mode",
      "type": "string",
      "enum": ["manual-txpower", "regulatory-domain", "superchannel"]
    },
    "country": {
      "description": "Legacy: regulatory country setting (e.g. 'united states')",
      "type": "string"
    },
    "antenna_gain": {
      "description": "Legacy: antenna gain in dBi used for tx-power calculations",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "wds_mode": {
      "description": "Legacy: WDS mode",
      "type": "string",
      "enum": ["disabled", "dynamic", "dynamic-mesh", "static", "static-mesh"]
    },
    "wds_default_bridge": {
      "description": "Legacy: bridge that dynamic WDS interfaces are added to",
      "type": "string"
    },
    "default_authentication": {
      "description": "Legacy: allow clients not in the access-list to authenticate",
      "type": "boolean"
    },
    "default_forwarding": {
      "description": "Legacy: allow client-to-client forwarding by default",
      "type": "boolean"
    },
    "tx_power": {
      "description": "Legacy: manual transmit power in dBm",
      "type": "integer",
      "minimum": -9007199254740991,
      "maximum": 9007199254740991
    },
    "tx_power_mode": {
      "description": "Legacy: how tx-power is determined",
      "type": "string",
      "enum": ["default", "card-rates", "all-rates-fixed", "manual-table"]
    },
    "distance": {
      "description": "Legacy: link distance ('dynamic', 'indoors', or a km value)",
      "type": "string"
    },
    "disconnect_timeout": {
      "description": "Legacy: time before a non-responding client is disconnected",
      "type": "string"
    }
  },
  "required": ["name", "disabled"],
  "additionalProperties": false
}
