Documentation ¶
Overview ¶
Code generated by vpplink DO NOT EDIT. Copyright (C) 2019 Cisco Systems Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Code generated by vpplink DO NOT EDIT. Copyright (C) 2019 Cisco Systems Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Code generated by vpplink DO NOT EDIT. Copyright (C) 2020 Cisco Systems Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Code generated by vpplink DO NOT EDIT. Copyright (C) 2020 Cisco Systems Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func FromVppPrefix(prefix ip_types.Prefix) *net.IPNet
- func GetSaFlagAntiReplay() types.SaFlags
- func GetSaFlagAsync() types.SaFlags
- func GetSaFlagIsInbound() types.SaFlags
- func GetSaFlagIsTunnel() types.SaFlags
- func GetSaFlagIsTunnelV6() types.SaFlags
- func GetSaFlagNone() types.SaFlags
- func GetSaFlagUdpEncap() types.SaFlags
- func GetSaFlagUseEsn() types.SaFlags
- func ToVppPrefix(prefix *net.IPNet) ip_types.Prefix
- type Vpp
- func (v *Vpp) AddIPIPTunnel(tunnel *types.IPIPTunnel) (uint32, error)
- func (v *Vpp) AddIpsecInterface() (uint32, error)
- func (v *Vpp) AddIpsecSA(sa *types.IPSecSA) error
- func (v *Vpp) AddIpsecSAProtect(swIfIndex, saIn, saOut uint32) error
- func (v *Vpp) AddVXLanTunnel(tunnel *types.VXLanTunnel) (swIfIndex uint32, err error)
- func (v *Vpp) AddWireguardPeer(peer *types.WireguardPeer) (uint32, error)
- func (v *Vpp) AddWireguardTunnel(tunnel *types.WireguardTunnel, generateKey bool) (uint32, error)
- func (v *Vpp) Close() error
- func (v *Vpp) DelIPIPTunnel(tunnel *types.IPIPTunnel) error
- func (v *Vpp) DelIpsecInterface(swIfIndex uint32) error
- func (v *Vpp) DelIpsecSA(sa *types.IPSecSA) error
- func (v *Vpp) DelIpsecSAProtect(swIfIndex uint32) error
- func (v *Vpp) DelVXLanTunnel(tunnel *types.VXLanTunnel) (err error)
- func (v *Vpp) DelWireguardPeer(peer *types.WireguardPeer) error
- func (v *Vpp) DelWireguardTunnel(tunnel *types.WireguardTunnel) error
- func (v *Vpp) GetConnection() vppapi.Connection
- func (v *Vpp) GetContext() context.Context
- func (v *Vpp) GetIPsecTunnelProtection(tunnelInterface uint32) (protections []types.IPsecTunnelProtection, err error)
- func (v *Vpp) GetLog() *logrus.Entry
- func (v *Vpp) GetWireguardTunnel(swIfIndex uint32) (*types.WireguardTunnel, error)
- func (v *Vpp) ListIPIPTunnels() ([]*types.IPIPTunnel, error)
- func (v *Vpp) ListVXLanTunnels() ([]types.VXLanTunnel, error)
- func (v *Vpp) ListWireguardPeers() ([]*types.WireguardPeer, error)
- func (v *Vpp) ListWireguardTunnels() ([]*types.WireguardTunnel, error)
- func (v *Vpp) Reconnect() (err error)
Constants ¶
const ( DefaultReplyTimeout = 1 * time.Second InvalidSwIfIndex = ^uint32(1) )
Variables ¶
This section is empty.
Functions ¶
func GetSaFlagAntiReplay ¶
func GetSaFlagAsync ¶
func GetSaFlagIsInbound ¶
func GetSaFlagIsTunnel ¶
func GetSaFlagIsTunnelV6 ¶
func GetSaFlagNone ¶
func GetSaFlagUdpEncap ¶
func GetSaFlagUseEsn ¶
Types ¶
type Vpp ¶
type Vpp struct {
// contains filtered or unexported fields
}
Vpp is the base struct that exposes all the methods defined by the various wrappers. Depending on the available APIs, this struct will implement the various interfaces defined in go.fd.io/govpp/api/v1
func (*Vpp) AddIPIPTunnel ¶
func (v *Vpp) AddIPIPTunnel(tunnel *types.IPIPTunnel) (uint32, error)
func (*Vpp) AddIpsecInterface ¶
func (*Vpp) AddIpsecSAProtect ¶
func (*Vpp) AddVXLanTunnel ¶
func (v *Vpp) AddVXLanTunnel(tunnel *types.VXLanTunnel) (swIfIndex uint32, err error)
func (*Vpp) AddWireguardPeer ¶
func (v *Vpp) AddWireguardPeer(peer *types.WireguardPeer) (uint32, error)
func (*Vpp) AddWireguardTunnel ¶
func (*Vpp) DelIPIPTunnel ¶
func (v *Vpp) DelIPIPTunnel(tunnel *types.IPIPTunnel) error
func (*Vpp) DelIpsecInterface ¶
func (*Vpp) DelIpsecSAProtect ¶
func (*Vpp) DelVXLanTunnel ¶
func (v *Vpp) DelVXLanTunnel(tunnel *types.VXLanTunnel) (err error)
func (*Vpp) DelWireguardPeer ¶
func (v *Vpp) DelWireguardPeer(peer *types.WireguardPeer) error
func (*Vpp) DelWireguardTunnel ¶
func (v *Vpp) DelWireguardTunnel(tunnel *types.WireguardTunnel) error
func (*Vpp) GetConnection ¶
func (v *Vpp) GetConnection() vppapi.Connection
func (*Vpp) GetContext ¶
func (*Vpp) GetIPsecTunnelProtection ¶
func (v *Vpp) GetIPsecTunnelProtection(tunnelInterface uint32) (protections []types.IPsecTunnelProtection, err error)
func (*Vpp) GetWireguardTunnel ¶
func (v *Vpp) GetWireguardTunnel(swIfIndex uint32) (*types.WireguardTunnel, error)
func (*Vpp) ListIPIPTunnels ¶
func (v *Vpp) ListIPIPTunnels() ([]*types.IPIPTunnel, error)
func (*Vpp) ListVXLanTunnels ¶
func (v *Vpp) ListVXLanTunnels() ([]types.VXLanTunnel, error)
func (*Vpp) ListWireguardPeers ¶
func (v *Vpp) ListWireguardPeers() ([]*types.WireguardPeer, error)
func (*Vpp) ListWireguardTunnels ¶
func (v *Vpp) ListWireguardTunnels() ([]*types.WireguardTunnel, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
bindings
|
|
abf
Package abf contains generated bindings for API file abf.api.
|
Package abf contains generated bindings for API file abf.api. |
acl
Package acl contains generated bindings for API file acl.api.
|
Package acl contains generated bindings for API file acl.api. |
acl_types
Package acl_types contains generated bindings for API file acl_types.api.
|
Package acl_types contains generated bindings for API file acl_types.api. |
af_packet
Package af_packet contains generated bindings for API file af_packet.api.
|
Package af_packet contains generated bindings for API file af_packet.api. |
af_xdp
Package af_xdp contains generated bindings for API file af_xdp.api.
|
Package af_xdp contains generated bindings for API file af_xdp.api. |
arp
Package arp contains generated bindings for API file arp.api.
|
Package arp contains generated bindings for API file arp.api. |
avf
Package avf contains generated bindings for API file avf.api.
|
Package avf contains generated bindings for API file avf.api. |
capo
Package capo contains generated bindings for API file capo.api.
|
Package capo contains generated bindings for API file capo.api. |
classify
Package classify contains generated bindings for API file classify.api.
|
Package classify contains generated bindings for API file classify.api. |
cnat
Package cnat contains generated bindings for API file cnat.api.
|
Package cnat contains generated bindings for API file cnat.api. |
crypto_sw_scheduler
Package crypto_sw_scheduler contains generated bindings for API file crypto_sw_scheduler.api.
|
Package crypto_sw_scheduler contains generated bindings for API file crypto_sw_scheduler.api. |
ethernet_types
Package ethernet_types contains generated bindings for API file ethernet_types.api.
|
Package ethernet_types contains generated bindings for API file ethernet_types.api. |
feature
Package feature contains generated bindings for API file feature.api.
|
Package feature contains generated bindings for API file feature.api. |
fib_types
Package fib_types contains generated bindings for API file fib_types.api.
|
Package fib_types contains generated bindings for API file fib_types.api. |
gso
Package gso contains generated bindings for API file gso.api.
|
Package gso contains generated bindings for API file gso.api. |
ikev2
Package ikev2 contains generated bindings for API file ikev2.api.
|
Package ikev2 contains generated bindings for API file ikev2.api. |
ikev2_types
Package ikev2_types contains generated bindings for API file ikev2_types.api.
|
Package ikev2_types contains generated bindings for API file ikev2_types.api. |
interface
Package interfaces contains generated bindings for API file interface.api.
|
Package interfaces contains generated bindings for API file interface.api. |
interface_types
Package interface_types contains generated bindings for API file interface_types.api.
|
Package interface_types contains generated bindings for API file interface_types.api. |
ip
Package ip contains generated bindings for API file ip.api.
|
Package ip contains generated bindings for API file ip.api. |
ip6_nd
Package ip6_nd contains generated bindings for API file ip6_nd.api.
|
Package ip6_nd contains generated bindings for API file ip6_nd.api. |
ip_neighbor
Package ip_neighbor contains generated bindings for API file ip_neighbor.api.
|
Package ip_neighbor contains generated bindings for API file ip_neighbor.api. |
ip_session_redirect
Package ip_session_redirect contains generated bindings for API file ip_session_redirect.api.
|
Package ip_session_redirect contains generated bindings for API file ip_session_redirect.api. |
ip_types
Package ip_types contains generated bindings for API file ip_types.api.
|
Package ip_types contains generated bindings for API file ip_types.api. |
ipip
Package ipip contains generated bindings for API file ipip.api.
|
Package ipip contains generated bindings for API file ipip.api. |
ipsec
Package ipsec contains generated bindings for API file ipsec.api.
|
Package ipsec contains generated bindings for API file ipsec.api. |
ipsec_types
Package ipsec_types contains generated bindings for API file ipsec_types.api.
|
Package ipsec_types contains generated bindings for API file ipsec_types.api. |
memclnt
Package memclnt contains generated bindings for API file memclnt.api.
|
Package memclnt contains generated bindings for API file memclnt.api. |
memif
Package memif contains generated bindings for API file memif.api.
|
Package memif contains generated bindings for API file memif.api. |
mfib_types
Package mfib_types contains generated bindings for API file mfib_types.api.
|
Package mfib_types contains generated bindings for API file mfib_types.api. |
nat44_ed
Package nat44_ed contains generated bindings for API file nat44_ed.api.
|
Package nat44_ed contains generated bindings for API file nat44_ed.api. |
nat_types
Package nat_types contains generated bindings for API file nat_types.api.
|
Package nat_types contains generated bindings for API file nat_types.api. |
pbl
Package pbl contains generated bindings for API file pbl.api.
|
Package pbl contains generated bindings for API file pbl.api. |
pci_types
Package pci_types contains generated bindings for API file pci_types.api.
|
Package pci_types contains generated bindings for API file pci_types.api. |
punt
Package punt contains generated bindings for API file punt.api.
|
Package punt contains generated bindings for API file punt.api. |
rdma
Package rdma contains generated bindings for API file rdma.api.
|
Package rdma contains generated bindings for API file rdma.api. |
session
Package session contains generated bindings for API file session.api.
|
Package session contains generated bindings for API file session.api. |
sr
Package sr contains generated bindings for API file sr.api.
|
Package sr contains generated bindings for API file sr.api. |
sr_types
Package sr_types contains generated bindings for API file sr_types.api.
|
Package sr_types contains generated bindings for API file sr_types.api. |
tapv2
Package tapv2 contains generated bindings for API file tapv2.api.
|
Package tapv2 contains generated bindings for API file tapv2.api. |
tunnel_types
Package tunnel_types contains generated bindings for API file tunnel_types.api.
|
Package tunnel_types contains generated bindings for API file tunnel_types.api. |
urpf
Package urpf contains generated bindings for API file urpf.api.
|
Package urpf contains generated bindings for API file urpf.api. |
virtio
Package virtio contains generated bindings for API file virtio.api.
|
Package virtio contains generated bindings for API file virtio.api. |
vlib
Package vlib contains generated bindings for API file vlib.api.
|
Package vlib contains generated bindings for API file vlib.api. |
vmxnet3
Package vmxnet3 contains generated bindings for API file vmxnet3.api.
|
Package vmxnet3 contains generated bindings for API file vmxnet3.api. |
vpe
Package vpe contains generated bindings for API file vpe.api.
|
Package vpe contains generated bindings for API file vpe.api. |
vpe_types
Package vpe_types contains generated bindings for API file vpe_types.api.
|
Package vpe_types contains generated bindings for API file vpe_types.api. |
vxlan
Package vxlan contains generated bindings for API file vxlan.api.
|
Package vxlan contains generated bindings for API file vxlan.api. |
wireguard
Package wireguard contains generated bindings for API file wireguard.api.
|
Package wireguard contains generated bindings for API file wireguard.api. |