Skip to content

Support for deterministic ip for user-v2 network #1801

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

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

balajiv113
Copy link
Member

fixes #1785

if err != nil {
return "", err
}
sockPath := filepath.Join(filepath.Join(dir, name), "leases.json")
Copy link
Member

Choose a reason for hiding this comment

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

Could you update docs/internal.md ?

@@ -24,6 +24,7 @@ func newUsernetCommand() *cobra.Command {
hostagentCommand.Flags().String("listen", "", "listen on a Unix socket and receive Bess-compatible FDs as SCM_RIGHTS messages")
hostagentCommand.Flags().String("subnet", "192.168.5.0/24", "sets subnet value for the usernet network")
hostagentCommand.Flags().Int("mtu", 1500, "mtu")
hostagentCommand.Flags().StringToString("leases", nil, "pass default static leases for startup")
Copy link
Member

Choose a reason for hiding this comment

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

Could you explain the map key and the value in the usage string?

Signed-off-by: Balaji Vijayakumar <kuttibalaji.v6@gmail.com>
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

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

Thanks, docs can be added as a follow-up PR

@AkihiroSuda AkihiroSuda merged commit c9f9d7c into lima-vm:master Sep 19, 2023
@balajiv113 balajiv113 deleted the ip-user-v2 branch September 19, 2023 08:01
@AkihiroSuda AkihiroSuda mentioned this pull request Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

user-v2: make IP addresses deterministic
2 participants