Skip to content

Commit

Permalink
Merge pull request FRRouting#13921 from donaldsharp/ospf_vty_guard_json
Browse files Browse the repository at this point in the history
ospfd: Ensure `show ip ospf interface` json code is guarded
  • Loading branch information
ton31337 authored Jul 4, 2023
2 parents 806b0ca + cc64917 commit 18dd365
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bgpd/bgp_evpn_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ static void display_l3vni(struct vty *vty, struct bgp *bgp_vrf,
}
vty_out(vty, " Advertise-gw-macip : %s\n", "n/a");
vty_out(vty, " Advertise-svi-macip : %s\n", "n/a");
if (bgp_vrf && bgp_vrf->evpn_info) {
if (bgp_vrf->evpn_info) {
vty_out(vty, " Advertise-pip: %s\n",
bgp_vrf->evpn_info->advertise_pip ? "Yes"
: "No");
Expand Down
3 changes: 2 additions & 1 deletion ospfd/ospf_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -3690,7 +3690,8 @@ static void show_ip_ospf_interface_sub(struct vty *vty, struct ospf *ospf,
"Use all fields following ospfEnabled from interfaceIp hierarchy")
#endif

json_oi = json_object_new_object();
if (use_json)
json_oi = json_object_new_object();

if (CHECK_FLAG(oi->connected->flags, ZEBRA_IFA_UNNUMBERED)) {
if (use_json) {
Expand Down

0 comments on commit 18dd365

Please sign in to comment.