Network Router pattern inserts empty Mac Address & Name value for the network Adapters causing identification errors


Description

The Network Router pattern inserts Network Adapter records with blank Mac Address & Name in the step 5.40

This is causing identification failure with the following error as the identification is based on those fields:
identification_engine : MISSING_MATCHING_ATTRIBUTES In payload missing minimum set of input values for criterion (matching) attributes from identify rule for table [cmdb_ci_network_adapter]

Steps to Reproduce

  1. Run a discovery on a network router with empty name & mac address values for a network adapter
  2. Discovery will fail with:

identification_engine : MISSING_MATCHING_ATTRIBUTES In payload missing minimum set of input values for criterion (matching) attributes from identify rule for table [cmdb_ci_network_adapter]. Add these input values in payload item '{"className":"cmdb_ci_network_adapter","values":{"discovery_source":"ServiceNow","install_status":"1","netmask":"255.255.255.255","mac_address":"","name":"","alias":"293","ip_address":"10.1.1.1","sys_class_name":"cmdb_ci_network_adapter"},"internal_id":"f6176b6ee70f60d0a24aaa5cad64e3b7","sys_object_source_info":{"source_name":"ServiceNow"},"settings":{},"sys_ire_info":{"ire_received_time":"2021-03-25 17:43:40"}}': no thrown error

Workaround

This problem has been fixed. If you are able to upgrade, review the Fixed In or Intended Fix Version fields to determine whether any versions have a planned or permanent fix.

A workaround is available in separate KB article: KB0961081

The fix in Rome adds a new step before "Insert network adapters data to dscy_router_interface" in the "SNMP Identify" Pattern library:

step {
name = "Remove empty MAC or name from Network Adapter"
filter {
src_table_name = "cmdb_ci_network_adapter"
target_table_name = "cmdb_ci_network_adapter"
condition = any {
 is_not_empty {get_attr {"cmdb_ci_network_adapter[].name"}}
 is_not_empty {get_attr {"cmdb_ci_network_adapter[].mac_address"}}
}
}
}
  step {
 name = "Insert network adapters data to dscy_router_interface"

Related Problem: PRB1489449