The network-instances YANG model [RFC8529] gives an example in Appendix A.1 of how to use schema mount to mount the routing protocol. An example modeled along those lines for the BGP YANG model, and enclosed herewith fails validation using yanglint with the following error. What am I doing wrong?

Validating yang/example-bgp-configuration-a.1.3.xml
err : Unknown element "routing". (/ietf-network-instance:network-instances/network-instance[name='vrf-red']/vrf-root)
failed (error code: 0)

With confdc it fails as follows:

Loading Data for example a.1.3
confd_load: 666: maapi_load_config(sock, tid, flags, abspath(argv[0])) failed: external error (19): Error on line 9: unknown element: routing in /ni:network-instances/ni:network-instance[ni:name='vrf-red']/ni:vrf-root/rt:routing

If what I have is not an error, it raises two questions. Is schema mount supported? Supported from a validation perspective. I can imagine that not everyone (or anyone) may have actually implemented schema mount. 

And the second and more important question is how are routing protocols supposed to support VRF if the two models, network instance and routing protocol, do not work together? What needs to change to get them to work?

Thanks.

Mahesh Jethanandani


Attachment: example-bgp-configuration-a.1.3.xml
Description: XML document

_______________________________________________
netmod mailing list
netmod@ietf.org
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to