1 module org-openroadm-ipv4-unicast-routing {
2 namespace "http://org/openroadm/ipv4-unicast-routing";
3 prefix org-openroadm-ipv4-unicast-routing;
5 import org-openroadm-routing {
6 prefix org-openroadm-routing;
7 revision-date 2020-05-29;
9 import ietf-inet-types {
11 revision-date 2013-07-15;
13 import org-openroadm-device {
14 prefix org-openroadm-device;
15 revision-date 2020-05-29;
23 "This model defines Yang model for IPv4 unicast routing.
25 This model reuses data items defined in the IETF YANG model for
26 interfaces described by RFC 8022.
28 Some attributes which are not required in Open ROADM MSA are removed.
29 Yang file included are changed to fit into Open ROADM MSA yang structure.
31 IETF code is subject to the following copyright and license:
32 Copyright (c) IETF Trust and the persons identified as authors of
36 Redistribution and use in source and binary forms, with or without
37 modification, is permitted pursuant to, and subject to the license
38 terms contained in, the Simplified BSD License set forth in
39 Section 4.c of the IETF Trust's Legal Provisions Relating
40 to IETF Documents (http://trustee.ietf.org/license-info).";
70 "RFC XXXX: A YANG Data Model for Routing Management";
73 identity ipv4-unicast {
74 base org-openroadm-routing:ipv4;
76 "This identity represents the IPv4 unicast address family.";
79 grouping ipv4-uni-grp {
82 "Configuration of a 'static' pseudo-protocol instance
83 consists of a list of routes.";
85 key "destination-prefix";
89 "A user-ordered list of static routes.";
90 leaf destination-prefix {
91 type inet:ipv4-prefix;
94 "IPv4 destination prefix.";
99 "Textual description of the route.";
103 "Configuration of next-hop.";
104 uses org-openroadm-routing:next-hop-content {
105 augment "next-hop-options" {
107 "Add next-hop address case.";
108 leaf next-hop-address {
109 type inet:ipv4-address;
111 "IPv4 address of the next-hop.";
122 augment "/org-openroadm-device:org-openroadm-device/org-openroadm-routing:routing/org-openroadm-routing:routing-instance/org-openroadm-routing:routing-protocols/org-openroadm-routing:routing-protocol/org-openroadm-routing:static-routes" {
124 "This augment defines the configuration of the 'static'
125 pseudo-protocol with data specific to IPv4 unicast.";