Skip to content

Include interface MTU in types.Result for Interfaces #513

@mcastelino

Description

@mcastelino

Today the spec returns the name and mac of the interfaces. So we already include some L2 information.

// Interface contains values about the created interfaces
type Interface struct {
	Name    string `json:"name"`
	Mac     string `json:"mac,omitempty"`
	Sandbox string `json:"sandbox,omitempty"`
}

For VM based runtimes having the MTU would also be helpful.

So something along the lines of

// Interface contains values about the created interfaces
type Interface struct {
	Name    string `json:"name"`
	Mac     string `json:"mac,omitempty"`
	Mtu     int `json:"mtu,omitempty"`
	Sandbox string `json:"sandbox,omitempty"`
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions