Cloudstack Driver - Create/Delete Network functionality + tests

Functions added on the cloudstack driver:
 
ex_list_network_offering
ex_create_network
ex_delete_network

New Object:
CloudStackNetworkOffering

And some additions to the CloudStackNetwork dictionary
netmask
gatway
vpcid

On Jun 11, 2014, at 3:56 PM, Tomaz Muraus <notifications@github.com> wrote:

> In libcloud/compute/drivers/cloudstack.py:
> 
> > +        networkofferings = []
> > +
> > +        for netoffer in netoffers:
> > +
> > +            networkofferings.append(CloudStackNetworkOffering(
> > +                            netoffer['name'],
> > +                            netoffer['displaytext'],
> > +                            netoffer['guestiptype'],
> > +                            netoffer['id'],
> > +                            netoffer['serviceofferingid'],
> > +                            netoffer['forvpc'],
> > +                            self))
> > +
> > +        return networkofferings
> > +
> > +    def ex_create_network(self, displaytext, name, networkoffering,
> 
> Yeah, and it's also worth noting that compute drivers should only implement user / non-admin functionality.
> 
> We need to find a better and unified solution (maybe a separate driver / class) for handling admin actions, but this requires a bit more thought and work.
> 

Yes agreed, good point by Roland.

> —
> Reply to this email directly or view it on GitHub.
>