{"action":"created","issue":{"url":"https://api.github.com/repos/mbj4668/pyang/issues/462","repository_url":"https://api.github.com/repos/mbj4668/pyang","labels_url":"https://api.github.com/repos/mbj4668/pyang/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/mbj4668/pyang/issues/462/comments","events_url":"https://api.github.com/repos/mbj4668/pyang/issues/462/events","html_url":"https://github.com/mbj4668/pyang/issues/462","id":405621693,"node_id":"MDU6SXNzdWU0MDU2MjE2OTM=","number":462,"title":"XPath syntax error: Literal ","user":{"login":"markhaajii","id":32993736,"node_id":"MDQ6VXNlcjMyOTkzNzM2","avatar_url":"https://avatars3.githubusercontent.com/u/32993736?v=4","gravatar_id":"","url":"https://api.github.com/users/markhaajii","html_url":"https://github.com/markhaajii","followers_url":"https://api.github.com/users/markhaajii/followers","following_url":"https://api.github.com/users/markhaajii/following{/other_user}","gists_url":"https://api.github.com/users/markhaajii/gists{/gist_id}","starred_url":"https://api.github.com/users/markhaajii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markhaajii/subscriptions","organizations_url":"https://api.github.com/users/markhaajii/orgs","repos_url":"https://api.github.com/users/markhaajii/repos","events_url":"https://api.github.com/users/markhaajii/events{/privacy}","received_events_url":"https://api.github.com/users/markhaajii/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2019-02-01T09:36:23Z","updated_at":"2019-02-01T10:35:30Z","closed_at":null,"author_association":"NONE","body":"Hello Dears,\r\n\r\ni try to parse Huawei yang models by pyang. I tested another Netconf client and it parsed and passed with warnings instead of errors. But pyang display those errors:\r\n\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-arp@2018-06-11.yang:553: error: XPath syntax error: Literal true from path is not of type enumeration\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-bfd-deviations-ATN-980B@2018-06-11.yang:421: error: XPath syntax error: Literal VXLAN from path is not of type enumeration\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-bfd-deviations-ATN-980B@2018-06-11.yang:426: error: XPath syntax error: Literal VXLAN from path is not of type enumeration\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-bfd-deviations-ATN-980B@2018-06-11.yang:431: error: XPath syntax error: Literal VXLAN from path is not of type enumeration\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-bgp-bgpcomm@2018-06-11.yang:319: error: XPath syntax error: Literal _public_ from path is not of type leafref\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-bgp-bgpcomm@2018-06-11.yang:326: error: XPath syntax error: Literal _public_ from path is not of type leafref\r\n\r\nHow could i upload those models\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/mbj4668/pyang/issues/comments/459679516","html_url":"https://github.com/mbj4668/pyang/issues/462#issuecomment-459679516","issue_url":"https://api.github.com/repos/mbj4668/pyang/issues/462","id":459679516,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1OTY3OTUxNg==","user":{"login":"markhaajii","id":32993736,"node_id":"MDQ6VXNlcjMyOTkzNzM2","avatar_url":"https://avatars3.githubusercontent.com/u/32993736?v=4","gravatar_id":"","url":"https://api.github.com/users/markhaajii","html_url":"https://github.com/markhaajii","followers_url":"https://api.github.com/users/markhaajii/followers","following_url":"https://api.github.com/users/markhaajii/following{/other_user}","gists_url":"https://api.github.com/users/markhaajii/gists{/gist_id}","starred_url":"https://api.github.com/users/markhaajii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markhaajii/subscriptions","organizations_url":"https://api.github.com/users/markhaajii/orgs","repos_url":"https://api.github.com/users/markhaajii/repos","events_url":"https://api.github.com/users/markhaajii/events{/privacy}","received_events_url":"https://api.github.com/users/markhaajii/received_events","type":"User","site_admin":false},"created_at":"2019-02-01T10:35:30Z","updated_at":"2019-02-01T10:35:30Z","author_association":"NONE","body":"Dear mbj4668\r\nI upgraded pyang to 1.7.8 and previous errors are fixed. but some errors are displayed. My netconf client is YangExplorer. Could you mind know those errors:\r\n\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-mcfwd@2018-06-11.yang:699: error: huawei-devm:lpuBoards in the path for setEgressMcFwdMode at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-mcfwd@2018-06-11.yang:697 is not found\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-nsm@2018-06-11.yang:744: error: huawei-devm:lpuBoards in the path for sourceSlot at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-nsm@2018-06-11.yang:742 is not found\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-nsm@2018-06-11.yang:757: error: huawei-devm:lpuBoards in the path for destSlot at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-nsm@2018-06-11.yang:754 is not found\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-nsm@2018-06-11.yang:824: error: huawei-devm:lpuBoards in the path for samperSlot at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-nsm@2018-06-11.yang:822 is not found\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-nsm@2018-06-11.yang:870: error: huawei-devm:lpuBoards in the path for samperSlot at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-nsm@2018-06-11.yang:868 is not found\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-staticrt-staticrtbase@2018-06-11.yang:338: error: huawei-nqa:nqaIcmps in the path for trackNqaAdminName at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-staticrt@2018-06-11.yang:50 (at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-staticrt-staticrtbase@2018-06-11.yang:335) is not found\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-staticrt-staticrtbase@2018-06-11.yang:347: error: huawei-nqa:nqaIcmps in the path for trackNqaTestName at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-staticrt@2018-06-11.yang:50 (at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-staticrt-staticrtbase@2018-06-11.yang:344) is not found\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-staticrt-staticrtbase@2018-06-11.yang:608: error: huawei-nqa:nqaIcmps in the path for trackNqaAdminName at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-staticrt@2018-06-11.yang:50 (at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-staticrt-staticrtbase@2018-06-11.yang:606) is not found\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-staticrt-staticrtbase@2018-06-11.yang:616: error: huawei-nqa:nqaIcmps in the path for trackNqaTestName at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-staticrt@2018-06-11.yang:50 (at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/huawei-staticrt-staticrtbase@2018-06-11.yang:614) is not found\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/ietf-ip@2014-06-16.yang:132: error: there is already a child node to \"/if:interfaces/if:interface\" at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/ietf-ip@2014-06-16.yang:127 with the name \"ipv4\" defined at /home/admin/yang-explorer/v/share/yang/modules/ietf/ietf-ip.yang:155\r\ndata/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/ietf-ip@2014-06-16.yang:380: error: there is already a child node to \"/if:interfaces-state/if:interface\" at data/session/nr8xm6al6etlfukn59tqb45z4rxkcl5s/ietf-ip@2014-06-16.yang:377 with the name \"ipv4\" defined at /home/admin/yang-explorer/v/share/yang/modules/ietf/ietf-ip.yang:565\r\n\r\n"}}
{"actor":{"display_login":"markhaajii"}}