Adding Column ifSpeed_prev, ifHighSpeed_prev to Ports Table (#11348)

* adding Column ifSpeed_prev, ifHighSpeed_prev to Ports table

* grammar fix

* rename migration class

* tests

* .

* .
This commit is contained in:
SourceDoctor
2020-04-01 10:50:33 +02:00
committed by GitHub
parent 7b8ca66c67
commit 7dfb4ef1df
263 changed files with 44257 additions and 14742 deletions

View File

@@ -667,7 +667,7 @@ foreach ($ports as $port) {
$port['update'][$oid] = $this_port[$oid];
// store the previous values for alerting
if ($oid == 'ifOperStatus' || $oid == 'ifAdminStatus') {
if (in_array($oid, ['ifOperStatus', 'ifAdminStatus', 'ifSpeed', 'ifHighSpeed'])) {
$port['update'][$oid . '_prev'] = $port[$oid];
}
@@ -678,7 +678,7 @@ foreach ($ports as $port) {
echo $oid . ' ';
}
} else {
if ($oid == 'ifOperStatus' || $oid == 'ifAdminStatus') {
if (in_array($oid, ['ifOperStatus', 'ifAdminStatus', 'ifSpeed', 'ifHighSpeed'])) {
if ($port[$oid.'_prev'] == null) {
$port['update'][$oid . '_prev'] = $this_port[$oid];
}