Skip to content

Support for IP address allocation mechanisms #42

@geekgao

Description

@geekgao

Most straightforward: BoxOptions supports static IPs (example assumes API)
If the API supports it, you can pass it like this:

box_opts = boxlite.BoxOptions( image="alpine:latest", ip="192.168.50.10", netmask="255.255.255.0", gateway="192.168.50.1" ) 
box = runtime.create(box_opts)

Pros: simple and straightforward, with the runtime taking care of getting the network interface configured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions