cisco-ie / tdm

Telemetry Data Mapper to ease data discovery, correlation, and usage with YANG, MIBs, etc.
Apache License 2.0
38 stars 5 forks source link

YANG deviations not being maintained to DB #42

Open remingtonc opened 5 years ago

remingtonc commented 5 years ago

This is problematic. e.g. https://github.com/YangModels/yang/blob/master/vendor/cisco/xr/651/cisco-xr-openconfig-network-instance-deviations.yang#L372 XPath still linked to IOS XR - 6.5.1 in TDM.

remingtonc commented 5 years ago

The YANG module parsing itself is working. The issue is in the caching in ETL.

remingtonc commented 5 years ago

This is actually super weird because deviations will vary A LOT. We might need to start directly tracking XPaths per release as well? Or add an attribute to the edge indicating deviated for a list of releases?

remingtonc commented 5 years ago

I think we need to add the notion of the "base module" versus the "compiled module" which is the actual representation qualified by a release&[device] and the "base module". Both modules are linked to DataPaths but the compiled module is what should be traversed for determining release/device support.