In Catalyst IOS devices (2960X, 3560CX and older 3560X/3750X) I created a class-map to match against a device type using a simple regular expression based on the local device classifier. I used this in an IBNS 2.0 policy to cater for the scenario of when the radius servers are down. The service policy is based on the templates that DNAC uses, plus others I have found online and what has come out of my testing.
This is the class-map
class-map type control subscriber match-any AI_PHONE_DEVICE
match device-type ".*IP-Phone*"
This would match against any device that had "IP-Phone" in the profile name.
With any of the IOS-XE devices, this no longer works as the regular expression isn't valid when viewed with a show command (it was added exactly as above with the .*
match-any AI_PHONE_DEVICE match device-type "./IP-Phone/"
Doing the same show command on the previous IOS switches shows the correct regex (".*IP-Phone*")
I found a document that stated use the keyword 'regex' before the ".*IP-Phone*", however this command isn't accepted.
I can expand the class-map out to include all potential device types and I've tested this and it works, but there are lots and I'd rather use the wildcard ".*IP-Phone*"
Any idea how to do this with IOS-XE switches? Or is it a 'feature'