Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
/* If there are multiple export RTs we break here and show only
* one */
- if (!json)
+ if (!json) {
+ vty_out(vty, "%-37s", vrf_id_to_name(bgp->vrf_id));
break;
+ }
}
- if (!json)
- vty_out(vty, "%-37s", vrf_id_to_name(bgp->vrf_id));
-
if (json) {
char vni_str[VNI_STR_LEN];
/* If there are multiple export RTs we break here and show only
* one */
- if (!json)
+ if (!json) {
+ vty_out(vty, "%-37s",
+ vrf_id_to_name(vpn->tenant_vrf_id));
break;
+ }
}
- if (!json)
- vty_out(vty, "%-37s", vrf_id_to_name(vpn->tenant_vrf_id));
-
if (json) {
char vni_str[VNI_STR_LEN];