setup

package
v0.0.0-...-aecebfe Latest Latest
Warning

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

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

Documentation

Overview

Package setup is scoped only to be used for scripts in path feature/experimental/system/gnmi/benchmarking/ate_tests/ Do not use elsewhere.

Index

Constants

View Source
const (
	// ISISInstance is ISIS instance name.
	ISISInstance = "DEFAULT"
	// PeerGrpName is BGP peer group name.
	PeerGrpName = "BGP-PEER-GROUP"
	// DUTAs is DUT AS.
	DUTAs = 64500
	// ATEAs is ATE AS.
	ATEAs = 64501
	// ATEAs2 is ATE source port AS
	ATEAs2 = 64502
	// ISISMetric is Metric for ISIS
	ISISMetric = 100
	// RouteCount for both BGP and ISIS
	RouteCount = 200
	// AdvertiseBGPRoutesv4 is the starting IPv4 address advertised by ATE Port 1.
	AdvertiseBGPRoutesv4 = "203.0.113.1"
)

Variables

View Source
var (
	DUTIPList      = make(map[string]net.IP)
	ATEIPList      = make(map[string]net.IP)
	ISISMetricList []uint32
	ISISSetBitList []bool
)

DUTIPList, ATEIPList are lists of DUT and ATE interface ip addresses. ISISMetricList, ISISSetBitList are ISIS metric and setbit lists.

Functions

func BuildBenchmarkingConfig

func BuildBenchmarkingConfig(t *testing.T) *oc.Root

BuildBenchmarkingConfig builds required configuration for DUT interfaces, ISIS and BGP.

func ConfigureATE

func ConfigureATE(t *testing.T, ate *ondatra.ATEDevice)

ConfigureATE function is to configure ate ports with ipv4 , bgp and isis peers.

func ConfigureOTG

func ConfigureOTG(t *testing.T, ate *ondatra.ATEDevice)

ConfigureOTG function is to configure otg ports with ipv4, bgp and isis peers.

func VerifyBgpTelemetry

func VerifyBgpTelemetry(t *testing.T, dut *ondatra.DUTDevice)

VerifyBgpTelemetry function is to verify BGP telemetry on DUT using BGP OC telemetry path.

func VerifyISISTelemetry

func VerifyISISTelemetry(t *testing.T, dut *ondatra.DUTDevice)

VerifyISISTelemetry function to used verify ISIS telemetry on DUT using OC isis telemetry path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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