p4device

package
v0.0.0-...-8fa78e2 Latest Latest
Warning

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

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

README

This package is under construction

Documentation

Index

Constants

View Source
const GNMIPort = "9339"
View Source
const P4RTPort = "9559"

Variables

This section is empty.

Functions

This section is empty.

Types

type P4Device

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

P4Device defines a DPDK SWX target device instance

func New

func New(addr string, opts ...grpc.ServerOption) (d *P4Device, err error)

New returns a new initialized P4Device instance.

func (*P4Device) Addr

func (d *P4Device) Addr() string

Addr returns the currently configured address for the listening services.

func (*P4Device) GNMI

func (d *P4Device) GNMI() *gnmi.Server

GNMI returns the gnmi server implementation.

func (*P4Device) P4RT

func (d *P4Device) P4RT() *p4rt.Server

P4RT returns the p4rt server implementation.

func (*P4Device) Stop

func (d *P4Device) Stop()

Stop stops the listening services.

Jump to

Keyboard shortcuts

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