-
Notifications
You must be signed in to change notification settings - Fork 666
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
feat: implement provider gateway vlan assignment #3558
Conversation
e05f35e
to
a2df54c
Compare
cf8b6f6
to
985aa78
Compare
@@ -111,7 +110,7 @@ func ResourceIBMDLProviderGateway() *schema.Resource { | |||
}, | |||
dlVlan: { | |||
Type: schema.TypeInt, | |||
Computed: true, |
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.
If vlan is not provided will we have computed value for it...? If yes then it shd be optional+computed
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, if omitted then the backend will compute the value. I have restored the Computed option.
@@ -36,6 +37,7 @@ Review the argument reference that you can specify for your resource. | |||
- `name` - (Required, String) The unique user-defined name for this gateway. Example: `myGateway`. | |||
- `port` - (Required, Forces new resource, String) The gateway port for type to connect gateway. | |||
- `speed_mbps`- (Required, Integer) The gateway speed in megabits per second. For example, `10.254.30.78/30`. | |||
- `vlan` - (Integer) VLAN requested for this gateway. |
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.
Add Optional also along with Integer
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.
Optional tag has been added.
Community Note
Implement the following changes for Direct Link Provider Gateways
Output from acceptance testing: