]>
Commit | Line | Data |
---|---|---|
56822e76 | 1 | module frr-staticd { |
2 | yang-version "1.1"; | |
3 | namespace "http://frrouting.org/yang/staticd"; | |
4 | ||
5 | prefix frr-staticd; | |
6 | ||
7 | import frr-routing { | |
8 | prefix "frr-rt"; | |
9 | } | |
10 | ||
11 | import frr-nexthop { | |
12 | prefix frr-nexthop; | |
13 | } | |
14 | ||
15 | import ietf-inet-types { | |
16 | prefix inet; | |
17 | } | |
18 | ||
19 | organization | |
78891caf | 20 | "FRRouting"; |
56822e76 | 21 | |
22 | contact | |
23 | "FRR Users List: <mailto:frog@lists.frrouting.org> | |
24 | FRR Development List: <mailto:dev@lists.frrouting.org>"; | |
25 | ||
26 | description | |
27 | "This module defines a model for managing FRR staticd information. | |
28 | This YANG module augments the ietf-routing with additional | |
29 | nexthop information"; | |
30 | ||
31 | revision 2019-12-03 { | |
32 | description | |
33 | "Initial revision."; | |
34 | } | |
35 | ||
36 | identity static { | |
37 | base frr-rt:routing-protocol; | |
38 | description | |
39 | "'Static' routing pseudo-protocol."; | |
40 | } | |
41 | ||
42 | augment "/frr-rt:routing/frr-rt:control-plane-protocols/" | |
43 | + "frr-rt:control-plane-protocol" { | |
44 | container staticd { | |
45 | when "../frr-rt:type = 'frr-staticd:static'" { | |
46 | description | |
47 | "This container is only valid for the 'static' routing | |
48 | protocol."; | |
49 | } | |
50 | description | |
51 | "Support for a 'static' pseudo-protocol instance | |
52 | consists of a list of routes."; | |
53 | ||
54 | list prefix-list { | |
55 | key "destination-prefix"; | |
56 | description | |
57 | "List of static IP routes."; | |
58 | ||
59 | leaf destination-prefix { | |
60 | type inet:ip-address; | |
61 | description | |
62 | "IP destination prefix."; | |
63 | } | |
64 | ||
65 | leaf distance { | |
66 | type frr-rt:administrative-distance; | |
67 | description | |
68 | "Admin distance associated with this route."; | |
69 | } | |
70 | ||
71 | leaf tag { | |
72 | type uint32 { | |
73 | range "1..4294967295"; | |
74 | } | |
75 | description | |
76 | "Route tag"; | |
77 | } | |
78 | container frr-staticd-next-hop { | |
79 | description | |
80 | "Augment static route configuration 'nexthop-list'."; | |
81 | uses frr-nexthop:frr-nexthop; | |
82 | } | |
83 | } | |
84 | } | |
85 | } | |
86 | } |