You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Ignasi Barrera (JIRA)" <ji...@apache.org> on 2016/06/15 12:48:09 UTC

[jira] [Commented] (JCLOUDS-1129) Add more interfaces of the same network

    [ https://issues.apache.org/jira/browse/JCLOUDS-1129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15331659#comment-15331659 ] 

Ignasi Barrera commented on JCLOUDS-1129:
-----------------------------------------

Looks like an easy fix to apply. Do you want to try submitting a pull request with the type change?

> Add more interfaces of the same network
> ---------------------------------------
>
>                 Key: JCLOUDS-1129
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1129
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-compute
>    Affects Versions: 1.9.2, 2.0.0
>         Environment: Ubuntu 14.04
>            Reporter: Urban Zaletel
>
> When I create a new VM, i would like to add more interfaces from the same network, but because implementation uses ImmutableSet instead of List, only the distinct ones are preserved.
> public CreateServerOptions networks(Iterable<String> networks) {
>       this.networks = ImmutableSet.copyOf(networks);
>       return this;
> }
> I can achive the desired with heat, providing the same networks:
> cirros-one-to-four:
>     type: OS::Nova::Server
>     properties:
>       availability_zone: nova
>       flavor: m1.tiny
>       image: TestVM 
>       networks:
>         - network: lkra-mgmt-1
>         - network: lkra-mgmt-2
>         - network: lkra-mgmt-2
>         - network: lkra-mgmt-2
>       user_data_format: RAW
>       user_data: |



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)