fabric-testbed / InformationModel

FABRIC Information Model library
MIT License
7 stars 1 forks source link

Rework delegations on stitching nodes #28

Closed ibaldin closed 3 years ago

ibaldin commented 3 years ago

Only one resource owner should control a given resource node in a graph so when two models get stitched along some 'stitching nodes', only one of the models should specify the delegated resource and the delegation is inherited in the stitched node with an indicator which model it came from (so it can be removed when that model unmerges).

This should simplify the logic in deciding which of the two possible delegations on a stitching node to look at.

Note that ADM generation will need additional help because currently it looks for resources to delegate and if nothing is delegated it may remove the node from the model. Perhaps ADM generation needs an explicit list of 'stitch nodes' to keep.

ibaldin commented 3 years ago

Fixed in 69f189e

ibaldin commented 3 years ago

See #37 for more details.