Linux Network pattern returns incorrect interfacesDescriptionWe have the Linux Network pattern used by Linux Server Discovery. This pattern uses step "(Step 3.2.2) Get Interfaces" to identify the network interface with command below "ifconfig -a | awk '{line=$0} {printf \"%s\",line!=\"\"?line:\"\n\"}'" Further we have the Step "(step 3.2.23) Merge IP & interfaces tables - for kernel 3 and above" that has condition below $interfaces_kernel3[].name "contains" $ip_addresses_final[].interface_name This step with above condition results in wrong entries when we have multiple network interface with names like eth0, bondeth0.376 Observed that eth0 with ip address a.b.c.d is getting merged with the bondeth0 interface which is wrong. Further resulting in wrong relation mapping of cmdb_ci_ip_address to cmdb_ci_network_adapaters.Steps to Reproduce Linux Server service mapping pattern calls the Linux Network pattern during the Discovery phase of Linux Server. Linux Server discovery, the (step 3.2.23) "Merge IP & interfaces tables - for kernel 3 and above" Condition in this step is to check condition below $interfaces_kernel3[].name "contains" $ip_addresses_final[].interface_name This condition results in wrong entries when we have multiple network interface with names like eth0, bondeth0.376 Running the "ifconfig -a" results in the ip address and the network interface name to be displayed. Sample/Example output of ifconfig -a command below: --------------------- eth0 : 10.10.10.1 bondeth0.360 : 10.5.5.7 --------------------- Step 3.2.23 with the above Sample network interface will result in below row. Observe wrong ip address mapped to the name |name | ip | interface_name | ----------------------------------- | bondetho0.376@bondeth0 | 10.10.10.1 | eth0 |WorkaroundTo make the correlation of the ip address and network adapters correctly we need to update the Step 3.2.23 "Merge IP & interfaces tables - for kernel 3 and above" Condition in this step has to be changed to $interfaces_kernel3[].name "starts with" $ip_addresses_final[].interface_name Running the "ifconfig -a" results in the ip address and the network interface name to be displayed. Sample/Example output of ifconfig -a command below: --------------------- eth0 : 10.10.10.1 bondeth0.360 : 10.5.5.7 --------------------- Step 3.2.23 with the above Sample network interface will result in below row |name | ip | interface_name | ----------------------------------- | bondetho0.376@bondeth0 | 10.5.5.7 | bondeth0.376 | Further while creating the relation between cmdb_ci_ip_address to cmdb_ci_network_adapaters (Step 3.2.35) , We need to add both name and ip address based relation between the tables. Out of the Box step 3.2.35 has relation based on name only. The IP address and name based relation reduces the potential of creating to wrong entry mentioned above. Related Problem: PRB1542954