]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_route.c
Merge pull request #9028 from mobash-rasool/ospfv3-asbr-summarisation
[mirror_frr.git] / ospf6d / ospf6_route.c
index 43de870ad7391c662da5190b8817c6770fa1765f..cd3139d28a54c650463a575f6b95a506a053bc7b 100644 (file)
@@ -487,6 +487,7 @@ struct ospf6_route *ospf6_route_copy(struct ospf6_route *route)
        new = ospf6_route_create(route->ospf6);
        new->type = route->type;
        memcpy(&new->prefix, &route->prefix, sizeof(struct prefix));
+       new->prefix_options = route->prefix_options;
        new->installed = route->installed;
        new->changed = route->changed;
        new->flag = route->flag;
@@ -1188,6 +1189,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;
@@ -1315,10 +1317,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) {