From ed709ed1971126f008536b6e572a5a1a1a8b5872 Mon Sep 17 00:00:00 2001 From: George Wilkie Date: Mon, 5 Nov 2018 15:43:55 +0000 Subject: [PATCH] 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 --- ospfd/ospf_vty.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5