Correct swapped SET and WHERE parameters in bgp-peers/dell-os10.inc.php (#15983)

When the code was refactored in daa8c757f6, the selectors and updated columns were reversed.
This commit is contained in:
jthiltges
2024-04-26 08:48:47 -05:00
committed by GitHub
parent 1aa712e189
commit 3f4bd69718

View File

@@ -78,7 +78,7 @@ if ($device['os'] == 'dell-os10') {
}
echo '+';
} else {
BgpPeer::where('bgpPeerRemoteAs', $value['os10bgp4V2PeerRemoteAs'])->where('astext', $astext)->update(['bgpPeerIdentifier' => $address, 'device_id' => $device['device_id'], 'vrf_id' => $vrfId]);
BgpPeer::where('device_id', $device['device_id'])->where('bgpPeerIdentifier', $address)->where('vrf_id', $vrfId)->update(['bgpPeerRemoteAs' => $value['os10bgp4V2PeerRemoteAs'], 'astext' => $astext]);
echo '.';
}
}