summaryrefslogtreecommitdiff
path: root/yang/example
AgeCommit message (Collapse)Author
2023-05-04ripd: Implement `allow-ecmp X` commandDonatas Abraitis
Allow setting an arbitrary number of paths to be installed instead of ALL. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
2019-01-18ripd: add VRF supportRenato Westphal
* Turn the "instance" YANG presence-container into a YANG list keyed by the new "vrf" leaf. This is a backward incompatible change but this should be ok for now. * RIP VRF instances can be configured even when the corresponding VRF doesn't exist. And a RIP VRF instance isn't deleted when the corresponding VRF is deleted. For this to work, implement the rip_instance_enable() and rip_instance_disable() functions that are called to enable/disable RIP routing instances when necessary. A RIP routing instance can be enabled only when the corresponding VRF is enabled (this information comes from zebra and depends on the underlying VRF backend). Routing instances are stored in the new rip_instances rb-tree (global variable). * Add a vrf pointer to the rip structure instead of storing vrf_id only. This is much more convenient than using vrf_lookup_by_id() every time we need to get the vrf pointer from the VRF ID. The rip->vrf pointer is updated whenever the VRF enable/disable hooks are called. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-10-27yang: add a module translator for ietf-rip.yangRenato Westphal
As it can be seen below, this translator covers only ~13% of the ietf-rip YANG module. Work must be done to increase that number. ripd> en ripd# conf t ripd(config)# yang module-translator load /tmp/frr-ietf-translator.json % Module translator "ietf" loaded successfully. ripd(config)# do show yang module-translator Family Module Deviations Coverage (%) ----------------------------------------------------------------------- ietf ietf-interfaces frr-deviations-ietf-interfaces 3.92 ietf ietf-routing frr-deviations-ietf-routing 1.56 ietf ietf-rip frr-deviations-ietf-rip 13.60 Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
2018-10-27yang, ripd: add 'frr-ripd.yang' and associated stub callbacksRenato Westphal
Introduce frr-ripd.yang, which defines a model for managing the FRR ripd daemon. Also add frr-route-types.yang which defines typedefs for FRR route types. Update the 'frr_yang_module_info' array of ripd with the new 'frr-ripd' module. Add two new files (rip_cli.[ch]) which should contain all ripd commands converted to the new northbound model. Centralizing all commands in a single place will facilitate the process of moving the CLI to a separate program in the future. Add automatically generated stub callbacks in rip_northbound.c. These callbacks will be implemented gradually in the following commits. Add example JSON/XML ripd configurations in yang/examples/. Add the confd.frr-ripd.yang YANG module with annotations specific to the ConfD daemon. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>