You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9024718
Browse filesBrowse the repository at this point in the historyBrowse files
* fix(DHCPServer): accept OUI-partial MAC entries in mac_allow/mac_deny (GUI parity)
* fix(NetworkInterface): only validate descr filter-name rules on CHANGED values
* feat(NetworkInterface): expose DHCPv6 client PD fields (dhcp6-ia-pd-len, dhcp6prefixonly)
* docs: update default version in README install commands
* docs: add notice that this project is reaching eol
* feat: support pfSense CE 2.9.1 and Plus 26.07.1
* style: run prettier on changed files
* test(NetworkInterface): fix broken NetworkInterface tests
* test(NetworkInterface): fix broken interface descr length test
* test(NetworkInterface): fix additional broken interface length tests
* test(NetworkInterface): fix additional broken interface length tests
* ci: update python version used in release workflow
* ci: update python version used in quality workflow
* ci: source oas schema from 2.9.0 in quality workflow
* feat: support pfSense CE 2.9.2 and Plus 26.07.2
* ci: check oas schema with correct pf version
* ci: correct freebsd version in oas checks
---------
Co-authored-by: Clément PAPPALARDO <clement@NiPoGi.ipc.local>
Co-authored-by: Clément PAPPALARDO <16377344+lemassykoi@users.noreply.github.com>
help_text: 'MAC addresses this DHCP server is allowed to provide leases for. OUI prefixes (partial MACs, e.g. `EC:71:DB`) are accepted to match all devices of a vendor (GUI parity).',
133
133
);
134
134
$this->mac_deny = newStringField(
135
135
default: [],
136
136
allow_empty: true,
137
137
many: true,
138
138
maximum_length: 17,
139
139
verbose_name: 'MAC Deny',
140
-
validators: [newMACAddressValidator()],
141
-
help_text: 'MAC addresses this DHCP server is not allowed to provide leases for.',
help_text: 'MAC addresses this DHCP server is not allowed to provide leases for. OUI prefixes (partial MACs, e.g. `EC:71:DB`) are accepted to match all devices of a vendor (GUI parity).',
help_text: 'MAC addresses this DHCP server is allowed to provide leases for.',
79
+
help_text: 'MAC addresses this DHCP server is allowed to provide leases for. OUI prefixes (partial MACs, e.g. `EC:71:DB`) are accepted to match all devices of a vendor (GUI parity).',
help_text: 'MAC addresses this DHCP server is not allowed to provide leases for.',
88
+
help_text: 'MAC addresses this DHCP server is not allowed to provide leases for. OUI prefixes (partial MACs, e.g. `EC:71:DB`) are accepted to match all devices of a vendor (GUI parity).',
help_text: 'The descriptive name for this interface.',
103
102
);
@@ -367,6 +366,43 @@ class NetworkInterface extends Model {
367
366
verbose_name: 'SLAAC Use IPv4 Interface',
368
367
help_text: 'Enable or disable IPv6 using the IPv4 connectivity link (PPPoE).',
369
368
);
369
+
370
+
$this->dhcp6prefixonly = newBooleanField(
371
+
default: false,
372
+
conditions: ['typev6' => 'dhcp6'],
373
+
verbose_name: 'Request Only an IPv6 Prefix',
374
+
help_text: 'Only request an IPv6 prefix, do not request an IPv6 address.',
375
+
);
376
+
$this->dhcp6_ia_pd_len = newStringField(
377
+
required: false,
378
+
default: 'none',
379
+
allow_empty: false,
380
+
conditions: ['typev6' => 'dhcp6'],
381
+
choices: [
382
+
'none',
383
+
'0',
384
+
'1',
385
+
'2',
386
+
'3',
387
+
'4',
388
+
'5',
389
+
'6',
390
+
'7',
391
+
'8',
392
+
'9',
393
+
'10',
394
+
'11',
395
+
'12',
396
+
'13',
397
+
'14',
398
+
'15',
399
+
'16',
400
+
],
401
+
internal_name: 'dhcp6-ia-pd-len',
402
+
maximum_length: 4,
403
+
verbose_name: 'DHCPv6 Prefix Delegation size',
404
+
help_text: 'The delegated prefix length provided by the DHCPv6 server. `none` disables delegation; numeric values are the IA-PD length (16 -> /48 ... 0 -> /64). Normally specified by the ISP.',
405
+
);
370
406
$this->prefix_6rd = newStringField(
371
407
required: true,
372
408
unique: true,
@@ -445,6 +481,16 @@ class NetworkInterface extends Model {
445
481
* @returns string The validated $descr to set.
446
482
* @throws ValidationError When the `$descr` value is invalid. */
0 commit comments