vpp_stn

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 5 Imported by: 118

Documentation

Index

Constants

View Source
const ModuleName = "vpp.stn"

ModuleName is the module name used for models.

Variables

View Source
var (
	ModelRule = models.Register(&Rule{}, models.Spec{
		Module:  ModuleName,
		Type:    "rule",
		Version: "v2",
	}, models.WithNameTemplate("{{.Interface}}/ip/{{.IpAddress}}"))
)

Functions

func Key

func Key(ifName, ipAddr string) string

Key returns the prefix used in the ETCD to store a VPP STN config of a particular STN rule in selected VPP instance.

Types

type Rule

type Rule struct {
	IpAddress            string   `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	Interface            string   `protobuf:"bytes,2,opt,name=interface,proto3" json:"interface,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Rule) Descriptor

func (*Rule) Descriptor() ([]byte, []int)

func (*Rule) GetInterface

func (m *Rule) GetInterface() string

func (*Rule) GetIpAddress

func (m *Rule) GetIpAddress() string

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) Reset

func (m *Rule) Reset()

func (*Rule) String

func (m *Rule) String() string

func (*Rule) XXX_DiscardUnknown

func (m *Rule) XXX_DiscardUnknown()

func (*Rule) XXX_Marshal

func (m *Rule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Rule) XXX_Merge

func (m *Rule) XXX_Merge(src proto.Message)

func (*Rule) XXX_MessageName

func (*Rule) XXX_MessageName() string

func (*Rule) XXX_Size

func (m *Rule) XXX_Size() int

func (*Rule) XXX_Unmarshal

func (m *Rule) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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