Skip to content

Commit

Permalink
[FRR Upgrade] Remove deprecated code for bgpStatusCodes/bgpOriginCodes (
Browse files Browse the repository at this point in the history
sonic-net#15691)

by FRR

Why I did it
FRR has deprecated the code for bgpStatusCodes/bgpOriginCodes in below
checkin. Hence updating the ansible library to handle this change.

FRRouting/frr#14981

Signed-off-by: Kishore Kunal <kishore.kunal@broadcom.com>
  • Loading branch information
kishorekunal01 authored Nov 22, 2024
1 parent f041561 commit 1b4b3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/library/bgp_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def parse_bgp_route_adv_json(self, cmd_result):
for k, rt in res['advertisedRoutes'].items():
entry = dict()
entry['nexthop'] = rt['nextHop']
entry['origin'] = rt['bgpOriginCode']
entry['origin'] = rt.get('bgpOriginCode', rt['origin']) # Use bgpOriginCode if present, else origin
entry['weigh'] = rt['weight']
entry['aspath'] = rt['path'].split()
self.facts['bgp_route_neiadv']["{}/{}".format(
Expand Down

0 comments on commit 1b4b3a9

Please sign in to comment.