Merge "Fix bug when creating SRG termination points"
[transportpce.git] / ordmodels / device / src / main / yang / org-openroadm-ipv6-unicast-routing@2020-05-29.yang
1 module org-openroadm-ipv6-unicast-routing {
2   namespace "http://org/openroadm/ipv6-unicast-routing";
3   prefix org-openroadm-ipv6-unicast-routing;
4
5   import org-openroadm-routing {
6     prefix org-openroadm-routing;
7     revision-date 2020-05-29;
8   }
9   import ietf-inet-types {
10     prefix inet;
11     revision-date 2013-07-15;
12   }
13   import org-openroadm-device {
14     prefix org-openroadm-device;
15     revision-date 2020-05-29;
16   }
17
18   organization
19     "Open ROADM MSA";
20   contact
21     "OpenROADM.org";
22   description
23     "This model defines Yang model for IPv6 unicast routing.
24
25      This model reuses data items defined in the IETF YANG model for
26      interfaces described by RFC 8022.
27
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.
30
31      IETF code is subject to the following copyright and license:
32      Copyright (c) IETF Trust and the persons identified as authors of
33      the code.
34      All rights reserved.
35
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).";
41
42   revision 2020-05-29 {
43     description
44       "Version 7.1.0";
45   }
46   revision 2020-03-27 {
47     description
48       "Version 7.0.0";
49   }
50   revision 2019-11-29 {
51     description
52       "Version 6.1.0";
53   }
54   revision 2019-09-27 {
55     description
56       "Version 6.0.0";
57   }
58   revision 2019-05-31 {
59     description
60       "Version 5.1.0";
61   }
62   revision 2019-03-29 {
63     description
64       "Version 5.0.0";
65   }
66   revision 2015-05-25 {
67     description
68       "Initial revision.";
69     reference
70       "RFC XXXX: A YANG Data Model for Routing Management";
71   }
72
73   identity ipv6-unicast {
74     base org-openroadm-routing:ipv6;
75     description
76       "This identity represents the IPv6 unicast address family.";
77   }
78
79   grouping ipv6-uni-grp {
80     container ipv6 {
81       description
82         "Configuration of a 'static' pseudo-protocol instance
83          consists of a list of routes.";
84       list route {
85         key "destination-prefix";
86         ordered-by user;
87         description
88           "A user-ordered list of static routes.";
89         leaf destination-prefix {
90           type inet:ipv6-prefix;
91           mandatory true;
92           description
93             "IPv6 destination prefix.";
94         }
95         leaf description {
96           type string;
97           description
98             "Textual description of the route.";
99         }
100         container next-hop {
101           description
102             "Configuration of next-hop.";
103           uses org-openroadm-routing:next-hop-content {
104             augment "next-hop-options" {
105               description
106                 "Add next-hop address case.";
107               leaf next-hop-address {
108                 type inet:ipv6-address;
109                 description
110                   "IPv6 address of the next-hop.";
111               }
112             }
113           }
114         }
115       }
116     }
117     description
118       "Grouping for IPv6";
119   }
120
121   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" {
122     description
123       "This augment defines the configuration of the 'static'
124        pseudo-protocol with data specific to IPv6 unicast.";
125     uses ipv6-uni-grp;
126   }
127 }