unikraft / kraftkit

Build and use highly customized and ultra-lightweight unikernel VMs.
https://unikraft.org/docs/cli
BSD 3-Clause "New" or "Revised" License
204 stars 61 forks source link

Implement machine `ParseNetwork` string #1648

Open nderjung opened 1 month ago

nderjung commented 1 month ago

Feature request summary

Introduce a utility method for parsing string representation of a network similar to ParsePorts.

Towards preventing internal Unikraft-specific syntax structures (i.e kraftkit.sh/unikraft/export/v0/uknetdev.NetdevIp) being mixed with CLI-level code (see https://github.com/unikraft/kraftkit/pull/1633), introduce an abstract mechanism for a string representation of a network.

Whilst the format will be a 1-to-1 with NetdevIp, this abstraction makes it possible to use kraft with other kernels and allows us to structure these appropriately.

Describe alternatives

No response

Related architectures

None

Related platforms

None

Additional context

No response