Uploaded image for project: 'hc2vpp'
  1. hc2vpp
  2. HC2VPP-290

pyang fails to validate interface-acl model

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • 18.04
    • None
    • acl
    • None

      m@m:~/hc2vpp/acl/acl-api/src/main/yang$ pyang -p ~/model_validation/common_yang_dependencies interface-acl@2016-12-14.yang
       ietf-access-control-list@2016-07-08.yang:87: error: interface-acl:access-lists in the path for name at interface-acl@2016-12-14.yang:70 (at interface-acl@2016-12-14.yang:35) is not found
       ietf-access-control-list@2016-07-08.yang:87: error: interface-acl:access-lists in the path for name at interface-acl@2016-12-14.yang:70 (at interface-acl@2016-12-14.yang:50) is not found
       ietf-access-control-list@2016-07-08.yang:87: error: interface-acl:access-lists in the path for name at interface-acl@2016-12-14.yang:70 (at interface-acl@2016-12-14.yang:35) is not found
       ietf-access-control-list@2016-07-08.yang:87: error: interface-acl:access-lists in the path for name at interface-acl@2016-12-14.yang:75 (at interface-acl@2016-12-14.yang:35) is not found
       ietf-access-control-list@2016-07-08.yang:87: error: interface-acl:access-lists in the path for name at interface-acl@2016-12-14.yang:75 (at interface-acl@2016-12-14.yang:50) is not found
       ietf-access-control-list@2016-07-08.yang:87: error: interface-acl:access-lists in the path for name at interface-acl@2016-12-14.yang:75 (at interface-acl@2016-12-14.yang:35) is not found

      Including prefix int the leafref type definition:

      typedef access-control-list-ref {
          type leafref {
            path "/acl:access-lists/acl:acl/acl:acl-name";
          }
      [...]
      

      fixes the issue, so it is either issue with pyang or ietf-access-control-list model.
      Investigate that and report.

            mgradzki Marek Gradzki
            mgradzki Marek Gradzki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: