NTTLimitedRD / plumbery

Cloud automation at Dimension Data with Apache Libcloud
Apache License 2.0
14 stars 9 forks source link

Declare size of subnet? #44

Open mingsheng36 opened 7 years ago

mingsheng36 commented 7 years ago

Was trying to look for ways to define the size of the subnet but to no avail.

bernard357 commented 7 years ago

Hello there, currently plumbery is using a fixed size of /24 for VLANS. What kind of subnet are you looking for?

mingsheng36 commented 7 years ago

Anywhere inbetween /16 - /24. It would be great if that could be defined when creating the subnets.

bernard357 commented 7 years ago

So, to clarify the requirement, the target statement would be for example:

ethernet:
    name: myNetwork
    subnet: 10.1.0.0/16

In other terms, the size of the subnet would come last, after a '/' character. Would you be ok with this syntax?

mingsheng36 commented 7 years ago

perfect.

bernard357 commented 7 years ago

Thanks Ming. This is now an official enhancement request, waiting for some developer to work on it. :-)

bernard357 commented 7 years ago

This has been integrated into the new PyPi release of plumbery.

pip install plumbery --upgrade python -m plumbery -v

Last command should display 17.5.22, which is the label of the new version.

mingsheng36 commented 7 years ago

Thanks bernard! 👍