ONTAP Discussions

Bad element name in shelf-environ-shelf-info/current-sensor-list

kevingraham
1,848 Views

Tripped across this while trying to add some type-validation for objects wrapped around a storage-shelf-environment-list response.

 

The children elements of shelf-environment-shelf-info/current-sensor-list should be 'current-sensor-info', but are instead 'current-sensor-list':

 

                                        <current-sensor-list>

                                                <current-sensor-list>

                                                        <current-sensor-no>1</current-sensor-no>

                                                        <is-sensor-error>false</is-sensor-error>

                                                        <sensor-reading>8160 mA</sensor-reading>

                                                        <sensor-condition>normal_operating_range</sensor-condition>

                                                </current-sensor-list>

                                                <current-sensor-list>

                                                        <current-sensor-no>2</current-sensor-no>

                                                        <is-sensor-error>false</is-sensor-error>

                                                        <sensor-reading>6870 mA</sensor-reading>

                                                        <sensor-condition>normal_operating_range</sensor-condition>

                                                </current-sensor-list>

                                               <!-- ...snip.. -->

 

                                        </current-sensor-list>

 

Since the language bindings don't expose the name of an element in a children_get, there's no direct impact from this, but it does break attempts at verification.

 

Observed this on a 6240 running 8.1D4, but ti appears that reporting on current-sensors is relatively new, so haven't dug up examples in other releases.

0 REPLIES 0
Public