Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yangdump yang file error eg: [email protected]/[email protected] #90

Open
adamzyg opened this issue Jul 17, 2020 · 1 comment
Open

Comments

@adamzyg
Copy link

adamzyg commented Jul 17, 2020

hi,
I want implement call-home function base on yuma123.
I found the ietf yang of call-home at netopeer2 modules. But when I yangdump thest modules some errors occur, like below:
yangdump --module=[email protected] --format=c --subtree=./ --output="./" --log-level="debug3"

xmlns_reg: id: 2 mod:yuma-ncx	uri: 
xmlns_reg: id: 3 mod:yuma123-netconf	uri: urn:ietf:params:xml:ns:netconf:base:1.0
xmlns_reg: id: 4 mod:yang	uri: urn:ietf:params:xml:ns:yang:1
xmlns_reg: id: 5 mod:yin	uri: urn:ietf:params:xml:ns:yang:yin:1
xmlns_reg: id: 6 mod:W3C XML Namespaces	uri: http://www.w3.org/2000/xmlns/
xmlns_reg: id: 7 mod:W3C XML Schema Definition	uri: http://www.w3.org/2001/XMLSchema
xmlns_reg: id: 8 mod:W3C XML Schema Instance	uri: http://www.w3.org/2001/XMLSchema-instance
xmlns_reg: id: 9 mod:W3C XML Lang Attribute	uri: http://www.w3.org/XML/1998/namespace
xmlns_reg: id:10 mod:wd:default Attribute	uri: urn:ietf:params:xml:ns:netconf:default:1.0
Attempting to load module 'yuma-ncx'
Loading YANG module from file:
  /usr/share/yuma/modules/netconfcentral/yuma-ncx.yang
yang_parse: Start module 'yuma-ncx' OK
xmlns_reg: id:11 mod:yuma-ncx	uri: http://netconfcentral.org/ns/yuma-ncx
yang_obj_resolve_xpath for module 'yuma-ncx'
Attempting to load module 'yangdump'
Loading YANG module from file:
  /usr/share/yuma/modules/yuma123/yangdump.yang
yang_parse: Start module 'yangdump' OK
xmlns_reg: id:12 mod:yangdump	uri: http://yuma123.org/ns/yangdump
Attempting to load module 'yuma-app-common'
Loading YANG module from file:
  /usr/share/yuma/modules/netconfcentral/yuma-app-common.yang
yang_parse: Start module 'yuma-app-common' OK
xmlns_reg: id:13 mod:yuma-app-common	uri: http://netconfcentral.org/ns/yuma-app-common
Attempting to load module 'yuma-types'
Loading YANG module from file:
  /usr/share/yuma/modules/netconfcentral/yuma-types.yang
yang_parse: Start module 'yuma-types' OK
xmlns_reg: id:14 mod:yuma-types	uri: http://netconfcentral.org/ns/yuma-types
yang_obj_resolve_xpath for module 'yuma-types'
yang_obj_resolve_xpath for module 'yuma-app-common'
yang_obj_resolve_xpath for module 'yangdump'
xmlns_reg: id:15 mod:yuma-ncx	uri: urn:ietf:params:xml:ns:netconf:notification:1.0
CLI: input parameters:
   arg0: 'yangdump'
   arg1: '[email protected]'
   arg2: '--format=c'
   arg3: '--subtree=./'
   arg4: '--output=./'
   arg5: '--log-level=debug3'

*** Generated by yangdump 2.12-0
*** Copyright (c) 2008-2012, Andy Bierman, All Rights Reserved.

Attempting to load module '[email protected]'
Loading YANG module from file:
  [email protected]
yang_parse: Start module 'ietf-ssh-common' OK
xmlns_reg: id:16 mod:ietf-ssh-common	uri: urn:ietf:params:xml:ns:yang:ietf-ssh-common
Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:118.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:129.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:140.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:151.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:163.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:176.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:189.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:202.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:229.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:239.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:249.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:260.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:271.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:319.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:329.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:339.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:363.8: error(246): wrong token value

Error:  Got 'if-feature', Expected: identity sub-statement
[email protected]:373.8: error(246): wrong token value

yang_obj_resolve_xpath for module 'ietf-ssh-common'
*** /home/zyg/netconf/netopeer2/modules/[email protected]
*** 18 Errors, 0 Warnings

I found when the if-feature exists of the identity, the errors show by yangdump, but the if-feature in the identity is the yang 1.1 standard syntax, so please help me resolving this issue. Thank you.

@vlvassilev
Copy link
Owner

I would like to look into this issue but [email protected] is not part of any published draft (14 has [email protected] 15 has [email protected]). Where did you get [email protected] from?

Sorry about the late reply. I just saw there was an issue I oversaw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants