Documentation ¶
Index ¶
- type MockVppPlugin
- func (mvp *MockVppPlugin) AddIPACL(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) DumpIPACL() (acls []*acl.AccessLists_Acl, err error)
- func (mvp *MockVppPlugin) DumpMACIPACL() (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() l2idx.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() l2idx.FIBIndexRW
- func (mvp *MockVppPlugin) GetIPSecSAIndexes() idxvpp.NameToIdx
- func (mvp *MockVppPlugin) GetIPSecSPDIndexes() ipsecidx.SPDIndex
- func (mvp *MockVppPlugin) GetSwIfIndexes() ifaceidx.SwIfIndex
- func (mvp *MockVppPlugin) GetXConnectIndexes() l2idx.XcIndexRW
- 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.
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().