mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 03:53:38 +00:00
Ooops. Check if area-id format is valid.
This commit is contained in:
parent
c266ac78ee
commit
5293076627
@ -1702,6 +1702,8 @@ DEFUN (ospf_area_export_list,
|
|||||||
struct in_addr area_id;
|
struct in_addr area_id;
|
||||||
int format;
|
int format;
|
||||||
|
|
||||||
|
VTY_GET_OSPF_AREA_ID (area_id, format, argv[0]);
|
||||||
|
|
||||||
area = ospf_area_get (ospf, area_id, format);
|
area = ospf_area_get (ospf, area_id, format);
|
||||||
ospf_area_export_list_set (ospf, area, argv[1]);
|
ospf_area_export_list_set (ospf, area, argv[1]);
|
||||||
|
|
||||||
@ -1723,6 +1725,8 @@ DEFUN (no_ospf_area_export_list,
|
|||||||
struct in_addr area_id;
|
struct in_addr area_id;
|
||||||
int format;
|
int format;
|
||||||
|
|
||||||
|
VTY_GET_OSPF_AREA_ID (area_id, format, argv[0]);
|
||||||
|
|
||||||
area = ospf_area_lookup_by_area_id (ospf, area_id);
|
area = ospf_area_lookup_by_area_id (ospf, area_id);
|
||||||
if (area == NULL)
|
if (area == NULL)
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
@ -1747,6 +1751,8 @@ DEFUN (ospf_area_import_list,
|
|||||||
struct in_addr area_id;
|
struct in_addr area_id;
|
||||||
int format;
|
int format;
|
||||||
|
|
||||||
|
VTY_GET_OSPF_AREA_ID (area_id, format, argv[0]);
|
||||||
|
|
||||||
area = ospf_area_get (ospf, area_id, format);
|
area = ospf_area_get (ospf, area_id, format);
|
||||||
ospf_area_import_list_set (ospf, area, argv[1]);
|
ospf_area_import_list_set (ospf, area, argv[1]);
|
||||||
|
|
||||||
@ -1768,6 +1774,8 @@ DEFUN (no_ospf_area_import_list,
|
|||||||
struct in_addr area_id;
|
struct in_addr area_id;
|
||||||
int format;
|
int format;
|
||||||
|
|
||||||
|
VTY_GET_OSPF_AREA_ID (area_id, format, argv[0]);
|
||||||
|
|
||||||
area = ospf_area_lookup_by_area_id (ospf, area_id);
|
area = ospf_area_lookup_by_area_id (ospf, area_id);
|
||||||
if (area == NULL)
|
if (area == NULL)
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
|
Loading…
Reference in New Issue
Block a user