Documentation ¶
Index ¶
- type DataChangeDSL
- type DataResyncDSL
- func (dsl *DataResyncDSL) ACL(val *vpp_acl.ACL) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) Arp(val *vpp_l3.ARPEntry) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) BD(val *vpp_l2.BridgeDomain) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) BDFIB(val *vpp_l2.FIBEntry) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) DNAT44(val *vpp_nat.DNat44) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) IPScanNeighbor(val *vpp_l3.IPScanNeighbor) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) IPSecSA(val *vpp_ipsec.SecurityAssociation) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) IPSecSPD(val *vpp_ipsec.SecurityPolicyDatabase) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) LinuxArpEntry(val *linux_l3.ARPEntry) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) LinuxInterface(val *linux_interfaces.Interface) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) LinuxRoute(val *linux_l3.Route) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) NAT44Global(val *vpp_nat.Nat44Global) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) ProxyArp(val *vpp_l3.ProxyARP) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) PuntIPRedirect(val *vpp_punt.IPRedirect) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) PuntToHost(val *vpp_punt.ToHost) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) Send() vppclient.Reply
- func (dsl *DataResyncDSL) StaticRoute(val *vpp_l3.Route) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) StnRule(val *vpp_stn.Rule) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) VppInterface(val *vpp_interfaces.Interface) linuxclient.DataResyncDSL
- func (dsl *DataResyncDSL) XConnect(val *vpp_l2.XConnectPair) linuxclient.DataResyncDSL
- type DeleteDSL
- func (dsl *DeleteDSL) ACL(aclName string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) AppNamespace(id string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) Arp(ifaceName string, ipAddr string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) BD(bdName string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) BDFIB(bdName string, mac string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) BfdAuthKeys(bfdKey string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) BfdEchoFunction(bfdEchoName string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) BfdSession(bfdSessionIfaceName string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) DNAT44(label string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) IPScanNeighbor() linuxclient.DeleteDSL
- func (dsl *DeleteDSL) IPSecSA(saIndex string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) IPSecSPD(spdIndex string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) L4Features() linuxclient.DeleteDSL
- func (dsl *DeleteDSL) LinuxArpEntry(ifaceName string, ipAddr string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) LinuxInterface(ifaceName string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) LinuxRoute(dstNet, outIfaceName string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) NAT44Global() linuxclient.DeleteDSL
- func (dsl *DeleteDSL) ProxyArp() linuxclient.DeleteDSL
- func (dsl *DeleteDSL) PuntIPRedirect(l3Proto vpp_punt.L3Protocol, txInterface string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) PuntToHost(l3Proto vpp_punt.L3Protocol, l4Proto vpp_punt.L4Protocol, port uint32) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) Put() linuxclient.PutDSL
- func (dsl *DeleteDSL) Send() vppclient.Reply
- func (dsl *DeleteDSL) StaticRoute(vrf uint32, dstNet string, nextHopAddr string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) StnRule(iface, addr string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) VppInterface(ifaceName string) linuxclient.DeleteDSL
- func (dsl *DeleteDSL) XConnect(rxIfaceName string) linuxclient.DeleteDSL
- type PutDSL
- func (dsl *PutDSL) ACL(val *vpp_acl.ACL) linuxclient.PutDSL
- func (dsl *PutDSL) Arp(val *vpp_l3.ARPEntry) linuxclient.PutDSL
- func (dsl *PutDSL) BD(val *vpp_l2.BridgeDomain) linuxclient.PutDSL
- func (dsl *PutDSL) BDFIB(val *vpp_l2.FIBEntry) linuxclient.PutDSL
- func (dsl *PutDSL) DNAT44(val *vpp_nat.DNat44) linuxclient.PutDSL
- func (dsl *PutDSL) Delete() linuxclient.DeleteDSL
- func (dsl *PutDSL) IPScanNeighbor(val *vpp_l3.IPScanNeighbor) linuxclient.PutDSL
- func (dsl *PutDSL) IPSecSA(val *vpp_ipsec.SecurityAssociation) linuxclient.PutDSL
- func (dsl *PutDSL) IPSecSPD(val *vpp_ipsec.SecurityPolicyDatabase) linuxclient.PutDSL
- func (dsl *PutDSL) LinuxArpEntry(val *linux_l3.ARPEntry) linuxclient.PutDSL
- func (dsl *PutDSL) LinuxInterface(val *linux_interfaces.Interface) linuxclient.PutDSL
- func (dsl *PutDSL) LinuxRoute(val *linux_l3.Route) linuxclient.PutDSL
- func (dsl *PutDSL) NAT44Global(val *vpp_nat.Nat44Global) linuxclient.PutDSL
- func (dsl *PutDSL) ProxyArp(val *vpp_l3.ProxyARP) linuxclient.PutDSL
- func (dsl *PutDSL) PuntIPRedirect(val *vpp_punt.IPRedirect) linuxclient.PutDSL
- func (dsl *PutDSL) PuntToHost(val *vpp_punt.ToHost) linuxclient.PutDSL
- func (dsl *PutDSL) Send() vppclient.Reply
- func (dsl *PutDSL) StaticRoute(val *vpp_l3.Route) linuxclient.PutDSL
- func (dsl *PutDSL) StnRule(val *vpp_stn.Rule) linuxclient.PutDSL
- func (dsl *PutDSL) VppInterface(val *vpp_interfaces.Interface) linuxclient.PutDSL
- func (dsl *PutDSL) XConnect(val *vpp_l2.XConnectPair) linuxclient.PutDSL
- type Reply
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) 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) 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) 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) AppNamespace ¶
AppNamespace adds a request to delete VPP Application namespace
func (*DeleteDSL) BDFIB ¶
BDFIB adds a request to delete an existing VPP L2 Forwarding Information Base.
func (*DeleteDSL) BfdAuthKeys ¶
BfdAuthKeys adds a request to delete an existing VPP bidirectional forwarding detection key.
func (*DeleteDSL) BfdEchoFunction ¶
BfdEchoFunction adds a request to delete an existing VPP bidirectional forwarding detection echo function.
func (*DeleteDSL) BfdSession ¶
BfdSession adds a request to delete an existing VPP bidirectional forwarding detection session.
func (*DeleteDSL) IPScanNeighbor ¶
func (dsl *DeleteDSL) IPScanNeighbor() linuxclient.DeleteDSL
IPScanNeighbor adds a request to delete an existing VPP L3 IP Scan Neighbor.
func (*DeleteDSL) L4Features ¶
func (dsl *DeleteDSL) L4Features() linuxclient.DeleteDSL
L4Features adds a request to enable or disable L4 features
func (*DeleteDSL) LinuxArpEntry ¶
LinuxArpEntry adds a request to delete Linux ARP entry
func (*DeleteDSL) LinuxInterface ¶
LinuxInterface adds a request to delete an existing Linux network interface.
func (*DeleteDSL) LinuxRoute ¶
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) VppInterface ¶
VppInterface adds a request to delete an existing VPP network interface.
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) 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) 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) 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.