YangCatalog / backend

YANG Catalog's REST API and internal module processing pipeline
https://yangcatalog.org
Apache License 2.0
2 stars 11 forks source link

Replace modules only when comming from an SDOs official source. #735

Closed richardzilincikPantheon closed 1 year ago

richardzilincikPantheon commented 1 year ago

When adding new yang modules to YANG Catalog, if we come across a module that has the same name and revision as some other module we've already seen, we only want to replace our old version with the new one if the source we are adding modules comes directly from the SDO responsible for this module. For example, if replace ietf modules with a new version if we found the new one in https://github.com/YangModels/yang/tree/main/standard/ietf or https://github.com/YangModels/yang/tree/main/experimental/ietf-extracted-YANG-modules. The modules in these directories are extracted directly from I-Ds and RFCs.