package
3.29.0
Repository: https://github.com/projectcalico/vpp-dataplane.git
Documentation: pkg.go.dev

# Functions

AddIPPoolForCalicoClient is convenience function for adding IPPool to mocked Calico IPAM Stub used in Calico client stub.
No description provided by the author
assertInterfaceGSOCNat check whether the given interface has properly set the GSO and CNAT attributes.
AssertInterfaceGSOCNat check whether the given interface has properly set the GSO and CNAT attributes.
AssertNextNodeLink asserts that in VPP graph the given node has linked the linkedNextNode as one of its "next" nodes for processing.
AssertRPFRoutes checks that a route to the pod is added in the RPFVRF and to addresses allowed to be spoofed.
AssertRPFVRFExistence checks that dedicated VRF for RPF is created for interface in VPP.
No description provided by the author
No description provided by the author
No description provided by the author
AssertUnnumberedInterface checks whether the provided interface is unnumbered and properly takes IP address from the correct interface (common.VppManagerInfo.GetMainSwIfIndex()).
No description provided by the author
ConfigureVPP connects to VPP and configures it with common configuration needed for tests.
CreatePod creates docker container that will be used as pod for CNI testing.
DpoNetworkNameFieldName extracts JSON field name for NetworkName used in proto.AddRequest.DataplaneOptions.
FirstIPinIPRange computes first usable IPv4 address from the given subnet.
InterfaceTagForLocalMemifTunnel constructs the tag for the VPP side of the memif tunnel the same way as cni server.
InterfaceTagForLocalTunnel constructs the tag for the VPP side of the local tunnel the same way as cni server.
InterfaceTagForLocalTunTunnel constructs the tag for the VPP side of the tap tunnel the same way as cni server.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PodVRFs gets ids of IPv4 and IPv6 pod-specific VRFs from VPP.
RunInPod runs runner function in provided pod network namespace.
No description provided by the author
StartVPP creates docker container and runs inside the VPP.
TeardownPod removes container that is used as Pod mock.
TeardownVPP removes container with running VPP to stop VPP and clean after it.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PodMockContainerName is used container name for pod container mock.
PodMockImage is docker image used for pod mocking.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

VppBinary is the full path to VPP binary inside docker image.
vppContainerExtraArgs is a list of additionnal cli parameters for the VPP `docker run ...`.
VppImage is the name of docker image containing VPP binary.