You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking for a way to merge two (more more) configuration files into one, preferably into a live configuration. Example use case: a fileio backstore has already been setup and is being used right now. A previous configuration file (.json) for a block backstore is available and I want to be able to add that configuration to the running one.
+ def do_merge(self, options):
+ '''
+ merge live|FILE_PATH
+
+ Merges the contents of FILE_PATH with the current configuration.
+ In case of conflict, values from FILE_PATH will be used.
+ If any error happens while doing so, the current configuration will
+ be fully rolled back.
Maybe something like this can be integrated into targetcli-fb? Looking to past and present issues, I can't help but think that #155 may be related here:
"What I am looking for, is to describe my desired target configuration and then
switch to it - keeping the already configured targets, removing not-anymore
configured targets and adding new targets."
The text was updated successfully, but these errors were encountered:
In the meanwhile, you could probably just use any generic JSON merging tool against the saveconfig JSON files, merging the newer one on top of the older one.
I'm looking for a way to merge two (more more) configuration files into one, preferably into a live configuration. Example use case: a
fileio
backstore has already been setup and is being used right now. A previous configuration file (.json
) for ablock
backstore is available and I want to be able to add that configuration to the running one.While searching for a feature like this, I've come across a patch for SLES12 against Datera/targetcli which appears to do just that:
Maybe something like this can be integrated into
targetcli-fb
? Looking to past and present issues, I can't help but think that #155 may be related here:The text was updated successfully, but these errors were encountered: