blob: d4fb1db7773ada71f25b2034881015a8bc61d19a [file] [log] [blame]
Tomáš Peckadac27d42021-02-22 13:20:05 +01001module czechlight-network {
2 yang-version 1.1;
3 namespace "http://czechlight.cesnet.cz/yang/czechlight-network";
4 prefix cla-network;
5
6 import ietf-interfaces {
7 prefix if;
8 }
9
Tomáš Pecka2a4ea7b2021-03-30 17:01:37 +020010 import ietf-routing {
11 prefix rt;
12 }
13
Tomáš Peckadac27d42021-02-22 13:20:05 +010014 import ietf-ip {
15 prefix ip;
16 }
17
18 import iana-if-type {
19 prefix ianaift;
20 }
21
Tomáš Pecka2d87fd12021-05-30 14:20:28 +020022 import ietf-ipv6-unicast-routing {
23 prefix v6ur;
24 }
25
Tomáš Peckadac27d42021-02-22 13:20:05 +010026 revision 2021-02-22 {
27 description
28 "Initial version. Removes interface statistics in ietf-interfaces model, removes deprecated container
29 ietf-interfaces:interface-state and makes the nodes in ietf-interfaces model config false.";
30 }
31
Tomáš Pecka44131292021-03-10 12:30:43 +010032 // We don't support discontinuity time (yet)
33 deviation /if:interfaces/if:interface/if:statistics/if:discontinuity-time { deviate not-supported; }
Tomáš Peckadac27d42021-02-22 13:20:05 +010034
Tomáš Pecka2d87fd12021-05-30 14:20:28 +020035 // IPv6 router advertisements is not supported
36 deviation /if:interfaces/if:interface/ip:ipv6/v6ur:ipv6-router-advertisements { deviate not-supported; }
37
Tomáš Pecka2a4ea7b2021-03-30 17:01:37 +020038 // Remove deprecated ietf-interfaces-state and ietf-routing containers. Beware, rt:routing-state references if:interfaces-state.
39 deviation /rt:routing-state { deviate not-supported; }
Tomáš Peckadac27d42021-02-22 13:20:05 +010040 deviation /if:interfaces-state { deviate not-supported; }
41
Tomáš Pecka2a4ea7b2021-03-30 17:01:37 +020042 // As of now we implement the models to contain operational data only
Tomáš Peckadac27d42021-02-22 13:20:05 +010043 deviation /if:interfaces { deviate add { config false; } }
Tomáš Pecka2a4ea7b2021-03-30 17:01:37 +020044 deviation /rt:routing { deviate add { config false; } }
Tomáš Pecka14e663e2021-03-08 13:35:33 +010045
46 // IPv6 address autoconfiguration is not supported
47 deviation /if:interfaces/if:interface/ip:ipv6/ip:autoconf { deviate not-supported; }
Tomáš Pecka91d5fe72021-03-31 18:42:39 +020048
49 identity dhcp {
50 base rt:routing-protocol;
51 description "Identity for route installed by DHCP.";
52 }
53 identity ra {
54 base rt:routing-protocol;
55 description "Identity for route installed by router advertisement.";
56 }
Tomáš Peckadac27d42021-02-22 13:20:05 +010057}