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"`
}
Today the spec returns the name and mac of the interfaces. So we already include some L2 information.
For VM based runtimes having the MTU would also be helpful.
So something along the lines of