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

Extend Network resource to use custom templates #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jgomezve
Copy link

@jgomezve jgomezve commented Feb 2, 2023

Fix #111

if err != nil {
return err
if networkConfig, ok := d.GetOk("template_props"); ok {
networkConfigMap := networkConfig.(map[string]interface{})
Copy link
Author

Choose a reason for hiding this comment

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

Not sure if we should assign the values in the key template_props directly without any further verification. I would argue that users setting the key template_props must be completely sure that the JSON payload is built based on those values without further verification

Maybe we should only check if the VLAN ID and the Multicast group are part of the keys. If not we generate them. What are your thoughts?

Choose a reason for hiding this comment

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

I think having a check to ensure the template_props are verified is a good step to add. Yes, i think VLAN ID and multicast group are a good start. I'll think more about what other parameters are important.

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.

Support VRF and Networks using custom templates
2 participants