-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Topo to topo compare #4392
Topo to topo compare #4392
Conversation
Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good -- see comment re parallelism and clean up the comments.
Signed-off-by: Rafael Chacon <[email protected]>
884003c
to
e67e7d3
Compare
Signed-off-by: Rafael Chacon <[email protected]>
@demmer - comments have been addressed. Good catch of parallelisms. I refactored copy to also reflect this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compare stuff looks good to me but error handling for the copy needs a bit more work.
Signed-off-by: Rafael Chacon <[email protected]>
Description
The following extends
topo2topo
tool to add a compare option flag. When this flag is passed, the tool will comparefrom
andto
topologies and error if they are not in sync.This is useful to make sanity checks before doing cutovers when migrating from different topologies.
The approach I took to make this compare is to follow the same steps as copy and perform a
DeepEqual
between the data structures coming fromfromTS
andtoTS
.