Files
wlan-ucentral-schema/schema/interface.ipv4.yml
John Crispin b4635dcf02 add 138 to default requested DHCP options
Signed-off-by: John Crispin <john@phrozen.org>
2025-05-19 06:21:20 +02:00

91 lines
2.3 KiB
YAML

description:
This section describes the IPv4 properties of a logical interface.
type: object
properties:
addressing:
description:
This option defines the method by which the IPv4 address of the interface
is chosen.
type: string
enum:
- dynamic
- static
- none
examples:
- static
subnet:
description:
This option defines the static IPv4 of the logical interface in CIDR notation.
auto/24 can be used, causing the configuration layer to automatically use
and address range from globals.ipv4-network.
type: string
format: uc-cidr4
examples:
- auto/24
gateway:
description:
This option defines the static IPv4 gateway of the logical interface.
type: string
format: ipv4
examples:
- 192.168.1.1
send-hostname:
description:
include the devices hostname inside DHCP requests
type: boolean
default: true
examples:
- true
vendor-class:
description:
Include the provided vendor-class inside DHCP requests
type: string
default: OpenLAN
examples:
- OpenLAN
request-options:
description:
Define additional DHCP options to request inside DHCP requests
type: array
default: [43, 60, 138, 224]
items:
type: integer
minimum: 1
maximum: 255
examples:
- 43
use-dns:
description:
Define which DNS servers shall be used. This can either be a list of
static IPv4 addresse or dhcp (use the server provided by the DHCP lease)
type: array
items:
type: string
format: ipv4
examples:
- 8.8.8.8
- 4.4.4.4
disallow-upstream-subnet:
description:
This option only applies to "downstream" interfaces. The downstream interface will
prevent traffic going out to the listed CIDR4s.
This can be used to prevent a guest / captive interface being able to communicate with
RFC1918 ranges.
type: array
items:
type: string
format: uc-cidr4
examples:
- 192.168.0.0/16
- 10.0.0.0/8
dhcp:
$ref: "https://ucentral.io/schema/v1/interface/ipv4/dhcp/"
dhcp-leases:
type: array
items:
$ref: "https://ucentral.io/schema/v1/interface/ipv4/dhcp-lease/"
port-forward:
type: array
items:
$ref: "https://ucentral.io/schema/v1/interface/ipv4/port-forward/"