Documentation ¶
Index ¶
- type MockVppPlugin
- func (mvp *MockVppPlugin) AddACL(acls ...*acl.AccessLists_Acl)
- func (mvp *MockVppPlugin) AddInterface(ifName string, swIfIndex uint32, ip string)
- func (mvp *MockVppPlugin) ClearACLs()
- func (mvp *MockVppPlugin) DisableResync(keyPrefix ...string)
- func (mvp *MockVppPlugin) DumpACL() (acls []*acl.AccessLists_Acl, err error)
- func (mvp *MockVppPlugin) DumpNat44DNat() (*nat.Nat44DNat, error)
- func (mvp *MockVppPlugin) DumpNat44Global() (*nat.Nat44Global, error)
- func (mvp *MockVppPlugin) GetAppNsIndexes() nsidx.AppNsIndex
- func (mvp *MockVppPlugin) GetBDIndexes() bdidx.BDIndex
- func (mvp *MockVppPlugin) GetBfdAuthKeyIndexes() idxvpp.NameToIdx
- func (mvp *MockVppPlugin) GetBfdEchoFunctionIndexes() idxvpp.NameToIdx
- func (mvp *MockVppPlugin) GetBfdSessionIndexes() idxvpp.NameToIdx
- func (mvp *MockVppPlugin) GetDHCPIndices() ifaceidx.DhcpIndex
- func (mvp *MockVppPlugin) GetFIBIndexes() bdidx.FIBIndexRW
- func (mvp *MockVppPlugin) GetIPSecSAIndexes() idxvpp.NameToIdx
- func (mvp *MockVppPlugin) GetIPSecSPDIndexes() idxvpp.NameToIdx
- func (mvp *MockVppPlugin) GetSwIfIndexes() ifaceidx.SwIfIndex
- func (mvp *MockVppPlugin) GetXConnectIndexes() idxvpp.NameToIdx
- func (mvp *MockVppPlugin) SetNat44Dnat(cfg *nat.Nat44DNat)
- func (mvp *MockVppPlugin) SetNat44Global(cfg *nat.Nat44Global)
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().