Skip to content
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

bash completion for new volcli policy-related commands #410

Open
3 tasks
dseevr opened this issue Aug 15, 2016 · 0 comments
Open
3 tasks

bash completion for new volcli policy-related commands #410

dseevr opened this issue Aug 15, 2016 · 0 comments

Comments

@dseevr
Copy link
Contributor

dseevr commented Aug 15, 2016

@vvb Erik told me this is your thing :^)

New commands introduced in #367:

  • volcli policy history list $policy_name
  • volcli policy history get $policy_name $revision
  • volcli policy watch

Example output below:

$ volcli policy upload foo < /testdata/ceph/policy1.json
$ volcli policy history list foo
1471302683
$ volcli policy history get foo 1471302683
{"name":"foo","create":{"size":"10MB","filesystem":""},"runtime":{"snapshots":true,"snapshot":{"frequency":"30m","keep":20},"rate-limit":{"write-bps":0,"read-bps":0}},"driver":{"pool":"rbd"},"filesystems":{"ext4":"mkfs.ext4 -m0 %"},"backends":{"crud":"ceph","mount":"ceph","snapshot":"ceph"}}
volcli policy watch # <-- this has no output until a policy is uploaded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants