Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new: Add support for defining interfaces in instance configs #247

Merged

Conversation

lgarber-akamai
Copy link
Contributor

📝 Description

This change allows users to create and update config interfaces from the linode.cloud.instance module.

✔️ How to Test

make TEST_ARGS="-v instance_config_vlan" test

Copy link

@jcallahan-akamai jcallahan-akamai left a comment

Choose a reason for hiding this comment

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

Nice job, I tested it and it works well.

Do you think the docs would benefit from a note explaining that VLANs are currently only available in some DCs?

device_dict = device_params.get('sd{0}'.format(device_suffix))
devices.append(self._param_device_to_device(device_dict))
if device_params is not None:
for device_suffix in ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h']:

Choose a reason for hiding this comment

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

This section of code could use a comment.

@lgarber-akamai lgarber-akamai merged commit dd05140 into linode:main Dec 19, 2022
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.

3 participants