summaryrefslogtreecommitdiffstats
path: root/ospfd
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2021-07-02 15:03:53 +0200
committerGitHub <noreply@github.com>2021-07-02 15:03:53 +0200
commit5537beafd1efdd3deacb4b5978ac6c3348fd18b2 (patch)
tree058fbcbb603924a1129a7195e62d27fad53681c9 /ospfd
parentMerge pull request #8970 from ton31337/fix/use_IPV6_MAX_BITLEN (diff)
parentospfd: show ip ospf route json does not shown metric and tag (diff)
downloadfrr-5537beafd1efdd3deacb4b5978ac6c3348fd18b2.tar.xz
frr-5537beafd1efdd3deacb4b5978ac6c3348fd18b2.zip
Merge pull request #8955 from mobash-rasool/ospfv2-fixes
ospfd: show ip ospf route json does not shown metric and tag
Diffstat (limited to 'ospfd')
-rw-r--r--ospfd/ospf_vty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c
index f9a76355f..db8e961b8 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