clientv2

package
v2.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataChangeDSL

type DataChangeDSL struct {
	// contains filtered or unexported fields
}

DataChangeDSL is used to conveniently assign all the data that are needed for the DataChange. This is an implementation of Domain Specific Language (DSL) for a change of the VPP/Linux configuration.

func NewDataChangeDSL

func NewDataChangeDSL(client rpc.DataChangeServiceClient) *DataChangeDSL

NewDataChangeDSL is a constructor

func (*DataChangeDSL) Delete

func (dsl *DataChangeDSL) Delete() linuxclient.DeleteDSL

Delete enables deleting Interface/BD...

func (*DataChangeDSL) Put

func (dsl *DataChangeDSL) Put() linuxclient.PutDSL

Put enables creating Interface/BD...

func (*DataChangeDSL) Send

func (dsl *DataChangeDSL) Send() vppclient.Reply

Send propagates changes to the channels.

type DataResyncDSL

type DataResyncDSL struct {
	// contains filtered or unexported fields
}

DataResyncDSL is used to conveniently assign all the data that are needed for the RESYNC. This is implementation of Domain Specific Language (DSL) for data RESYNC of the VPP configuration.

func NewDataResyncDSL

func NewDataResyncDSL(client rpc.DataResyncServiceClient) *DataResyncDSL

NewDataResyncDSL is a constructor.

func (*DataResyncDSL) ACL

func (dsl *DataResyncDSL) ACL(val *vpp_acl.ACL) linuxclient.DataResyncDSL

ACL adds VPP Access Control List to the RESYNC request.

func (*DataResyncDSL) AppNamespace

func (dsl *DataResyncDSL) AppNamespace(val *l4.AppNamespaces_AppNamespace) linuxclient.DataResyncDSL

AppNamespace adds VPP Application namespaces to the RESYNC request

func (*DataResyncDSL) Arp

func (dsl *DataResyncDSL) Arp(val *vpp_l3.ARPEntry) linuxclient.DataResyncDSL

Arp adds VPP L3 ARP to the RESYNC request.

func (*DataResyncDSL) BD

func (dsl *DataResyncDSL) BD(val *vpp_l2.BridgeDomain) linuxclient.DataResyncDSL

BD adds VPP Bridge Domain to the RESYNC request.

func (*DataResyncDSL) BDFIB

func (dsl *DataResyncDSL) BDFIB(val *vpp_l2.FIBEntry) linuxclient.DataResyncDSL

BDFIB adds VPP L2 FIB to the RESYNC request.

func (*DataResyncDSL) BfdAuthKeys

func (dsl *DataResyncDSL) BfdAuthKeys(val *bfd.SingleHopBFD_Key) linuxclient.DataResyncDSL

BfdAuthKeys adds VPP bidirectional forwarding detection key to the RESYNC request.

func (*DataResyncDSL) BfdEchoFunction

func (dsl *DataResyncDSL) BfdEchoFunction(val *bfd.SingleHopBFD_EchoFunction) linuxclient.DataResyncDSL

BfdEchoFunction adds VPP bidirectional forwarding detection echo function to the RESYNC request.

func (*DataResyncDSL) BfdSession

func (dsl *DataResyncDSL) BfdSession(val *bfd.SingleHopBFD_Session) linuxclient.DataResyncDSL

BfdSession adds VPP bidirectional forwarding detection session to the RESYNC request.

func (*DataResyncDSL) DNAT44

func (dsl *DataResyncDSL) DNAT44(val *vpp_nat.DNat44) linuxclient.DataResyncDSL

DNAT44 adds DNAT44 configuration to the RESYNC request

func (*DataResyncDSL) IPScanNeighbor

func (dsl *DataResyncDSL) IPScanNeighbor(val *vpp_l3.IPScanNeighbor) linuxclient.DataResyncDSL

IPScanNeighbor adds L3 IP Scan Neighbor to the RESYNC request.

func (*DataResyncDSL) IPSecSA

func (dsl *DataResyncDSL) IPSecSA(val *vpp_ipsec.SecurityAssociation) linuxclient.DataResyncDSL

IPSecSA adds request to RESYNC a new Security Association

func (*DataResyncDSL) IPSecSPD

func (dsl *DataResyncDSL) IPSecSPD(val *vpp_ipsec.SecurityPolicyDatabase) linuxclient.DataResyncDSL

IPSecSPD adds request to RESYNC a new Security Policy Database

func (*DataResyncDSL) L4Features

func (dsl *DataResyncDSL) L4Features(val *l4.L4Features) linuxclient.DataResyncDSL

L4Features adds L4 features to the RESYNC request

func (*DataResyncDSL) LinuxArpEntry

func (dsl *DataResyncDSL) LinuxArpEntry(val *linux_l3.ARPEntry) linuxclient.DataResyncDSL

LinuxArpEntry adds Linux ARP entry to the RESYNC request.

func (*DataResyncDSL) LinuxInterface

func (dsl *DataResyncDSL) LinuxInterface(val *linux_interfaces.Interface) linuxclient.DataResyncDSL

LinuxInterface adds Linux interface to the RESYNC request.

func (*DataResyncDSL) LinuxRoute

func (dsl *DataResyncDSL) LinuxRoute(val *linux_l3.Route) linuxclient.DataResyncDSL

LinuxRoute adds Linux route to the RESYNC request.

func (*DataResyncDSL) NAT44Global

func (dsl *DataResyncDSL) NAT44Global(val *vpp_nat.Nat44Global) linuxclient.DataResyncDSL

NAT44Global adds global NAT44 configuration to the RESYNC request.

func (*DataResyncDSL) ProxyArp

func (dsl *DataResyncDSL) ProxyArp(val *vpp_l3.ProxyARP) linuxclient.DataResyncDSL

ProxyArp adds L3 proxy ARP interfaces to the RESYNC request.

func (*DataResyncDSL) PuntIPRedirect

func (dsl *DataResyncDSL) PuntIPRedirect(val *vpp_punt.IPRedirect) linuxclient.DataResyncDSL

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

func (*DataResyncDSL) PuntToHost

func (dsl *DataResyncDSL) PuntToHost(val *vpp_punt.ToHost) linuxclient.DataResyncDSL

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

func (*DataResyncDSL) Send

func (dsl *DataResyncDSL) Send() vppclient.Reply

Send propagates the request to the plugins. It deletes obsolete keys if listKeys() function is not null. The listkeys() function is used to list all current keys.

func (*DataResyncDSL) StaticRoute

func (dsl *DataResyncDSL) StaticRoute(val *vpp_l3.Route) linuxclient.DataResyncDSL

StaticRoute adds VPP L3 Static Route to the RESYNC request.

func (*DataResyncDSL) StnRule

func (dsl *DataResyncDSL) StnRule(val *vpp_stn.Rule) linuxclient.DataResyncDSL

StnRule adds Stn rule to the RESYNC request.

func (*DataResyncDSL) VppInterface

func (dsl *DataResyncDSL) VppInterface(val *vpp_interfaces.Interface) linuxclient.DataResyncDSL

VppInterface adds VPP interface to the RESYNC request.

func (*DataResyncDSL) XConnect

func (dsl *DataResyncDSL) XConnect(val *vpp_l2.XConnectPair) linuxclient.DataResyncDSL

XConnect adds VPP Cross Connect to the RESYNC request.

type DeleteDSL

type DeleteDSL struct {
	// contains filtered or unexported fields
}

DeleteDSL allows to remove configuration via GRPC.

func (*DeleteDSL) ACL

func (dsl *DeleteDSL) ACL(aclName string) linuxclient.DeleteDSL

ACL adds a request to delete an existing VPP Access Control List.

func (*DeleteDSL) AppNamespace

func (dsl *DeleteDSL) AppNamespace(id string) linuxclient.DeleteDSL

AppNamespace adds a request to delete VPP Application namespace

func (*DeleteDSL) Arp

func (dsl *DeleteDSL) Arp(ifaceName string, ipAddr string) linuxclient.DeleteDSL

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

func (*DeleteDSL) BD

func (dsl *DeleteDSL) BD(bdName string) linuxclient.DeleteDSL

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

func (*DeleteDSL) BDFIB

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

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

func (*DeleteDSL) BfdAuthKeys

func (dsl *DeleteDSL) BfdAuthKeys(bfdKey string) linuxclient.DeleteDSL

BfdAuthKeys adds a request to delete an existing VPP bidirectional forwarding detection key.

func (*DeleteDSL) BfdEchoFunction

func (dsl *DeleteDSL) BfdEchoFunction(bfdEchoName string) linuxclient.DeleteDSL

