pluginvpp

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2018 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockVppPlugin

type MockVppPlugin struct {
	ACLs []*acl.AccessLists_Acl
	// contains filtered or unexported fields
}

MockVppPlugin is a mock for VPP plugin.

func NewMockVppPlugin

func NewMockVppPlugin() *MockVppPlugin

NewMockVppPlugin is a constructor for MockVppPlugin.

func (*MockVppPlugin) AddIPACL

func (mvp *MockVppPlugin) AddIPACL(acls ...*acl.AccessLists_Acl)

AddIPAcl adds IP ACL for DumpIPACL().

func (*MockVppPlugin) AddInterface

func (mvp *MockVppPlugin) AddInterface(ifName string, swIfIndex uint32, ip string)

AddInterface adds interface into the map of interfaces (returned by GetSwIfIndexes()).

func (*MockVppPlugin) ClearACLs

func (mvp *MockVppPlugin) ClearACLs()

ClearACLs clears the list ACLs for the dump.

func (*MockVppPlugin) DisableResync

func (mvp *MockVppPlugin) DisableResync(keyPrefix ...string)

DisableResync does nothing here.

func (*MockVppPlugin) DumpIPACL

func (mvp *MockVppPlugin) DumpIPACL() (acls []*acl.AccessLists_Acl, err error)

DumpIPACL dumps ACLs added with AddIPACL().

func (*MockVppPlugin) DumpMACIPACL

func (mvp *MockVppPlugin) DumpMACIPACL() (acls []*acl.AccessLists_Acl, err error)

DumpMACIPACL returns empty list of MAC ACLs.

func (*MockVppPlugin) DumpNat44DNat

func (mvp *MockVppPlugin) DumpNat44DNat() (*nat.Nat44DNat, error)

DumpNat44DNat returns the current NAT44 DNAT config

func (*MockVppPlugin) DumpNat44Global

func (mvp *MockVppPlugin) DumpNat44Global() (*nat.Nat44Global, error)

DumpNat44Global returns the current NAT44 global config

func (*MockVppPlugin) GetAppNsIndexes

func (mvp *MockVppPlugin) GetAppNsIndexes() nsidx.AppNsIndex

GetAppNsIndexes does nothing here.

func (*MockVppPlugin) GetBDIndexes

func (mvp *MockVppPlugin) GetBDIndexes() l2idx.BDIndex

GetBDIndexes does nothing here.

func (*MockVppPlugin) GetBfdAuthKeyIndexes

func (mvp *MockVppPlugin) GetBfdAuthKeyIndexes() idxvpp.NameToIdx

GetBfdAuthKeyIndexes does nothing here.

func (*MockVppPlugin) GetBfdEchoFunctionIndexes

func (mvp *MockVppPlugin) GetBfdEchoFunctionIndexes() idxvpp.NameToIdx

GetBfdEchoFunctionIndexes does nothing here.

func (*MockVppPlugin) GetBfdSessionIndexes

func (mvp *MockVppPlugin) GetBfdSessionIndexes() idxvpp.NameToIdx

GetBfdSessionIndexes does nothing here.

func (*MockVppPlugin) GetDHCPIndices

func (mvp *MockVppPlugin) GetDHCPIndices() ifaceidx.DhcpIndex

GetSwIfIndexes does nothing here.

func (*MockVppPlugin) GetFIBIndexes

func (mvp *MockVppPlugin) GetFIBIndexes() l2idx.FIBIndexRW

GetFIBIndexes does nothing here.

func (*MockVppPlugin) GetIPSecSAIndexes

func (mvp *MockVppPlugin) GetIPSecSAIndexes() idxvpp.NameToIdx

GetIPSecSAIndexes

func (*MockVppPlugin) GetIPSecSPDIndexes

func (mvp *MockVppPlugin) GetIPSecSPDIndexes() ipsecidx.SPDIndex

GetIPSecSPDIndexes

func (*MockVppPlugin) GetSwIfIndexes

func (mvp *MockVppPlugin) GetSwIfIndexes() ifaceidx.SwIfIndex

GetSwIfIndexes does nothing here.

func (*MockVppPlugin) GetXConnectIndexes

func (mvp *MockVppPlugin) GetXConnectIndexes() l2idx.XcIndexRW

GetXConnectIndexes does nothing here.

func (*MockVppPlugin) SetNat44Dnat

func (mvp *MockVppPlugin) SetNat44Dnat(cfg *nat.Nat44DNat)

SetNat44Dnat sets data for DumpNat44Dnat().

func (*MockVppPlugin) SetNat44Global

func (mvp *MockVppPlugin) SetNat44Global(cfg *nat.Nat44Global)

SetNat44Global sets data for DumpNat44Global().

Jump to

Keyboard shortcuts

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