Description
Wireless controllers are not getting discovered when missing the manufacturer field in the device - entPhysicalMfgName.
Pattern Pre/Post Scripts in "Discovery and Service Mapping Patterns" WAPs scoped app which is referencing "script include" accessible only in "Global".
As a result, the corresponding pattern using this script will fail during Discovery.
Example: Network Switch pattern failed with the error message: "Running pre sensor script- WAPs - Pre failed due to: TypeError: Cannot convert null to an object."
This is caused by Pre/Post Pattern Scripts "WAPs - Pre" which is in "Discovery and Service Mapping" scope is referencing "PatternJSUti" instead "global.JSUtil" script includes which is in "Global" scope.
Steps to Reproduce
- Install Discovery and Service Mapping patterns version 1.0.63.
- Run Discovery on Wireless controller
- Observe that the Network Switch pattern failed with the error message: "Running pre sensor script- WAPs - Pre failed due to: TypeError: Cannot convert null to an object."
Workaround
Import WAPs - Pre pattern script attached
Related Problem: PRB1436783