nsim

package
v0.0.0-...-f91f7f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package nsim is a generated VPP binary API for 'nsim' module.

It consists of:

4 messages
2 services

Index

Constants

View Source
const (
	// ModuleName is the name of this module.
	ModuleName = "nsim"
	// APIVersion is the API version of this module.
	APIVersion = "1.1.0"
	// VersionCrc is the CRC of this module.
	VersionCrc = 0x40628889
)

Variables

This section is empty.

Functions

func AllMessages

func AllMessages() []api.Message

Messages returns list of all messages in this module.

Types

type NsimConfigure

type NsimConfigure struct {
	DelayInUsec              uint32
	AveragePacketSize        uint32
	BandwidthInBitsPerSecond uint64
	PacketsPerDrop           uint32
}

NsimConfigure represents VPP binary API message 'nsim_configure'.

func (*NsimConfigure) GetCrcString

func (*NsimConfigure) GetCrcString() string

func (*NsimConfigure) GetMessageName

func (*NsimConfigure) GetMessageName() string

func (*NsimConfigure) GetMessageType

func (*NsimConfigure) GetMessageType() api.MessageType

func (*NsimConfigure) Reset

func (m *NsimConfigure) Reset()

type NsimConfigureReply

type NsimConfigureReply struct {
	Retval int32
}

NsimConfigureReply represents VPP binary API message 'nsim_configure_reply'.

func (*NsimConfigureReply) GetCrcString

func (*NsimConfigureReply) GetCrcString() string

func (*NsimConfigureReply) GetMessageName

func (*NsimConfigureReply) GetMessageName() string

func (*NsimConfigureReply) GetMessageType

func (*NsimConfigureReply) GetMessageType() api.MessageType

func (*NsimConfigureReply) Reset

func (m *NsimConfigureReply) Reset()

type NsimEnableDisable

type NsimEnableDisable struct {
	EnableDisable uint8
	SwIfIndex0    uint32
	SwIfIndex1    uint32
}

NsimEnableDisable represents VPP binary API message 'nsim_enable_disable'.

func (*NsimEnableDisable) GetCrcString

func (*NsimEnableDisable) GetCrcString() string

func (*NsimEnableDisable) GetMessageName

func (*NsimEnableDisable) GetMessageName() string

func (*NsimEnableDisable) GetMessageType

func (*NsimEnableDisable) GetMessageType() api.MessageType

func (*NsimEnableDisable) Reset

func (m *NsimEnableDisable) Reset()

type NsimEnableDisableReply

type NsimEnableDisableReply struct {
	Retval int32
}

NsimEnableDisableReply represents VPP binary API message 'nsim_enable_disable_reply'.

func (*NsimEnableDisableReply) GetCrcString

func (*NsimEnableDisableReply) GetCrcString() string

func (*NsimEnableDisableReply) GetMessageName

func (*NsimEnableDisableReply) GetMessageName() string

func (*NsimEnableDisableReply) GetMessageType

func (*NsimEnableDisableReply) GetMessageType() api.MessageType

func (*NsimEnableDisableReply) Reset

func (m *NsimEnableDisableReply) Reset()

type RPCService

type RPCService interface {
	NsimConfigure(ctx context.Context, in *NsimConfigure) (*NsimConfigureReply, error)
	NsimEnableDisable(ctx context.Context, in *NsimEnableDisable) (*NsimEnableDisableReply, error)
}

RPCService represents RPC service API for nsim module.

func NewServiceClient

func NewServiceClient(ch api.Channel) RPCService

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL