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

add CIDR format to warewulf.conf parse #1150

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

Conversation

JasonYangShadow
Copy link
Member

Description of the Pull Request (PR):

when parsing warewulf.conf, CIDR format will cause issue.

This fixes or addresses the following GitHub issues:

Before submitting a PR, make sure you have done the following:

@JasonYangShadow JasonYangShadow marked this pull request as ready for review March 22, 2024 04:35
Comment on lines 105 to 108
conf.Ipaddr = ip.String()
conf.Network = network.IP.String()
mask := network.Mask
conf.Netmask = fmt.Sprintf("%d.%d.%d.%d", mask[0], mask[1], mask[2], mask[3])
Copy link
Collaborator

Choose a reason for hiding this comment

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

conf.Network and conf.Netmask should only be populated here if they don't have their own value specified in the config file.

@anderbubble anderbubble added this to the v4.6.0 milestone Apr 4, 2024
@anderbubble anderbubble modified the milestones: v4.6.0, v4.5.x Apr 22, 2024
@anderbubble anderbubble modified the milestones: v4.5.x, v4.5.2 May 1, 2024
Signed-off-by: Xu Yang <xyang@ciq.com>
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.

wwclient doesn't support CIDR format for warewulf server
2 participants