bgpd: fix wrong display of default vrf name #16695
Closed
frrbot / frrbot
completed
Aug 30, 2024 in 6s
Style and/or linter errors found
Style and/or linter errors found
Details
Thanks for your contribution to FRR!
Click for style suggestions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 5c162beca..cb02504d1 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -12347,9 +12347,10 @@ void route_vty_out_detail_header(struct vty *vty, struct bgp *bgp,
VRF_DEFAULT_NAME);
else
vty_out(vty, ", vrf %s",
- (bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT)
- ? VRF_DEFAULT_NAME
- : bgp->name);
+ (bgp->inst_type ==
+ BGP_INSTANCE_TYPE_DEFAULT)
+ ? VRF_DEFAULT_NAME
+ : bgp->name);
}
} else
vty_out(vty, ", no best path");
To apply the style suggestions:
curl https://gist.githubusercontent.com/polychaeta/08d9638c5653aab776a390cf4a61136c/raw/89bece43b173eb7527453a98858dc686c32454a6/style.diff | git apply -
If you are a new contributor to FRR, please see our contributing guidelines.
After making changes, you do not need to create a new PR. You should perform an amend or interactive rebase followed by a force push.
Loading