Skip to content

Add support for the networks parameter on server creation#78

Merged
LKaemmerling merged 4 commits intohetznercloud:masterfrom
DoctorJohn:server-creation-networks-parameter
Feb 27, 2020
Merged

Add support for the networks parameter on server creation#78
LKaemmerling merged 4 commits intohetznercloud:masterfrom
DoctorJohn:server-creation-networks-parameter

Conversation

@DoctorJohn
Copy link
Copy Markdown
Contributor

The API allows the specification of Network IDs which should be attached to the server private network interface at creation time. However, specifying networks when creating a server is not supported by this package yet.

This PR adds an optional networks parameter to the hcloud.servers.client.ServersClient.create method and tests based on the ones for the volumes paramether.

Let me know, whether something needs to be adjusted. (Got late this night, better review my changes).

Copy link
Copy Markdown
Member

@LKaemmerling LKaemmerling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, this looks really good! I have a small suggestion for the documentation.

Comment thread hcloud/servers/client.py Outdated
Co-Authored-By: Lukas Kämmerling <github@lukas-kaemmerling.de>
Copy link
Copy Markdown
Member

@LKaemmerling LKaemmerling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a line to the Changelog too?

Comment thread CHANGELOG.rst Outdated
@DoctorJohn
Copy link
Copy Markdown
Contributor Author

@LKaemmerling I just added a line to the changelog. I didn't bump the version thought.

@LKaemmerling
Copy link
Copy Markdown
Member

I will merge it when the CI is ready. Thank you!

@LKaemmerling LKaemmerling merged commit bfdb1c4 into hetznercloud:master Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants