dhcp-server matcher filter

Is it possible to use wildcard (*,!, %, …) or some operator like “starts with” in /ip dhcp-server value= matcher command?
If I want to separate IP addresses to different pools, I use script like this:
/ip dhcp-server matcher
add address-pool=pool54PhoneA code=60 name=android-09 server=D54 value=android-dhcp-9
add address-pool=pool54PhoneA code=60 name=android-12 server=D54 value=android-dhcp-12
add address-pool=pool54PhoneA code=60 name=android-08 server=D54 value=android-dhcp-8.0.0
add address-pool=pool54PhoneA code=60 name=androidHCLT server=D54 value=HUAWEI:android:CLT
add address-pool=pool54PhoneA code=60 name=androidHYAL server=D54 value=HUAWEI:android:YAL
add address-pool=pool54PhoneA code=60 name=androidHVOG server=D54 value=HUAWEI:android:VOG
add address-pool=pool54PC code=60 name=PC server=D54 value=“MSFT 5.0”

Every HUAWEI type of phones and every generation of Android uses different value, so I want to group them, like:
add address-pool=pool54PhoneA code=60 name=android server=D54 value=android-dhcp*
add address-pool=pool54PhoneA code=60 name=androidH server=D54 value=HUAWEI:android*

I’m in need of this too.


Sonos Devices :unamused: answer for Class-Id = “udhcp 0.9.8” :confused:
(Hostname is usually “SonosZP” but somehow I did change it on some Devices.)


Matching by a RegEx for all the MAC Adresses the Manufacturer uses would be helpful.
Obviously there are a Bunch of Vendors that can’t even set a sensible Class-Id…

bump Really need this feature - would be great to have a wildcard matcher. Any news on this?

Same for me.
Still interested.

I have good news. My ticket to Mikrotik was heard. I received feedback:

Just letting you know that we have added “matching-type” to the matcher, there will be options “exact” and “substring”. It will be available in next 7.16beta release.

PS: It is not yet included in 7.16beta2, so I am waiting very excitedly and with anticipation for the next beta release

Amazing!

Very excited for this!

My interest in filtering DHCP vendor attributes relates to us wanting to send a different boot file for hosts in UEFI x64 mode and those in legacy PXE BIOS mode.