-
Notifications
You must be signed in to change notification settings - Fork 669
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
Direct Link: Dedicated VLAN Mapping #4900
Conversation
@MalarvizhiK |
The GA for the feature is scheduled in 1Q 2024. Hence, I will wait some more time. |
@hkantare As mentioned earlier, VLAN tagging enablement for DL dedicated feature is GAed. We want to publish the terraform code for the same. |
Output from acceptance testing:
|
Output from acceptance testing
|
Output from acceptance testing
|
gatewayDedicatedTemplateModel.Vlan = &mapped_vlan | ||
} else { | ||
vlan := d.Get(dlVlan) | ||
fmt.Printf("%v VLAN Value Create ", vlan) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this fmt stmt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -1070,7 +1100,8 @@ func resourceIBMdlGatewayRead(d *schema.ResourceData, meta interface{}) error { | |||
} | |||
log.Printf("[INFO] Calling getgateway api: %s", dtype) | |||
|
|||
instance, response, err := directLink.GetGateway(getOptions) | |||
instanceIntf, response, err := directLink.GetGateway(getOptions) | |||
instance := instanceIntf.(*directlinkv1.GetGatewayResponse) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add some nil check before instanceIntf.(*directlinkv1.GetGatewayResponse) to suppress any nil pinter execeptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
ConflictsWith: []string{"remove_vlan"}, | ||
ValidateFunc: validate.InvokeValidator("ibm_dl_gateway", dlVlan), | ||
}, | ||
dlRemoveVlan: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove_vlan comes only during update scenario?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
Share test execuitpn results of respective res/ds |
Resource block results
|
Data block results
|
Community Note
Relates OR Closes #0000
Output from acceptance testing: