p4rt

package
v0.0.0-...-3d68596 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package p4rt implements p4runtime functions

Package p4rt implements p4runtime functions

Package p4rt implements p4runtime functions

Package p4rt implements p4runtime functions

Index

Constants

View Source
const CtxTimeout = 3 * time.Second

CtxTimeout for contexts

View Source
const PktTimeout = 3 * time.Second

PktTimeout for receiving all packets

Variables

This section is empty.

Functions

func Init

func Init(target *tg.Target, dpMode string, portmap *pm.PortMap)

Init starts a P4Runtime client and runs go routines to send and receive stream channel messages from P4Runtime stream channel client

func ProcessP4PipelineConfigOperation

func ProcessP4PipelineConfigOperation(req *v1.SetForwardingPipelineConfigRequest, res *v1.SetForwardingPipelineConfigResponse) bool

ProcessP4PipelineConfigOperation sends SetForwardingPipelineConfigRequest to switch

func ProcessP4WriteRequest

func ProcessP4WriteRequest(wreq *v1.WriteRequest, wres *v1.WriteResponse) bool

ProcessP4WriteRequest sends the write request to switch

func ProcessPacketIn

func ProcessPacketIn(exp *v1.PacketIn) bool

ProcessPacketIn verifies if the packet received is same as expected packet.

func ProcessPacketOutOperation

func ProcessPacketOutOperation(po *v1.PacketOut) bool

ProcessPacketOutOperation sends packet to stream channel client.

func TearDown

func TearDown()

TearDown closes the stream channel client

Types

This section is empty.

Jump to

Keyboard shortcuts

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