cisco-ie / tdm

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

Hard schema for well-defined entities #46

Open remingtonc opened 5 years ago

remingtonc commented 5 years ago

The current TDM schema is very generic. DataModel, DataPath, ... This is nice to work with but is also challenging as we need attributes to qualify XPaths which are not necessary for OIDs. It might be worth looking at making a harder schema around these well-defined entities. It would be beneficial in some areas such as reducing search space in some cases, but also increases complexity in other cases and requires treating things less generically.

remingtonc commented 5 years ago

This wouldn't be as much of a problem but a very specific case - IOS XE wants prefixed XPaths and IOS XR wants XPaths prefixed by modules. This requires maintaining an understanding of the module-prefixed and prefix-prefixed XPaths, and there isn't an accepted way of representing them all at once, breaking the 2-field basis of Human ID and Machine ID because reality isn't consistent.