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

Commit

Permalink
pkg: types: Add a new field type
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sebastien Boeuf committed Oct 26, 2018
1 parent dd8f32c commit 83138df
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 21 deletions.
94 changes: 73 additions & 21 deletions pkg/types/types.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pkg/types/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ message Interface {
// Here, bridgeAddr is the address at which the bridge is attached on the root bus,
// while deviceAddr is the address at which the network device is attached on the bridge.
string pciAddr = 6;

// Type defines the type of interface described by this structure.
// The expected values are the one that are defined by the netlink
// library, regarding each type of link. Here is a non exhaustive
// list: "veth", "macvtap", "vlan", "macvlan", "tap", ...
string type = 7;
}

message Route {
Expand Down

0 comments on commit 83138df

Please sign in to comment.