linux

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 14 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() linuxclient.DeleteDSL

Delete initiates a chained sequence of data change DSL statements removing existing configurable objects.

func (*MockDataChangeDSL) Put

func (d *MockDataChangeDSL) Put() linuxclient.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) linuxclient.DataResyncDSL

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

func (*MockDataResyncDSL) ACL

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

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

func (*MockDataResyncDSL) Arp

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

Arp adds L3 ARP entry to the RESYNC request.

func (*MockDataResyncDSL) BD

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

BD adds VPP Bridge Domain to the mock RESYNC request.

func (*MockDataResyncDSL) BDFIB

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

BDFIB adds VPP L2 FIB to the mock RESYNC request.

func (*MockDataResyncDSL) DNAT44

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

DNAT44 adds a request to RESYNC a new DNAT configuration

func (*MockDataResyncDSL) IPScanNeighbor

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

IPScanNeighbor adds L3 IP Scan Neighbor to the RESYNC request.

func (*MockDataResyncDSL) IPSecSA

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

IPSecSA adds request to RESYNC a new Security Association

func (*MockDataResyncDSL) IPSecSPD

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

IPSecSPD adds request to RESYNC a new Security Policy Database

func (*MockDataResyncDSL) LinuxArpEntry

func (d *MockDataResyncDSL) LinuxArpEntry(val *linux_l3.ARPEntry) linuxclient.DataResyncDSL

func (*MockDataResyncDSL) LinuxInterface

func (d *MockDataResyncDSL) LinuxInterface(val *linux_interfaces.Interface) linuxclient.DataResyncDSL

LinuxInterface adds Linux interface to the mock RESYNC request.

func (*MockDataResyncDSL) LinuxRoute

func (d *MockDataResyncDSL) LinuxRoute(val *linux_l3.Route) linuxclient.DataResyncDSL

func (*MockDataResyncDSL) NAT44Global

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

NAT44Global adds a request to RESYNC global configuration for NAT44

func (*MockDataResyncDSL) ProxyArp

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

ProxyArp adds L3 proxy ARP to the RESYNC request.

func (*MockDataResyncDSL) PuntException

func (d *MockDataResyncDSL) PuntException(val *vpp_punt.Exception) linuxclient.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) linuxclient.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) linuxclient.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) linuxclient.DataResyncDSL

Span adds VPP span to the RESYNC request.

func (*MockDataResyncDSL) StaticRoute

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

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

func (*MockDataResyncDSL) StnRule

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

StnRule adds Stn rule to the RESYNC request.

func (*MockDataResyncDSL) VppInterface

func (d *MockDataResyncDSL) VppInterface(val *vpp_interfaces.Interface) linuxclient.DataResyncDSL

VppInterface adds VPP interface to the mock RESYNC request.

func (*MockDataResyncDSL) VrfTable

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

VrfTable adds VRF table to the RESYNC request.

func (*MockDataResyncDSL) XConnect

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

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

func (*MockDeleteDSL) ACL

func (d *MockDeleteDSL) ACL(aclName string) linuxclient.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) linuxclient.DeleteDSL

Arp adds a request to delete an existing VPP L3 ARP entry.

func (*MockDeleteDSL) BD

func (d *MockDeleteDSL) BD(bdName string) linuxclient.DeleteDSL

BD adds a mock request to delete an existing VPP Bridge Domain.

func (*MockDeleteDSL) BDFIB

func (d *MockDeleteDSL) BDFIB(bdName string, mac string) linuxclient.DeleteDSL

BDFIB adds a mock request to delete an existing VPP L2 Forwarding Information Base.

func (*MockDeleteDSL) DNAT44

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

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

func (*MockDeleteDSL) IPScanNeighbor

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

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

func (*MockDeleteDSL) IPSecSA

func (d *MockDeleteDSL) IPSecSA(saIndex string) linuxclient.DeleteDSL

IPSecSA adds request to delete a Security Association

func (*MockDeleteDSL) IPSecSPD

func (d *MockDeleteDSL) IPSecSPD(spdIndex string) linuxclient.DeleteDSL

IPSecSPD adds request to delete a Security Policy Database

func (*MockDeleteDSL) LinuxArpEntry

