This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
ethernet_link_oam_cfg.go
161 lines (119 loc) · 5.4 KB
/
ethernet_link_oam_cfg.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
// This module contains a collection of YANG definitions
// for Cisco IOS-XR ethernet-link-oam package configuration.
//
// This YANG module augments the
// Cisco-IOS-XR-snmp-agent-cfg,
// Cisco-IOS-XR-l2-eth-infra-cfg,
// Cisco-IOS-XR-ifmgr-cfg
// modules with configuration data.
//
// Copyright (c) 2013-2018 by Cisco Systems, Inc.
// All rights reserved.
package ethernet_link_oam_cfg
import (
"fmt"
"github.com/CiscoDevNet/ydk-go/ydk"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package ethernet_link_oam_cfg"))
}
// EtherLinkOamEventActionEnum represents Ether link oam event action enum
type EtherLinkOamEventActionEnum string
const (
// Perform no action
EtherLinkOamEventActionEnum_disable EtherLinkOamEventActionEnum = "disable"
// Disable the interface
EtherLinkOamEventActionEnum_error_disable EtherLinkOamEventActionEnum = "error-disable"
// Log the event
EtherLinkOamEventActionEnum_log EtherLinkOamEventActionEnum = "log"
)
// EtherLinkOamEventActionPrimEnum represents Ether link oam event action prim enum
type EtherLinkOamEventActionPrimEnum string
const (
// Perform no action
EtherLinkOamEventActionPrimEnum_disable EtherLinkOamEventActionPrimEnum = "disable"
// Log the event
EtherLinkOamEventActionPrimEnum_log EtherLinkOamEventActionPrimEnum = "log"
)
// EtherLinkOamRequireModeEnum represents Ether link oam require mode enum
type EtherLinkOamRequireModeEnum string
const (
// Ethernet Link OAM Passive mode
EtherLinkOamRequireModeEnum_passive EtherLinkOamRequireModeEnum = "passive"
// Ethernet Link OAM Active mode
EtherLinkOamRequireModeEnum_active EtherLinkOamRequireModeEnum = "active"
// Ethernet Link OAM mode not required
EtherLinkOamRequireModeEnum_dont_care EtherLinkOamRequireModeEnum = "dont-care"
)
// EtherLinkOamWindowUnitsSymbolsEnum represents Ether link oam window units symbols enum
type EtherLinkOamWindowUnitsSymbolsEnum string
const (
// Define window in milliseconds
EtherLinkOamWindowUnitsSymbolsEnum_milliseconds EtherLinkOamWindowUnitsSymbolsEnum = "milliseconds"
// Define window in symbols
EtherLinkOamWindowUnitsSymbolsEnum_symbols EtherLinkOamWindowUnitsSymbolsEnum = "symbols"
)
// EtherLinkOamThresholdUnitsFramesEnum represents Ether link oam threshold units frames enum
type EtherLinkOamThresholdUnitsFramesEnum string
const (
// Define threshold in frames
EtherLinkOamThresholdUnitsFramesEnum_frames EtherLinkOamThresholdUnitsFramesEnum = "frames"
// Define threshold in parts per million
EtherLinkOamThresholdUnitsFramesEnum_ppm EtherLinkOamThresholdUnitsFramesEnum = "ppm"
)
// EtherLinkOamThresholdUnitsSymbolsEnum represents Ether link oam threshold units symbols enum
type EtherLinkOamThresholdUnitsSymbolsEnum string
const (
// Define threshold in symbols
EtherLinkOamThresholdUnitsSymbolsEnum_symbols EtherLinkOamThresholdUnitsSymbolsEnum = "symbols"
// Define threshold in parts per million
EtherLinkOamThresholdUnitsSymbolsEnum_ppm EtherLinkOamThresholdUnitsSymbolsEnum = "ppm"
)
// EtherLinkOamHelloIntervalEnum represents Ether link oam hello interval enum
type EtherLinkOamHelloIntervalEnum string
const (
// 1 s OAM hello interval
EtherLinkOamHelloIntervalEnum_Y_1s EtherLinkOamHelloIntervalEnum = "1s"
// 100 ms OAM hello interval
EtherLinkOamHelloIntervalEnum_Y_100ms EtherLinkOamHelloIntervalEnum = "100ms"
)
// EtherLinkOamModeEnum represents Ether link oam mode enum
type EtherLinkOamModeEnum string
const (
// Ethernet Link OAM Passive mode
EtherLinkOamModeEnum_passive EtherLinkOamModeEnum = "passive"
// Ethernet Link OAM Active mode
EtherLinkOamModeEnum_active EtherLinkOamModeEnum = "active"
)
// EtherLinkOamEventActionEnumEfd represents Ether link oam event action enum efd
type EtherLinkOamEventActionEnumEfd string
const (
// Perform no action
EtherLinkOamEventActionEnumEfd_disable EtherLinkOamEventActionEnumEfd = "disable"
// Disable the interface
EtherLinkOamEventActionEnumEfd_error_disable EtherLinkOamEventActionEnumEfd = "error-disable"
// Log the event
EtherLinkOamEventActionEnumEfd_log EtherLinkOamEventActionEnumEfd = "log"
// EFD the interface
EtherLinkOamEventActionEnumEfd_efd EtherLinkOamEventActionEnumEfd = "efd"
)
// EtherLinkOamWindowUnitsFramesEnum represents Ether link oam window units frames enum
type EtherLinkOamWindowUnitsFramesEnum string
const (
// Define window in milliseconds
EtherLinkOamWindowUnitsFramesEnum_milliseconds EtherLinkOamWindowUnitsFramesEnum = "milliseconds"
// Define window in frames
EtherLinkOamWindowUnitsFramesEnum_frames EtherLinkOamWindowUnitsFramesEnum = "frames"
)
// EtherLinkOamThresholdWindowMultiplierEnum represents Ether link oam threshold window multiplier enum
type EtherLinkOamThresholdWindowMultiplierEnum string
const (
// Do not use a multiplier
EtherLinkOamThresholdWindowMultiplierEnum_none EtherLinkOamThresholdWindowMultiplierEnum = "none"
// Use multiplier of 1000
EtherLinkOamThresholdWindowMultiplierEnum_thousand EtherLinkOamThresholdWindowMultiplierEnum = "thousand"
// Use multiplier of 1,000,000
EtherLinkOamThresholdWindowMultiplierEnum_million EtherLinkOamThresholdWindowMultiplierEnum = "million"
// Use multiplier of 1,000,000,000
EtherLinkOamThresholdWindowMultiplierEnum_billion EtherLinkOamThresholdWindowMultiplierEnum = "billion"
)