Skip to content

Commit 28abe15

Browse files
committed
minor #19784 [Validator] Add support for types (ALL*, LOCAL_*, UNIVERSAL_*, UNICAST_*, MULTICAST_*, BROADCAST) in MacAddress constraint (Ninos)
This PR was merged into the 7.1 branch. Discussion ---------- [Validator] Add support for types (`ALL*`, `LOCAL_*`, `UNIVERSAL_*`, `UNICAST_*`, `MULTICAST_*`, `BROADCAST`) in `MacAddress` constraint See also following pull request: symfony/symfony#54473 Commits ------- 0ed185a [Validator] Add support for types (`ALL*`, `LOCAL_*`, `UNIVERSAL_*`, `UNICAST_*`, `MULTICAST_*`, `BROADCAST`) in `MacAddress` constraint
2 parents 68d6b11 + 0ed185a commit 28abe15

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

reference/constraints/MacAddress.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,33 @@ Parameter Description
103103

104104
.. include:: /reference/constraints/_payload-option.rst.inc
105105

106+
.. _reference-constraint-mac-address-type:
107+
108+
``type``
109+
~~~~~~~~
110+
111+
**type**: ``string`` **default**: ``all``
112+
113+
This determines exactly *how* the MAC address is validated. This option defines a
114+
lot of different possible values based on the type of MAC address that you want to allow/deny:
115+
116+
================================ ==============================================================
117+
Parameter Description
118+
================================ ==============================================================
119+
``all`` All
120+
``all_no_broadcast`` All except broadcast
121+
``local_all`` Only local
122+
``local_no_broadcast`` Only local except broadcast
123+
``local_unicast`` Only local and unicast
124+
``local_multicast`` Only local and multicast
125+
``local_multicast_no_broadcast`` Only local and multicast except broadcast
126+
``universal_all`` Only universal
127+
``universal_unicast`` Only universal and unicast
128+
``universal_multicast`` Only universal and multicast
129+
``unicast_all`` Only unicast
130+
``multicast_all`` Only multicast
131+
``multicast_no_broadcast`` Only multicast except broadcast
132+
``broadcast`` Only broadcast
133+
=============== ==============================================================
134+
106135
.. _`MAC address`: https://en.wikipedia.org/wiki/MAC_address

0 commit comments

Comments
 (0)