Skip to content

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.

Fixes kata-containers#401

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
  • Loading branch information
Sebastien Boeuf committed Oct 24, 2018
1 parent d63dc2b commit d8aa6ee
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 21 deletions.
91 changes: 70 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.

3 changes: 3 additions & 0 deletions pkg/types/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ 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.
string type = 7;
}

message Route {
Expand Down

0 comments on commit d8aa6ee

Please sign in to comment.