Yang partial mac address comparison

Hi,
Is there an option to compare two mac addresses but say only the first few bytes. I don’t want to compare
the full mac addresses. I d like to do them using must statements in the data model.

Thanks
Rajiv

The substring() XPATH function, see https://www.w3.org/TR/1999/REC-xpath-19991116/#function-substring can be used to extract relevant bytes from the mac-address.

Thanks ! that helped