vpp

package
v0.0.0-...-2d08fe4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

func (d *MockDataResyncDSL) ABF(val *vpp_abf.ABF) vppclient.DataResyncDSL

ABF adds a request to create or update VPP ACL-based forwarding.

func (*MockDataResyncDSL) ACL

func (d *MockDataResyncDSL) ACL(val *vpp_acl.ACL) vppclient.DataResyncDSL

ACL adds VPP Access Control List to the mock RESYNC request.

func (*MockDataResyncDSL) Arp

func (d *MockDataResyncDSL) Arp(val *vpp_l3.ARPEntry) vppclient.DataResyncDSL

Arp adds VPP L3 ARP to the RESYNC request.

func (*MockDataResyncDSL) BD

func (d *MockDataResyncDSL) BD(val *vpp_l2.BridgeDomain) vppclient.DataResyncDSL

BD adds VPP Bridge Domain to the mock RESYNC request.

func (*MockDataResyncDSL) BDFIB

func (d *MockDataResyncDSL) BDFIB(val *vpp_l2.FIBEntry) vppclient.DataResyncDSL

BDFIB adds VPP L2 FIB to the mock RESYNC request.

func (*MockDataResyncDSL) DNAT44

func (d *MockDataResyncDSL) DNAT44(val *vpp_nat.DNat44) vppclient.DataResyncDSL

DNAT44 adds a request to RESYNC a new DNAT configuration

func (*MockDataResyncDSL) IPScanNeighbor

func (d *MockDataResyncDSL) IPScanNeighbor(val *vpp_l3.IPScanNeighbor) vppclient.DataResyncDSL

IPScanNeighbor adds L3 IP Scan Neighbor to the RESYNC request.

func (*MockDataResyncDSL) IPSecSA

func (d *MockDataResyncDSL) IPSecSA(val *vpp_ipsec.SecurityAssociation) vppclient.DataResyncDSL

IPSecSA adds request to create a new Security Association

func (*MockDataResyncDSL) IPSecSPD

func (d *MockDataResyncDSL) IPSecSPD(val *vpp_ipsec.SecurityPolicyDatabase) vppclient.DataResyncDSL

IPSecSPD adds request to create a new Security Policy Database

func (*MockDataResyncDSL) IPSecTunnelProtection

func (d *MockDataResyncDSL) IPSecTunnelProtection(val *vpp_ipsec.TunnelProtection) vppclient.DataResyncDSL

IPSecTunnelProtection adds request to RESYNC an IPSec tunnel protection

func (*MockDataResyncDSL) Interface

func (d *MockDataResyncDSL) Interface(val *vpp_interfaces.Interface) vppclient.DataResyncDSL

Interface adds interface to the RESYNC request.

func (*MockDataResyncDSL) NAT44AddressPool

func (d *MockDataResyncDSL) NAT44AddressPool(pool *vpp_nat.Nat44AddressPool) vppclient.DataResyncDSL

NAT44AddressPool adds NAT44 address pool configuration to the RESYNC request.

func (*MockDataResyncDSL) NAT44Global

func (d *MockDataResyncDSL) NAT44Global(val *vpp_nat.Nat44Global) vppclient.DataResyncDSL

NAT44Global adds a request to RESYNC global configuration for NAT44

func (*MockDataResyncDSL) NAT44Interface

func (d *MockDataResyncDSL) NAT44Interface(natIf *vpp_nat.Nat44Interface) vppclient.DataResyncDSL

NAT44Interface adds NAT44 interface configuration to the RESYNC request.

func (*MockDataResyncDSL) ProxyArp

func (d *MockDataResyncDSL) ProxyArp(val *vpp_l3.ProxyARP) vppclient.DataResyncDSL

ProxyArp adds L3 proxy ARP to the RESYNC request.

func (*MockDataResyncDSL) PuntException

func (d *MockDataResyncDSL) PuntException(val *vpp_punt.Exception) vppclient.DataResyncDSL

PuntException adds request to RESYNC a rule used to add punt exception in punting traffic to a host.

func (*MockDataResyncDSL) PuntIPRedirect

func (d *MockDataResyncDSL) PuntIPRedirect(val *vpp_punt.IPRedirect) vppclient.DataResyncDSL

PuntIPRedirect adds request to RESYNC a rule used to punt L3 traffic via interface.

func (*MockDataResyncDSL) PuntToHost

func (d *MockDataResyncDSL) PuntToHost(val *vpp_punt.ToHost) vppclient.DataResyncDSL

PuntToHost adds request to RESYNC a rule used to punt L4 traffic to a host.

func (*MockDataResyncDSL) Send

func (d *MockDataResyncDSL) Send() vppclient.Reply

Send commits the transaction into the mock DB.

func (*MockDataResyncDSL) Span

func (d *MockDataResyncDSL) Span(val *vpp_interfaces.Span) vppclient.DataResyncDSL

Span adds VPP span to the RESYNC request.

func (*MockDataResyncDSL) StaticRoute

