mdt_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 configuration of streaming telemetry. Copyright (c) 2016-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 MdtConfigData

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

	// List of subscriptions. The type is slice of MdtConfigData_MdtSubscription.
	MdtSubscription []*MdtConfigData_MdtSubscription

	// List of subscription transforms. The type is slice of
	// MdtConfigData_MdtXfrm.
	MdtXfrm []*MdtConfigData_MdtXfrm
}

MdtConfigData MDT configuration data

func (*MdtConfigData) GetEntityData

func (mdtConfigData *MdtConfigData) GetEntityData() *types.CommonEntityData

type MdtConfigData_MdtSubscription

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

	// This attribute is a key. Unique subscription identifier. The type is
	// interface{} with range: 0..2147483647.
	SubscriptionId interface{}

	// Common subscription information.
	Base MdtConfigData_MdtSubscription_Base

	// Configuration of receivers of configured  subscriptions. The type is slice
	// of MdtConfigData_MdtSubscription_MdtReceivers.
	MdtReceivers []*MdtConfigData_MdtSubscription_MdtReceivers
}

MdtConfigData_MdtSubscription List of subscriptions

func (*MdtConfigData_MdtSubscription) GetEntityData

func (mdtSubscription *MdtConfigData_MdtSubscription) GetEntityData() *types.CommonEntityData

type MdtConfigData_MdtSubscription_Base

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

	// The name of the event stream being subscribed to. The type is string. The
	// default value is NETCONF.
	Stream interface{}

	// Update notification encoding. The type is string. The default value is
	// encode-xml.
	Encoding interface{}

	// Network instance name for the VRF. The type is string.
	SourceVrf interface{}

	// The source address for the notifications. The type is one of the following
	// types: 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}]+)?,
	// or 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}]+)?.
	SourceAddress interface{}

	// Placeholder for unset value. The type is interface{} with range:
	// 0..4294967295. The default value is 0.
	NoTrigger interface{}

	// Period of update notifications in 100ths of a second. The type is
	// interface{} with range: 0..4294967295. This attribute is mandatory. Units
	// are centiseconds.
	Period interface{}

	// If true, there is no initial update notification with the current value of
	// all the data. NOT CURRENTLY SUPPORTED. If specified, must be false. The
	// type is bool.
	NoSynchOnStart interface{}

	// Placeholder for unset value. The type is interface{} with range:
	// 0..4294967295. The default value is 0.
	NoFilter interface{}

	// XPath expression describing the set of objects wanted as part of the
	// subscription. The type is string.
	Xpath interface{}

	// TDL-URI expression describing the set of objects wanted as part of the
	// subscription. The type is string.
	TdlUri interface{}

	// Transform name is the reference to  tdl transform scheme. The type is
	// string.
	TransformName interface{}
}

MdtConfigData_MdtSubscription_Base Common subscription information.

func (*MdtConfigData_MdtSubscription_Base) GetEntityData

type MdtConfigData_MdtSubscription_MdtReceivers

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

	// This attribute is a key. IP address of the receiver. The type is one of the
	// following types: 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}]+)?
	// This attribute is mandatory., or 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}]+)?
	// This attribute is mandatory..
	Address interface{}

	// This attribute is a key. Network port of the receiver. The type is
	// interface{} with range: 0..65535. This attribute is mandatory.
	Port interface{}

	// Receiver transport protocol. The type is string. The default value is
	// netconf.
	Protocol interface{}

	// Name of protocol profile used by receiver. The type is string.
	Profile interface{}
}

MdtConfigData_MdtSubscription_MdtReceivers Configuration of receivers of configured subscriptions.

func (*MdtConfigData_MdtSubscription_MdtReceivers) GetEntityData

func (mdtReceivers *MdtConfigData_MdtSubscription_MdtReceivers) GetEntityData() *types.CommonEntityData

type MdtConfigData_MdtXfrm

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

	// This attribute is a key. Unique transform identifier. The type is string.
	Name interface{}

	// When fully-specify is set,  fully-specify field identifier is sent  in the
	// response record along with field value. The type is bool.
	FullySpecify interface{}

	// Transform input information. The type is slice of
	// MdtConfigData_MdtXfrm_MdtXfrmInput.
	MdtXfrmInput []*MdtConfigData_MdtXfrm_MdtXfrmInput

	// Transform operations information. The type is slice of
	// MdtConfigData_MdtXfrm_MdtXfrmOp.
	MdtXfrmOp []*MdtConfigData_MdtXfrm_MdtXfrmOp
}

MdtConfigData_MdtXfrm List of subscription transforms

func (*MdtConfigData_MdtXfrm) GetEntityData

func (mdtXfrm *MdtConfigData_MdtXfrm) GetEntityData() *types.CommonEntityData

type MdtConfigData_MdtXfrm_MdtXfrmInput

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

	// This attribute is a key. Transform input URI table name. The type is
	// string.
	TableName interface{}

	// Transform input URI full-path. The type is string.
	Uri interface{}

	// Transform input table join-key. The type is string.
	JoinKey interface{}

	// Transform input table attribute type  e.g. table is mandatory for join
	// record. The type is MdtXfrmAttrType.
	AttrType interface{}

	// Logical operation with next input table event. The type is MdtXfrmLogicOp.
	Lop interface{}

	// Transform input URI table fields. The type is slice of
	// MdtConfigData_MdtXfrm_MdtXfrmInput_MdtXfrmInputField.
	MdtXfrmInputField []*MdtConfigData_MdtXfrm_MdtXfrmInput_MdtXfrmInputField
}

MdtConfigData_MdtXfrm_MdtXfrmInput Transform input information

func (*MdtConfigData_MdtXfrm_MdtXfrmInput) GetEntityData

