Documentation ¶
Index ¶
- type MockDataChangeDSL
- type MockDataResyncDSL
- func (d *MockDataResyncDSL) ACL(val *acl.AccessLists_Acl) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) AppNamespace(val *l4.AppNamespaces_AppNamespace) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) Arp(val *l3.ArpTable_ArpEntry) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) BD(val *l2.BridgeDomains_BridgeDomain) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) BDFIB(val *l2.FibTable_FibEntry) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) BfdAuthKeys(val *bfd.SingleHopBFD_Key) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) BfdEchoFunction(val *bfd.SingleHopBFD_EchoFunction) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) BfdSession(val *bfd.SingleHopBFD_Session) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) IPSecSA(val *ipsec.SecurityAssociations_SA) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) IPSecSPD(val *ipsec.SecurityPolicyDatabases_SPD) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) Interface(val *interfaces.Interfaces_Interface) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) L4Features(val *l4.L4Features) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) NAT44DNat(val *nat.Nat44DNat_DNatConfig) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) NAT44Global(val *nat.Nat44Global) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) ProxyArpInterfaces(val *l3.ProxyArpInterfaces_InterfaceList) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) ProxyArpRanges(val *l3.ProxyArpRanges_RangeList) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) Send() vppclient.Reply
- func (d *MockDataResyncDSL) StaticRoute(val *l3.StaticRoutes_Route) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) StnRule(val *stn.STN_Rule) vppclient.DataResyncDSL
- func (d *MockDataResyncDSL) XConnect(val *l2.XConnectPairs_XConnectPair) vppclient.DataResyncDSL
- type MockDeleteDSL
- func (d *MockDeleteDSL) ACL(aclName string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) AppNamespace(id string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) Arp(ifaceName string, ipAddr string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) BD(bdName string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) BDFIB(bdName string, mac string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) BfdAuthKeys(bfdKey string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) BfdEchoFunction(bfdEchoName string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) BfdSession(bfdSessionIfaceName string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) IPSecSA(saName string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) IPSecSPD(spdName string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) Interface(ifaceName string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) L4Features() vppclient.DeleteDSL
- func (d *MockDeleteDSL) NAT44DNat(label string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) NAT44Global() vppclient.DeleteDSL
- func (d *MockDeleteDSL) ProxyArpInterfaces(label string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) ProxyArpRanges(label string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) Put() vppclient.PutDSL
- func (d *MockDeleteDSL) Send() vppclient.Reply
- func (d *MockDeleteDSL) StaticRoute(vrf uint32, dstAddr string, nextHopAddr string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) StnRule(ruleName string) vppclient.DeleteDSL
- func (d *MockDeleteDSL) XConnect(rxIfName string) vppclient.DeleteDSL
- type MockPutDSL
- func (d *MockPutDSL) ACL(val *acl.AccessLists_Acl) vppclient.PutDSL
- func (d *MockPutDSL) AppNamespace(val *l4.AppNamespaces_AppNamespace) vppclient.PutDSL
- func (d *MockPutDSL) Arp(val *l3.ArpTable_ArpEntry) vppclient.PutDSL
- func (d *MockPutDSL) BD(val *l2.BridgeDomains_BridgeDomain) vppclient.PutDSL
- func (d *MockPutDSL) BDFIB(val *l2.FibTable_FibEntry) vppclient.PutDSL
- func (d *MockPutDSL) BfdAuthKeys(val *bfd.SingleHopBFD_Key) vppclient.PutDSL
- func (d *MockPutDSL) BfdEchoFunction(val *bfd.SingleHopBFD_EchoFunction) vppclient.PutDSL
- func (d *MockPutDSL) BfdSession(val *bfd.SingleHopBFD_Session) vppclient.PutDSL
- func (d *MockPutDSL) Delete() vppclient.DeleteDSL
- func (d *MockPutDSL) IPSecSA(val *ipsec.SecurityAssociations_SA) vppclient.PutDSL
- func (d *MockPutDSL) IPSecSPD(val *ipsec.SecurityPolicyDatabases_SPD) vppclient.PutDSL
- func (d *MockPutDSL) Interface(val *interfaces.Interfaces_Interface) vppclient.PutDSL
- func (d *MockPutDSL) L4Features(val *l4.L4Features) vppclient.PutDSL
- func (d *MockPutDSL) NAT44DNat(val *nat.Nat44DNat_DNatConfig) vppclient.PutDSL
- func (d *MockPutDSL) NAT44Global(val *nat.Nat44Global) vppclient.PutDSL
- func (d *MockPutDSL) ProxyArpInterfaces(val *l3.ProxyArpInterfaces_InterfaceList) vppclient.PutDSL
- func (d *MockPutDSL) ProxyArpRanges(val *l3.ProxyArpRanges_RangeList) vppclient.PutDSL
- func (d *MockPutDSL) Send() vppclient.Reply
- func (d *MockPutDSL) StaticRoute(val *l3.StaticRoutes_Route) vppclient.PutDSL
- func (d *MockPutDSL) StnRule(val *stn.STN_Rule) vppclient.PutDSL
- func (d *MockPutDSL) XConnect(val *l2.XConnectPairs_XConnectPair) vppclient.PutDSL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDataChangeDSL ¶
type MockDataChangeDSL struct {
dsl.CommonMockDSL
}
MockDataChangeDSL is mock for DataChangeDSL.
func NewMockDataChangeDSL ¶
func NewMockDataChangeDSL(commitFunc dsl.CommitFunc) *MockDataChangeDSL
NewMockDataChangeDSL is a constructor for MockDataChangeDSL.
func (*MockDataChangeDSL) Delete ¶
func (d *MockDataChangeDSL) Delete() vppclient.DeleteDSL
Delete initiates a chained sequence of data change DSL statements removing existing configurable objects.
func (*MockDataChangeDSL) Put ¶
func (d *MockDataChangeDSL) Put() vppclient.PutDSL
Put initiates a chained sequence of data change DSL statements declaring new or changing existing configurable objects.
func (*MockDataChangeDSL) Send ¶
func (d *MockDataChangeDSL) Send() vppclient.Reply
Send commits the transaction into the mock DB.
type MockDataResyncDSL ¶
type MockDataResyncDSL struct {
dsl.CommonMockDSL
}
MockDataResyncDSL is mock for DataResyncDSL.
func NewMockDataResyncDSL ¶
func NewMockDataResyncDSL(commitFunc dsl.CommitFunc) *MockDataResyncDSL
NewMockDataResyncDSL is a constructor for MockDataResyncDSL.
func (*MockDataResyncDSL) ACL ¶
func (d *MockDataResyncDSL) ACL(val *acl.AccessLists_Acl) vppclient.DataResyncDSL
ACL adds VPP Access Control List to the mock RESYNC request.
func (*MockDataResyncDSL) AppNamespace ¶
func (d *MockDataResyncDSL) AppNamespace(val *l4.AppNamespaces_AppNamespace) vppclient.DataResyncDSL
AppNamespace adds VPP Application namespaces to the RESYNC request
func (*MockDataResyncDSL) Arp ¶
func (d *MockDataResyncDSL) Arp(val *l3.ArpTable_ArpEntry) vppclient.DataResyncDSL
Arp adds VPP L3 ARP to the RESYNC request.
func (*MockDataResyncDSL) BD ¶
func (d *MockDataResyncDSL) BD(val *l2.BridgeDomains_BridgeDomain) vppclient.DataResyncDSL
BD adds VPP Bridge Domain to the mock RESYNC request.
func (*MockDataResyncDSL) BDFIB ¶
func (d *MockDataResyncDSL) BDFIB(val *l2.FibTable_FibEntry) vppclient.DataResyncDSL
BDFIB adds VPP L2 FIB to the mock RESYNC request.
func (*MockDataResyncDSL) BfdAuthKeys ¶
func (d *MockDataResyncDSL) BfdAuthKeys(val *bfd.SingleHopBFD_Key) vppclient.DataResyncDSL
BfdAuthKeys adds VPP bidirectional forwarding detection key to the mock RESYNC request.
func (*MockDataResyncDSL) BfdEchoFunction ¶
func (d *MockDataResyncDSL) BfdEchoFunction(val *bfd.SingleHopBFD_EchoFunction) vppclient.DataResyncDSL
BfdEchoFunction adds VPP bidirectional forwarding detection echo function mock to the RESYNC request.
func (*MockDataResyncDSL) BfdSession ¶
func (d *MockDataResyncDSL) BfdSession(val *bfd.SingleHopBFD_Session) vppclient.DataResyncDSL
BfdSession adds VPP bidirectional forwarding detection session to the mock RESYNC request.
func (*MockDataResyncDSL) IPSecSA ¶
func (d *MockDataResyncDSL) IPSecSA(val *ipsec.SecurityAssociations_SA) vppclient.DataResyncDSL
IPSecSA adds request to create a new Security Association
func (*MockDataResyncDSL) IPSecSPD ¶
func (d *MockDataResyncDSL) IPSecSPD(val *ipsec.SecurityPolicyDatabases_SPD) vppclient.DataResyncDSL
IPSecSPD adds request to create a new Security Policy Database
func (*MockDataResyncDSL) Interface ¶
func (d *MockDataResyncDSL) Interface(val *interfaces.Interfaces_Interface) vppclient.DataResyncDSL
Interface adds interface to the RESYNC request.
func (*MockDataResyncDSL) L4Features ¶
func (d *MockDataResyncDSL) L4Features(val *l4.L4Features) vppclient.DataResyncDSL
L4Features adds L4 features to the RESYNC request
func (*MockDataResyncDSL) NAT44DNat ¶
func (d *MockDataResyncDSL) NAT44DNat(val *nat.Nat44DNat_DNatConfig) vppclient.DataResyncDSL
NAT44DNat adds a request to RESYNC a new DNAT configuration
func (*MockDataResyncDSL) NAT44Global ¶
func (d *MockDataResyncDSL) NAT44Global(val *nat.Nat44Global) vppclient.DataResyncDSL
NAT44Global adds a request to RESYNC global configuration for NAT44
func (*MockDataResyncDSL) ProxyArpInterfaces ¶
func (d *MockDataResyncDSL) ProxyArpInterfaces(val *l3.ProxyArpInterfaces_InterfaceList) vppclient.DataResyncDSL
ProxyArpInterfaces adds L3 proxy ARP interfaces to the RESYNC request.
func (*MockDataResyncDSL) ProxyArpRanges ¶
func (d *MockDataResyncDSL) ProxyArpRanges(val *l3.ProxyArpRanges_RangeList) vppclient.DataResyncDSL
ProxyArpRanges adds L3 proxy ARP ranges to the RESYNC request.
func (*MockDataResyncDSL) Send ¶
func (d *MockDataResyncDSL) Send() vppclient.Reply
Send commits the transaction into the mock DB.
func (*MockDataResyncDSL) StaticRoute ¶
func (d *MockDataResyncDSL) StaticRoute(val *l3.StaticRoutes_Route) vppclient.DataResyncDSL
StaticRoute adds VPP L3 Static Route to the mock RESYNC request.
func (*MockDataResyncDSL) StnRule ¶
func (d *MockDataResyncDSL) StnRule(val *stn.STN_Rule) vppclient.DataResyncDSL
StnRule adds Stn rule to the RESYNC request.
func (*MockDataResyncDSL) XConnect ¶
func (d *MockDataResyncDSL) XConnect(val *l2.XConnectPairs_XConnectPair) vppclient.DataResyncDSL
XConnect adds VPP Cross Connect to the mock RESYNC request.
type MockDeleteDSL ¶
type MockDeleteDSL struct {
// contains filtered or unexported fields
}
MockDeleteDSL is a mock for DeleteDSL.
func (*MockDeleteDSL) ACL ¶
func (d *MockDeleteDSL) ACL(aclName string) vppclient.DeleteDSL
ACL adds a mock request to delete an existing VPP Access Control List.
func (*MockDeleteDSL) AppNamespace ¶
func (d *MockDeleteDSL) AppNamespace(id string) vppclient.DeleteDSL
AppNamespace adds a request to delete VPP Application namespace Note: current version does not support application namespace deletion
func (*MockDeleteDSL) Arp ¶
func (d *MockDeleteDSL) Arp(ifaceName string, ipAddr string) vppclient.DeleteDSL
Arp adds a request to delete an existing VPP L3 ARP.
func (*MockDeleteDSL) BD ¶
func (d *MockDeleteDSL) BD(bdName string) vppclient.DeleteDSL
BD adds a mock request to delete an existing VPP Bridge Domain.
func (*MockDeleteDSL) BDFIB ¶
func (d *MockDeleteDSL) BDFIB(bdName string, mac string) vppclient.DeleteDSL
BDFIB adds a mock request to delete an existing VPP L2 Forwarding Information Base.
func (*MockDeleteDSL) BfdAuthKeys ¶
func (d *MockDeleteDSL) BfdAuthKeys(bfdKey string) vppclient.DeleteDSL
BfdAuthKeys adds a mock request to delete an existing bidirectional forwarding detection key.
func (*MockDeleteDSL) BfdEchoFunction ¶
func (d *MockDeleteDSL) BfdEchoFunction(bfdEchoName string) vppclient.DeleteDSL
BfdEchoFunction adds a mock request to delete an existing bidirectional forwarding detection echo function.
func (*MockDeleteDSL) BfdSession ¶
func (d *MockDeleteDSL) BfdSession(bfdSessionIfaceName string) vppclient.DeleteDSL
BfdSession adds a mock request to delete an existing bidirectional forwarding detection session.
func (*MockDeleteDSL) IPSecSA ¶
func (d *MockDeleteDSL) IPSecSA(saName string) vppclient.DeleteDSL
IPSecSA adds request to create a new Security Association
func (*MockDeleteDSL) IPSecSPD ¶
func (d *MockDeleteDSL) IPSecSPD(spdName string) vppclient.DeleteDSL
IPSecSPD adds request to create a new Security Policy Database
func (*MockDeleteDSL) Interface ¶
func (d *MockDeleteDSL) Interface(ifaceName string) vppclient.DeleteDSL
Interface adds a request to delete an existing VPP network interface.
func (*MockDeleteDSL) L4Features ¶
func (d *MockDeleteDSL) L4Features() vppclient.DeleteDSL
L4Features adds a request to enable or disable L4 features
func (*MockDeleteDSL) NAT44DNat ¶
func (d *MockDeleteDSL) NAT44DNat(label string) vppclient.DeleteDSL
NAT44DNat adds a request to delete a DNAT configuration identified by label
func (*MockDeleteDSL) NAT44Global ¶
func (d *MockDeleteDSL) NAT44Global() vppclient.DeleteDSL
NAT44Global adds a request to remove global configuration for NAT44
func (*MockDeleteDSL) ProxyArpInterfaces ¶
func (d *MockDeleteDSL) ProxyArpInterfaces(label string) vppclient.DeleteDSL
ProxyArpInterfaces adds a request to delete an existing VPP L3 proxy ARP interfaces
func (*MockDeleteDSL) ProxyArpRanges ¶
func (d *MockDeleteDSL) ProxyArpRanges(label string) vppclient.DeleteDSL
ProxyArpRanges adds a request to delete an existing VPP L3 proxy ARP ranges
func (*MockDeleteDSL) Put ¶
func (d *MockDeleteDSL) Put() vppclient.PutDSL
Put changes the DSL mode to allow configuration editing.
func (*MockDeleteDSL) Send ¶
func (d *MockDeleteDSL) Send() vppclient.Reply
Send commits the transaction into the mock DB.
func (*MockDeleteDSL) StaticRoute ¶
func (d *MockDeleteDSL) StaticRoute(vrf uint32, dstAddr string, nextHopAddr string) vppclient.DeleteDSL
StaticRoute adds a mock request to delete an existing VPP L3 Static Route..
func (*MockDeleteDSL) StnRule ¶
func (d *MockDeleteDSL) StnRule(ruleName string) vppclient.DeleteDSL
StnRule adds a request to delete an existing Stn rule to the RESYNC request.
func (*MockDeleteDSL) XConnect ¶
func (d *MockDeleteDSL) XConnect(rxIfName string) vppclient.DeleteDSL
XConnect adds a mock request to delete an existing VPP Cross Connect.
type MockPutDSL ¶
type MockPutDSL struct {
// contains filtered or unexported fields
}
MockPutDSL is a mock for PutDSL.
func (*MockPutDSL) ACL ¶
func (d *MockPutDSL) ACL(val *acl.AccessLists_Acl) vppclient.PutDSL
ACL adds a mock request to create or update VPP Access Control List.
func (*MockPutDSL) AppNamespace ¶
func (d *MockPutDSL) AppNamespace(val *l4.AppNamespaces_AppNamespace) vppclient.PutDSL
AppNamespace adds a request to create or update VPP Application namespace
func (*MockPutDSL) Arp ¶
func (d *MockPutDSL) Arp(val *l3.ArpTable_ArpEntry) vppclient.PutDSL
Arp adds a request to create or update VPP L3 ARP.
func (*MockPutDSL) BD ¶
func (d *MockPutDSL) BD(val *l2.BridgeDomains_BridgeDomain) vppclient.PutDSL
BD adds a mock request to create or update VPP Bridge Domain.
func (*MockPutDSL) BDFIB ¶
func (d *MockPutDSL) BDFIB(val *l2.FibTable_FibEntry) vppclient.PutDSL
BDFIB adds a mock request to create or update VPP L2 Forwarding Information Base.
func (*MockPutDSL) BfdAuthKeys ¶
func (d *MockPutDSL) BfdAuthKeys(val *bfd.SingleHopBFD_Key) vppclient.PutDSL
BfdAuthKeys adds a mock request to create or update bidirectional forwarding detection key.
func (*MockPutDSL) BfdEchoFunction ¶
func (d *MockPutDSL) BfdEchoFunction(val *bfd.SingleHopBFD_EchoFunction) vppclient.PutDSL
BfdEchoFunction adds a mock request to create or update bidirectional forwarding detection echo function.
func (*MockPutDSL) BfdSession ¶
func (d *MockPutDSL) BfdSession(val *bfd.SingleHopBFD_Session) vppclient.PutDSL
BfdSession adds a mock request to create or update bidirectional forwarding detection session.
func (*MockPutDSL) Delete ¶
func (d *MockPutDSL) Delete() vppclient.DeleteDSL
Delete changes the DSL mode to allow removal of an existing configuration.
func (*MockPutDSL) IPSecSA ¶
func (d *MockPutDSL) IPSecSA(val *ipsec.SecurityAssociations_SA) vppclient.PutDSL
IPSecSA adds request to create a new Security Association
func (*MockPutDSL) IPSecSPD ¶
func (d *MockPutDSL) IPSecSPD(val *ipsec.SecurityPolicyDatabases_SPD) vppclient.PutDSL
IPSecSPD adds request to create a new Security Policy Database
func (*MockPutDSL) Interface ¶
func (d *MockPutDSL) Interface(val *interfaces.Interfaces_Interface) vppclient.PutDSL
Interface adds interface to the RESYNC request.
func (*MockPutDSL) L4Features ¶
func (d *MockPutDSL) L4Features(val *l4.L4Features) vppclient.PutDSL
L4Features adds a request to enable or disable L4 features
func (*MockPutDSL) NAT44DNat ¶
func (d *MockPutDSL) NAT44DNat(val *nat.Nat44DNat_DNatConfig) vppclient.PutDSL
NAT44DNat adds a request to create a new DNAT configuration
func (*MockPutDSL) NAT44Global ¶
func (d *MockPutDSL) NAT44Global(val *nat.Nat44Global) vppclient.PutDSL
NAT44Global adds a request to set global configuration for NAT44
func (*MockPutDSL) ProxyArpInterfaces ¶
func (d *MockPutDSL) ProxyArpInterfaces(val *l3.ProxyArpInterfaces_InterfaceList) vppclient.PutDSL
ProxyArpInterfaces adds a request to create or update VPP L3 proxy ARP interfaces
func (*MockPutDSL) ProxyArpRanges ¶
func (d *MockPutDSL) ProxyArpRanges(val *l3.ProxyArpRanges_RangeList) vppclient.PutDSL
ProxyArpRanges adds a request to create or update VPP L3 proxy ARP ranges
func (*MockPutDSL) Send ¶
func (d *MockPutDSL) Send() vppclient.Reply
Send commits the transaction into the mock DB.
func (*MockPutDSL) StaticRoute ¶
func (d *MockPutDSL) StaticRoute(val *l3.StaticRoutes_Route) vppclient.PutDSL
StaticRoute adds a mock request to create or update VPP L3 Static Route.
func (*MockPutDSL) StnRule ¶
func (d *MockPutDSL) StnRule(val *stn.STN_Rule) vppclient.PutDSL
StnRule adds a request to create or update Stn rule to the RESYNC request.
func (*MockPutDSL) XConnect ¶
func (d *MockPutDSL) XConnect(val *l2.XConnectPairs_XConnectPair) vppclient.PutDSL
XConnect adds a mock request to create or update VPP Cross Connect.