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

Enhancement: Add IP mask field to Network Panel #897

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mingshuoqiu
Copy link
Contributor

@mingshuoqiu mingshuoqiu commented Dec 16, 2024

Add IP mask field to provide better network configuration options:

  • Display calculated netmask when CIDR notation is used
  • Allow manual netmask input for non-CIDR IP addresses

Problem:
Allow users to specify the address as either <address>/<netmask> or CIDR.

Solution:
Display calculated netmask when CIDR notation is used. And validate the netmask input for non-CIDR IP addresses

Related Issue:
harvester/harvester#6295

Test plan:

  1. Install Harvester
  2. Proceed to Network Configuration Panel
  3. Check the existence of IPv4 Mask field
  4. Input a CIDR format in IPv4 Address field and check if the netmask generated correctly in the IPv4 Mask field
  5. Input a non-CIDR format IP and manually input the netmask with values to validate if the netmask applies or not.

Copy link

mergify bot commented Dec 27, 2024

This pull request is now in conflict. Could you fix it @mingshuoqiu? 🙏

@bk201
Copy link
Member

bk201 commented Jan 3, 2025

@mingshuoqiu the commits need a clean-up. Please rebase on the target branch when seeing a conflict.

Add IP mask field to provide better network configuration options:
- Display calculated netmask when CIDR notation is used
- Allow manual netmask input for non-CIDR IP addresses

Signed-off-by: Chris Chiu <[email protected]>
@bk201
Copy link
Member

bk201 commented Jan 13, 2025

I tested the installer and saw this before the installation was just about to kick off
截圖 2025-01-13 下午4 26 07

Here is the log:
console.log

@bk201
Copy link
Member

bk201 commented Jan 13, 2025

@mingshuoqiu I can reproduce the same error with master ISO, we might have some changes that break the static IP method recently. v1.4.0 ISO is fine.

@bk201
Copy link
Member

bk201 commented Jan 13, 2025

Create a new issue to track, the key is to use a static VIP. @ihcsim could be this caused by recent changes of the VIP panel?

Copy link
Member

@bk201 bk201 left a comment

Choose a reason for hiding this comment

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

the PR iteself lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants