mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 10:50:18 +00:00

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>
35 lines
844 B
XML
35 lines
844 B
XML
<lib xmlns="http://frrouting.org/yang/interface">
|
|
<interface>
|
|
<name>eth0</name>
|
|
<vrf>default</vrf>
|
|
<description>engineering</description>
|
|
<rip xmlns="http://frrouting.org/yang/ripd">
|
|
<split-horizon>poison-reverse</split-horizon>
|
|
<version-receive>1</version-receive>
|
|
<version-send>1</version-send>
|
|
<v2-broadcast>true</v2-broadcast>
|
|
</rip>
|
|
</interface>
|
|
<interface>
|
|
<name>eth1</name>
|
|
<vrf>default</vrf>
|
|
<description>marketing</description>
|
|
</interface>
|
|
</lib>
|
|
<ripd xmlns="http://frrouting.org/yang/ripd">
|
|
<instance>
|
|
<allow-ecmp>true</allow-ecmp>
|
|
<static-route>10.0.1.0/24</static-route>
|
|
<distance>
|
|
<source>
|
|
<prefix>172.16.1.0/24</prefix>
|
|
<distance>25</distance>
|
|
</source>
|
|
</distance>
|
|
<redistribute>
|
|
<protocol>ospf</protocol>
|
|
<metric>3</metric>
|
|
</redistribute>
|
|
</instance>
|
|
</ripd>
|