diff options
author | Alistair Coles <alistairncoles@gmail.com> | 2017-06-19 14:46:14 +0100 |
---|---|---|
committer | Alistair Coles <alistairncoles@gmail.com> | 2018-06-14 09:50:55 +0100 |
commit | 6b626f2f986af0f99fae4c9e8efc9579fa47acf2 (patch) | |
tree | 8482109ac8a9772a93cef4f342375e6c22189436 /bin | |
parent | e5ce83b9677db453a4c9f8551939a0dc36c880f2 (diff) | |
download | swift-6b626f2f986af0f99fae4c9e8efc9579fa47acf2.tar.gz |
Experimental swift-ring-composer CLI to build composite rings
Provides a simple, experimental, CLI tool to generate a
composite ring from a list of component builder files.
For example:
swift-ring-composer <composite-file> compose \
<builder-file> <builder-file> --output <ring-file>
Commands available:
- compose: compose a list of builder file to a composite ring
- show: show the metadata for a composite ring
Co-Authored-By: Kota Tsuyuzaki <tsuyuzaki.kota@lab.ntt.co.jp>
Co-Authored-By: Matthew Oliver <matt@oliver.net.au>
Change-Id: I25a79e71c13af352e19e4358f60545265b51584f
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/swift-ring-composer | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bin/swift-ring-composer b/bin/swift-ring-composer new file mode 100755 index 000000000..fccc9016c --- /dev/null +++ b/bin/swift-ring-composer @@ -0,0 +1,22 @@ +#!/usr/bin/env python +# Copyright (c) 2017 OpenStack Foundation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. +import sys + +from swift.cli.ringcomposer import main + + +if __name__ == "__main__": + sys.exit(main()) |