Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Mar 5, 2019
1 parent 69397da commit b799d18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/update_switch_ports.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ function update_switch_ports($verbose = false, $pullServerMap = true)
add_output("$graph_id ");
}
}
/*
//$query = "select * from vlans where vlans_ports like '%:{$switchManager['id']}/{$justport}:%' or vlans_ports like '%:{$switchManager['id']}/{$port}:%'";
$query = "select * from vlans where vlans_ports like '%:{$switchManager['id']}/{$port}:%'";
//echo "$query\n";
Expand Down Expand Up @@ -136,6 +137,7 @@ function update_switch_ports($verbose = false, $pullServerMap = true)
}
}
}
*/
if ($verbose == true) {
add_output(',');
}
Expand All @@ -146,6 +148,7 @@ function update_switch_ports($verbose = false, $pullServerMap = true)
}
add_output(sizeof(array_keys($vlan_ids)).' Unmatched VLANs'.PHP_EOL);
}
/*
function_requirements('parse_vlan_ports');
$db->query("select * from vlans", __LINE__, __FILE__);
$portData = [];
Expand Down Expand Up @@ -284,6 +287,7 @@ function_requirements('parse_vlan_ports');
}
echo "Updated ".sizeof($portData)." Switchports".PHP_EOL;
//print_r($switches);
*/
global $output;
echo str_replace("\n", "<br>\n", $output);
$output = '';
Expand Down

0 comments on commit b799d18

Please sign in to comment.