vpp

package
v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2019 License: Apache-2.0 Imports: 12 Imported by: 2

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

func (d *MockDataResyncDSL) ACL(val *acl.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.ARPEntry) vppclient.DataResyncDSL

Arp adds VPP L3 ARP to the RESYNC request.

func (*MockDataResyncDSL) BD

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

BD adds VPP Bridge Domain to the mock RESYNC request.

func (*MockDataResyncDSL) BDFIB

func (d *MockDataResyncDSL) BDFIB(val *l2.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) DNAT44

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

DNAT44 adds a request to RESYNC a new DNAT configuration

func (*MockDataResyncDSL) IPScanNeighbor

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

IPScanNeighbor adds L3 IP Scan Neighbor to the RESYNC request.

func (*MockDataResyncDSL) IPSecSA

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

IPSecSA adds request to create a new Security Association

func (*MockDataResyncDSL) IPSecSPD

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

IPSecSPD adds request to create a new Security Policy Database

func (*MockDataResyncDSL) Interface

func (d *MockDataResyncDSL) Interface(val *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) NAT44Global

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

NAT44Global adds a request to RESYNC global configuration for NAT44

func (*MockDataResyncDSL) ProxyArp

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

ProxyArp adds L3 proxy ARP to the RESYNC request.

func (*MockDataResyncDSL) PuntIPRedirect

func (d *MockDataResyncDSL) PuntIPRedirect(val *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 *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) StaticRoute

func (d *MockDataResyncDSL) StaticRoute(val *l3.StaticRoute) 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.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) 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 string) vppclient.DeleteDSL

IPSecSA adds request to create a new Security Association

func (*MockDeleteDSL) IPSecSPD

func (d *MockDeleteDSL) IPSecSPD(spdIndex 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) NAT44Global

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

NAT44Global adds a request to remove global configuration for NAT44

func (*MockDeleteDSL) ProxyArp

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

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

func (*MockDeleteDSL) PuntIPRedirect

func (d *MockDeleteDSL) PuntIPRedirect(l3Proto 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 punt.L3Protocol, l4Proto 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) 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.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.ARPEntry) vppclient.PutDSL

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

func (*MockPutDSL) BD

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

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

func (*MockPutDSL) BDFIB

func (d *MockPutDSL) BDFIB(val *l2.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) DNAT44

func (d *MockPutDSL) DNAT44(val *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 *l3.IPScanNeighbor) vppclient.PutDSL

IPScanNeighbor adds L3 IP Scan Neighbor to the RESYNC request.

func (*MockPutDSL) IPSecSA

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

IPSecSA adds request to create a new Security Association

func (*MockPutDSL) IPSecSPD

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

IPSecSPD adds request to create a new Security Policy Database

func (*MockPutDSL) Interface

func (d *MockPutDSL) Interface(val *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) NAT44Global

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

NAT44Global adds a request to set global configuration for NAT44

func (*MockPutDSL) ProxyArp

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

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

func (*MockPutDSL) PuntIPRedirect

func (d *MockPutDSL) PuntIPRedirect(val *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 *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) StaticRoute

func (d *MockPutDSL) StaticRoute(val *l3.StaticRoute) 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.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