mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-18 02:25:05 +00:00
Interfaces: Other Types: VLAN - add unique constraint for tag+if, closes https://github.com/opnsense/core/issues/5806
This commit is contained in:
parent
84b6d07558
commit
570309c457
@ -8,11 +8,25 @@
|
||||
<vlan type="ArrayField">
|
||||
<if type=".\VlanInterfaceField">
|
||||
<Required>Y</Required>
|
||||
<Constraints>
|
||||
<check001>
|
||||
<reference>tag.check001</reference>
|
||||
</check001>
|
||||
</Constraints>
|
||||
</if>
|
||||
<tag type="IntegerField">
|
||||
<MinimumValue>1</MinimumValue>
|
||||
<MaximumValue>4094</MaximumValue>
|
||||
<Required>Y</Required>
|
||||
<Constraints>
|
||||
<check001>
|
||||
<ValidationMessage>Tag should be unique for this interface</ValidationMessage>
|
||||
<type>UniqueConstraint</type>
|
||||
<addFields>
|
||||
<field1>if</field1>
|
||||
</addFields>
|
||||
</check001>
|
||||
</Constraints>
|
||||
</tag>
|
||||
<pcp type="OptionField">
|
||||
<Required>Y</Required>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user