func (d *MockDataResyncDSL) StaticRoute(val *vpp_l3.Route) vppclient.DataResyncDSL

StaticRoute adds VPP L3 Static Route to the mock RESYNC request.

func (*MockDataResyncDSL) StnRule

func (d *MockDataResyncDSL) StnRule(val *vpp_stn.Rule) vppclient.DataResyncDSL

StnRule adds Stn rule to the RESYNC request.

func (*MockDataResyncDSL) VrfTable

func (d *MockDataResyncDSL) VrfTable(val *vpp_l3.VrfTable) vppclient.DataResyncDSL

VrfTable adds VRF table to the RESYNC request.

func (*MockDataResyncDSL) XConnect

func (d *MockDataResyncDSL) XConnect(val *vpp_l2.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) ABF

func (d *MockDeleteDSL) ABF(abfIndex uint32) vppclient.DeleteDSL

ABF adds a request to delete and existing VPP Access Control List.

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

func (d *MockDeleteDSL) DNAT44(label string) vppclient.DeleteDSL

DNAT44 adds a request to delete a DNAT configuration identified by label

func (*MockDeleteDSL) IPScanNeighbor

func (d *MockDeleteDSL) IPScanNeighbor() vppclient.DeleteDSL

IPScanNeighbor adds a request to delete an existing VPP L3 IP Scan Neighbor.

func (*MockDeleteDSL) IPSecSA

func (d *MockDeleteDSL) IPSecSA(saIndex uint32) vppclient.DeleteDSL

IPSecSA adds request to create a new Security Association

func (*MockDeleteDSL) IPSecSPD

func (d *MockDeleteDSL) IPSecSPD(spdIndex uint32) vppclient.DeleteDSL

IPSecSPD adds request to create a new Security Policy Database

func (*MockDeleteDSL) IPSecTunnelProtection

func (d *MockDeleteDSL) IPSecTunnelProtection(tp *vpp_ipsec.TunnelProtection) vppclient.DeleteDSL

IPSecTunnelProtection adds request to delete an IPSec tunnel protection from an interface

func (*MockDeleteDSL) Interface

func (d *MockDeleteDSL) Interface(ifaceName string) vppclient.DeleteDSL

Interface adds a request to delete an existing VPP network interface.

func (*MockDeleteDSL) NAT44AddressPool

func (d *MockDeleteDSL) NAT44AddressPool(pool *vpp_nat.Nat44AddressPool) vppclient.DeleteDSL

NAT44AddressPool adds a request to delete NAT44 address pool.

func (*MockDeleteDSL) NAT44Global

func (d *MockDeleteDSL) NAT44Global() vppclient.DeleteDSL

NAT44Global adds a request to remove global configuration for NAT44

func (*MockDeleteDSL) NAT44Interface

func (d *MockDeleteDSL) NAT44Interface(natIf *vpp_nat.Nat44Interface) vppclient.DeleteDSL

NAT44Interface adds a request to delete NAT44 interface configuration.

func (*MockDeleteDSL) ProxyArp

func (d *MockDeleteDSL) ProxyArp() vppclient.DeleteDSL

ProxyArp adds a request to delete an existing VPP L3 proxy ARP.

func (*MockDeleteDSL) PuntException

func (d *MockDeleteDSL) PuntException(reason string) vppclient.DeleteDSL

PuntException adds request to delete a rule used to add exception in punting of traffic to a host.

func (*MockDeleteDSL) PuntIPRedirect

func (d *MockDeleteDSL) PuntIPRedirect(l3Proto vpp_punt.L3Protocol, txInterface string) vppclient.DeleteDSL

PuntIPRedirect adds request to delete a rule used to punt L3 traffic via interface.

func (*MockDeleteDSL) PuntToHost

func (d *MockDeleteDSL) PuntToHost(l3Proto vpp_punt.L3Protocol, l4Proto vpp_punt.L4Protocol, port uint32) vppclient.DeleteDSL

PuntToHost adds request to delete a rule used to punt L4 traffic to a host.

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

func (d *MockDeleteDSL) Span(span *vpp_interfaces.Span) vppclient.DeleteDSL

Span adds a mock VPP span to the Delete request.

func (*MockDeleteDSL) StaticRoute

