summaryrefslogtreecommitdiffstats
path: root/yang/frr-route-types.yang
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2018-05-09 06:34:57 +0200
committerRenato Westphal <renato@opensourcerouting.org>2018-10-27 20:16:12 +0200
commit707656ec85360602d849fbbe7fe54c717194f4d5 (patch)
tree8393290ee162977eb3e9f53b84dd5b21c69c085f /yang/frr-route-types.yang
parentlib: retrofit interface commands to the new northbound model (diff)
downloadfrr-707656ec85360602d849fbbe7fe54c717194f4d5.tar.xz
frr-707656ec85360602d849fbbe7fe54c717194f4d5.zip
yang, ripd: add 'frr-ripd.yang' and associated stub callbacks
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>
Diffstat (limited to 'yang/frr-route-types.yang')
-rw-r--r--yang/frr-route-types.yang109
1 files changed, 109 insertions, 0 deletions
diff --git a/yang/frr-route-types.yang b/yang/frr-route-types.yang
new file mode 100644
index 000000000..f22c5ef89
--- /dev/null
+++ b/yang/frr-route-types.yang
@@ -0,0 +1,109 @@
+module frr-route-types {
+ yang-version 1.1;
+ namespace "http://frrouting.org/yang/route-types";
+ prefix frr-route-types;
+
+ organization
+ "Free Range Routing";
+ contact
+ "FRR Users List: <mailto:frog@lists.frrouting.org>
+ FRR Development List: <mailto:dev@lists.frrouting.org>";
+ description
+ "This module defines typedefs for route types.";
+
+ revision 2018-03-28 {
+ description
+ "Initial revision.";
+ }
+
+ typedef frr-route-types-v4 {
+ type enumeration {
+ enum kernel {
+ value 1;
+ }
+ enum connected {
+ value 2;
+ }
+ enum static {
+ value 3;
+ }
+ enum rip {
+ value 4;
+ }
+ enum ospf {
+ value 6;
+ }
+ enum isis {
+ value 8;
+ }
+ enum bgp {
+ value 9;
+ }
+ enum eigrp {
+ value 11;
+ }
+ enum nhrp {
+ value 12;
+ }
+ enum table {
+ value 15;
+ }
+ enum vnc {
+ value 17;
+ }
+ enum babel {
+ value 22;
+ }
+ enum sharp {
+ value 23;
+ }
+ enum openfabric {
+ value 26;
+ }
+ }
+ }
+
+ typedef frr-route-types-v6 {
+ type enumeration {
+ enum kernel {
+ value 1;
+ }
+ enum connected {
+ value 2;
+ }
+ enum static {
+ value 3;
+ }
+ enum ripng {
+ value 5;
+ }
+ enum ospf6 {
+ value 7;
+ }
+ enum isis {
+ value 8;
+ }
+ enum bgp {
+ value 9;
+ }
+ enum nhrp {
+ value 12;
+ }
+ enum table {
+ value 15;
+ }
+ enum vnc {
+ value 17;
+ }
+ enum babel {
+ value 22;
+ }
+ enum sharp {
+ value 23;
+ }
+ enum openfabric {
+ value 26;
+ }
+ }
+ }
+}