BroadbandForum / obuspa

OB-USP-AGENT is a system daemon providing a User Services Platform (USP) Agent. https://github.com/BroadbandForum/obuspa/wiki
BSD 3-Clause "New" or "Revised" License
93 stars 62 forks source link

Support for contains (~=) expression #92

Open wildmeng opened 1 year ago

wildmeng commented 1 year ago

Hi, just wonder if the contains (~=) expression will be supported , or is it already supported in the latest release?

examples from the usp spec: All Parameters of all PCP servers with IPv6Firewall capabilities: Device.PCP.Client.*.Server.[Capabilities~="IPv6Firewall"].

All Parameters of all PeriodicStatistics SampleSets that collected data for 5 seconds: Device.PeriodicStatistics.SampleSet.[SampleSeconds~=5].

holme-r commented 1 year ago

We have noted this request, but there isn't any definitive timeline for when this would be available. Perhaps you would like to contribute this feature ? I don't think it would be too hard to add. It would need adding to expr_vector.c in the enumeration and a few other places in that file. Likewise the DM_ACCESS_CompareXXX set of functions would need it adding for some of the types.

wildmeng commented 1 year ago

Ok, I will have a look at this, thanks!