Open-Network-Models-and-Interfaces-ONMI / TAPI

LF ONMI Transport API Repository (TAPI)
https://github.com/Open-Network-Models-and-Interfaces-ONMI/TAPI/wiki
Apache License 2.0
95 stars 80 forks source link

total-power-warn-threshold definition shall be uniform #351

Closed arthurMll closed 5 years ago

arthurMll commented 5 years ago

I noted that the descripton and the structure of the total-power-warn-threshold-upper/lower leafs is contradictory. The description suggest that multiple values define the threshold (i.e., max,min, default...) however it is defined as a single leaf of type decimal64.

            leaf total-power-warn-threshold-upper {
                type decimal64 {
                    fraction-digits 7;
                }
                description "Configure the Max, Default and Min values for the Upper power threshold.";
            }
            leaf total-power-warn-threshold-lower {
                type decimal64 {
                    fraction-digits 7;
                }
                description "Configure  Max, Default and Min values for lower power threshold.";
}

I suggest or modifying the description or change the leafs by containers and use the defined grouping:

        grouping total-power-threshold-pac {
            leaf total-power-upper-warn-threshold-default {
                type decimal64 {
                    fraction-digits 7;
                }
                description "Can read the value of the default  threshold that was set";
            }
            leaf total-power-upper-warn-threshold-min {
                type decimal64 {
                    fraction-digits 7;
                }
                description "Can read the value of the lower threshold that was set";
            }
            leaf total-power-upper-warn-threshold-max {
                type decimal64 {
                    fraction-digits 7;
                }
                description "Can  read the value of the upper threshold that was set";
            }
            leaf total-power-lower-warn-threshold-default {
                type decimal64 {
                    fraction-digits 7;
                }
                description "Can read the value of the default  threshold that was set";
            }
            leaf total-power-lower-warn-threshold-max {
                type decimal64 {
                    fraction-digits 7;
                }
                description "Can  read the value of the upper threshold that was set";
            }
            leaf total-power-lower-warn-threshold-min {
                type decimal64 {
                    fraction-digits 7;
                }
                description "Can read the value of the lower threshold that was set";
            }
            description "none";
}
arthurMll commented 5 years ago

Moreover, I think it is needed a clarification on whether the total-power-warn-threshold-upper/lower refers to the reception sensibility of the OTSi tapi-connectivity:end-point, either in the leaf name or in the description.

bzeuner commented 5 years ago

greenshot

PM Threshold Types.pptx

karthik-sethuraman commented 5 years ago

Fixed by PR #355