From liuai_finch at 163.com Thu Dec 7 08:03:31 2017 From: liuai_finch at 163.com (liuai) Date: Thu, 7 Dec 2017 16:03:31 +0800 (CST) Subject: [sysrepo-devel] How to subscribe list by key? Message-ID: <872b36f.a6b9.1603000434d.Coremail.liuai_finch@163.com> Hi, I subscribe the list by key like this way. rc = sr_subtree_change_subscribe(session,"/system1:platform/nodes[id='1']", subtree_change_cb, NULL, 0, SR_SUBSCR_APPLY_ONLY, &subscription); if (SR_ERR_OK != rc) { fprintf(stderr, "Error by sr_module_change_subscribe: %s\n", sr_strerror(rc)); goto cleanup; } But when i run my program, i got this error. "sr_module_change_subscribe: Operation not supported" Does the sr_subtree_change_subscribe support subscribe list by key? Or i need to call other function? ======= Following is my yang model. module system1 { ....... container platform { config true; list nodes { key "id"; leaf id { type string; } leaf name1 { type string; } leaf name2 { type string; } } } Thanks, Aiping -------------- next part -------------- An HTML attachment was scrubbed... URL: