]> git.proxmox.com Git - mirror_frr.git/commit - lib/if.h
lib: retrofit interface commands to the new northbound model
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 9 May 2018 04:34:57 +0000 (01:34 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Sat, 27 Oct 2018 18:16:12 +0000 (16:16 -0200)
commit8f90d89ba93a63dba121f0678ed2506b4ae530be
tree2aacfd2bfad40dc56b567fd898d0b02a59982f66
parenta4bed468f9603da8199fdd828f5523c3b29ca15c
lib: retrofit interface commands to the new northbound model

The frr-interface YANG module models interfaces using a YANG list keyed
by the interface name and the interface VRF. Interfaces can't be keyed
only by their name since interface names might not be globally unique
when the netns VRF backend is in use. When using the VRF-Lite backend,
however, interface names *must* be globally unique. In this case, we need
to validate the uniqueness of interface names inside the appropriate
northbound callback since this constraint can't be expressed in the
YANG language. We must also ensure that only inactive interfaces can be
removed, among other things we need to validate in the northbound layer.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
lib/if.c
lib/if.h
lib/subdir.am
lib/zclient.c
ospf6d/ospf6_top.c
ospfd/ospf_vty.c
zebra/if_ioctl.c
zebra/if_ioctl_solaris.c
zebra/if_netlink.c
zebra/kernel_socket.c