add new database table for cef_switching and change php. notice this has no 'discovery' module. why do we need to 'discover' when we walk tables? eh? eh? :)

git-svn-id: http://www.observium.org/svn/observer/trunk@2062 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-04-12 20:50:11 +00:00
parent 3c327dce31
commit d14c1e8e9b
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -31,10 +31,10 @@ if (is_array($cefs))
echo(" | |-".$path.": ".$path_name['cefSwitchingPath']);
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `cef` WHERE `device_id` = '".$device['device_id']."' AND `entPhysicalIndex` = '".$entity."'
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `cef_switching` WHERE `device_id` = '".$device['device_id']."' AND `entPhysicalIndex` = '".$entity."'
AND `afi` = '".$afi."' AND `cef_index` = '".$path."'"),0) != "1")
{
$sql = "INSERT INTO `cef` (`device_id`, `entPhysicalIndex`, `afi`, `cef_index`, `cef_path`)
$sql = "INSERT INTO `cef_switching` (`device_id`, `entPhysicalIndex`, `afi`, `cef_index`, `cef_path`)
VALUES ('".$device['device_id']."', '".$entity."', '".$afi."', '".$path."', '".$path_name['cefSwitchingPath']."')";
mysql_query($sql);
echo("+");