BfdEchoFunction adds a request to delete an existing VPP bidirectional forwarding detection echo function.

func (*DeleteDSL) BfdSession

func (dsl *DeleteDSL) BfdSession(bfdSessionIfaceName string) linuxclient.DeleteDSL

BfdSession adds a request to delete an existing VPP bidirectional forwarding detection session.

func (*DeleteDSL) DNAT44

func (dsl *DeleteDSL) DNAT44(label string) linuxclient.DeleteDSL

DNAT44 adds a request to delete an existing DNAT-44 configuration

func (*DeleteDSL) IPScanNeighbor

func (dsl *DeleteDSL) IPScanNeighbor() linuxclient.DeleteDSL

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

func (*DeleteDSL) IPSecSA

func (dsl *DeleteDSL) IPSecSA(saIndex string) linuxclient.DeleteDSL

IPSecSA adds request to delete a Security Association

func (*DeleteDSL) IPSecSPD

func (dsl *DeleteDSL) IPSecSPD(spdIndex string) linuxclient.DeleteDSL

IPSecSPD adds request to delete a Security Policy Database

func (*DeleteDSL) L4Features

func (dsl *DeleteDSL) L4Features() linuxclient.DeleteDSL

L4Features adds a request to enable or disable L4 features

func (*DeleteDSL) LinuxArpEntry

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

LinuxArpEntry adds a request to delete Linux ARP entry

func (*DeleteDSL) LinuxInterface

func (dsl *DeleteDSL) LinuxInterface(ifaceName string) linuxclient.DeleteDSL

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

func (*DeleteDSL) LinuxRoute

func (dsl *DeleteDSL) LinuxRoute(dstNet, outIfaceName string) linuxclient.DeleteDSL

LinuxRoute adds a request to delete Linux route

func (*DeleteDSL) NAT44Global

func (dsl *DeleteDSL) NAT44Global() linuxclient.DeleteDSL

NAT44Global adds a request to remove global configuration for NAT44

func (*DeleteDSL) ProxyArp

func (dsl *DeleteDSL) ProxyArp() linuxclient.DeleteDSL

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

func (*DeleteDSL) PuntIPRedirect

func (dsl *DeleteDSL) PuntIPRedirect(l3Proto vpp_punt.L3Protocol, txInterface string) linuxclient.DeleteDSL

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

func (*DeleteDSL) PuntToHost

func (dsl *DeleteDSL) 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 (*DeleteDSL) Put

func (dsl *DeleteDSL) Put() linuxclient.PutDSL

Put enables creating Interface/BD...

func (*DeleteDSL) Send

func (dsl *DeleteDSL) Send() vppclient.Reply

Send propagates changes to the channels.

func (*DeleteDSL) StaticRoute

func (dsl *DeleteDSL) StaticRoute(vrf uint32, dstNet string, nextHopAddr string) linuxclient.DeleteDSL

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

func (*DeleteDSL) StnRule

func (dsl *DeleteDSL) StnRule(iface, addr string) linuxclient.DeleteDSL

StnRule adds a request to delete an existing VPP Stn rule.

func (*DeleteDSL) VppInterface

func (dsl *DeleteDSL) VppInterface(ifaceName string) linuxclient.DeleteDSL

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

func (*DeleteDSL) XConnect

func (dsl *DeleteDSL) XConnect(rxIfaceName string) linuxclient.DeleteDSL

XConnect adds a request to delete an existing VPP Cross Connect.

type PutDSL

type PutDSL struct {
	// contains filtered or unexported fields
}

PutDSL allows to add or edit configuration via GRPC.

func (*PutDSL) ACL

func (dsl *PutDSL) ACL(val *vpp_acl.ACL) linuxclient.PutDSL

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

func (*PutDSL) AppNamespace

func (dsl *PutDSL) AppNamespace(val *l4.AppNamespaces_AppNamespace) linuxclient.PutDSL

AppNamespace adds a request to create or update VPP Application namespace

func (*PutDSL) Arp

func (dsl *PutDSL) Arp(val *vpp_l3.ARPEntry) linuxclient.PutDSL

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

func (*PutDSL) BD

func (dsl *PutDSL) BD(val *vpp_l2.BridgeDomain) linuxclient.PutDSL

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

func (*PutDSL) BDFIB

func (dsl *PutDSL) BDFIB(val *vpp_l2.FIBEntry) linuxclient.PutDSL

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