func (d *MockDeleteDSL) LinuxArpEntry(ifaceName string, ipAddr string) linuxclient.DeleteDSL

func (*MockDeleteDSL) LinuxInterface

func (d *MockDeleteDSL) LinuxInterface(ifName string) linuxclient.DeleteDSL

LinuxInterface adds a mock request to delete an existing Linux network interface.

func (*MockDeleteDSL) LinuxRoute

func (d *MockDeleteDSL) LinuxRoute(dstAddr, outIfaceName string) linuxclient.DeleteDSL

func (*MockDeleteDSL) NAT44Global

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

NAT44Global adds a request to remove global configuration for NAT44

func (*MockDeleteDSL) ProxyArp

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

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

func (*MockDeleteDSL) PuntException

func (d *MockDeleteDSL) PuntException(reason string) linuxclient.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) linuxclient.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) linuxclient.DeleteDSL

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

func (*MockDeleteDSL) Put

func (d *MockDeleteDSL) Put() linuxclient.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) linuxclient.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) linuxclient.DeleteDSL

StaticRoute adds a mock request to delete an existing VPP L3 Static Route..

func (*MockDeleteDSL) StnRule

func (d *MockDeleteDSL) StnRule(ifName, ipAddr string) linuxclient.DeleteDSL

StnRule adds request to delete Stn rule.

func (*MockDeleteDSL) VppInterface

func (d *MockDeleteDSL) VppInterface(interfaceName string) linuxclient.DeleteDSL

VppInterface adds a mock request to delete an existing VPP network interface.

func (*MockDeleteDSL) VrfTable

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

VrfTable adds a request to delete existing VPP VRF table.

func (*MockDeleteDSL) XConnect

func (d *MockDeleteDSL) XConnect(rxIfName string) linuxclient.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) linuxclient.PutDSL

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

func (*MockPutDSL) ACL

func (d *MockPutDSL) ACL(val *vpp_acl.ACL) linuxclient.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) linuxclient.PutDSL

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

func (*MockPutDSL) BD

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

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

func (*MockPutDSL) BDFIB

func (d *MockPutDSL) BDFIB(val *vpp_l2.FIBEntry) linuxclient.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) linuxclient.PutDSL

DNAT44 adds a request to create a new DNAT configuration

func (*MockPutDSL) Delete

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

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

func (*MockPutDSL) IPScanNeighbor

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

IPScanNeighbor adds L3 IP Scan Neighbor to the RESYNC request.

func (*MockPutDSL) IPSecSA

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

IPSecSA adds request to create a new Security Association

func (*MockPutDSL) IPSecSPD

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

IPSecSPD adds request to create a new Security Policy Database

func (*MockPutDSL) LinuxArpEntry

func (d *MockPutDSL) LinuxArpEntry(val *linux_l3.ARPEntry) linuxclient.PutDSL

func (*MockPutDSL) LinuxInterface

func (d *MockPutDSL) LinuxInterface(val *linux_interfaces.Interface) linuxclient.PutDSL

LinuxInterface adds a mock request to create or update Linux network interface.

func (*MockPutDSL) LinuxRoute

func (d *MockPutDSL) LinuxRoute(val *linux_l3.Route) linuxclient.PutDSL

func (*MockPutDSL) NAT44Global

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

NAT44Global adds a request to set global configuration for NAT44

func (*MockPutDSL) ProxyArp

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

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

func (*MockPutDSL) PuntException

func (d *MockPutDSL) PuntException(val *vpp_punt.Exception) linuxclient.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) linuxclient.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) linuxclient.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) linuxclient.PutDSL

Span adds a mock VPP span to the Put request.

func (*MockPutDSL) StaticRoute

func (d *MockPutDSL) StaticRoute(val *vpp_l3.Route) linuxclient.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) linuxclient.PutDSL

StnRule adds a request to create or update VPP Stn rule.

func (*MockPutDSL) VppInterface

func (d *MockPutDSL) VppInterface(val *vpp_interfaces.Interface) linuxclient.PutDSL

VppInterface adds a mock request to create or update VPP network interface.

func (*MockPutDSL) VrfTable

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

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

func (*MockPutDSL) XConnect

func (d *MockPutDSL) XConnect(val *vpp_l2.XConnectPair) linuxclient.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