summaryrefslogtreecommitdiff
path: root/ripd/rip_cli.h
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-05-09 01:35:01 -0300
committerRenato Westphal <renato@opensourcerouting.org>2018-10-27 16:16:12 -0200
commit908f0020923f77545ae467837d78b7eaa91f048e (patch)
treec11a91f0fb93c83fb7301e6c5324be8497c6a5a4 /ripd/rip_cli.h
parent44f2f852a18dd4f0b93215f46c1020f04676fa64 (diff)
ripd: retrofit the 'redistribute' commands to the new northbound model
Trivial conversion. As usual, combine multiple DEFUNs into a single DEFPY for simplicity. As a bonus of the northbound conversion, this commit fixes the redistribution of certain protocols into ripd. The 'redist_type' array used by the "redistribute" commands was terribly outdated, which was preventing the CLI to parse correctly certain protocols like isis and babel. Remove the route_map hooks installed by rip_route_map_init() since they were redundant (rip_init() already takes care of that). Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripd/rip_cli.h')
-rw-r--r--ripd/rip_cli.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ripd/rip_cli.h b/ripd/rip_cli.h
index 61d379f78d..6625a301e1 100644
--- a/ripd/rip_cli.h
+++ b/ripd/rip_cli.h
@@ -53,5 +53,7 @@ extern void cli_show_rip_passive_interface(struct vty *vty,
extern void cli_show_rip_non_passive_interface(struct vty *vty,
struct lyd_node *dnode,
bool show_defaults);
+extern void cli_show_rip_redistribute(struct vty *vty, struct lyd_node *dnode,
+ bool show_defaults);
#endif /* _FRR_RIP_CLI_H_ */