func (d *MockDeleteDSL) StaticRoute(iface string, 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(ifName, ipAddr string) vppclient.DeleteDSL

StnRule adds a request to delete an existing Stn rule to the RESYNC request.

func (*MockDeleteDSL) VrfTable

func (d *MockDeleteDSL) VrfTable(id uint32, proto vpp_l3.VrfTable_Protocol) vppclient.DeleteDSL

VrfTable adds a request to delete existing VPP VRF table.

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

func (d *MockPutDSL) ABF(val *vpp_abf.ABF) vppclient.PutDSL

ABF adds a request to create or update VPP ACL-based forwarding.

func (*MockPutDSL) ACL

func (d *MockPutDSL) ACL(val *vpp_acl.ACL) vppclient.PutDSL

ACL adds a mock request to create or update VPP Access Control List.

func (*MockPutDSL) Arp

func (d *MockPutDSL) Arp(val *vpp_l3.ARPEntry) vppclient.PutDSL

Arp adds a request to create or update VPP L3 ARP.

func (*MockPutDSL) BD

func (d *MockPutDSL) BD(val *vpp_l2.BridgeDomain) vppclient.PutDSL

BD adds a mock request to create or update VPP Bridge Domain.

func (*MockPutDSL) BDFIB

func (d *MockPutDSL) BDFIB(val *vpp_l2.FIBEntry) vppclient.PutDSL

BDFIB adds a mock request to create or update VPP L2 Forwarding Information Base.

func (*MockPutDSL) DNAT44

func (d *MockPutDSL) DNAT44(val *vpp_nat.DNat44) vppclient.PutDSL

DNAT44 adds a request to create a new DNAT configuration

func (*MockPutDSL) Delete

func (d *MockPutDSL) Delete() vppclient.DeleteDSL

Delete changes the DSL mode to allow removal of an existing configuration.

func (*MockPutDSL) IPScanNeighbor

func (d *MockPutDSL) IPScanNeighbor(val *vpp_l3.IPScanNeighbor) vppclient.PutDSL

IPScanNeighbor adds L3 IP Scan Neighbor to the RESYNC request.

func (*MockPutDSL) IPSecSA

func (d *MockPutDSL) IPSecSA(val *vpp_ipsec.SecurityAssociation) vppclient.PutDSL

IPSecSA adds request to create a new Security Association

func (*MockPutDSL) IPSecSPD

func (d *MockPutDSL) IPSecSPD(val *vpp_ipsec.SecurityPolicyDatabase) vppclient.PutDSL

IPSecSPD adds request to create a new Security Policy Database

func (*MockPutDSL) IPSecTunnelProtection

func (d *MockPutDSL) IPSecTunnelProtection(val *vpp_ipsec.TunnelProtection) vppclient.PutDSL

IPSecTunnelProtection adds request to create a new IPSec tunnel protection

func (*MockPutDSL) Interface

func (d *MockPutDSL) Interface(val *vpp_interfaces.Interface) vppclient.PutDSL

Interface adds interface to the RESYNC request.

func (*MockPutDSL) NAT44AddressPool

func (d *MockPutDSL) NAT44AddressPool(pool *vpp_nat.Nat44AddressPool) vppclient.PutDSL

NAT44AddressPool adds a request to create or update NAT44 address pool.

func (*MockPutDSL) NAT44Global

func (d *MockPutDSL) NAT44Global(val *vpp_nat.Nat44Global) vppclient.PutDSL

NAT44Global adds a request to set global configuration for NAT44

func (*MockPutDSL) NAT44Interface

func (d *MockPutDSL) NAT44Interface(natIf *vpp_nat.Nat44Interface) vppclient.PutDSL

NAT44Interface adds a request to create or update NAT44 interface configuration.

func (*MockPutDSL) ProxyArp

func (d *MockPutDSL) ProxyArp(val *vpp_l3.ProxyARP) vppclient.PutDSL

ProxyArp adds a request to create or update VPP L3 proxy ARP.

func (*MockPutDSL) PuntException

func (d *MockPutDSL) PuntException(val *vpp_punt.Exception) vppclient.PutDSL

PuntException adds request to delete a rule used to add exception in punting of traffic to a host.

func (*MockPutDSL) PuntIPRedirect

func (d *MockPutDSL) PuntIPRedirect(val *vpp_punt.IPRedirect) vppclient.PutDSL

PuntIPRedirect adds request to create or update rule to punt L3 traffic via interface.

func (*MockPutDSL) PuntToHost

func (d *MockPutDSL) PuntToHost(val *vpp_punt.ToHost) vppclient.PutDSL

PuntToHost adds request to create or update rule to punt L4 traffic to a host.

func (*MockPutDSL) Send

func (d *MockPutDSL) Send() vppclient.Reply

Send commits the transaction into the mock DB.

func (*MockPutDSL) Span

func (d *MockPutDSL) Span(val *vpp_interfaces.Span) vppclient.PutDSL

Span adds a mock VPP span to the Put request.

func (*MockPutDSL) StaticRoute

func (d *MockPutDSL) StaticRoute(val *vpp_l3.Route) vppclient.PutDSL

StaticRoute adds a mock request to create or update VPP L3 Static Route.

func (*MockPutDSL) StnRule

func (d *MockPutDSL) StnRule(val *vpp_stn.Rule) vppclient.PutDSL

StnRule adds a request to create or update Stn rule to the RESYNC request.

func (*MockPutDSL) VrfTable

func (d *MockPutDSL) VrfTable(val *vpp_l3.VrfTable) vppclient.PutDSL

VrfTable adds a request to create or update VPP VRF table.

func (*MockPutDSL) XConnect

func (d *MockPutDSL) XConnect(val *vpp_l2.XConnectPair) vppclient.PutDSL

XConnect adds a mock request to create or update VPP Cross Connect.

Jump to

Keyboard shortcuts

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