1 module Cisco-IOS-XR-ip-static-cfg {
3 /*** NAMESPACE / PREFIX DEFINITION ***/
5 namespace "http://cisco.com/ns/yang/Cisco-IOS-XR-ip-static-cfg";
8 prefix "ip-static-cfg";
10 /*** LINKAGE (IMPORTS / INCLUDES) ***/
12 import ietf-inet-types { prefix "inet"; }
14 import Cisco-IOS-XR-types { prefix "xr"; }
16 /*** META INFORMATION ***/
18 organization "Cisco Systems, Inc.";
24 Postal: 170 West Tasman Drive
29 E-mail: cs-yang@cisco.com";
32 "This module contains a collection of YANG definitions
33 for Cisco IOS-XR ip-static package configuration.
35 This module contains definitions
36 for the following management objects:
37 router-static: This class represents router static
40 Copyright (c) 2013 by Cisco Systems, Inc.
41 All rights reserved.";
43 revision "2013-07-22" {
50 description "Common node of vrf-prefix, vrf-prefix-topology";
53 xr:xr-xml-map "ip_static_cfg:VRFRoute";
54 description "A connected or recursive static route";
56 container vrf-next-hops {
57 xr:xr-xml-map "ip_static_cfg:VRFNextHopTable";
59 "A forwarding interface and/or the address of a
60 nexthop router for this route (one of these
63 grouping VRF-NEXT-HOP-CONTENT {
64 description "Content grouping.";
65 leaf bfd-fast-detect {
66 xr:xr-xml-map "ip_static_cfg:BFDFastDetect";
69 description "If set, bfd is enabled";
71 leaf minimum-interval {
72 xr:xr-xml-map "ip_static_cfg:MinimumInterval";
78 description "BFD Hello interval in milliseconds";
80 leaf detect-multiplier {
81 xr:xr-xml-map "ip_static_cfg:DetectMultiplier";
86 description "BFD Detect Multiplier";
89 xr:xr-xml-map "ip_static_cfg:Metric";
94 description "Distance metric for this path";
97 xr:xr-xml-map "ip_static_cfg:Tag";
99 range "1..4294967295";
101 description "Tag for this path";
104 xr:xr-xml-map "ip_static_cfg:Permanent";
107 description "If set, path is permanent";
110 xr:xr-xml-map "ip_static_cfg:VRFLable";
112 range "0..4294967295";
115 description "VRF LABEL";
118 xr:xr-xml-map "ip_static_cfg:TunnelID";
123 description "Tunnel ID for this path";
126 xr:xr-xml-map "ip_static_cfg:ObjectName";
127 type xr:Cisco-ios-xr-string {
130 description "Name of the object to track";
133 xr:xr-xml-map "ip_static_cfg:Description";
135 description "Short Description of Static Route";
139 list interface-name-and-next-hop-address {
140 xr:xr-xml-map "ip_static_cfg:VRFNextHop";
141 key "interface-name next-hop-address";
142 description "keys: interface-name, next-hop-address";
143 leaf interface-name {
144 xr:xr-xml-map "ip_static_cfg:InterfaceName";
145 type xr:Interface-name;
146 description "Forwarding interface";
148 leaf next-hop-address {
149 xr:xr-xml-map "ip_static_cfg:NextHopAddress";
150 type inet:ip-address;
151 description "Next hop address";
153 uses VRF-NEXT-HOP-CONTENT;
156 list interface-name {
157 xr:xr-xml-map "ip_static_cfg:VRFNextHop";
158 key "interface-name";
159 description "keys: interface-name";
160 leaf interface-name {
161 xr:xr-xml-map "ip_static_cfg:InterfaceName";
162 type xr:Interface-name;
163 description "Forwarding interface";
165 uses VRF-NEXT-HOP-CONTENT;
168 list next-hop-address {
169 xr:xr-xml-map "ip_static_cfg:VRFNextHop";
170 key "next-hop-address";
171 description "keys: next-hop-address";
172 leaf next-hop-address {
173 xr:xr-xml-map "ip_static_cfg:NextHopAddress";
174 type inet:ip-address;
175 description "Next hop address";
177 uses VRF-NEXT-HOP-CONTENT;
183 grouping TOPOLOGY-TABLE {
184 description "Common node of vrf-unicast, vrf-multicast";
186 container topologies {
187 xr:xr-xml-map "ip_static_cfg:TopologyTable";
188 description "Topology static configuration container";
191 xr:xr-xml-map "ip_static_cfg:Topology";
193 description "Topology static configuration";
195 xr:xr-xml-map "ip_static_cfg:TopologyName";
196 type xr:Cisco-ios-xr-string;
197 description "Topology name";
199 uses VRF-PREFIX-TOPOLOGY-TABLE;
204 grouping VRF-PREFIX-TABLE {
205 description "Common node of vrf-unicast, vrf-multicast";
207 container vrf-prefixes {
208 xr:xr-xml-map "ip_static_cfg:VRFPrefixTable";
209 description "The set of all Static Topologies for this AFI.";
212 xr:xr-xml-map "ip_static_cfg:VRFPrefix";
213 key "prefix prefix-length";
214 description "A static route";
216 xr:xr-xml-map "ip_static_cfg:Prefix";
217 type inet:ip-address;
218 description "Destination prefix";
221 xr:xr-xml-map "ip_static_cfg:PrefixLength";
225 description "Destination prefix length";
232 grouping ADDRESS-FAMILY {
233 description "Common node of default-vrf, vrf";
235 container address-family {
236 xr:xr-xml-map "ip_static_cfg:AddressFamily";
237 description "Address family configuration";
240 xr:xr-xml-map "ip_static_cfg:VRFIPV4";
241 description "IPv4 static configuration";
247 xr:xr-xml-map "ip_static_cfg:VRFIPV6";
248 description "IPv6 static configuration";
255 grouping VRF-PREFIX-TOPOLOGY-TABLE {
256 description "Common node of default-topology, topology";
258 container vrf-prefix-topologies {
259 xr:xr-xml-map "ip_static_cfg:VRFPrefixTopologyTable";
260 description "The set of all Static Topologies for this AFI.";
262 list vrf-prefix-topology {
263 xr:xr-xml-map "ip_static_cfg:VRFPrefixTopology";
264 key "prefix prefix-length";
265 description "A static route";
267 xr:xr-xml-map "ip_static_cfg:Prefix";
268 type inet:ip-address;
269 description "Destination prefix";
272 xr:xr-xml-map "ip_static_cfg:PrefixLength";
276 description "Destination prefix length";
283 grouping DEFAULT-TOPOLOGY {
284 description "Common node of vrf-unicast, vrf-multicast";
286 container default-topology {
287 xr:xr-xml-map "ip_static_cfg:DefaultTopology";
288 description "Default topology configuration";
289 uses VRF-PREFIX-TOPOLOGY-TABLE;
293 grouping VRF-UNICAST {
294 description "Common node of vrfipv4, vrfipv6";
296 container vrf-unicast {
297 xr:xr-xml-map "ip_static_cfg:VRFUnicast";
298 description "Unicast static configuration";
300 uses VRF-PREFIX-TABLE;
301 uses DEFAULT-TOPOLOGY;
305 grouping VRF-MULTICAST {
306 description "Common node of vrfipv4, vrfipv6";
308 container vrf-multicast {
309 xr:xr-xml-map "ip_static_cfg:VRFMulticast";
310 description "Multicast static configuration";
312 uses VRF-PREFIX-TABLE;
313 uses DEFAULT-TOPOLOGY;
317 container router-static {
318 xr:xr-xml-map "ip_static_cfg:RouterStatic";
319 description "This class represents router static configuration";
322 xr:xr-xml-map "ip_static_cfg:VRFTable";
323 description "VRF static configuration container";
326 xr:xr-xml-map "ip_static_cfg:VRF";
328 description "VRF static configuration";
330 xr:xr-xml-map "ip_static_cfg:VRFName";
331 type xr:Cisco-ios-xr-string;
332 description "VRF name";
338 container default-vrf {
339 xr:xr-xml-map "ip_static_cfg:DefaultVRF";
340 description "Default VRF configuration";
344 container maximum-routes {
345 xr:xr-xml-map "ip_static_cfg:MaximumRoutes";
347 "The maximum number of static routes that can be
350 xr:xr-xml-map "ip_static_cfg:IPV6Routes";
356 "The maximum number of static routes that can be
357 configured for this AFI";
360 xr:xr-xml-map "ip_static_cfg:IPV4Routes";
366 "The maximum number of static routes that can be
367 configured for this AFI";