mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-05 18:42:23 +00:00

Make rip_neighbor_add() and rip_neighbor_delete() return northbound error codes since their return values are used as the return value of some northbound callbacks. These functions shouldn't fail in normal conditions because the northbound layer guarantees it will never call the 'create' or 'delete' callback more than once for the same object. Hence any failure in those functions would indicate an internal inconsistency that needs to be investigated (by returning NB_ERR the northbound will log a detailed error message indicating the xpath of the object, the event and the callback where the error happened). Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
42 lines
1.7 KiB
C
42 lines
1.7 KiB
C
/*
|
|
* Copyright (C) 1997, 1998, 1999 Kunihiro Ishiguro <kunihiro@zebra.org>
|
|
* Copyright (C) 2018 NetDEF, Inc.
|
|
* Renato Westphal
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms of the GNU General Public License as published by the Free
|
|
* Software Foundation; either version 2 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
* more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; see the file COPYING; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
#ifndef _FRR_RIP_CLI_H_
|
|
#define _FRR_RIP_CLI_H_
|
|
|
|
extern void cli_show_router_rip(struct vty *vty, struct lyd_node *dnode,
|
|
bool show_defaults);
|
|
extern void cli_show_rip_allow_ecmp(struct vty *vty, struct lyd_node *dnode,
|
|
bool show_defaults);
|
|
extern void cli_show_rip_default_information_originate(struct vty *vty,
|
|
struct lyd_node *dnode,
|
|
bool show_defaults);
|
|
extern void cli_show_rip_default_metric(struct vty *vty, struct lyd_node *dnode,
|
|
bool show_defaults);
|
|
extern void cli_show_rip_distance(struct vty *vty, struct lyd_node *dnode,
|
|
bool show_defaults);
|
|
extern void cli_show_rip_distance_source(struct vty *vty,
|
|
struct lyd_node *dnode,
|
|
bool show_defaults);
|
|
extern void cli_show_rip_neighbor(struct vty *vty, struct lyd_node *dnode,
|
|
bool show_defaults);
|
|
|
|
#endif /* _FRR_RIP_CLI_H_ */
|