blob: 4b11eee9e5ae780099c3c3bc1769bf294c4b1137 [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
22 revision 2021-02-22 {
23 description
24 "Initial version. Removes interface statistics in ietf-interfaces model, removes deprecated container
25 ietf-interfaces:interface-state and makes the nodes in ietf-interfaces model config false.";
26 }
27
Tomáš Pecka44131292021-03-10 12:30:43 +010028 // We don't support discontinuity time (yet)
29 deviation /if:interfaces/if:interface/if:statistics/if:discontinuity-time { deviate not-supported; }
Tomáš Peckadac27d42021-02-22 13:20:05 +010030
Tomáš Pecka2a4ea7b2021-03-30 17:01:37 +020031 // Remove deprecated ietf-interfaces-state and ietf-routing containers. Beware, rt:routing-state references if:interfaces-state.
32 deviation /rt:routing-state { deviate not-supported; }
Tomáš Peckadac27d42021-02-22 13:20:05 +010033 deviation /if:interfaces-state { deviate not-supported; }
34
Tomáš Pecka2a4ea7b2021-03-30 17:01:37 +020035 // As of now we implement the models to contain operational data only
Tomáš Peckadac27d42021-02-22 13:20:05 +010036 deviation /if:interfaces { deviate add { config false; } }
Tomáš Pecka2a4ea7b2021-03-30 17:01:37 +020037 deviation /rt:routing { deviate add { config false; } }
Tomáš Pecka14e663e2021-03-08 13:35:33 +010038
39 // IPv6 address autoconfiguration is not supported
40 deviation /if:interfaces/if:interface/ip:ipv6/ip:autoconf { deviate not-supported; }
Tomáš Pecka91d5fe72021-03-31 18:42:39 +020041
42 identity dhcp {
43 base rt:routing-protocol;
44 description "Identity for route installed by DHCP.";
45 }
46 identity ra {
47 base rt:routing-protocol;
48 description "Identity for route installed by router advertisement.";
49 }
Tomáš Peckadac27d42021-02-22 13:20:05 +010050}