feat: [M3-7343] – Display conditional Notices depending on config scenarios in Linode Add/Edit Config dialog #9916
Conversation
There was a problem hiding this comment.
✅ Tested all three scenarios and saw the different error messages as pictured, and confirmed that making the appropriate selections caused the notice to disappear.
✅ Checked that the notice did not appear for scenarios other than the one specified and that multiple notices appeared if there were multiple VPCs.
❓ Checked that I could still submit the form without errors and found one thing mentioned below.
Question: in messing around with different settings, I created a config that had Public Internet in eth0, VPC in eth1, and VLAN in eth2. When I attempted to save my changes, the form did not submit and no feedback was given in the UI. In the console, I saw the error below. Do we want to either surface this or provide some validation in the form?
I don't know enough about configs to know whether this is related to recent VPC changes or a separate issue related to VLANs (I suspect that we just never surfaced this error) -- or whether a user would ever reasonably even try this, but wanted to raise it. Disregard in this PR if it should be addressed in a follow up.
| "This network configuration is not recommended. The VPC interface with 1:1 NAT will use the Public IP even if it's not on the default network interface. The Linode will lose access to public network connectivity since the default route isn't able to route through the public IPv4 address. We recommend selecting VPC as the primary interface."; | ||
|
|
||
| export const NOT_NATTED_HELPER_TEXT = | ||
| 'The Linode will not be able to access the internet. If this Linode needs access to the internet we recommend checking the “Assign a public IPv4 address for this Linode” checkbox to enable 1:1 NAT on the VPC interface.'; |
There was a problem hiding this comment.
| 'The Linode will not be able to access the internet. If this Linode needs access to the internet we recommend checking the “Assign a public IPv4 address for this Linode” checkbox to enable 1:1 NAT on the VPC interface.'; | |
| 'The Linode will not be able to access the internet. If this Linode needs access to the internet, we recommend checking the “Assign a public IPv4 address for this Linode” checkbox to enable 1:1 NAT on the VPC interface.'; |
Good find -- I believe from a networking perspective this would be a counterproductive configuration. The API explicitly forbids VLAN interfaces from being marked as |
mjac0bs
left a comment
There was a problem hiding this comment.
Going to ask API if the reason can be adjusted and I'll create a follow-up ticket to address this issue.
Sounds good, thanks! Approving this now.
coliu-akamai
left a comment
There was a problem hiding this comment.
✅ Confirmed for the Add and the Edit config dialogs:
- scenario 1
- scenario 2
- scenario 3
Also confirmed could still submit for these scenarios (excluding the case Mariah pointed out) ✅
✅ code review
awesome job! 🚀
|
The follow-up ticket mentioned earlier has been created (M3-7480) |


Description 📝
If a user is about to select an unrecommended configuration in the Add/Edit Config dialog, we want to display conditional warning notices informing them of this and what we recommend to avoid the network connectivity issues that would come with the unrecommended configuration.
Changes 🔄
unrecommendedConfigNoticeSelectorfunctionPreview 📷
Scenario 1
publicis fine)nattedIPv4Address(i.e., "Assign a public IPv4 address for this Linode" checked)Scenario 2
!nattedIPv4Address(i.e., "Assign a public IPv4 address for this Linode" unchecked)Scenario 3
!nattedIPv4Address(i.e., "Assign a public IPv4 address for this Linode" unchecked)How to test 🧪
Prerequisites
Verification steps
In the Add/Edit Config dialog, ensure that the specific scenarios outlined in the
Previewsection above are all handled as expected, and that none of the notices display outside of the outlined scenarios.As an Author I have considered 🤔