Tomáš Pecka | dac27d4 | 2021-02-22 13:20:05 +0100 | [diff] [blame] | 1 | module 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áš Pecka | 2a4ea7b | 2021-03-30 17:01:37 +0200 | [diff] [blame] | 10 | import ietf-routing { |
| 11 | prefix rt; |
| 12 | } |
| 13 | |
Tomáš Pecka | dac27d4 | 2021-02-22 13:20:05 +0100 | [diff] [blame] | 14 | 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áš Pecka | 4413129 | 2021-03-10 12:30:43 +0100 | [diff] [blame] | 28 | // We don't support discontinuity time (yet) |
| 29 | deviation /if:interfaces/if:interface/if:statistics/if:discontinuity-time { deviate not-supported; } |
Tomáš Pecka | dac27d4 | 2021-02-22 13:20:05 +0100 | [diff] [blame] | 30 | |
Tomáš Pecka | 2a4ea7b | 2021-03-30 17:01:37 +0200 | [diff] [blame] | 31 | // 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áš Pecka | dac27d4 | 2021-02-22 13:20:05 +0100 | [diff] [blame] | 33 | deviation /if:interfaces-state { deviate not-supported; } |
| 34 | |
Tomáš Pecka | 2a4ea7b | 2021-03-30 17:01:37 +0200 | [diff] [blame] | 35 | // As of now we implement the models to contain operational data only |
Tomáš Pecka | dac27d4 | 2021-02-22 13:20:05 +0100 | [diff] [blame] | 36 | deviation /if:interfaces { deviate add { config false; } } |
Tomáš Pecka | 2a4ea7b | 2021-03-30 17:01:37 +0200 | [diff] [blame] | 37 | deviation /rt:routing { deviate add { config false; } } |
Tomáš Pecka | 14e663e | 2021-03-08 13:35:33 +0100 | [diff] [blame] | 38 | |
| 39 | // IPv6 address autoconfiguration is not supported |
| 40 | deviation /if:interfaces/if:interface/ip:ipv6/ip:autoconf { deviate not-supported; } |
Tomáš Pecka | 91d5fe7 | 2021-03-31 18:42:39 +0200 | [diff] [blame] | 41 | |
| 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áš Pecka | dac27d4 | 2021-02-22 13:20:05 +0100 | [diff] [blame] | 50 | } |