-
Notifications
You must be signed in to change notification settings - Fork 125
/
interface.proto
51 lines (40 loc) · 1.97 KB
/
interface.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
syntax = "proto3";
package linux.interfaces;
option go_package = "github.com/ligato/vpp-agent/api/models/linux/interfaces;linux_interfaces";
import "github.com/gogo/protobuf/gogoproto/gogo.proto";
option (gogoproto.messagename_all) = true;
import "models/linux/namespace/namespace.proto";
message Interface {
enum Type {
UNDEFINED = 0;
VETH = 1;
TAP_TO_VPP = 2; /* TAP created by VPP to have the Linux-side further configured */
LOOPBACK = 3;
};
string name = 1; /* Logical interface name unique across all configured interfaces (mandatory) */
Type type = 2; /* Interface type (mandatory) */
linux.namespace.NetNamespace namespace = 3;
string host_if_name = 4; /* Name of the interface in the host OS. If not set, the host name
is the same as the interface logical name. */
bool enabled = 5;
repeated string ip_addresses = 6; /* IP addresses in the format <ipAddress>/<ipPrefix> */
string phys_address = 7; /* MAC address */
uint32 mtu = 8; /* Maximum transmission unit value */
oneof link {
VethLink veth = 20; /* VETH-specific configuration */
TapLink tap = 21; /* TAP_TO_VPP-specific configuration */
};
};
message VethLink {
string peer_if_name = 1; /* Name of the VETH peer, i.e. other end of the linux veth (mandatory for VETH) */
enum ChecksumOffloading {
CHKSM_OFFLOAD_DEFAULT = 0;
CHKSM_OFFLOAD_ENABLED = 1;
CHKSM_OFFLOAD_DISABLED = 2;
}
ChecksumOffloading rx_checksum_offloading = 2; /* checksum offloading - Rx side (enabled by default) */
ChecksumOffloading tx_checksum_offloading = 3; /* checksum offloading - Tx side (enabled by default) */
};
message TapLink {
string vpp_tap_if_name = 1; /* Logical name of the VPP TAP interface (mandatory for TAP_TO_VPP) */
};