Documentation ¶
Index ¶
- Variables
- func MockCnfIndex() int
- type MockCnf1
- func (*MockCnf1) Descriptor() ([]byte, []int)deprecated
- func (x *MockCnf1) GetIpProtocol() uint32
- func (x *MockCnf1) GetVppInterface() string
- func (x *MockCnf1) GetVrf() uint32
- func (x *MockCnf1) GetWaitForInterface() string
- func (*MockCnf1) ProtoMessage()
- func (x *MockCnf1) ProtoReflect() protoreflect.Message
- func (x *MockCnf1) Reset()
- func (x *MockCnf1) String() string
- type MockCnf2
Constants ¶
This section is empty.
Variables ¶
var ( ModelMockCnf1 models.KnownModel ModelMockCnf2 models.KnownModel )
var File_mockcnf_mockcnf2_proto protoreflect.FileDescriptor
var File_mockcnf_mockcnf_proto protoreflect.FileDescriptor
Functions ¶
func MockCnfIndex ¶
func MockCnfIndex() int
Types ¶
type MockCnf1 ¶
type MockCnf1 struct { IpProtocol uint32 `protobuf:"varint,1,opt,name=ip_protocol,json=ipProtocol,proto3" json:"ip_protocol,omitempty"` // Reference to VPP logical name. VppInterface string `protobuf:"bytes,2,opt,name=vpp_interface,json=vppInterface,proto3" json:"vpp_interface,omitempty"` Vrf uint32 `protobuf:"varint,3,opt,name=vrf,proto3" json:"vrf,omitempty"` WaitForInterface string `protobuf:"bytes,4,opt,name=wait_for_interface,json=waitForInterface,proto3" json:"wait_for_interface,omitempty"` // contains filtered or unexported fields }
MockCnf is used for testing of CNFRegistry and PuntManager. NOTE: two different CNFs cannot use proto messages from the same proto files, because otherwise two distinct copies of the same file descriptor would be received over separate gRPC calls to KnownModels service, while only one descriptor can be registered for the same proto file.
func (*MockCnf1) Descriptor
deprecated
func (*MockCnf1) GetIpProtocol ¶
func (*MockCnf1) GetVppInterface ¶
func (*MockCnf1) GetWaitForInterface ¶
func (*MockCnf1) ProtoMessage ¶
func (*MockCnf1) ProtoMessage()
func (*MockCnf1) ProtoReflect ¶
func (x *MockCnf1) ProtoReflect() protoreflect.Message
type MockCnf2 ¶
type MockCnf2 struct { VppInterface string `protobuf:"bytes,1,opt,name=vpp_interface,json=vppInterface,proto3" json:"vpp_interface,omitempty"` Vrf uint32 `protobuf:"varint,2,opt,name=vrf,proto3" json:"vrf,omitempty"` // contains filtered or unexported fields }
MockCnf is used for testing of CNFRegistry and PuntManager. NOTE: two different CNFs cannot use proto messages from the same proto files, because otherwise two distinct copies of the same file descriptor would be received over separate gRPC calls to KnownModels service, while only one descriptor can be registered for the same proto file.
func (*MockCnf2) Descriptor
deprecated
func (*MockCnf2) GetVppInterface ¶
func (*MockCnf2) ProtoMessage ¶
func (*MockCnf2) ProtoMessage()
func (*MockCnf2) ProtoReflect ¶
func (x *MockCnf2) ProtoReflect() protoreflect.Message