From: George Wilkie Date: Mon, 5 Nov 2018 15:43:55 +0000 (+0000) Subject: ospfd: set display format for range command X-Git-Tag: base_7.5~186^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=ed709ed1971126f008536b6e572a5a1a1a8b5872;p=matthieu%2Ffrr.git ospfd: set display format for range command 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 --- diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 4093837ba7..26c7c0fed8 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -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);