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

fix: Restore nattedIPv4Address prop passed from LinodeConfigDialog --> InterfaceSelect #9896

Conversation

dwiley-akamai
Copy link
Contributor

@dwiley-akamai dwiley-akamai commented Nov 13, 2023

Description 📝

We lost a one-liner added in #9865 that checks off the "Assign a public IPv4 address for this Linode" checkbox in the Edit Linode Config dialog when the ipv4.nat_1_1 property is populated. This PR restores it.

How to test 🧪

Prerequisites

  • Account with proper VPC tags

Reproduction steps

On the release branch:

  • In the Linode Create flow, assign a VPC and check off the "Assign a public IPv4 address for this Linode" checkbox. Proceed with creation
  • (with your DevTools > Network tab open filtered for configs) On the newly-created Linode, go to the Configurations tab, edit the config, scroll down the Edit Config dialog to the "Networking" section and observe: the VPC interface's "Assign a public IPv4 address for this Linode" checkbox is unchecked, despite the network request showing ipv4.nat_1_1 being populated

Verification steps

On this branch:

  • Do the 2nd step from above and observe: the checkbox is properly checked off

@dwiley-akamai dwiley-akamai added the VPC Relating to VPC project label Nov 13, 2023
@dwiley-akamai dwiley-akamai self-assigned this Nov 13, 2023
@dwiley-akamai dwiley-akamai requested a review from a team as a code owner November 13, 2023 16:51
@dwiley-akamai dwiley-akamai requested review from cliu-akamai and abailly-akamai and removed request for a team November 13, 2023 16:51
@@ -1005,15 +1005,16 @@ export const LinodeConfigDialog = (props: Props) => {
ipamAddress={thisInterface.ipam_address}
key={`eth${idx}-interface`}
label={thisInterface.label}
nattedIPv4Address={thisInterface.ipv4?.nat_1_1}
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason for the prop not to be required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

InterfaceSelect is used for non-VPC interfaces as well and used in contexts outside of the Add/Edit Config dialog. ipv4.nat_1_1 is only for VPC interfaces

Copy link
Contributor

@hana-akamai hana-akamai left a comment

Choose a reason for hiding this comment

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

Confirmed that the "Assign a public IPv4 address for this Linode" checkbox is now properly checked off ✅

@dwiley-akamai dwiley-akamai merged commit bbd58e2 into linode:release-v1.107.0 Nov 13, 2023
13 checks passed
@dwiley-akamai dwiley-akamai deleted the fix/natted-ipv4-address-for-checkbox branch November 13, 2023 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VPC Relating to VPC project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants