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

Undo gateway change #5570

Merged
merged 4 commits into from
Aug 30, 2024
Merged

Conversation

ismirlia
Copy link
Collaborator

The networking team changed their mind wants to continue allowing gateway updates. This undoes part of the changes in #5503.

ismirlia added 2 commits July 23, 2024 09:49
The networking team changed their mind wants to continue allowing
gateway updates.
@ismirlia ismirlia added the service/Power Systems Issues related to Power Systems label Aug 21, 2024
Copy link
Collaborator

@michaelkad michaelkad left a comment

Choose a reason for hiding this comment

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

@hkantare, @yussufsh please help reviewing this pr.

body.IPAddressRanges = getIPAddressRanges(d.Get(helpers.PINetworkIPAddressRange).([]interface{}))
}
if d.HasChange(helpers.PINetworkGateway) {
body.Gateway = flex.PtrToString(d.Get(helpers.PINetworkGateway).(string))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why using PtrToString?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

body.Gateway is *string and PtrToString takes a string and outputs a *string. I think the flex function might be named backwards.

@ismirlia ismirlia requested a review from yussufsh August 27, 2024 18:48
@yussufsh yussufsh merged commit 660a094 into IBM-Cloud:master Aug 30, 2024
1 check passed
@michaelkad michaelkad deleted the undo-gateway-change branch September 6, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/Power Systems Issues related to Power Systems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants