'Standard Network Switch' pattern error: Running post sensor script- Network Devices - Post Sensor failed due to: TypeError: Cannot convert null to an object.


Description

Discovery pattern fails for some switches using the 'Standard Network Switch' pattern with error:

Running post sensor script- Network Devices - Post Sensor failed due to: TypeError: Cannot convert null to an object.

Steps to Reproduce

  1. Run a discovery against a switch that has a large payload
  2. Now we shall see below error during pre-post processing
    Running post sensor script- Network Devices - Post Sensor failed due to: TypeError: Cannot convert null to an object.

Workaround

Import attached sa_pattern_prepost script:


Related Problem: PRB1531570