Skip to content

Commit

Permalink
Correct swapped SET and WHERE parameters in bgp-peers/dell-os10.inc.p…
Browse files Browse the repository at this point in the history
…hp (#15983)

When the code was refactored in daa8c75, the selectors and updated columns were reversed.
  • Loading branch information
jthiltges committed Apr 26, 2024
1 parent 1aa712e commit 3f4bd69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/discovery/bgp-peers/dell-os10.inc.php
Expand Up @@ -78,7 +78,7 @@
}
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 '.';
}
}
Expand Down

0 comments on commit 3f4bd69

Please sign in to comment.