fixed code formatting errors

This commit is contained in:
Tom Sealey
2017-08-01 10:25:07 +01:00
committed by GitHub
parent 6619450d56
commit bd0e003e27

View File

@ -1,7 +1,8 @@
<?php
echo 'RC-VLAN-MIB VLANs: ';
if ($device['os'] == 'avaya-ers') {
echo 'RC-VLAN-MIB VLANs: ';
if ($device['os'] == 'avaya-ers') {
$vtpdomain_id = '1';
$vlans = snmpwalk_cache_oid($device, 'rcVlanName', array(), 'RC-VLAN-MIB');
$tagoruntag = snmpwalk_cache_oid($device, 'rcVlanPortMembers', array(), 'RC-VLAN-MIB', null, '-OQUs --hexOutputLength=0');
@ -32,6 +33,7 @@ if ($device['os'] == 'avaya-ers') {
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);