summaryrefslogtreecommitdiff
path: root/yang/frr-staticd.yang
diff options
context:
space:
mode:
authorvdhingra <vdhingra@vmware.com>2019-12-03 06:00:51 -0800
committerSantosh P K <sapk@vmware.com>2020-04-16 07:49:10 -0700
commit56822e76fdf5d1afff6e8fb1a7eba2f69d73ef11 (patch)
treee4ac58a408d999250699e364081b8e0173f732d6 /yang/frr-staticd.yang
parentf8614910a5fb61859674ba1c123e173191fbe53f (diff)
staticd: yang defination
Yang files for staticd to use northbound APIs Co-authored-by: Santosh P K <sapk@vmware.com> Co-authored-by: vishaldhingra <vdhingra@vmware.com> Signed-off-by: vishaldhingra <vdhingra@vmware.com>
Diffstat (limited to 'yang/frr-staticd.yang')
-rw-r--r--yang/frr-staticd.yang86
1 files changed, 86 insertions, 0 deletions
diff --git a/yang/frr-staticd.yang b/yang/frr-staticd.yang
new file mode 100644
index 0000000000..58933c9040
--- /dev/null
+++ b/yang/frr-staticd.yang
@@ -0,0 +1,86 @@
+module frr-staticd {
+ yang-version "1.1";
+ namespace "http://frrouting.org/yang/staticd";
+
+ prefix frr-staticd;
+
+ import frr-routing {
+ prefix "frr-rt";
+ }
+
+ import frr-nexthop {
+ prefix frr-nexthop;
+ }
+
+ import ietf-inet-types {
+ prefix inet;
+ }
+
+ 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 a model for managing FRR staticd information.
+ This YANG module augments the ietf-routing with additional
+ nexthop information";
+
+ revision 2019-12-03 {
+ description
+ "Initial revision.";
+ }
+
+ identity static {
+ base frr-rt:routing-protocol;
+ description
+ "'Static' routing pseudo-protocol.";
+ }
+
+ augment "/frr-rt:routing/frr-rt:control-plane-protocols/"
+ + "frr-rt:control-plane-protocol" {
+ container staticd {
+ when "../frr-rt:type = 'frr-staticd:static'" {
+ description
+ "This container is only valid for the 'static' routing
+ protocol.";
+ }
+ description
+ "Support for a 'static' pseudo-protocol instance
+ consists of a list of routes.";
+
+ list prefix-list {
+ key "destination-prefix";
+ description
+ "List of static IP routes.";
+
+ leaf destination-prefix {
+ type inet:ip-address;
+ description
+ "IP destination prefix.";
+ }
+
+ leaf distance {
+ type frr-rt:administrative-distance;
+ description
+ "Admin distance associated with this route.";
+ }
+
+ leaf tag {
+ type uint32 {
+ range "1..4294967295";
+ }
+ description
+ "Route tag";
+ }
+ container frr-staticd-next-hop {
+ description
+ "Augment static route configuration 'nexthop-list'.";
+ uses frr-nexthop:frr-nexthop;
+ }
+ }
+ }
+ }
+}