]>
git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospf_vty.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2000 Toshiaki Takada
6 #ifndef _QUAGGA_OSPF_VTY_H
7 #define _QUAGGA_OSPF_VTY_H
10 #define VTY_GET_OSPF_AREA_ID(V, F, STR) \
13 retv = str2area_id((STR), &(V), &(F)); \
15 vty_out(vty, "%% Invalid OSPF area ID\n"); \
20 #define VTY_GET_OSPF_AREA_ID_NO_BB(NAME, V, F, STR) \
23 retv = str2area_id((STR), &(V), &(F)); \
25 vty_out(vty, "%% Invalid OSPF area ID\n"); \
28 if (OSPF_IS_AREA_ID_BACKBONE((V))) { \
30 "%% You can't configure %s to backbone\n", \
37 extern void ospf_vty_init(void);
38 extern void ospf_vty_show_init(void);
39 extern void ospf_vty_clear_init(void);
40 extern int str2area_id(const char *, struct in_addr
*, int *);
43 void show_ip_ospf_database_summary(struct vty
*vty
, struct ospf
*ospf
, int self
,
46 #endif /* _QUAGGA_OSPF_VTY_H */