]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: set display format for range command
authorGeorge Wilkie <george.wilkie@intl.att.com>
Mon, 5 Nov 2018 15:43:55 +0000 (15:43 +0000)
committerDuncan Eastoe <duncan.eastoe@att.com>
Tue, 14 Jul 2020 15:57:39 +0000 (16:57 +0100)
If you configure an area range in decimal format, the running
configuration displays it in dotted format.
Call ospf_area_display_format_set() for area range command,
as it is done for other variants.

Signed-off-by: Duncan Eastoe <duncan.eastoe@att.com>
ospfd/ospf_vty.c

index 4093837ba72c57444841c605cdc02526f5c73f96..26c7c0fed8ca576755dedd3bec738d8c345759b9 100644 (file)
@@ -700,6 +700,8 @@ DEFUN (ospf_area_range,
        str2prefix_ipv4(argv[idx_ipv4_prefixlen]->arg, &p);
 
        ospf_area_range_set(ospf, area_id, &p, OSPF_AREA_RANGE_ADVERTISE);
+       ospf_area_display_format_set(ospf, ospf_area_get(ospf, area_id),
+                                    format);
        if (argc > 5) {
                cost = strtoul(argv[idx_cost]->arg, NULL, 10);
                ospf_area_range_cost_set(ospf, area_id, &p, cost);