Commit 1b9ad406 authored by Robert Ricci's avatar Robert Ricci
Browse files

Don't make bad lines from switchmac fatal - there are circumstances

where they are okay.
parent 434a472a
......@@ -36,7 +36,6 @@ function find_switch_macs(&$mac_list) {
$class = $exploded[4];
if (!preg_match("/^([\w-]+)\/(\d+)\.(\d+)$/",$switchport,$matches)) {
echo "<h3>Bad line from switchmac: $line\n";
return 0;
$switch = $matches[1];
$card = $matches[2];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment