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

Initialize UE IP pool at startup #461

Merged
merged 12 commits into from Feb 9, 2022
Merged

Initialize UE IP pool at startup #461

merged 12 commits into from Feb 9, 2022

Conversation

osinstom
Copy link
Contributor

@osinstom osinstom commented Feb 8, 2022

No description provided.

@osinstom
Copy link
Contributor Author

osinstom commented Feb 8, 2022

This change has been successfully tested based on omec-project/up4#231.

@osinstom osinstom marked this pull request as ready for review February 8, 2022 22:49
@@ -121,15 +121,15 @@ func ParseJSON(filepath *string, conf *Conf) {
}

// ParseStrIP : parse IP address from config.
func ParseStrIP(n3name string) *net.IPNet {
ip, ipNet, err := net.ParseCIDR(n3name)
func ParseStrIP(address string) (*net.IPNet, error) {
Copy link
Member

@pudelkoM pudelkoM Feb 8, 2022

Choose a reason for hiding this comment

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

With errors passed back, is this function more than just net.ParseCIDR?
We could go with MustParseStrIP and die on failure.

daniele-moro
daniele-moro previously approved these changes Feb 9, 2022
@osinstom osinstom merged commit 75197aa into master Feb 9, 2022
@osinstom osinstom deleted the ue-pool branch February 9, 2022 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants