]> git.proxmox.com Git - mirror_frr.git/commit
ripngd: retrofit the 'offset-list' command to the new northbound model
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 29 Nov 2018 04:27:16 +0000 (02:27 -0200)
committerRenato Westphal <renato@opensourcerouting.org>
Mon, 3 Dec 2018 15:47:58 +0000 (13:47 -0200)
commitb09956ca5184a5daff87e144efb935d21504518e
tree544f5694e427fec358879058c12dd92892f8660c
parentcc48702b20fa8a6d69e52c1770a741b755828a02
ripngd: retrofit the 'offset-list' command to the new northbound model

Remove the ripng_offset_list_set() and ripng_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-ripngd 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 list keys are mandatory leafs
by definition in YANG.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
ripngd/ripng_cli.c
ripngd/ripng_cli.h
ripngd/ripng_northbound.c
ripngd/ripng_offset.c
ripngd/ripngd.c
ripngd/ripngd.h