-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
7d75ef8
commit ef5a6aa
Showing
2 changed files
with
86 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
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."; | ||
} | ||
|
||
|
||
augment "/frr-rt:routing/frr-rt:control-plane-protocols/" | ||
+ "frr-rt:control-plane-protocol" { | ||
container staticd { | ||
when "../frr-rt:type = 'frr-rt: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 | ||
"Each list entry for one address family."; | ||
|
||
leaf destination-prefix { | ||
type inet:ip-address; | ||
description | ||
"IP destination prefix."; | ||
} | ||
|
||
leaf distance { | ||
type uint8 { | ||
range "1..255"; | ||
} | ||
description | ||
"Admin distance based on routing protocol."; | ||
} | ||
|
||
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; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters