Skip to content

Commit

Permalink
Merge pull request #5460 from vishaldhingra/static_nb
Browse files Browse the repository at this point in the history
staticd: yang definition
  • Loading branch information
qlyoung authored Feb 14, 2020
2 parents db727fe + 95f1804 commit 2a9ca11
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
86 changes: 86 additions & 0 deletions yang/frr-staticd.yang
Original file line number Diff line number Diff line change
@@ -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;
}
}
}
}
}
4 changes: 4 additions & 0 deletions yang/subdir.am
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ endif
if VRRPD
dist_yangmodels_DATA += yang/frr-vrrpd.yang
endif

if STATICD
dist_yangmodels_DATA += yang/frr-staticd.yang
endif

0 comments on commit 2a9ca11

Please sign in to comment.