diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-19 20:38:02 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-19 20:40:18 +0200 |
commit | 86573dcbbe253d618c100bd94c1acf20348b7afa (patch) | |
tree | 39033359a14413975fa90c4f9b1e8274d3e9c0ce /ospfd/ospf_abr.c | |
parent | pimd: Fix indentation issue that is causing clang unhappiness (diff) | |
download | frr-86573dcbbe253d618c100bd94c1acf20348b7afa.tar.xz frr-86573dcbbe253d618c100bd94c1acf20348b7afa.zip |
ospfd: remember format for ospf area id
If the user enters a decimal, display a decimal.
If the user enters a dotted quad, display a dotted quad.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_abr.c')
-rw-r--r-- | ospfd/ospf_abr.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/ospfd/ospf_abr.c b/ospfd/ospf_abr.c index a54170e04..aa4909314 100644 --- a/ospfd/ospf_abr.c +++ b/ospfd/ospf_abr.c @@ -197,9 +197,8 @@ ospf_area_range_set (struct ospf *ospf, struct in_addr area_id, { struct ospf_area *area; struct ospf_area_range *range; - int ret = OSPF_AREA_ID_FORMAT_ADDRESS; - area = ospf_area_get (ospf, area_id, ret); + area = ospf_area_get (ospf, area_id); if (area == NULL) return 0; @@ -233,9 +232,8 @@ ospf_area_range_cost_set (struct ospf *ospf, struct in_addr area_id, { struct ospf_area *area; struct ospf_area_range *range; - int ret = OSPF_AREA_ID_FORMAT_ADDRESS; - area = ospf_area_get (ospf, area_id, ret); + area = ospf_area_get (ospf, area_id); if (area == NULL) return 0; @@ -282,9 +280,8 @@ ospf_area_range_substitute_set (struct ospf *ospf, struct in_addr area_id, { struct ospf_area *area; struct ospf_area_range *range; - int ret = OSPF_AREA_ID_FORMAT_ADDRESS; - area = ospf_area_get (ospf, area_id, ret); + area = ospf_area_get (ospf, area_id); range = ospf_area_range_lookup (area, p); if (range != NULL) |