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

Nirmal Fernando commented on STRATOS-180:
-----------------------------------------

Committed this feature in 3779ee91b0089e7bbf1abd96311b747fa50a9f67

Now you can define multiple network interface names as a comma separated list 
like below:

{ "cartridgeDefinitionBean": {
      "type": "php",
      "provider": "apache",
      "host": "nirmal.lk",
      "displayName": "PHP",
      "description": "PHP Cartridge",
      "version": "7",
      "multiTenant": "false",
      "portMapping": [
         {
            "protocol": "http",
            "port": "80",
            "proxyPort": "8280"
         },
         {
            "protocol": "https",
            "port": "443",
            "proxyPort": "8243"
         }
       ],
      "deployment": {
        },
       "iaasProvider": [
        {
          "type": "ec2",
          "imageId": "ap-southeast-1/ami-16d78044",
          "maxInstanceLimit": "4",
          "property": [
            {
             "name": "instanceType",
             "value": "m1.medium"
            },
            {
             "name": "keyPair",
             "value": "nirmal-stratos"
            },
            {
             "name": "networkInterfaces",
             "value": "my-network1,my-network2"
            }
          ]
        }
      ],
     "loadBalancer": {
        "type": "lb",
        "property": {
            "name": "default.load.balancer",
            "value": "true"
        }
      }
    }
 }

> Support to define multiple networks for cartridges
> --------------------------------------------------
>
>                 Key: STRATOS-180
>                 URL: https://issues.apache.org/jira/browse/STRATOS-180
>             Project: Stratos
>          Issue Type: Sub-task
>          Components: Cloud Controller
>    Affects Versions: 4.0.0 M5
>            Reporter: Reka Thirunavukkarasu
>            Assignee: Nirmal Fernando
>             Fix For: 4.0.0 Alpha
>
>
> In the current environment, when we define multiple networks, from the jcloud 
> one random network got chosen when starting an instance.  If we provide a way 
> to provide a correct network when starting an instance, then the instance 
> will be bound to the correct interface



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to