diff --git a/includes/discovery/vlans/avaya-ers.inc.php b/includes/discovery/vlans/avaya-ers.inc.php new file mode 100644 index 0000000000..16c008da9e --- /dev/null +++ b/includes/discovery/vlans/avaya-ers.inc.php @@ -0,0 +1,40 @@ + $vlan) { + d_echo(" $vlan_id"); + if (is_array($vlans_db[$vtpdomain_id][$vlan_id])) { + echo '.'; + } else { + dbInsert(array( + 'device_id' => $device['device_id'], + 'vlan_domain' => $vtpdomain_id, + 'vlan_vlan' => $vlan_id, + 'vlan_name' => $vlan['rcVlanName'], + 'vlan_type' => array('NULL') + ), 'vlans'); + echo '+'; + } + $device['vlans'][$vtpdomain_id][$vlan_id] = $vlan_id; + $egress_ids = q_bridge_bits2indices($tagoruntag[$vlan_id]['rcVlanPortMembers']); + $untagged_ids = array(); + + foreach ($port_pvids as $port => $port_num) { + if ($port_num['rcVlanPortDefaultVlanId'] == $vlan_id && + ($port_mode[$port]['rcVlanPortPerformTagging'] == 'false' || $port_mode[$port]['rcVlanPortPerformTagging'] == 4 )) { + array_push($untagged_ids, $port); + } + } + foreach ($egress_ids as $port_id) { + $ifIndex = $base_to_index[$port_id]; + $per_vlan_data[$vlan_id][$ifIndex]['untagged'] = (in_array($port_id, $untagged_ids) ? 1 : 0); + } + } +}