Hi Shweta, Dashed port range support (e.g. "9100-9105") has just been added to the current master branch of Brooklyn[1] so it is available in the latest snapshot.
Cheers, Mike [1] https://github.com/apache/incubator-brooklyn/pull/1038 On Thu, Oct 8, 2015 at 6:02 AM shweta ma <[email protected]> wrote: > Hi Alex, > > Thank you for the information. > > Regards, > Shweta > > On Thu, Oct 8, 2015 at 3:29 PM, Alex Heneveld < > [email protected]> wrote: > > > > > Hi Shweta, > > > > inboundPorts has to be a list of integers -- range syntax isn't supported > > there. > > > > If it's just the 6 nodes then just list them one by one. > > > > If it's a very large range you can do it programmatically as we do for > > some erlang-based processes -- for instance see RiakNodeImpl. It would be > > nice to support ranges for inboundPorts in yaml; if you're interested in > > doing this let us know. > > > > Best > > Alex > > > > > > > > On 08/10/2015 10:16, shweta ma wrote: > > > >> Hi All, > >> > >> Below is a the YAML for creating a simple vm. I would like to open a > range > >> of inbound ports for example 9100-9105. > >> > >> I get the below error. > >> Error invoking start at EmptySoftwareProcessImpl{id=LVLUQcJ1}: > >> java.lang.ClassCastException: java.lang.String cannot be cast to > >> java.lang.Integer > >> > >> Can anyone please let me know on how the port range has to be specified > in > >> the YAML. > >> > >> name: simple-vm > >> > >> location: > >> > >> jclouds:aws-ec2: > >> > >> credential: ***************** > >> > >> identity: ****************** > >> > >> region: us-west-2 > >> > >> services: > >> > >> - type: brooklyn.entity.basic.EmptySoftwareProcess > >> > >> name: VM > >> > >> provisioning.properties: > >> > >> inboundPorts: > >> > >> - 22 > >> > >> - 5688 > >> > >> - 8080 > >> > >> - 9100 -9105 > >> > >> > >> Thanks, > >> > >> Shweta > >> > >> > > > > -- > > Cloudsoft Corporation Limited, Registered in Scotland No: SC349230. > > Registered Office: 13 Dryden Place, Edinburgh, EH9 1RP > > > > This e-mail message is confidential and for use by the addressee only. If > > the message is received by anyone other than the addressee, please return > > the message to the sender by replying to it and then delete the message > > from your computer. Internet e-mails are not necessarily secure. > Cloudsoft > > Corporation Limited does not accept responsibility for changes made to > this > > message after it was sent. > > > > Whilst all reasonable care has been taken to avoid the transmission of > > viruses, it is the responsibility of the recipient to ensure that the > > onward transmission, opening or use of this message and any attachments > > will not adversely affect its systems or data. No responsibility is > > accepted by Cloudsoft Corporation Limited in this regard and the > recipient > > should carry out such virus and other checks as it considers appropriate. > > >
