diff options
| author | Mark Stapp <mjs@voltanet.io> | 2021-07-02 09:03:53 -0400 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-02 09:03:53 -0400 | 
| commit | 5537beafd1efdd3deacb4b5978ac6c3348fd18b2 (patch) | |
| tree | 058fbcbb603924a1129a7195e62d27fad53681c9 | |
| parent | 0a9fcd96d186bf2bbbb7a9148ced1eeadfbd5e03 (diff) | |
| parent | 67df36493d3cfad01fbd2847b7cfe4a416701b2a (diff) | |
Merge pull request #8955 from mobash-rasool/ospfv2-fixes
ospfd: show ip ospf route json does not shown metric and tag
| -rw-r--r-- | ospfd/ospf_vty.c | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index f9a76355fd..db8e961b8b 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -10913,6 +10913,8 @@ static void show_ip_ospf_route_external(struct vty *vty, struct ospf *ospf,  						       "N E1");  				json_object_int_add(json_route, "cost",  						    er->cost); +				json_object_int_add(json_route, "tag", +						    er->u.ext.tag);  			} else {  				vty_out(vty,  					"N E1 %-18s    [%d] tag: %" ROUTE_TAG_PRI @@ -10926,6 +10928,10 @@ static void show_ip_ospf_route_external(struct vty *vty, struct ospf *ospf,  						       "N E2");  				json_object_int_add(json_route, "cost",  						    er->cost); +				json_object_int_add(json_route, "type2cost", +						    er->u.ext.type2_cost); +				json_object_int_add(json_route, "tag", +						    er->u.ext.tag);  			} else {  				vty_out(vty,  					"N E2 %-18s    [%d/%d] tag: %" ROUTE_TAG_PRI  | 
