Igalia / snabb

Snabb Switch: Fast open source packet processing
Apache License 2.0
47 stars 5 forks source link

Detect version mismatch when loading compiled YANG configurations #1209

Closed wingo closed 5 years ago

wingo commented 5 years ago

This commit makes four changes:

(1) On the individual revision nodes in a schema, the revision date is now stored under date instead of value.

(2) Schemas now have a last_revision property, indicating the date of the most recent revision.

(3) This revision now gets serialized into compiled configurations.

(4) When loading compiled configurations, we check that the compiled file's revision date corresponds to the what we are expecting.

Fixes #1208 .