Subject: [bess] Some YANG validator error info about draft-ietf-bess-l3vpn-yang

From: "Wanghaibo (Rainsword)" <[email-masked]>
Date: Tue, 14 Sep 2021 12:32:46 +0000

Hi Authors,

Recently, we are preparing to use the L3VPN yang model, we check it with the yang-validator at https://yangcatalog.org/yangvalidator,
and found the following errors:

Pyang Validation
/var/yang/tmp/yangvalidator/yangvalidator-v2-workdir-TwlCIaOZ/[email-masked]:508: error: node ietf-bgp::bgp is not found
/var/yang/tmp/yangvalidator/yangvalidator-v2-workdir-TwlCIaOZ/[email-masked]:515: error: node ietf-bgp::bgp is not found
/var/yang/tmp/yangvalidator/yangvalidator-v2-workdir-TwlCIaOZ/[email-masked]:523: error: node ietf-bgp::bgp is not found
/var/yang/tmp/yangvalidator/yangvalidator-v2-workdir-TwlCIaOZ/[email-masked]:532: error: node ietf-bgp::bgp is not found
These errors appears to be model reference error.  The yang info are defined like this:
  augment "/bgp:bgp/bgp:global/bgp:afi-safis/" +
          "bgp:afi-safi/bgp:l3vpn-ipv4-unicast" {
    description "Retain route targets for ASBR scenario";
    uses retain-route-targets;
    uses vpn-pfx-limit;
  }

 Reference to the correct model, eg. ietf-bgp-sr , it looks like should be defined like this:
  augment "/rt:routing/rt:control-plane-protocols/rt:control-plane-protocol/" +
          "bgp:bgp/bgp:global/bgp:afi-safis/bgp:afi-safi/bgp:ipv4-unicast" {
    description
      "Augment BGP SAFI route";
    uses common-bgp-route-grouping;
  }

Please confirm this issue and hope to update the document to fix it.

Regards,
Haibo