Skip to content

Commit

Permalink
ripd: split northbound callbacks into multiple files
Browse files Browse the repository at this point in the history
Rearrange the ripd northbound callbacks as following:
* rip_nb.h: prototypes of all northbound callbacks.
* rip_nb.c: definition of all northbound callbacks and their
  associated YANG data paths.
* rip_nb_config.c: implementation of YANG configuration nodes.
* rip_nb_state.c: implementation of YANG state nodes.
* rip_nb_rpcs.c: implementation of YANG RPCs.
* rip_nb_notifications.c: implementation of YANG notifications.

This should help to keep to code more organized and easier to
maintain.

No behavior changes intended.

Signed-off-by: Renato Westphal <[email protected]>
  • Loading branch information
rwestphal committed Oct 30, 2019
1 parent 2a1c520 commit f80ec39
Show file tree
Hide file tree
Showing 13 changed files with 2,205 additions and 1,920 deletions.
2 changes: 1 addition & 1 deletion ripd/rip_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "libfrr.h"

#include "ripd/ripd.h"
#include "ripd/rip_cli.h"
#include "ripd/rip_nb.h"
#ifndef VTYSH_EXTRACT_PL
#include "ripd/rip_cli_clippy.c"
#endif
Expand Down
86 changes: 0 additions & 86 deletions ripd/rip_cli.h

This file was deleted.

1 change: 1 addition & 0 deletions ripd/rip_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "libfrr.h"

#include "ripd/ripd.h"
#include "ripd/rip_nb.h"
#include "ripd/rip_errors.h"

/* ripd options. */
Expand Down
Loading

0 comments on commit f80ec39

Please sign in to comment.