{"action":"created","issue":{"url":"https://api.github.com/repos/mbj4668/pyang/issues/170","labels_url":"https://api.github.com/repos/mbj4668/pyang/issues/170/labels{/name}","comments_url":"https://api.github.com/repos/mbj4668/pyang/issues/170/comments","events_url":"https://api.github.com/repos/mbj4668/pyang/issues/170/events","html_url":"https://github.com/mbj4668/pyang/issues/170","id":110970972,"number":170,"title":"Unknown keyword path - error when converting YANG to DSDL or RNG","user":{"login":"marioMadunic","id":14111026,"avatar_url":"https://avatars.githubusercontent.com/u/14111026?v=3","gravatar_id":"","url":"https://api.github.com/users/marioMadunic","html_url":"https://github.com/marioMadunic","followers_url":"https://api.github.com/users/marioMadunic/followers","following_url":"https://api.github.com/users/marioMadunic/following{/other_user}","gists_url":"https://api.github.com/users/marioMadunic/gists{/gist_id}","starred_url":"https://api.github.com/users/marioMadunic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marioMadunic/subscriptions","organizations_url":"https://api.github.com/users/marioMadunic/orgs","repos_url":"https://api.github.com/users/marioMadunic/repos","events_url":"https://api.github.com/users/marioMadunic/events{/privacy}","received_events_url":"https://api.github.com/users/marioMadunic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-12T13:03:58Z","updated_at":"2015-10-12T14:54:48Z","closed_at":null,"body":"Hi,\r\n(Posting here as I can't find a mailing list)\r\n\r\nI'm using Pyang to transform a Yang model to RNG, either using Pyang or yang2dsdl, and receive the following error message:\r\nUnknown keyword path - this should not happen.\r\n\r\nEntering the following on the CLI\r\npyang -f dsdl tailf-ned-cisco-ios.yang\r\n\r\nAll modules are in the same directory and using latest version of Pyang and run on a Mac OS 10.9.5\r\n\r\nIs this a bug or how pyang is being executed.\r\n\r\nthanks\r\nMario\r\n\r\nimport statements\r\n  import tailf-common {\r\n    prefix tailf;\r\n  }\r\n  import ietf-inet-types {\r\n    prefix inet;\r\n  }\r\n  import ietf-yang-types {\r\n    prefix yang;\r\n  }\r\nThe above have submodules and all are in the same directory.\r\n\r\nfirst instance of path\r\n        leaf table {\r\n          tailf:info \"Specify table-map\";\r\n          type leafref {\r\n            path \"/ios:table-map/name\";\r\n          }\r\n        }\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mbj4668/pyang/issues/comments/147423288","html_url":"https://github.com/mbj4668/pyang/issues/170#issuecomment-147423288","issue_url":"https://api.github.com/repos/mbj4668/pyang/issues/170","id":147423288,"user":{"login":"llhotka","id":381993,"avatar_url":"https://avatars.githubusercontent.com/u/381993?v=3","gravatar_id":"","url":"https://api.github.com/users/llhotka","html_url":"https://github.com/llhotka","followers_url":"https://api.github.com/users/llhotka/followers","following_url":"https://api.github.com/users/llhotka/following{/other_user}","gists_url":"https://api.github.com/users/llhotka/gists{/gist_id}","starred_url":"https://api.github.com/users/llhotka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/llhotka/subscriptions","organizations_url":"https://api.github.com/users/llhotka/orgs","repos_url":"https://api.github.com/users/llhotka/repos","events_url":"https://api.github.com/users/llhotka/events{/privacy}","received_events_url":"https://api.github.com/users/llhotka/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T14:54:48Z","updated_at":"2015-10-12T14:54:48Z","body":"From the error message it seems \"path\" statement is used in a place where the DSDL plugin doesn't expect it, even though pyang parsed it correctly. Could this perhaps be inside an extension?"}}