From: Ricardo Marques Date: Thu, 19 Apr 2018 16:54:45 +0000 (+0100) Subject: mgr/dashboard: RBD copy (frontend) X-Git-Tag: v13.1.0~92^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ef563c36fc1747a21eb74bf2d7a899c314bcd8d7;p=ceph.git mgr/dashboard: RBD copy (frontend) Signed-off-by: Ricardo Marques --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts b/src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts index a015eebe0505..6bb94b7425d0 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/app-routing.module.ts @@ -54,6 +54,11 @@ const routes: Routes = [ component: RbdFormComponent, canActivate: [AuthGuardService] }, + { + path: 'rbd/copy/:pool/:name', + component: RbdFormComponent, + canActivate: [AuthGuardService] + }, { path: 'perf_counters/:type/:id', component: PerformanceCounterComponent, diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-copy-request.model.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-copy-request.model.ts new file mode 100644 index 000000000000..9294583415b3 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-copy-request.model.ts @@ -0,0 +1,9 @@ +export class RbdFormCopyRequestModel { + dest_pool_name: string; + dest_image_name: string; + obj_size: number; + features: Array = []; + stripe_unit: number; + stripe_count: number; + data_pool: string; +} diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-mode.enum.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-mode.enum.ts index c89005fbc19d..3db18a1d6885 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-mode.enum.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form-mode.enum.ts @@ -1,4 +1,5 @@ export enum RbdFormMode { editing = 'editing', - cloning = 'cloning' + cloning = 'cloning', + copying = 'copying' } diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html index 71bcda73c69b..6fc7b86615a1 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/block/rbd-form/rbd-form.component.html @@ -4,7 +4,7 @@ + i18n>{mode, select, editing {Edit} cloning {Clone} copying {Copy} other {Add}} @@ -17,7 +17,7 @@

- {mode, select, editing {Edit} cloning {Clone} other {Add}} RBD + {mode, select, editing {Edit} cloning {Clone} copying {Copy} other {Add}} RBD

@@ -27,7 +27,7 @@ *ngIf="rbdForm.controls.parent.value">
- {mode, select, editing {Update} cloning {Clone} other {Create}} RBD + {mode, select, editing {Update} cloning {Clone} copying {Copy} other {Create}} RBD