defaultplugins

package
v0.0.0-...-a11b7ec Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

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 (defaultplugins).

func NewMockVppPlugin

func NewMockVppPlugin() *MockVppPlugin

NewMockVppPlugin is a constructor for MockVppPlugin.

func (*MockVppPlugin) AddACL

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

AddAcl adds ACL for DumpACLs().

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) DumpACL

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

DumpACL dumps ACLs added with AddACL().

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() bdidx.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() bdidx.FIBIndexRW

GetFIBIndexes does nothing here.

func (*MockVppPlugin) GetIPSecSAIndexes

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

GetIPSecSAIndexes

func (*MockVppPlugin) GetIPSecSPDIndexes

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

GetIPSecSPDIndexes

func (*MockVppPlugin) GetSwIfIndexes

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

GetSwIfIndexes does nothing here.

func (*MockVppPlugin) GetXConnectIndexes

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

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