{"modulePath":"github.com/EMnify/vpp-agent","version":"v1.0.8","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package interfaces\n\nPackage interfaces is a generated protocol buffer package.\n\nIt is generated from these files:\n\n\tinterfaces.proto\n\nIt has these top-level messages:\n\n\tInterfaces\n\tInterfacesState\n\tInterfaceErrors\n\n## Constants\n\n```go\nconst (\n\t// InterfacePrefix vpp/config/v1/interface/\n\tInterfacePrefix = \"vpp/config/v1/interface/\"\n\t// IfStatePrefix vpp/status/v1/interface/\n\tIfStatePrefix = \"vpp/status/v1/interface/\"\n\t// IfErrorPrefix vpp/status/v1/interface/error\n\tIfErrorPrefix = \"vpp/status/v1/interface/error/\"\n)\n```\n\n## Variables\n\n```go\nvar InterfaceType_name = map[int32]string{\n\t0: \"SOFTWARE_LOOPBACK\",\n\t1: \"ETHERNET_CSMACD\",\n\t2: \"MEMORY_INTERFACE\",\n\t3: \"TAP_INTERFACE\",\n\t4: \"AF_PACKET_INTERFACE\",\n\t5: \"VXLAN_TUNNEL\",\n}\n```\n\n```go\nvar InterfaceType_value = map[string]int32{\n\t\"SOFTWARE_LOOPBACK\":   0,\n\t\"ETHERNET_CSMACD\":     1,\n\t\"MEMORY_INTERFACE\":    2,\n\t\"TAP_INTERFACE\":       3,\n\t\"AF_PACKET_INTERFACE\": 4,\n\t\"VXLAN_TUNNEL\":        5,\n}\n```\n\n```go\nvar InterfacesState_Interface_Duplex_name = map[int32]string{\n\t0: \"UNKNOWN_DUPLEX\",\n\t1: \"HALF\",\n\t2: \"FULL\",\n}\n```\n\n```go\nvar InterfacesState_Interface_Duplex_value = map[string]int32{\n\t\"UNKNOWN_DUPLEX\": 0,\n\t\"HALF\":           1,\n\t\"FULL\":           2,\n}\n```\n\n```go\nvar InterfacesState_Interface_Status_name = map[int32]string{\n\t0: \"UNKNOWN_STATUS\",\n\t1: \"UP\",\n\t2: \"DOWN\",\n\t3: \"DELETED\",\n}\n```\n\n```go\nvar InterfacesState_Interface_Status_value = map[string]int32{\n\t\"UNKNOWN_STATUS\": 0,\n\t\"UP\":             1,\n\t\"DOWN\":           2,\n\t\"DELETED\":        3,\n}\n```\n\n```go\nvar Interfaces_Interface_Memif_MemifMode_name = map[int32]string{\n\t0: \"ETHERNET\",\n\t1: \"IP\",\n\t2: \"PUNT_INJECT\",\n}\n```\n\n```go\nvar Interfaces_Interface_Memif_MemifMode_value = map[string]int32{\n\t\"ETHERNET\":    0,\n\t\"IP\":          1,\n\t\"PUNT_INJECT\": 2,\n}\n```\n\n```go\nvar RxModeType_name = map[int32]string{\n\t0: \"UNKNOWN\",\n\t1: \"POLLING\",\n\t2: \"INTERRUPT\",\n\t3: \"ADAPTIVE\",\n\t4: \"DEFAULT\",\n}\n```\n\n```go\nvar RxModeType_value = map[string]int32{\n\t\"UNKNOWN\":   0,\n\t\"POLLING\":   1,\n\t\"INTERRUPT\": 2,\n\t\"ADAPTIVE\":  3,\n\t\"DEFAULT\":   4,\n}\n```\n\n## Functions\n\n```go\nfunc InterfaceErrorKey(ifaceLabel string) string\n```\nInterfaceErrorKey returns the key used in ETCD to store the interface errors.\n\n```go\nfunc InterfaceErrorPrefix() string\n```\nInterfaceErrorPrefix returns the prefix used in ETCD to store the interface errors.\n\n```go\nfunc InterfaceKey(ifaceLabel string) string\n```\nInterfaceKey returns the prefix used in ETCD to store the vpp interface config of a particular interface in selected vpp instance.\n\n```go\nfunc InterfaceKeyPrefix() string\n```\nInterfaceKeyPrefix returns the prefix used in ETCD to store vpp interfaces config.\n\n```go\nfunc InterfaceStateKey(ifaceLabel string) string\n```\nInterfaceStateKey returns the prefix used in ETCD to store the vpp interface state data of particular interface in selected vpp instance.\n\n```go\nfunc InterfaceStateKeyPrefix() string\n```\nInterfaceStateKeyPrefix returns the prefix used in ETCD to store the vpp interfaces state data.\n\n```go\nfunc ParseNameFromKey(key string) (name string, err error)\n```\nParseNameFromKey returns suffix of the key.\n\n## Types\n\n```go\ntype InterfaceErrors struct {\n\tInterface []*InterfaceErrors_Interface `protobuf:\"bytes,1,rep,name=interface\" json:\"interface,omitempty\"`\n}\n```\n\n```go\nfunc (m *InterfaceErrors) GetInterface() []*InterfaceErrors_Interface\n```\n\n```go\nfunc (*InterfaceErrors) ProtoMessage()\n```\n\n```go\nfunc (m *InterfaceErrors) Reset()\n```\n\n```go\nfunc (m *InterfaceErrors) String() string\n```\n\n```go\ntype InterfaceErrors_Interface struct {\n\tInterfaceName string                                 `protobuf:\"bytes,1,opt,name=interface_name,proto3\" json:\"interface_name,omitempty\"`\n\tErrorData     []*InterfaceErrors_Interface_ErrorData `protobuf:\"bytes,2,rep,name=error_data\" json:\"error_data,omitempty\"`\n}\n```\n\n```go\nfunc (m *InterfaceErrors_Interface) GetErrorData() []*InterfaceErrors_Interface_ErrorData\n```\n\n```go\nfunc (*InterfaceErrors_Interface) ProtoMessage()\n```\n\n```go\nfunc (m *InterfaceErrors_Interface) Reset()\n```\n\n```go\nfunc (m *InterfaceErrors_Interface) String() string\n```\n\n```go\ntype InterfaceErrors_Interface_ErrorData struct {\n\tChangeType   string `protobuf:\"bytes,1,opt,name=change_type,proto3\" json:\"change_type,omitempty\"`\n\tErrorMessage string `protobuf:\"bytes,2,opt,name=error_message,proto3\" json:\"error_message,omitempty\"`\n\tLastChange   int64  `protobuf:\"varint,3,opt,name=last_change,proto3\" json:\"last_change,omitempty\"`\n}\n```\n\n```go\nfunc (*InterfaceErrors_Interface_ErrorData) ProtoMessage()\n```\n\n```go\nfunc (m *InterfaceErrors_Interface_ErrorData) Reset()\n```\n\n```go\nfunc (m *InterfaceErrors_Interface_ErrorData) String() string\n```\n\n```go\ntype InterfaceStateNotification struct {\n\t// Type of the notification\n\tType InterfaceStateNotificationType\n\t// State of the network interface\n\tState *InterfacesState_Interface\n}\n```\nInterfaceStateNotification aggregates status UP/DOWN/DELETED/UNKNOWN with the details (state) about the interfaces including counters.\n\n```go\ntype InterfaceStateNotificationType int32\n```\nInterfaceStateNotificationType is a type of notification.\n\n```go\nconst (\n\t// UNKNOWN is default type.\n\tUNKNOWN InterfaceStateNotificationType = 0\n\t// UPDOWN represents Link UP/DOWN notification.\n\tUPDOWN InterfaceStateNotificationType = 1\n\t// COUNTERS represents interface state with updated counters.\n\tCOUNTERS InterfaceStateNotificationType = 2\n\t// DELETED represents the event when the interface was deleted from the VPP.\n\t// Note that some north bound config updates require delete and create the network interface one more time.\n\tDELETED InterfaceStateNotificationType = 3\n)\n```\n\n```go\ntype InterfaceType int32\n```\n\n```go\nconst (\n\tInterfaceType_SOFTWARE_LOOPBACK   InterfaceType = 0\n\tInterfaceType_ETHERNET_CSMACD     InterfaceType = 1\n\tInterfaceType_MEMORY_INTERFACE    InterfaceType = 2\n\tInterfaceType_TAP_INTERFACE       InterfaceType = 3\n\tInterfaceType_AF_PACKET_INTERFACE InterfaceType = 4\n\tInterfaceType_VXLAN_TUNNEL        InterfaceType = 5\n)\n```\n\n```go\nfunc (x InterfaceType) String() string\n```\n\n```go\ntype Interfaces struct {\n\tInterface []*Interfaces_Interface `protobuf:\"bytes,1,rep,name=interface\" json:\"interface,omitempty\"`\n}\n```\n\n```go\nfunc (m *Interfaces) GetInterface() []*Interfaces_Interface\n```\n\n```go\nfunc (*Interfaces) ProtoMessage()\n```\n\n```go\nfunc (m *Interfaces) Reset()\n```\n\n```go\nfunc (m *Interfaces) String() string\n```\n\n```go\ntype InterfacesState struct {\n\tInterface []*InterfacesState_Interface `protobuf:\"bytes,1,rep,name=interface\" json:\"interface,omitempty\"`\n}\n```\n\n```go\nfunc (m *InterfacesState) GetInterface() []*InterfacesState_Interface\n```\n\n```go\nfunc (*InterfacesState) ProtoMessage()\n```\n\n```go\nfunc (m *InterfacesState) Reset()\n```\n\n```go\nfunc (m *InterfacesState) String() string\n```\n\n```go\ntype InterfacesState_Interface struct {\n\tName         string                                `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\tInternalName string                                `protobuf:\"bytes,2,opt,name=internal_name,proto3\" json:\"internal_name,omitempty\"`\n\tType         InterfaceType                         `protobuf:\"varint,3,opt,name=type,proto3,enum=interfaces.InterfaceType\" json:\"type,omitempty\"`\n\tIfIndex      uint32                                `protobuf:\"varint,4,opt,name=if_index,proto3\" json:\"if_index,omitempty\"`\n\tAdminStatus  InterfacesState_Interface_Status      `protobuf:\"varint,5,opt,name=admin_status,proto3,enum=interfaces.InterfacesState_Interface_Status\" json:\"admin_status,omitempty\"`\n\tOperStatus   InterfacesState_Interface_Status      `protobuf:\"varint,6,opt,name=oper_status,proto3,enum=interfaces.InterfacesState_Interface_Status\" json:\"oper_status,omitempty\"`\n\tLastChange   int64                                 `protobuf:\"varint,7,opt,name=last_change,proto3\" json:\"last_change,omitempty\"`\n\tPhysAddress  string                                `protobuf:\"bytes,8,opt,name=phys_address,proto3\" json:\"phys_address,omitempty\"`\n\tSpeed        uint64                                `protobuf:\"varint,9,opt,name=speed,proto3\" json:\"speed,omitempty\"`\n\tMtu          uint32                                `protobuf:\"varint,10,opt,name=mtu,proto3\" json:\"mtu,omitempty\"`\n\tDuplex       InterfacesState_Interface_Duplex      `protobuf:\"varint,11,opt,name=duplex,proto3,enum=interfaces.InterfacesState_Interface_Duplex\" json:\"duplex,omitempty\"`\n\tStatistics   *InterfacesState_Interface_Statistics `protobuf:\"bytes,100,opt,name=statistics\" json:\"statistics,omitempty\"`\n}\n```\n\n```go\nfunc (m *InterfacesState_Interface) GetStatistics() *InterfacesState_Interface_Statistics\n```\n\n```go\nfunc (*InterfacesState_Interface) ProtoMessage()\n```\n\n```go\nfunc (m *InterfacesState_Interface) Reset()\n```\n\n```go\nfunc (m *InterfacesState_Interface) String() string\n```\n\n```go\ntype InterfacesState_Interface_Duplex int32\n```\n\n```go\nconst (\n\tInterfacesState_Interface_UNKNOWN_DUPLEX InterfacesState_Interface_Duplex = 0\n\tInterfacesState_Interface_HALF           InterfacesState_Interface_Duplex = 1\n\tInterfacesState_Interface_FULL           InterfacesState_Interface_Duplex = 2\n)\n```\n\n```go\nfunc (x InterfacesState_Interface_Duplex) String() string\n```\n\n```go\ntype InterfacesState_Interface_Statistics struct {\n\tInPackets       uint64 `protobuf:\"varint,1,opt,name=in_packets,proto3\" json:\"in_packets,omitempty\"`\n\tInBytes         uint64 `protobuf:\"varint,2,opt,name=in_bytes,proto3\" json:\"in_bytes,omitempty\"`\n\tOutPackets      uint64 `protobuf:\"varint,3,opt,name=out_packets,proto3\" json:\"out_packets,omitempty\"`\n\tOutBytes        uint64 `protobuf:\"varint,4,opt,name=out_bytes,proto3\" json:\"out_bytes,omitempty\"`\n\tDropPackets     uint64 `protobuf:\"varint,5,opt,name=drop_packets,proto3\" json:\"drop_packets,omitempty\"`\n\tPuntPackets     uint64 `protobuf:\"varint,6,opt,name=punt_packets,proto3\" json:\"punt_packets,omitempty\"`\n\tIpv4Packets     uint64 `protobuf:\"varint,7,opt,name=ipv4_packets,proto3\" json:\"ipv4_packets,omitempty\"`\n\tIpv6Packets     uint64 `protobuf:\"varint,8,opt,name=ipv6_packets,proto3\" json:\"ipv6_packets,omitempty\"`\n\tInNobufPackets  uint64 `protobuf:\"varint,9,opt,name=in_nobuf_packets,proto3\" json:\"in_nobuf_packets,omitempty\"`\n\tInMissPackets   uint64 `protobuf:\"varint,10,opt,name=in_miss_packets,proto3\" json:\"in_miss_packets,omitempty\"`\n\tInErrorPackets  uint64 `protobuf:\"varint,11,opt,name=in_error_packets,proto3\" json:\"in_error_packets,omitempty\"`\n\tOutErrorPackets uint64 `protobuf:\"varint,12,opt,name=out_error_packets,proto3\" json:\"out_error_packets,omitempty\"`\n}\n```\n\n```go\nfunc (*InterfacesState_Interface_Statistics) ProtoMessage()\n```\n\n```go\nfunc (m *InterfacesState_Interface_Statistics) Reset()\n```\n\n```go\nfunc (m *InterfacesState_Interface_Statistics) String() string\n```\n\n```go\ntype InterfacesState_Interface_Status int32\n```\n\n```go\nconst (\n\tInterfacesState_Interface_UNKNOWN_STATUS InterfacesState_Interface_Status = 0\n\tInterfacesState_Interface_UP             InterfacesState_Interface_Status = 1\n\tInterfacesState_Interface_DOWN           InterfacesState_Interface_Status = 2\n\tInterfacesState_Interface_DELETED        InterfacesState_Interface_Status = 3\n)\n```\n\n```go\nfunc (x InterfacesState_Interface_Status) String() string\n```\n\n```go\ntype Interfaces_Interface struct {\n\tName        string        `protobuf:\"bytes,1,opt,name=name,proto3\" json:\"name,omitempty\"`\n\tDescription string        `protobuf:\"bytes,2,opt,name=description,proto3\" json:\"description,omitempty\"`\n\tType        InterfaceType `protobuf:\"varint,3,opt,name=type,proto3,enum=interfaces.InterfaceType\" json:\"type,omitempty\"`\n\tEnabled     bool          `protobuf:\"varint,4,opt,name=enabled,proto3\" json:\"enabled,omitempty\"`\n\tPhysAddress string        `protobuf:\"bytes,5,opt,name=phys_address,proto3\" json:\"phys_address,omitempty\"`\n\tMtu         uint32        `protobuf:\"varint,6,opt,name=mtu,proto3\" json:\"mtu,omitempty\"`\n\tVrf         uint32        `protobuf:\"varint,7,opt,name=vrf,proto3\" json:\"vrf,omitempty\"`\n\t// Required format is \"ipAddress/ipPrefix\"\n\tIpAddresses    []string                             `protobuf:\"bytes,10,rep,name=ip_addresses\" json:\"ip_addresses,omitempty\"`\n\tRxModeSettings *Interfaces_Interface_RxModeSettings `protobuf:\"bytes,11,opt,name=rxModeSettings\" json:\"rxModeSettings,omitempty\"`\n\tMemif          *Interfaces_Interface_Memif          `protobuf:\"bytes,101,opt,name=memif\" json:\"memif,omitempty\"`\n\tVxlan          *Interfaces_Interface_Vxlan          `protobuf:\"bytes,102,opt,name=vxlan\" json:\"vxlan,omitempty\"`\n\tAfpacket       *Interfaces_Interface_Afpacket       `protobuf:\"bytes,103,opt,name=afpacket\" json:\"afpacket,omitempty\"`\n\tTap            *Interfaces_Interface_Tap            `protobuf:\"bytes,104,opt,name=tap\" json:\"tap,omitempty\"`\n}\n```\n\n```go\nfunc (m *Interfaces_Interface) GetAfpacket() *Interfaces_Interface_Afpacket\n```\n\n```go\nfunc (m *Interfaces_Interface) GetMemif() *Interfaces_Interface_Memif\n```\n\n```go\nfunc (m *Interfaces_Interface) GetRxModeSettings() *Interfaces_Interface_RxModeSettings\n```\n\n```go\nfunc (m *Interfaces_Interface) GetTap() *Interfaces_Interface_Tap\n```\n\n```go\nfunc (m *Interfaces_Interface) GetVxlan() *Interfaces_Interface_Vxlan\n```\n\n```go\nfunc (*Interfaces_Interface) ProtoMessage()\n```\n\n```go\nfunc (m *Interfaces_Interface) Reset()\n```\n\n```go\nfunc (m *Interfaces_Interface) String() string\n```\n\n```go\ntype Interfaces_Interface_Afpacket struct {\n\tHostIfName string `protobuf:\"bytes,1,opt,name=host_if_name,proto3\" json:\"host_if_name,omitempty\"`\n}\n```\n\n```go\nfunc (*Interfaces_Interface_Afpacket) ProtoMessage()\n```\n\n```go\nfunc (m *Interfaces_Interface_Afpacket) Reset()\n```\n\n```go\nfunc (m *Interfaces_Interface_Afpacket) String() string\n```\n\n```go\ntype Interfaces_Interface_Memif struct {\n\tMaster         bool                                 `protobuf:\"varint,1,opt,name=master,proto3\" json:\"master,omitempty\"`\n\tMode           Interfaces_Interface_Memif_MemifMode `protobuf:\"varint,2,opt,name=mode,proto3,enum=interfaces.Interfaces_Interface_Memif_MemifMode\" json:\"mode,omitempty\"`\n\tId             uint32                               `protobuf:\"varint,3,opt,name=id,proto3\" json:\"id,omitempty\"`\n\tSocketFilename string                               `protobuf:\"bytes,4,opt,name=socket_filename,proto3\" json:\"socket_filename,omitempty\"`\n\tSecret         string                               `protobuf:\"bytes,5,opt,name=secret,proto3\" json:\"secret,omitempty\"`\n\tRingSize       uint32                               `protobuf:\"varint,6,opt,name=ring_size,proto3\" json:\"ring_size,omitempty\"`\n\tBufferSize     uint32                               `protobuf:\"varint,7,opt,name=buffer_size,proto3\" json:\"buffer_size,omitempty\"`\n\tRxQueues       uint32                               `protobuf:\"varint,8,opt,name=rx_queues,proto3\" json:\"rx_queues,omitempty\"`\n\tTxQueues       uint32                               `protobuf:\"varint,9,opt,name=tx_queues,proto3\" json:\"tx_queues,omitempty\"`\n}\n```\n\n```go\nfunc (*Interfaces_Interface_Memif) ProtoMessage()\n```\n\n```go\nfunc (m *Interfaces_Interface_Memif) Reset()\n```\n\n```go\nfunc (m *Interfaces_Interface_Memif) String() string\n```\n\n```go\ntype Interfaces_Interface_Memif_MemifMode int32\n```\n\n```go\nconst (\n\tInterfaces_Interface_Memif_ETHERNET    Interfaces_Interface_Memif_MemifMode = 0\n\tInterfaces_Interface_Memif_IP          Interfaces_Interface_Memif_MemifMode = 1\n\tInterfaces_Interface_Memif_PUNT_INJECT Interfaces_Interface_Memif_MemifMode = 2\n)\n```\n\n```go\nfunc (x Interfaces_Interface_Memif_MemifMode) String() string\n```\n\n```go\ntype Interfaces_Interface_RxModeSettings struct {\n\tRxMode       RxModeType `protobuf:\"varint,1,opt,name=rx_mode,proto3,enum=interfaces.RxModeType\" json:\"rx_mode,omitempty\"`\n\tQueueID      uint32     `protobuf:\"varint,2,opt,proto3\" json:\"QueueID,omitempty\"`\n\tQueueIDValid uint32     `protobuf:\"varint,3,opt,proto3\" json:\"QueueIDValid,omitempty\"`\n}\n```\n\n```go\nfunc (*Interfaces_Interface_RxModeSettings) ProtoMessage()\n```\n\n```go\nfunc (m *Interfaces_Interface_RxModeSettings) Reset()\n```\n\n```go\nfunc (m *Interfaces_Interface_RxModeSettings) String() string\n```\n\n```go\ntype Interfaces_Interface_Tap struct {\n\tHostIfName string `protobuf:\"bytes,1,opt,name=host_if_name,proto3\" json:\"host_if_name,omitempty\"`\n}\n```\n\n```go\nfunc (*Interfaces_Interface_Tap) ProtoMessage()\n```\n\n```go\nfunc (m *Interfaces_Interface_Tap) Reset()\n```\n\n```go\nfunc (m *Interfaces_Interface_Tap) String() string\n```\n\n```go\ntype Interfaces_Interface_Vxlan struct {\n\tSrcAddress string `protobuf:\"bytes,1,opt,name=src_address,proto3\" json:\"src_address,omitempty\"`\n\tDstAddress string `protobuf:\"bytes,2,opt,name=dst_address,proto3\" json:\"dst_address,omitempty\"`\n\tVni        uint32 `protobuf:\"varint,3,opt,name=vni,proto3\" json:\"vni,omitempty\"`\n}\n```\n\n```go\nfunc (*Interfaces_Interface_Vxlan) ProtoMessage()\n```\n\n```go\nfunc (m *Interfaces_Interface_Vxlan) Reset()\n```\n\n```go\nfunc (m *Interfaces_Interface_Vxlan) String() string\n```\n\n```go\ntype RxModeType int32\n```\nfrom vpp/build-root/install-vpp-native/vpp/include/vnet/interface.h\n\n```go\nconst (\n\tRxModeType_UNKNOWN   RxModeType = 0\n\tRxModeType_POLLING   RxModeType = 1\n\tRxModeType_INTERRUPT RxModeType = 2\n\tRxModeType_ADAPTIVE  RxModeType = 3\n\tRxModeType_DEFAULT   RxModeType = 4\n)\n```\n\n```go\nfunc (x RxModeType) String() string\n```\n\n","path":"github.com/EMnify/vpp-agent/plugins/defaultplugins/ifplugin/model/interfaces","name":"interfaces","synopsis":"Package interfaces is a generated protocol buffer package.","isRedistributable":true}
