diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2018-05-09 01:35:00 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2018-10-27 16:16:12 -0200 |
| commit | 8c942f65062ac96978fb9c058875a4a602f66dcf (patch) | |
| tree | edb539ba4fc9e2768455b4bbe2fb49b1d373a649 /ripd/rip_cli.h | |
| parent | 3d7a1be850dbf7350fa217e7eb33967bf15351e9 (diff) | |
ripd: retrofit the 'offset-list' command to the new northbound model
Remove the rip_offset_list_set() and rip_offset_list_unset() functions
since they set/unset multiple configuration options at the same time. The
northbound callbacks need to set/unset configuration options individually.
The frr-ripd YANG module models the "offset-list" command using a list
keyed by the 'interface' and 'direction' leafs. One important detail is
that the IFNAME parameter is optional, and when it's not present it means
we want to match all interfaces. This is modeled using an interface name
of '*' since key lists are mandatory by definition in YANG.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ripd/rip_cli.h')
| -rw-r--r-- | ripd/rip_cli.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ripd/rip_cli.h b/ripd/rip_cli.h index 2a05405924..16ed784513 100644 --- a/ripd/rip_cli.h +++ b/ripd/rip_cli.h @@ -42,5 +42,7 @@ extern void cli_show_rip_network_prefix(struct vty *vty, struct lyd_node *dnode, extern void cli_show_rip_network_interface(struct vty *vty, struct lyd_node *dnode, bool show_defaults); +extern void cli_show_rip_offset_list(struct vty *vty, struct lyd_node *dnode, + bool show_defaults); #endif /* _FRR_RIP_CLI_H_ */ |
