Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
164 changes: 90 additions & 74 deletions api/descriptions.pb.go

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

19 changes: 12 additions & 7 deletions api/descriptions.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ syntax = "proto3";

package api;

// To generate description.pb.go, run:
// $ protoc --go_out=plugins=grpc:. descriptions.proto

message SandboxConfig {
string hostname = 1;
repeated string dns = 2;
Expand Down Expand Up @@ -52,13 +55,15 @@ message VolumeDescription {

message InterfaceDescription {
string id = 1;
bool lo = 2;
string bridge = 3;
string ip = 4;
string mac = 5;
string gw = 6;
string tapName = 7;
string options = 8;
string name = 2;
bool lo = 3;
string bridge = 4;
string ip = 5;
string mac = 6;
uint64 mtu = 7;
string gw = 8;
string tapName = 9;
string options = 10;
}

message PortDescription {
Expand Down
2 changes: 1 addition & 1 deletion cli/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func createContainer(options runvOptions, vm *hypervisor.Vm, container, bundle,
}

// If runv is launched via docker/containerd, we start netlistener to watch/collect network changes.
// TODO: if runv is launched by cni compatible tools, the cni script can use `runv cni` cmdline to update the network.
// TODO: if runv is launched by cni compatible tools, the cni script can use `runv interface` cmdline to update the network.
// Create the listener process which will enters into the netns of the shim
options.withContainer = state
if err = startNsListener(options, vm); err != nil {
Expand Down
Loading