[
https://issues.apache.org/jira/browse/CLOUDSTACK-9700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15893962#comment-15893962
]
ASF GitHub Bot commented on CLOUDSTACK-9700:
--------------------------------------------
Github user priyankparihar commented on a diff in the pull request:
https://github.com/apache/cloudstack/pull/1894#discussion_r104114043
--- Diff:
api/src/org/apache/cloudstack/api/command/user/template/CopyTemplateCmd.java ---
@@ -51,25 +52,46 @@
@Parameter(name = ApiConstants.DESTINATION_ZONE_ID,
type = CommandType.UUID,
entityType = ZoneResponse.class,
- required = true,
+ required = false,
description = "ID of the zone the template is being copied
to.")
- private Long destZoneId;
+ protected Long destZoneId;
- @Parameter(name = ApiConstants.ID, type = CommandType.UUID, entityType
= TemplateResponse.class, required = true, description = "Template ID.")
+ @Parameter(name = ApiConstants.ID, type = CommandType.UUID,
+ entityType = TemplateResponse.class, required = true,
description = "Template ID.")
private Long id;
@Parameter(name = ApiConstants.SOURCE_ZONE_ID,
type = CommandType.UUID,
entityType = ZoneResponse.class,
- description = "ID of the zone the template is currently hosted
on. If not specified and template is cross-zone, then we will sync this
template to region wide image store.")
+ description = "ID of the zone the template is currently hosted
on. " +
+ "If not specified and template is cross-zone, " +
+ "then we will sync this template to region wide image
store.")
--- End diff --
This change is not required.
> Allow user to Register/Copy templates to multiple zones at the same time
> ------------------------------------------------------------------------
>
> Key: CLOUDSTACK-9700
> URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9700
> Project: CloudStack
> Issue Type: Improvement
> Security Level: Public(Anyone can view this level - this is the
> default.)
> Components: Template, UI
> Affects Versions: 4.7.0, 4.8.0, 4.9.0
> Reporter: Rashmi Dixit
> Assignee: Rashmi Dixit
> Fix For: 4.10.0.0
>
> Attachments: CopyTemplate-multiplezones.PNG,
> CopyTemplate-WithSearchZone.PNG, RegisterTemplate-multiselect-error.PNG,
> RegisterTemplate-multiselect.PNG
>
>
> A user can currently copy or register a template with only one zone at a
> time.
> The idea of this feature is to allow the user to allow copying or registering
> of one template to multiple zones at the same time.
> Both the UI and API need changes in this case. The UI for the destination
> zone is currently a drop down. It can be a multi-select box.
> The APIs need to accept destination zone as an array instead of a single ID.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)