func (mdtXfrmInput *MdtConfigData_MdtXfrm_MdtXfrmInput) GetEntityData() *types.CommonEntityData

type MdtConfigData_MdtXfrm_MdtXfrmInput_MdtXfrmInputField

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

	// This attribute is a key. Transform input URI table field name. The type is
	// string.
	Field interface{}
}

MdtConfigData_MdtXfrm_MdtXfrmInput_MdtXfrmInputField Transform input URI table fields

func (*MdtConfigData_MdtXfrm_MdtXfrmInput_MdtXfrmInputField) GetEntityData

type MdtConfigData_MdtXfrm_MdtXfrmOp

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

	// This attribute is a key. Unique transform operation id. The type is
	// interface{} with range: 0..4294967295.
	Id interface{}

	// Transform operation filters.  These are evaluated before performing
	// transform action (e.g. subrecord)  on the response record. The type is
	// slice of MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters.
	MdtXfrmOpFilters []*MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters

	// Transform operation fields.  Default operation is subrecord. It is
	// performed on each field. The type is slice of
	// MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFields.
	MdtXfrmOpFields []*MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFields
}

MdtConfigData_MdtXfrm_MdtXfrmOp Transform operations information

func (*MdtConfigData_MdtXfrm_MdtXfrmOp) GetEntityData

func (mdtXfrmOp *MdtConfigData_MdtXfrm_MdtXfrmOp) GetEntityData() *types.CommonEntityData

type MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFields

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

	// This attribute is a key. Transform operation response field-id, part of
	// response record. It is used to uniquely identify response record field. The
	// type is interface{} with range: 0..4294967295.
	FieldId interface{}

	// Subscription transform field name on  which transform operation is
	// performed. The type is string.
	Field interface{}

	// Subscription transform operation type. The type is MdtXfrmOpType.
	OpType interface{}
}

MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFields Transform operation fields. Default operation is subrecord. It is performed on each field

func (*MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFields) GetEntityData

type MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters

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

	// This attribute is a key. filters will be evaluated in sequence based  on
	// filter_id. The type is interface{} with range: 0..4294967295.
	FilterId interface{}

	// Transform operation filter field name. The type is string.
	Field interface{}

	// logical operation with condition. The type is MdtXfrmLogicOp.
	Lop interface{}

	// logical operation with next filter condition. The type is MdtXfrmLogicOp.
	NextLop interface{}

	// Transform operation event flag (e.g. onchange).
	OpEvent MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters_OpEvent

	// Per field condition (e.g. f1 eq 'name').
	Condition MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters_Condition
}

MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters Transform operation filters. These are evaluated before performing transform action (e.g. subrecord) on the response record

func (*MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters) GetEntityData

func (mdtXfrmOpFilters *MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters) GetEntityData() *types.CommonEntityData

type MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters_Condition

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

	// Type of operator. The type is MdtXfrmOperator.
	Operator interface{}

	// Field value to operate on. The type is string.
	Value interface{}
}

MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters_Condition Per field condition (e.g. f1 eq 'name')

func (*MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters_Condition) GetEntityData

type MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters_OpEvent

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

	// Indicates that onchange filter is set. The type is bool.
	Onchange interface{}
}

MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters_OpEvent Transform operation event flag (e.g. onchange)

func (*MdtConfigData_MdtXfrm_MdtXfrmOp_MdtXfrmOpFilters_OpEvent) GetEntityData

type MdtXfrmAttrType

type MdtXfrmAttrType string

MdtXfrmAttrType represents Types of subscription transform attribute type

const (
	// Indicates that no filter has been
	// specified.
	MdtXfrmAttrType_mdt_xfrm_attr_none MdtXfrmAttrType = "mdt-xfrm-attr-none"

	// Indicates that mandatory filter is set.
	MdtXfrmAttrType_mandatory MdtXfrmAttrType = "mandatory"

	// Indicates that primary filter is set.
	MdtXfrmAttrType_primary MdtXfrmAttrType = "primary"
)

type MdtXfrmLogicOp

type MdtXfrmLogicOp string

MdtXfrmLogicOp represents logical operations.

const (
	// Indicates that no logical operation
	// is selected
	MdtXfrmLogicOp_mdt_xfrm_lop_none MdtXfrmLogicOp = "mdt-xfrm-lop-none"

	// Indicates that logical operation
	// is 'and'
	MdtXfrmLogicOp_and MdtXfrmLogicOp = "and"

	// Indicates that logical operation is 'or'
	MdtXfrmLogicOp_or MdtXfrmLogicOp = "or"
)

type MdtXfrmOpType

type MdtXfrmOpType string

MdtXfrmOpType represents Types of subscription transform operations.

const (
	// Indicates that operation type is
	// sub-record
	MdtXfrmOpType_sub_record MdtXfrmOpType = "sub-record"

	// Indicates that operation type is delta
	MdtXfrmOpType_delta MdtXfrmOpType = "delta"
)

type MdtXfrmOperator

type MdtXfrmOperator string

MdtXfrmOperator represents Supported operator types

const (
	// Default operator
	MdtXfrmOperator_operator_none MdtXfrmOperator = "operator-none"

	// Equal operator
	MdtXfrmOperator_eq MdtXfrmOperator = "eq"

	// Not equal operator
	MdtXfrmOperator_ne MdtXfrmOperator = "ne"

	// Greater than operator
	MdtXfrmOperator_gt MdtXfrmOperator = "gt"

	// Greater than or equal operator
	MdtXfrmOperator_ge MdtXfrmOperator = "ge"

	// Less than operator
	MdtXfrmOperator_lt MdtXfrmOperator = "lt"

	// Less than or equal operator
	MdtXfrmOperator_le MdtXfrmOperator = "le"
)

Jump to

Keyboard shortcuts

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