{"action":"created","issue":{"url":"https://api.github.com/repos/sysrepo/sysrepo/issues/622","repository_url":"https://api.github.com/repos/sysrepo/sysrepo","labels_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/622/labels{/name}","comments_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/622/comments","events_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/622/events","html_url":"https://github.com/sysrepo/sysrepo/issues/622","id":194634564,"number":622,"title":"interface type when set fails","user":{"login":"joanlandry","id":20564647,"avatar_url":"https://avatars.githubusercontent.com/u/20564647?v=3","gravatar_id":"","url":"https://api.github.com/users/joanlandry","html_url":"https://github.com/joanlandry","followers_url":"https://api.github.com/users/joanlandry/followers","following_url":"https://api.github.com/users/joanlandry/following{/other_user}","gists_url":"https://api.github.com/users/joanlandry/gists{/gist_id}","starred_url":"https://api.github.com/users/joanlandry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joanlandry/subscriptions","organizations_url":"https://api.github.com/users/joanlandry/orgs","repos_url":"https://api.github.com/users/joanlandry/repos","events_url":"https://api.github.com/users/joanlandry/events{/privacy}","received_events_url":"https://api.github.com/users/joanlandry/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-09T16:13:41Z","updated_at":"2016-12-12T06:16:48Z","closed_at":"2016-12-09T17:56:47Z","body":"tried to commit the following:\r\n   ```\r\nvalue.type = SR_IDENTITYREF_T;\r\n    value.data.identityref_val = \"ianaift:other\"; //ietfType;\r\n    rc = sr_set_item(session, xpath_buf, &value, SR_EDIT_DEFAULT);\r\n    if (SR_ERR_OK != rc) {\r\n       TRACE_LOG(TRACE_NETCONF, TRACE_INFO, \"failed %s\", sr_strerror(rc));\r\n    }\r\n\r\n```\r\nsysrepo error \r\n```\r\nDBG] Circular buffer dequeue, new buffer head=6, count=0.\r\n[DBG] Processing set_item request.\r\n[INF] Set item request running datastore, xpath: /ietf-interfaces:interfaces/interface[name='tun-1']/type\r\n[DBG] Module ietf-interfaces already loaded\r\n[DBG] libyang error: Failed to resolve identityref \"ianaift:other\".\r\n[DBG] libyang error: Failed to create node \"type\" as a child of \"interface\".\r\n[ERR] Setting of item failed /ietf-interfaces:interfaces/interface[name='tun-1']/type 29\r\n[ERR] Set item failed\r\n[ERR] Set item failed for '/ietf-interfaces:interfaces/interface[name='tun-1']/type', session id=886248559.\r\n[DBG] Circular buffer enqueue to position=9, current count=1.\r\n[DBG] Thread id=140737317066496 will wait.\r\n[DBG] New message enqueued into CM message queue.\r\n[DBG] Circular buffer dequeue, new buffer head=0, count=0.\r\n[DBG] Sending 27 bytes of data.\r\n[DBG] 27 bytes of data sent.\r\n[DBG] fd 7 readable\r\n[DBG] 95 bytes of data received on fd 7\r\n[DBG] fd 7 would block\r\n[DBG] New message of size 91 bytes received.\r\n[DBG] Circular buffer enqueue to position=6, current count=1.\r\n[DBG] Threads: active=0/4, 1 requests in queue\r\n[DBG] Thread id=140737308673792 signaled.\r\n[DBG] Circular buffer dequeue, new buffer head=7, count=0.\r\n[DBG] Processing set_item request.\r\n[INF] Set item request running datastore, xpath: /ietf-interfaces:interfaces/interface[name='tun-1']/enabled\r\n[DBG] Module ietf-interfaces already loaded\r\n[\r\n```"},"comment":{"url":"https://api.github.com/repos/sysrepo/sysrepo/issues/comments/266351432","html_url":"https://github.com/sysrepo/sysrepo/issues/622#issuecomment-266351432","issue_url":"https://api.github.com/repos/sysrepo/sysrepo/issues/622","id":266351432,"user":{"login":"lukasmacko","id":16013493,"avatar_url":"https://avatars.githubusercontent.com/u/16013493?v=3","gravatar_id":"","url":"https://api.github.com/users/lukasmacko","html_url":"https://github.com/lukasmacko","followers_url":"https://api.github.com/users/lukasmacko/followers","following_url":"https://api.github.com/users/lukasmacko/following{/other_user}","gists_url":"https://api.github.com/users/lukasmacko/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasmacko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasmacko/subscriptions","organizations_url":"https://api.github.com/users/lukasmacko/orgs","repos_url":"https://api.github.com/users/lukasmacko/repos","events_url":"https://api.github.com/users/lukasmacko/events{/privacy}","received_events_url":"https://api.github.com/users/lukasmacko/received_events","type":"User","site_admin":false},"created_at":"2016-12-12T06:16:48Z","updated_at":"2016-12-12T06:16:48Z","body":"Yes, you're right if you are trying to set using sr_set_item* call an identity defined outside of the module you have to qualify it with the module."}}
{"actor":{"display_login":"lukasmacko"}}