func (*PutDSL) BfdAuthKeys

func (dsl *PutDSL) BfdAuthKeys(val *bfd.SingleHopBFD_Key) linuxclient.PutDSL

BfdAuthKeys adds a request to create or update VPP bidirectional forwarding detection key.

func (*PutDSL) BfdEchoFunction

func (dsl *PutDSL) BfdEchoFunction(val *bfd.SingleHopBFD_EchoFunction) linuxclient.PutDSL

BfdEchoFunction adds a request to create or update VPP bidirectional forwarding detection echo function.

func (*PutDSL) BfdSession

func (dsl *PutDSL) BfdSession(val *bfd.SingleHopBFD_Session) linuxclient.PutDSL

BfdSession adds a request to create or update VPP bidirectional forwarding detection session.

func (*PutDSL) DNAT44

func (dsl *PutDSL) DNAT44(val *vpp_nat.DNat44) linuxclient.PutDSL

DNAT44 adds a request to create or update DNAT44 configuration

func (*PutDSL) Delete

func (dsl *PutDSL) Delete() linuxclient.DeleteDSL

Delete enables deleting Interface/BD...

func (*PutDSL) IPScanNeighbor

func (dsl *PutDSL) IPScanNeighbor(val *vpp_l3.IPScanNeighbor) linuxclient.PutDSL

IPScanNeighbor adds L3 IP Scan Neighbor to the RESYNC request.

func (*PutDSL) IPSecSA

func (dsl *PutDSL) IPSecSA(val *vpp_ipsec.SecurityAssociation) linuxclient.PutDSL

IPSecSA adds request to create a new Security Association

func (*PutDSL) IPSecSPD

func (dsl *PutDSL) IPSecSPD(val *vpp_ipsec.SecurityPolicyDatabase) linuxclient.PutDSL

IPSecSPD adds request to create a new Security Policy Database

func (*PutDSL) L4Features

func (dsl *PutDSL) L4Features(val *l4.L4Features) linuxclient.PutDSL

L4Features adds a request to enable or disable L4 features

func (*PutDSL) LinuxArpEntry

func (dsl *PutDSL) LinuxArpEntry(val *linux_l3.ARPEntry) linuxclient.PutDSL

LinuxArpEntry adds a request to crete or update Linux ARP entry

func (*PutDSL) LinuxInterface

func (dsl *PutDSL) LinuxInterface(val *linux_interfaces.Interface) linuxclient.PutDSL

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

func (*PutDSL) LinuxRoute

func (dsl *PutDSL) LinuxRoute(val *linux_l3.Route) linuxclient.PutDSL

LinuxRoute adds a request to crete or update Linux route

func (*PutDSL) NAT44Global

func (dsl *PutDSL) NAT44Global(val *vpp_nat.Nat44Global) linuxclient.PutDSL

NAT44Global adds a request to set global configuration for NAT44

func (*PutDSL) ProxyArp

func (dsl *PutDSL) ProxyArp(val *vpp_l3.ProxyARP) linuxclient.PutDSL

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

func (*PutDSL) PuntIPRedirect

func (dsl *PutDSL) PuntIPRedirect(val *vpp_punt.IPRedirect) linuxclient.PutDSL

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

func (*PutDSL) PuntToHost

func (dsl *PutDSL) PuntToHost(val *vpp_punt.ToHost) linuxclient.PutDSL

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

func (*PutDSL) Send

func (dsl *PutDSL) Send() vppclient.Reply

Send propagates changes to the channels.

func (*PutDSL) StaticRoute

func (dsl *PutDSL) StaticRoute(val *vpp_l3.Route) linuxclient.PutDSL

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

func (*PutDSL) StnRule

func (dsl *PutDSL) StnRule(val *vpp_stn.Rule) linuxclient.PutDSL

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

func (*PutDSL) VppInterface

func (dsl *PutDSL) VppInterface(val *vpp_interfaces.Interface) linuxclient.PutDSL

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

func (*PutDSL) XConnect

func (dsl *PutDSL) XConnect(val *vpp_l2.XConnectPair) linuxclient.PutDSL

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

type Reply

type Reply struct {
	// contains filtered or unexported fields
}

Reply enables waiting for the reply and getting result (success/error).

func (Reply) ReceiveReply

func (dsl Reply) ReceiveReply() error

ReceiveReply returns error or nil.

Jump to

Keyboard shortcuts

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