Final update for overwriting ifAlias

This commit is contained in:
laf
2015-08-30 14:34:37 -07:00
parent 5f5788e90c
commit e4fd45037c
3 changed files with 15 additions and 3 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ if (!empty($ifName) && is_numeric($port_id)) {
}
if (dbUpdate(array('ifAlias'=>$descr), 'ports', '`port_id`=?', array($port_id)) > 0) {
$device = device_by_id_cache($device_id);
if (empty($descr)) {
if ($descr === 'repoll') {
del_dev_attrib($device, 'ifName');
}
else {