add allowed_ip parameter to peer creation API documentation.

remove parameter for allowed_ip_netmask
This commit is contained in:
Eduardo Silva
2026-03-10 15:05:43 -03:00
parent 1c5699b9f0
commit 8bf77cef86

View File

@@ -183,6 +183,9 @@ def _get_wireguard_instance(instance_name: str) -> Optional[WireGuardInstance]:
{"name": "routing_template_uuid", "in": "json", "type": "string", "required": False, {"name": "routing_template_uuid", "in": "json", "type": "string", "required": False,
"description": "Routing template UUID (optional). Must belong to the same WireGuard instance."}, "description": "Routing template UUID (optional). Must belong to the same WireGuard instance."},
{"name": "allowed_ip", "in": "json", "type": "string", "required": False,
"example": "10.188.0.15", "description": "Optional peer main IP address. It must be an available IP within the instance subnet. If omitted, the system will automatically assign the next available IP address."},
{"name": "announced_networks", "in": "json", "type": "list[string]", "required": False, {"name": "announced_networks", "in": "json", "type": "list[string]", "required": False,
"example": ["10.10.0.0/24"], "description": "Server announced networks (priority>=1). Will be synced."}, "example": ["10.10.0.0/24"], "description": "Server announced networks (priority>=1). Will be synced."},
{"name": "client_routes", "in": "json", "type": "list[string]", "required": False, {"name": "client_routes", "in": "json", "type": "list[string]", "required": False,