Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 83138df

Browse files
author
Sebastien Boeuf
committed
pkg: types: Add a new field type
The Interface structure needs a new field 'type' so that we can properly determine the type of interface being described. This will be helpful for network hotplug, as it will be used to create the appropriate connection between the VM and the interface. Depends-on: github.com/kata-containers/runtime#858 Fixes #401 Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
1 parent dd8f32c commit 83138df

File tree

2 files changed

+79
-21
lines changed

2 files changed

+79
-21
lines changed

pkg/types/types.pb.go

Lines changed: 73 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/types/types.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ message Interface {
3030
// Here, bridgeAddr is the address at which the bridge is attached on the root bus,
3131
// while deviceAddr is the address at which the network device is attached on the bridge.
3232
string pciAddr = 6;
33+
34+
// Type defines the type of interface described by this structure.
35+
// The expected values are the one that are defined by the netlink
36+
// library, regarding each type of link. Here is a non exhaustive
37+
// list: "veth", "macvtap", "vlan", "macvlan", "tap", ...
38+
string type = 7;
3339
}
3440

3541
message Route {

0 commit comments

Comments
 (0)