gnoi

package
v0.0.0-...-e8efe0d Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package gnoi provides utilities for interacting with the gNOI API.

Index

Constants

signal type of termination request

Variables

This section is empty.

Functions

func FetchProcessName

func FetchProcessName(dut *ondatra.DUTDevice, daemon Daemon) (string, error)

FetchProcessName returns the name of the daemon on the DUT based on the vendor.

func KillProcess

func KillProcess(t *testing.T, dut *ondatra.DUTDevice, daemon Daemon, signal spb.KillProcessRequest_Signal, restart bool, waitForRestart bool)

KillProcess terminates the daemon on the DUT.

Types

type Daemon

type Daemon string

Daemon is the type of the daemon on the device.

const (
	// GRIBI is the gRIBI daemon.
	GRIBI Daemon = "GRIBI"
	// OCAGENT is the OpenConfig agent daemon.
	OCAGENT Daemon = "OCAGENT"
	// P4RT is the P4RT daemon.
	P4RT Daemon = "P4RT"
	// ROUTING is the routing daemon.
	ROUTING Daemon = "ROUTING"
)

Jump to

Keyboard shortcuts

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