add object class if not existing
This commit is contained in:
parent
2201198837
commit
a631f759e5
|
@ -104,6 +104,10 @@ class ieee802Device extends baseModule {
|
||||||
$this->attributes['macAddress'] = $attr['macAddress'];
|
$this->attributes['macAddress'] = $attr['macAddress'];
|
||||||
$this->orig['macAddress'] = $attr['macAddress'];
|
$this->orig['macAddress'] = $attr['macAddress'];
|
||||||
}
|
}
|
||||||
|
// add object class if needed
|
||||||
|
if (! in_array('ieee802Device', $this->orig['objectClass'])) {
|
||||||
|
$this->attributes['objectClass'][] = 'ieee802Device';
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue