ethernet_span_cfg

package
v0.0.0-...-50def94 Latest Latest
Warning

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

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

Documentation

Overview

This module contains a collection of YANG definitions for Cisco IOS-XR Ethernet-SPAN package configuration.

This module contains definitions for the following management objects:

span-monitor-session: none

This YANG module augments the

Cisco-IOS-XR-ifmgr-cfg,
Cisco-IOS-XR-l2vpn-cfg

modules with configuration data.

Copyright (c) 2013-2018 by Cisco Systems, Inc. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpanDestination

type SpanDestination string

SpanDestination represents Span destination

const (
	// Destination Interface
	SpanDestination_interface_ SpanDestination = "interface"

	// Destination Pseudowire
	SpanDestination_pseudowire SpanDestination = "pseudowire"

	// Destination next-hop IPv4 address
	SpanDestination_ipv4_address SpanDestination = "ipv4-address"

	// Destination next-hop IPv6 address
	SpanDestination_ipv6_address SpanDestination = "ipv6-address"
)

type SpanMirrorInterval

type SpanMirrorInterval string

SpanMirrorInterval represents Span mirror interval

const (
	// Mirror 1 in every 512 packets
	SpanMirrorInterval_Y_512 SpanMirrorInterval = "512"

	// Mirror 1 in every 1024 packets
	SpanMirrorInterval_Y_1k SpanMirrorInterval = "1k"

	// Mirror 1 in every 2048 packets
	SpanMirrorInterval_Y_2k SpanMirrorInterval = "2k"

	// Mirror 1 in every 4096 packets
	SpanMirrorInterval_Y_4k SpanMirrorInterval = "4k"

	// Mirror 1 in every 8192 packets
	SpanMirrorInterval_Y_8k SpanMirrorInterval = "8k"

	// Mirror 1 in every 16384 packets
	SpanMirrorInterval_Y_16k SpanMirrorInterval = "16k"
)

type SpanMonitorSession

type SpanMonitorSession struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter

	// Monitor-session configuration commands.
	Sessions SpanMonitorSession_Sessions
}

SpanMonitorSession none

func (*SpanMonitorSession) GetEntityData

func (spanMonitorSession *SpanMonitorSession) GetEntityData() *types.CommonEntityData

type SpanMonitorSession_Sessions

type SpanMonitorSession_Sessions struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter

	// Configuration for a particular Monitor Session. The type is slice of
	// SpanMonitorSession_Sessions_Session.
	Session []*SpanMonitorSession_Sessions_Session
}

SpanMonitorSession_Sessions Monitor-session configuration commands

func (*SpanMonitorSession_Sessions) GetEntityData

func (sessions *SpanMonitorSession_Sessions) GetEntityData() *types.CommonEntityData

type SpanMonitorSession_Sessions_Session

type SpanMonitorSession_Sessions_Session struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter
	YListKey   string

	// This attribute is a key. Session Name. The type is string with length:
	// 1..79.
	Session interface{}

	// Enable a Monitor Session.  Setting this item causes the Monitor Session to
	// be created. The type is SpanSessionClass. The default value is ethernet.
	Class interface{}

	// Specify the inject interface name. The type is string with pattern:
	// [a-zA-Z0-9._/-]+.
	InjectInterface interface{}

	// Specify a destination.
	Destination SpanMonitorSession_Sessions_Session_Destination
}

SpanMonitorSession_Sessions_Session Configuration for a particular Monitor Session

func (*SpanMonitorSession_Sessions_Session) GetEntityData

type SpanMonitorSession_Sessions_Session_Destination

type SpanMonitorSession_Sessions_Session_Destination struct {
	EntityData types.CommonEntityData
	YFilter    yfilter.YFilter

	// Specify the type of destination. The type is SpanDestination.
	DestinationType interface{}

	// Specify the destination interface name. The type is string with pattern:
	// [a-zA-Z0-9._/-]+.
	DestinationInterfaceName interface{}

	// Specify the destination next-hop IPv4 address. The type is string with
	// pattern:
	// (([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(%[\p{N}\p{L}]+)?.
	DestinationIpv4Address interface{}

	// Specify the destination next-hop IPv6 address. The type is string with
	// pattern:
	// ((:|[0-9a-fA-F]{0,4}):)([0-9a-fA-F]{0,4}:){0,5}((([0-9a-fA-F]{0,4}:)?(:|[0-9a-fA-F]{0,4}))|(((25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9]?[0-9])))(%[\p{N}\p{L}]+)?.
	DestinationIpv6Address interface{}
}

SpanMonitorSession_Sessions_Session_Destination Specify a destination

func (*SpanMonitorSession_Sessions_Session_Destination) GetEntityData

type SpanTrafficDirection

type SpanTrafficDirection string

SpanTrafficDirection represents Span traffic direction

const (
	// Replicate only received (ingress) traffic
	SpanTrafficDirection_rx_only SpanTrafficDirection = "rx-only"

	// Replicate only transmitted (egress) traffic
	SpanTrafficDirection_tx_only SpanTrafficDirection = "tx-only"
)

Jump to

Keyboard shortcuts

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