]>
git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_vty.h
2 * Copyright (C) 2000 Toshiaki Takada
4 * This file is part of GNU Zebra.
6 * GNU Zebra is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2, or (at your option) any
11 * GNU Zebra is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #ifndef _QUAGGA_OSPF_VTY_H
22 #define _QUAGGA_OSPF_VTY_H
25 #define VTY_GET_OSPF_AREA_ID(V,F,STR) \
28 retv = ospf_str2area_id ((STR), &(V), &(F)); \
31 vty_out (vty, "%% Invalid OSPF area ID%s", VTY_NEWLINE); \
36 #define VTY_GET_OSPF_AREA_ID_NO_BB(NAME,V,F,STR) \
39 retv = ospf_str2area_id ((STR), &(V), &(F)); \
42 vty_out (vty, "%% Invalid OSPF area ID%s", VTY_NEWLINE); \
45 if (OSPF_IS_AREA_ID_BACKBONE ((V))) \
47 vty_out (vty, "%% You can't configure %s to backbone%s", \
53 extern void ospf_vty_init (void);
54 extern void ospf_vty_show_init (void);
55 extern void ospf_vty_clear_init (void);
56 extern int ospf_str2area_id (const char *, struct in_addr
*, int *);
58 #endif /* _QUAGGA_OSPF_VTY_H */