diff options
author | makkalot <makkalot@gmail.com> | 2008-08-12 22:50:42 +0300 |
---|---|---|
committer | makkalot <makkalot@gmail.com> | 2008-08-12 22:50:42 +0300 |
commit | 56ba41a1a331ebff0c471d6f85b1c7c11a1ab6d8 (patch) | |
tree | ea30315c84b34bb1bbc93c242945bc69694ccd58 /func | |
parent | 59ac0528622057d9ca9cdffccf907427d4083680 (diff) | |
download | func-56ba41a1a331ebff0c471d6f85b1c7c11a1ab6d8.tar.gz func-56ba41a1a331ebff0c471d6f85b1c7c11a1ab6d8.tar.xz func-56ba41a1a331ebff0c471d6f85b1c7c11a1ab6d8.zip |
export the netapp.vol.clone we forgot it
Diffstat (limited to 'func')
-rw-r--r-- | func/minion/modules/netapp/vol/clone.py | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/func/minion/modules/netapp/vol/clone.py b/func/minion/modules/netapp/vol/clone.py index 715d8a8..ff924d0 100644 --- a/func/minion/modules/netapp/vol/clone.py +++ b/func/minion/modules/netapp/vol/clone.py @@ -42,5 +42,48 @@ class Clone(func_module.FuncModule): output = ssh(filer, cmd_opts) return check_output(regex, output) + + def register_method_args(self): + """ + Implementing netapp.clone export + """ + vol = { + 'type':'string', + 'optional':False, + 'description':"The name of the volume" + } + + filer = { + 'type':'string', + 'optional':False, + 'description':"Resolvable name of the target filer" + } + + snap = { + 'type':'string', + 'optional':False, + 'description':"The name of the snapshot" + } - + return { + 'create':{ + 'args':{ + 'filer':filer, + 'vol':vol, + 'snap':snap, + 'parent':{ + 'type':'string', + 'optional':False, + 'description':"The parent to clone" + } + }, + 'description':"Create a clone" + }, + 'split':{ + 'args':{ + 'filer':filer, + 'vol':vol + }, + 'description':"Split the vol" + } + } |