diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2021-06-28 16:12:49 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2021-07-20 11:22:21 +0200 |
commit | b08221513cc7b3fb071a263a0178d1044dfa770b (patch) | |
tree | e0648875953bcafc3da894a4288e753c2295cadf /ospf6d/ospf6_route.c | |
parent | ospf6d: move prefix_options from _path to _route (diff) | |
download | frr-b08221513cc7b3fb071a263a0178d1044dfa770b.tar.xz frr-b08221513cc7b3fb071a263a0178d1044dfa770b.zip |
ospf6d: actually print prefix options
Well at least I had a good laugh at the "xxx".
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospf6d/ospf6_route.c')
-rw-r--r-- | ospf6d/ospf6_route.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c index 13efa22a9..80f0e7d26 100644 --- a/ospf6d/ospf6_route.c +++ b/ospf6d/ospf6_route.c @@ -1138,6 +1138,7 @@ void ospf6_route_show_detail(struct vty *vty, struct ospf6_route *route, { char destination[PREFIX2STR_BUFFER], nexthop[64]; char area_id[16], id[16], adv_router[16], capa[16], options[16]; + char pfx_options[16]; struct timeval now, res; char duration[64]; struct listnode *node; @@ -1265,10 +1266,13 @@ void ospf6_route_show_detail(struct vty *vty, struct ospf6_route *route, vty_out(vty, "Router Bits: %s\n", capa); /* Prefix Options */ + ospf6_prefix_options_printbuf(route->prefix_options, pfx_options, + sizeof(pfx_options)); if (use_json) - json_object_string_add(json_route, "prefixOptions", "xxx"); + json_object_string_add(json_route, "prefixOptions", + pfx_options); else - vty_out(vty, "Prefix Options: xxx\n"); + vty_out(vty, "Prefix Options: %s\n", pfx_options); /* Metrics */ if (use_json) { |