Skip to content

Draft submission tool: YANG validation issue #2398

Description

@ietf-svn-bot

resolution_fixed type_defect | by bclaise@cisco.com


Reshad (rrahman@cisco.com) reported this issue with the submission tool, while posting draft-ietf-bfd-yang-07.txt

Benoit, I am in the process of submitting. FYI the submission tool check isn’t finding a module which I am adding in rev07 of the draft.

yanglint 0.13.75: yanglint --verbose -p {rfclib} -p {draftlib} -p {tmplib} {model} -i:
err : Data model "ietf-bfd-types" not found.
err : Importing "ietf-bfd-types" module into "ietf-bfd-mpls" failed.
err : Module "ietf-bfd-mpls" parsing failed.

What I think the issue is (we faced the same on yangvalidator.org):

draft-ietf-bfd-yang-07.txt contains multiple YANG modules.
From http://www.claise.be/IETFYANGPageCompilation.html, we can see:

ietf-bfd@2017-10-30.yang

iana-bfd-types@2017-10-30.yang <======

ietf-bfd-ip-mh@2017-10-30.yang

ietf-bfd-ip-sh@2017-10-30.yang

ietf-bfd-lag@2017-10-30.yang

ietf-bfd-mpls-te@2017-10-30.yang

ietf-bfd-mpls@2017-10-30.yang

Typically iana-bfd-types@2017-10-30.yang would be imported by other YANG modules.
So, while looping through the validation of each of the YANG modules, the other YANG modules should be in the path, ready to be imported.

https://datatracker.ietf.org/doc/draft-ietf-bfd-yang/ doesn't exhibit this issue as this is a cronjob, which extracts all YANG modules before validating them.

Regards, Benoit


Issue migrated from trac:2398 at 2022-03-04 05:59:41 +0000

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions