rgwilton / YANG-Packages-Draft

IETF Individual Draft for possible YANG Package Solution
Other
0 stars 0 forks source link

Allow multiple package definitions in an instance data document? #19

Closed rgwilton closed 5 years ago

rgwilton commented 5 years ago

Should the schema for packages in an instance-data document hold just a single package, or multiple packages?

There are potentially several advantages to a single file holding multiple package definitions:

But there are some downsides too:

rgwilton commented 5 years ago

DT opinion is that this is a good idea.

rgwilton commented 5 years ago

This potential has issues with checksum fields which assume each package definition is in a separate file. Possibly, thinking that it is a mistake to allow multiple packages in the same instance data file.

rgwilton commented 5 years ago

This is not allowed because it means that package checksums (which reference an instance data document don't work).