[NETCONF-118] Implement Query parameters - filter Created: 06/Jan/16  Updated: 15/Mar/19  Resolved: 15/Nov/16

Status: Resolved
Project: netconf
Component/s: restconf-nb
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: geyubo Assignee: Jakub Toth
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
blocks NETCONF-304 Milestone: Query parameters Resolved
is blocked by NETCONF-18 Enhance RESTconf to implement latest ... Resolved
Duplicate
is duplicated by NETCONF-117 Missing support "filter" parameter f... Resolved
External issue ID: 4883

 Description   

RESTCONF Protocol draft-ietf-netconf-restconf-09

"filter" Parameter

The following URIs show some examples of notification filter
specifications (lines wrapped for display purposes only):

// filter = /event/event-class='fault'
GET /streams/NETCONF?filter=%2Fevent%2Fevent-class%3D'fault'

// filter = /event/severity<=4
GET /streams/NETCONF?filter=%2Fevent%2Fseverity%3C%3D4

// filter = /linkUp|/linkDown
GET /streams/SNMP?filter=%2FlinkUp%7C%2FlinkDown

// filter = /*/reporting-entity/card!='Ethernet0'
GET /streams/NETCONF?
filter=%2F*%2Freporting-entity%2Fcard%21%3D'Ethernet0'

// filter = /*/email-addr[contains(.,'company.com')]
GET /streams/critical-syslog?
filter=%2F*%2Femail-addr[contains(.%2C'company.com')]

// Note: the module name is used as prefix.
// filter = (/example-mod:event1/name='joe' and
// /example-mod:event1/status='online')
GET /streams/NETCONF?
filter=(%2Fexample-mod%3Aevent1%2Fname%3D'joe'%20and
%20%2Fexample-mod%3Aevent1%2Fstatus%3D'online')

// To get notifications from just two modules (e.g., m1 + m2)
// filter=(/m1:* or /m2:*)
GET /streams/NETCONF?filter=(%2Fm1%3A*%20or%20%2Fm2%3A*)



 Comments   
Comment by Martin Ciglan [ 07/Jan/16 ]

This support is expected in Boron, when
https://bugs.opendaylight.org/show_bug.cgi?id=2781
will be implemented.

I'm moving this issue to Netconf project.

Comment by Jakub Toth [ 13/Nov/16 ]

https://git.opendaylight.org/gerrit/#/c/48268/

Generated at Wed Feb 07 20:14:13 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.