Skip to content
Snippets Groups Projects
tapi-eth@2019-03-31.yang 161 KiB
Newer Older
  • Learn to ignore specific revisions
  • Manuel Kieweg's avatar
    Manuel Kieweg committed
    3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518
                enum 10GBASE_R {
                    description "none";
                }
                enum 10GBASE_W {
                    description "none";
                }
            }
            description "none";
        }
        typedef frame-type {
            type enumeration {
                enum ADMIT_ONLY_VLAN_TAGGED_FRAMES {
                    description "none";
                }
                enum ADMIT_ONLY_UNTAGGED_AND_PRIORITY_TAGGED_FRAMES {
                    description "none";
                }
                enum ADMIT_ALL_FRAMES {
                    description "none";
                }
            }
            description "none";
        }
        typedef oam-period {
            type enumeration {
                enum 3_33MS {
                    description "Default for protection.";
                }
                enum 10MS {
                    description "none";
                }
                enum 100MS {
                    description "none";
                }
                enum 1S {
                    description "none";
                }
                enum 10S {
                    description "none";
                }
                enum 1MIN {
                    description "none";
                }
                enum 10MIN {
                    description "none";
                }
            }
            description "Provides the frequency for the OAM PDU insertion.";
        }
        typedef pcp-coding {
            type enumeration {
                enum 8P0D {
                    description "none";
                }
                enum 7P1D {
                    description "none";
                }
                enum 6P2D {
                    description "none";
                }
                enum 5P3D {
                    description "none";
                }
                enum DEI {
                    description "This enumeration value means that all priorities should be drop eligible.
                        DEI = Drop Eligibility Indicator";
                }
            }
            description "This enum models the coding of the Priority Code Point as defined in section 'Priority Code Point encoding' of IEEE 802.1Q.";
        }
        typedef vlan-type {
            type enumeration {
                enum C_Tag {
                    description "0x8100";
                }
                enum S_Tag {
                    description "0x88a8";
                }
                enum I_Tag {
                    description "88-e7";
                }
            }
            description "This enumeration contains the Ethertypes defined in IEEE 802.1Q.";
        }
        typedef repetition-period {
            type enumeration {
                enum 1MIN {
                    description "none";
                }
                enum 1S {
                    description "none";
                }
                enum 10S {
                    description "none";
                }
                enum 0 {
                    description "none";
                }
            }
            description "This enumeration defines the allowed values for the repetition period in on-demand measurements.
                Note: The value 0 means that the value is not relevant.";
        }
        typedef message-period {
            type enumeration {
                enum 10MS {
                    description "none";
                }
                enum 100MS {
                    description "none";
                }
                enum 1S {
                    description "none";
                }
                enum 10S {
                    description "none";
                }
                enum 0 {
                    description "none";
                }
            }
            description "This enumeration defines the allowed values for the message period in on-demand measurements.
                Notes:
                The value 10ms is only used in synthetic loss measurements.
                The value 0 means that the value is not relevant.";
        }
        typedef oam-pdu-generation-type {
            type enumeration {
                enum SINGLE_INSTANCE {
                    description "none";
                }
                enum REPETITIVE_INSTANCE {
                    description "none";
                }
                enum SINGLE_SERIES {
                    description "none";
                }
                enum REPETITIVE_SERIES {
                    description "none";
                }
            }
            description "This enumeration defines the generation pattern of the on-demand OAM PDUs (messages). ";
        }
        grouping samples-dm-performance-parameters {
            leaf number-of-samples {
                type uint64;
                description "This attribute contains the number of received DM frames (successful samples) used for this frame delay measurement.
                    range of type : non-negative";
            }
            leaf-list frame-delay-list {
                type uint64;
                description "This attribute contains the frame delays measured in ns (nano second, 1x10e-9 seconds). The multiplicity is defined by the numberOfSamples attribute.";
            }
            leaf-list frame-delay-variation-list {
                type uint64;
                description "This attribute contains the frame delay variations measured in ns (nano second).  The multiplicity is defined by (numberOfSamples - 1, for numberOfSamples > 0).";
            }
            description "This data type contains the results of an on-demand delay measurement job.";
        }
        grouping total-counters-lm-performance-parameters {
            leaf total-transmitted-frames {
                type uint64;
                description "This attribute contains the total number of frames transmitted.";
            }
            leaf total-lost-frames {
                type uint64;
                description "This attribute contains the total number of frames lost.";
            }
            leaf total-frame-loss-ratio {
                type decimal64 {
                    fraction-digits 7;
                }
                description "This attribute contains the frame loss ratio (number of lost frames divided by the number of total frames (N_LF / N_TF)).
                    The accuracy of the value is for further study.";
            }
            description "This data type contains the results of an on-demand loss measurement job.";
        }
        grouping statistical-dm-performance-parameters {
            leaf minimum-frame-delay {
                type uint64;
                description "This attribute contains the minimum frame delay observed over the monitored period. It is measured in units of ns (nano second, 1x10e-9 seconds).";
            }
            leaf average-frame-delay {
                type uint64;
                description "This attribute contains the average frame delay observed over the monitored period. It is measured in units of ns (nano second, 1x10e-9 seconds).";
            }
            leaf maximum-frame-delay {
                type uint64;
                description "This attribute contains the maximum frame delay observed over the monitored period. It is measured in units of ns (nano second, 1x10e-9 seconds).";
            }
            leaf minimum-frame-delay-variation {
                type uint64;
                description "This attribute contains the minimum frame delay variation measured in units of ns (nano second, 1x10e-9 seconds).
                    Y.1563:
                    The 2-point frame delay variation (vk) for an Ethernet frame k between SRC and DST is the difference between the absolute Ethernet frame transfer delay (xk) of frame k and a defined reference Ethernet frame transfer delay, d1,2, between those same MPs:  vk = xk – d1,2.";
            }
            leaf average-frame-delay-variation {
                type uint64;
                description "This attribute contains the average frame delay variation measured in units of ns (nano second, 1x10e-9 seconds).
                    Y.1563:
                    The 2-point frame delay variation (vk) for an Ethernet frame k between SRC and DST is the difference between the absolute Ethernet frame transfer delay (xk) of frame k and a defined reference Ethernet frame transfer delay, d1,2, between those same MPs:  vk = xk – d1,2.";
            }
            leaf maximum-frame-delay-variation {
                type uint64;
                description "This attribute contains the maximum frame delay variation measured in units of ns (nano second, 1x10e-9 seconds).
                    Y.1563:
                    The 2-point frame delay variation (vk) for an Ethernet frame k between SRC and DST is the difference between the absolute Ethernet frame transfer delay (xk) of frame k and a defined reference Ethernet frame transfer delay, d1,2, between those same MPs:  vk = xk – d1,2.";
            }
            leaf minimum-inter-frame-delay-variation {
                type uint64;
                description "This attribute contains the minimum frame delay variation measured in units of ns (nano second, 1x10e-9 seconds).
                    G.8013/Y.1731:
                    Frame delay variation is a measure of the variations in the frame delay between a pair of service frames";
            }
            leaf average-inter-frame-delay-variation {
                type uint64;
                description "This attribute contains the average frame delay variation measured in units of ns (nano second, 1x10e-9 seconds).
                    G.8013/Y.1731:
                    Frame delay variation is a measure of the variations in the frame delay between a pair of service frames";
            }
            leaf maximum-inter-frame-delay-variation {
                type uint64;
                description "This attribute contains the maximum frame delay variation measured in units of ns (nano second, 1x10e-9 seconds).
                    G.8013/Y.1731:
                    Frame delay variation is a measure of the variations in the frame delay between a pair of service frames";
            }
            description "This data type contains the statistical delay measurement performance parameters.";
        }
        grouping statistical-lm-performance-parameters {
            leaf minimum-frame-loss-ratio {
                type decimal64 {
                    fraction-digits 7;
                }
                description "This attribute contains the minimum frame loss ratio calculated over a period of time.";
            }
            leaf average-frame-loss-ratio {
                type decimal64 {
                    fraction-digits 7;
                }
                description "This attribute contains the average frame loss ratio calculated over a period of time.";
            }
            leaf maximum-frame-loss-ratio {
                type decimal64 {
                    fraction-digits 7;
                }
                description "This attribute contains the maximum frame loss ratio calculated over a period of time.";
            }
            leaf hli-count {
                type uint64;
                description "A generalized SES.
                    MEF 10.3: The Resiliency attributes are similar to the definitions of Severely Errored Seconds (SES) and Consecutive SES in section 9 and Annex B (respectively) of Y.1563 [6], when delta-t = 1 second.
                    MEF 35.1: Count of High Loss Intervals during the Measurement Interval.
                    range of type : 0..900 for 15min interval or 0..86400 for 24 hr interval.";
            }
            leaf unavailable-intervals {
                type uint64;
                description "A generalized UAS.
                    MEF 35.1: A 32-bit counter reflecting the number of delta-t intervals evaluated as Unavailable (i.e., for which A<Controller, Responder>(delta-t) = 0).
                    range of type : 0..900 for 15min interval or 0..86400 for 24 hr interval.";
            }
            description "This data type contains the statistical loss measurement performance parameters.";
        }
        typedef eth-oam-job-type {
            type identityref {
                base ETH_OAM_JOB_TYPE;
            }
            description "none";
        }
        grouping link-trace-result {
            leaf source-address {
                type mac-address;
                description "G.8052: This attribute contains the source MAC Address of an individual LTR frame result.";
            }
            leaf time-to-live {
                type uint64;
                description "G.8052: This attribute contains the Time To Live (TTL) value of an individual LTR frame result.";
            }
            leaf data-tlv-length {
                type uint64;
                description "G.8052: This attribute contains the length (in number of octets) of the Data TLV of an individual LTR frame result.";
            }
            description "G.8052: This data type contains the result from an individual LTR frame.";
        }
        typedef maintenance-domain-name-type {
            type identityref {
                base MAINTENANCE_DOMAIN_NAME_TYPE;
            }
            description "IEEE P802.1Qcx/D0.3:
                MEF 38:
                The Maintenance Domain format choice.";
        }
        typedef maintenance-domain-id-permission-types {
            type identityref {
                base MAINTENANCE_DOMAIN_ID_PERMISSION_TYPES;
            }
            description "IEEE P802.1Qcx/D0.3:
                MEF 38:
                Indicates what, if anything, is to be included in the Sender ID TLV transmitted in CCMs, LBMs, LTMs, and LTRs.";
        }
        typedef maintenance-association-id-permission-types {
            type identityref {
    /*            base MAINTENANCE_DOMAIN_ID_PERMISSION_TYPES; */
                base MAINTENANCE_ASSOCIATION_ID_PERMISSION_TYPES;
            }
            description "IEEE P802.1Qcx/D0.3:
                MEF 38:
                Indicates what, if anything, is to be included in the Sender ID TLV transmitted in CCMs, LBMs, LTMs, and LTRs.";
        }
        grouping maintenance-association-name {
            leaf ieee-reserved {
                type string;
                default "0";
                description "IEEE P802.1Qcx/D0.3:
                    Reserved for definition by IEEE 802.1. Recommend not to use zero unless absolutely needed.
                    Length '1..45'.";
            }
            leaf primary-vlan-id {
                type vid;
                description "IEEE P802.1Qcx/D0.3:
                    MEF 38:
                    Primary VLAN ID. 12 bits represented in a 2-octet integer.";
            }
            leaf char-string {
                type string;
                description "IEEE P802.1Qcx/D0.3:
                    MEF 38:
                    RFC2579 DisplayString, except that the character codes 0-31 (decimal) are not used.
                    Length '1..45'";
            }
            leaf unsigned-int-16 {
                type uint64;
                description "IEEE P802.1Qcx/D0.3:
                    MEF 38:
                    2-octet integer/big endian.";
            }
            leaf rfc-2865-vpn-id {
                type string;
                description "IEEE P802.1Qcx/D0.3:
                    MEF 38:
                    RFC2685 VPN ID. 3 octet VPN authority Organizationally Unique Identifier followed by 4 octet VPN index identifying VPN according to the OUI.
                    Length '1..45';";
            }
            leaf icc-format {
                type string;
                description "IEEE P802.1Qcx/D0.3:
                    ICC-based format as specified in ITU-T Y.1731.
                    Length '1..45'";
            }
            description "none";
        }
        typedef link-trace-relay-action-field-value {
            type identityref {
                base LINK_TRACE_RELAY_ACTION_FIELD_VALUE;
            }
            description "IEEE P802.1Qcx/D0.3:
                MEF 38:
                Possible values the Relay action field can take.";
        }
        typedef link-trace-ingress-action-field-value {
            type identityref {
                base LINK_TRACE_INGRESS_ACTION_FIELD_VALUE;
            }
            description "IEEE P802.1Qcx/D0.3:
                MEF 38:
                Possible values returned in the ingress action field.";
        }
        grouping lldp-port-id-subtype {
            leaf interface-alias {
                type string;
                description "String length '0..64'
                    Represents a port identifier based on the ifAlias MIB object, defined in IETF RFC 2863.";
            }
            leaf port-component {
                type string;
                description "String length '0..32'
                    Represents a port identifier based on the value of entPhysicalAlias (defined in IETF RFC 2737) for a port component (i.e., entPhysicalClass value of port(10)), within the containing chassis.";
            }
            leaf mac-address {
                type mac-address;
                description "Represents a port identifier based on a unicast source address (encoded in network byte order and IEEE 802.3 canonical bit order), which has been detected by the agent and associated with a particular port (IEEE Std 802-2001).";
            }
            leaf network-address {
                type string;
                description "Represents a port identifier based on a network address, detected by the agent and associated with a particular port.
                    Octet string that identifies a particular network address family and an associated network address that are encoded in network octet order.
                    An IP address, for example, would be encoded with the first octet containing the IANA Address Family Numbers enumeration value for the specific address type and octets 2 through n containing the address value.
                    ";
            }
            leaf interface-name {
                type string;
                description "String length '0..64'
                    Represents a port identifier based on the ifName MIB object, defined in IETF RFC 2863.";
            }
            leaf agent-circuit-id {
                type string;
                description "Represents a port identifier based on the agent-local identifier of the circuit (defined in RFC 3046), detected by the agent and associated with a particular port.";
            }
            leaf local {
                type string;
                description "Represents a port identifier based on a value locally assigned.";
            }
            description "IEEE P802.1Qcx/D0.3:
                The source of a particular type of port identifier used in the LLDP YANG module.
                MEF 38:
                Data definitions associated with the Port ID TLV.";
        }
        typedef link-trace-egress-action-field-value {
            type identityref {
                base LINK_TRACE_EGRESS_ACTION_FIELD_VALUE;
            }
            description "IEEE P802.1Qcx/D0.3:
                MEF 38:
                Possible values returned in the Egress Action field.";
        }
        grouping lldp-chassis-id-subtype {
            leaf chassis-component {
                type string;
                description "String length '0..32'
                    Represents a chassis identifier based on the value of entPhysicalAlias object (defined in IETF RFC 2737) for a chassis component (i.e., an entPhysicalClass value of chassis(3)).";
            }
            leaf interface-alias {
                type string;
                description "String length '0..64'
                    Represents a chassis identifier based on the value of ifAlias object (defined in IETF RFC 2863) for an interface on the containing chassis.";
            }
            leaf port-component {
                type string;
                description "String length '0..32'
                    Represents a chassis identifier based on the value of entPhysicalAlias object (defined in IETF RFC 2737) for a port or backplane component (i.e., entPhysicalClass value of port(10) or backplane(4)), within the containing chassis.";
            }
            leaf mac-address {
                type mac-address;
                description "Represents a chassis identifier based on the value of a unicast source address (encoded in network byte order and IEEE 802.3 canonical bit order), of a port on the containing chassis as defined in IEEE Std 802-2001.";
            }
            leaf network-address {
                type string;
                description "Octet string that identifies a particular network address family and an associated network address that are encoded in network octet order.
                    An IP address, for example, would be encoded with the first octet containing the IANA Address Family Numbers enumeration value for the specific address type and octets 2 through n containing the address value.";
            }
            leaf interface-name {
                type string;
                description "Represents a chassis identifier based on the value of ifName object (defined in IETF RFC 2863) for an interface on the containing chassis.";
            }
            leaf local {
                type string;
                description "Represents a chassis identifier based on a locally defined value.";
            }
            description "MEF 38:
                The chassis-id-subtype contains the chassis ID entity that is listed in the chassis ID field. This is a combination of the 'Chassis ID Subtype' and 'chassis ID' fields.
                ";
        }
        typedef ltmflags {
            type identityref {
                base LTMFLAGS;
            }
            description "IEEE 802.1Q 2018:
                In the LTM, the Flags field of the Common CFM Header specifies certain options.";
        }
        typedef test-pattern {
            type identityref {
                base TEST_PATTERN;
            }
            description "The following values of pattern types are defined:
                'Null signal without CRC-32'
                'Null signal with CRC-32'
                'PRBS 2^31-1 without CRC-32'
                'PRBS 2^31-1 with CRC-32'.";
        }
        typedef bandwidth-profile-type {
            type identityref {
                base BANDWIDTH_PROFILE_TYPE;
            }
            description "none";
        }
        grouping bandwidth-profile {
            leaf bw-profile-type {
                type bandwidth-profile-type;
                description "none";
            }
            container committed-information-rate {
                uses tapi-common:capacity-value;
                description "none";
            }
            container committed-burst-size {
                uses tapi-common:capacity-value;
                description "none";
            }
            container peak-information-rate {
                uses tapi-common:capacity-value;
                description "none";
            }
            container peak-burst-size {
                uses tapi-common:capacity-value;
                description "none";
            }
            leaf color-aware {
                type boolean;
                description "none";
            }
            leaf coupling-flag {
                type boolean;
                description "none";
            }
            description "none";
        }
        typedef eth-pm-parameter-name {
            type identityref {
                base ETH_PM_PARAMETER_NAME;
            }
            description "none";
        }
        typedef eth-alarm-condition-name {
            type identityref {
                base ETH_ALARM_CONDITION_NAME;
            }
            description "none";
        }
    
    }