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-2015 by Cisco Systems, Inc.
41 All rights reserved.";
43 revision "2015-09-10" {
45 "Descriptions updated.";
48 revision "2015-01-07" {
50 "IOS XR 5.3.1 revision.";
55 description "Common node of vrf-prefix, vrf-prefix-topology";
58 xr:xr-xml-map "ip_static_cfg:VRFRoute";
59 description "A connected or recursive static route";
61 container vrf-next-hop-table {
62 xr:xr-xml-map "ip_static_cfg:VRFNextHopTable";
64 "The set of nexthop information configured for
71 grouping VRF-NEXT-HOP {
73 "Common node of vrf-next-hop-table,
74 segment-route-next-hop-table";
76 grouping VRF-NEXT-HOP-CONTENT {
77 description "VRF NEXT HOP CONTENT";
78 leaf bfd-fast-detect {
79 xr:xr-xml-map "ip_static_cfg:BFDFastDetect";
82 description "If set, bfd is enabled";
84 leaf minimum-interval {
85 xr:xr-xml-map "ip_static_cfg:MinimumInterval";
91 description "BFD Hello interval in milliseconds";
93 leaf detect-multiplier {
94 xr:xr-xml-map "ip_static_cfg:DetectMultiplier";
99 description "BFD Detect Multiplier";
102 xr:xr-xml-map "ip_static_cfg:Metric";
107 description "Distance metric for this path";
110 xr:xr-xml-map "ip_static_cfg:Tag";
112 range "1..4294967295";
114 description "Tag for this path";
117 xr:xr-xml-map "ip_static_cfg:Permanent";
120 description "If set, path is permanent";
123 xr:xr-xml-map "ip_static_cfg:VRFLable";
125 range "0..4294967295";
128 description "VRF LABEL";
131 xr:xr-xml-map "ip_static_cfg:TunnelID";
136 description "Tunnel ID for this path";
139 xr:xr-xml-map "ip_static_cfg:ObjectName";
140 type xr:Cisco-ios-xr-string {
143 description "Name of the object to track";
146 xr:xr-xml-map "ip_static_cfg:Description";
148 description "Short Description of Static Route";
151 xr:xr-xml-map "ip_static_cfg:Load_Metric";
156 description "UCMP load metric";
160 list vrf-next-hop-interface-name {
161 key "interface-name";
163 "A forwarding interface or Segement Routing mpls
164 path name and/or the address of a nexthop router
165 for this route (one of these must be specified)";
166 leaf interface-name {
167 xr:xr-xml-map "ip_static_cfg:InterfaceName";
168 type xr:Interface-name;
169 description "Forwarding interface";
171 uses VRF-NEXT-HOP-CONTENT;
174 list vrf-next-hop-interface-name-next-hop-address {
175 key "interface-name next-hop-address";
177 "A forwarding interface or Segement Routing mpls
178 path name and/or the address of a nexthop router
179 for this route (one of these must be specified)";
180 leaf interface-name {
181 xr:xr-xml-map "ip_static_cfg:InterfaceName";
182 type xr:Interface-name;
183 description "Forwarding interface";
185 leaf next-hop-address {
186 xr:xr-xml-map "ip_static_cfg:NextHopAddress";
187 type inet:ip-address-no-zone;
188 description "Next hop address";
190 uses VRF-NEXT-HOP-CONTENT;
193 list vrf-next-hop-next-hop-address {
194 key "next-hop-address";
196 "A forwarding interface or Segement Routing mpls
197 path name and/or the address of a nexthop router
198 for this route (one of these must be specified)";
199 leaf next-hop-address {
200 xr:xr-xml-map "ip_static_cfg:NextHopAddress";
201 type inet:ip-address-no-zone;
202 description "Next hop address";
204 uses VRF-NEXT-HOP-CONTENT;
207 list vrf-next-hop-next-hop-address-explicit-path-name {
208 key "next-hop-address explicit-path-name";
210 "A forwarding interface or Segement Routing mpls
211 path name and/or the address of a nexthop router
212 for this route (one of these must be specified)";
213 leaf next-hop-address {
214 xr:xr-xml-map "ip_static_cfg:NextHopAddress";
215 type inet:ip-address-no-zone;
216 description "Next hop address";
218 leaf explicit-path-name {
219 xr:xr-xml-map "ip_static_cfg:ExplicitPathName";
220 type xr:Cisco-ios-xr-string;
221 description "Segment Routing mpls path name";
223 uses VRF-NEXT-HOP-CONTENT;
226 list vrf-next-hop-explicit-path-name {
227 key "explicit-path-name";
229 "A forwarding interface or Segement Routing mpls
230 path name and/or the address of a nexthop router
231 for this route (one of these must be specified)";
232 leaf explicit-path-name {
233 xr:xr-xml-map "ip_static_cfg:ExplicitPathName";
234 type xr:Cisco-ios-xr-string;
235 description "Segment Routing mpls path name";
237 uses VRF-NEXT-HOP-CONTENT;
241 grouping VRF-SEG-ROUTE {
242 description "Common node of vrf-prefix, vrf-prefix-topology";
244 container vrf-seg-route {
245 xr:xr-xml-map "ip_static_cfg:VRFSegRoute";
246 description "A static segment route";
248 container segment-route-next-hop-table {
249 xr:xr-xml-map "ip_static_cfg:SegmentRouteNextHopTable";
251 "The set of nexthop information configured for
258 grouping TOPOLOGY-TABLE {
259 description "Common node of vrf-unicast, vrf-multicast";
261 container topologies {
262 xr:xr-xml-map "ip_static_cfg:TopologyTable";
263 description "Topology static configuration container";
266 xr:xr-xml-map "ip_static_cfg:Topology";
268 description "Topology static configuration";
270 xr:xr-xml-map "ip_static_cfg:TopologyName";
271 type xr:Cisco-ios-xr-string;
272 description "Topology name";
274 uses VRF-PREFIX-TOPOLOGY-TABLE;
279 grouping VRF-PREFIX-TABLE {
280 description "Common node of vrf-unicast, vrf-multicast";
282 container vrf-prefixes {
283 xr:xr-xml-map "ip_static_cfg:VRFPrefixTable";
284 description "The set of all Static Topologies for this AFI.";
287 xr:xr-xml-map "ip_static_cfg:VRFPrefix";
288 key "prefix prefix-length";
289 description "A static route";
291 xr:xr-xml-map "ip_static_cfg:Prefix";
292 type inet:ip-address-no-zone;
293 description "Destination prefix";
296 xr:xr-xml-map "ip_static_cfg:PrefixLength";
300 description "Destination prefix length";
308 grouping ADDRESS-FAMILY {
309 description "Common node of default-vrf, vrf";
311 container address-family {
312 xr:xr-xml-map "ip_static_cfg:AddressFamily";
313 description "Address family configuration";
316 xr:xr-xml-map "ip_static_cfg:VRFIPV4";
317 description "IPv4 static configuration";
323 xr:xr-xml-map "ip_static_cfg:VRFIPV6";
324 description "IPv6 static configuration";
331 grouping VRF-PREFIX-TOPOLOGY-TABLE {
332 description "Common node of default-topology, topology";
334 container vrf-prefix-topologies {
335 xr:xr-xml-map "ip_static_cfg:VRFPrefixTopologyTable";
336 description "The set of all Static Topologies for this AFI.";
338 list vrf-prefix-topology {
339 xr:xr-xml-map "ip_static_cfg:VRFPrefixTopology";
340 key "prefix prefix-length";
341 description "A static route";
343 xr:xr-xml-map "ip_static_cfg:Prefix";
344 type inet:ip-address-no-zone;
345 description "Destination prefix";
348 xr:xr-xml-map "ip_static_cfg:PrefixLength";
352 description "Destination prefix length";
360 grouping DEFAULT-TOPOLOGY {
361 description "Common node of vrf-unicast, vrf-multicast";
363 container default-topology {
364 xr:xr-xml-map "ip_static_cfg:DefaultTopology";
365 description "Default topology configuration";
366 uses VRF-PREFIX-TOPOLOGY-TABLE;
370 grouping VRF-UNICAST {
371 description "Common node of vrfipv4, vrfipv6";
373 container vrf-unicast {
374 xr:xr-xml-map "ip_static_cfg:VRFUnicast";
375 description "Unicast static configuration";
377 uses VRF-PREFIX-TABLE;
378 uses DEFAULT-TOPOLOGY;
382 grouping VRF-MULTICAST {
383 description "Common node of vrfipv4, vrfipv6";
385 container vrf-multicast {
386 xr:xr-xml-map "ip_static_cfg:VRFMulticast";
387 description "Multicast static configuration";
389 uses VRF-PREFIX-TABLE;
390 uses DEFAULT-TOPOLOGY;
394 container router-static {
395 xr:xr-xml-map "ip_static_cfg:RouterStatic";
396 description "This class represents router static configuration";
399 xr:xr-xml-map "ip_static_cfg:VRFTable";
400 description "VRF static configuration container";
403 xr:xr-xml-map "ip_static_cfg:VRF";
405 description "VRF static configuration";
407 xr:xr-xml-map "ip_static_cfg:VRFName";
408 type xr:Cisco-ios-xr-string;
409 description "VRF name";
415 container default-vrf {
416 xr:xr-xml-map "ip_static_cfg:DefaultVRF";
417 description "Default VRF configuration";
421 container maximum-routes {
422 xr:xr-xml-map "ip_static_cfg:MaximumRoutes";
424 "The maximum number of static routes that can be
427 xr:xr-xml-map "ip_static_cfg:IPV6Routes";
433 "The maximum number of static routes that can be
434 configured for IPv6 AFI.";
437 xr:xr-xml-map "ip_static_cfg:IPV4Routes";
443 "The maximum number of static routes that can be
444 configured for IPv4 AFI.";