diff options
author | hasso <hasso> | 2004-04-19 18:26:53 +0000 |
---|---|---|
committer | hasso <hasso> | 2004-04-19 18:26:53 +0000 |
commit | 52930766277e57fcc2332e35cefd2bd07bb7ed16 (patch) | |
tree | e7ec4cf6fb6199700099d4d0e9a74cd4b95e4415 /ospfd | |
parent | c266ac78eecae0af8599a4503589fd8d0eb2b402 (diff) |
Ooops. Check if area-id format is valid.
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_vty.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ospfd/ospf_vty.c b/ospfd/ospf_vty.c index 7a5c49a8..2b2c000e 100644 --- a/ospfd/ospf_vty.c +++ b/ospfd/ospf_vty.c @@ -1702,6 +1702,8 @@ DEFUN (ospf_area_export_list, struct in_addr area_id; int format; + VTY_GET_OSPF_AREA_ID (area_id, format, argv[0]); + area = ospf_area_get (ospf, area_id, format); ospf_area_export_list_set (ospf, area, argv[1]); @@ -1723,6 +1725,8 @@ DEFUN (no_ospf_area_export_list, struct in_addr area_id; int format; + VTY_GET_OSPF_AREA_ID (area_id, format, argv[0]); + area = ospf_area_lookup_by_area_id (ospf, area_id); if (area == NULL) return CMD_SUCCESS; @@ -1747,6 +1751,8 @@ DEFUN (ospf_area_import_list, struct in_addr area_id; int format; + VTY_GET_OSPF_AREA_ID (area_id, format, argv[0]); + area = ospf_area_get (ospf, area_id, format); ospf_area_import_list_set (ospf, area, argv[1]); @@ -1768,6 +1774,8 @@ DEFUN (no_ospf_area_import_list, struct in_addr area_id; int format; + VTY_GET_OSPF_AREA_ID (area_id, format, argv[0]); + area = ospf_area_lookup_by_area_id (ospf, area_id); if (area == NULL) return CMD_SUCCESS; |