| module czechlight-network { |
| yang-version 1.1; |
| namespace "http://czechlight.cesnet.cz/yang/czechlight-network"; |
| prefix cla-network; |
| |
| import ietf-interfaces { |
| prefix if; |
| } |
| |
| import ietf-routing { |
| prefix rt; |
| } |
| |
| import ietf-ip { |
| prefix ip; |
| } |
| |
| import iana-if-type { |
| prefix ianaift; |
| } |
| |
| import ietf-ipv6-unicast-routing { |
| prefix v6ur; |
| } |
| |
| revision 2021-02-22 { |
| description |
| "Initial version. Removes interface statistics in ietf-interfaces model, removes deprecated container |
| ietf-interfaces:interface-state and makes the nodes in ietf-interfaces model config false."; |
| } |
| |
| // We don't support discontinuity time (yet) |
| deviation /if:interfaces/if:interface/if:statistics/if:discontinuity-time { deviate not-supported; } |
| |
| // IPv6 router advertisements is not supported |
| deviation /if:interfaces/if:interface/ip:ipv6/v6ur:ipv6-router-advertisements { deviate not-supported; } |
| |
| // Remove deprecated ietf-interfaces-state and ietf-routing containers. Beware, rt:routing-state references if:interfaces-state. |
| deviation /rt:routing-state { deviate not-supported; } |
| deviation /if:interfaces-state { deviate not-supported; } |
| |
| // As of now we implement the models to contain operational data only |
| deviation /if:interfaces { deviate add { config false; } } |
| deviation /rt:routing { deviate add { config false; } } |
| |
| // IPv6 address autoconfiguration is not supported |
| deviation /if:interfaces/if:interface/ip:ipv6/ip:autoconf { deviate not-supported; } |
| |
| identity dhcp { |
| base rt:routing-protocol; |
| description "Identity for route installed by DHCP."; |
| } |
| identity ra { |
| base rt:routing-protocol; |
| description "Identity for route installed by router advertisement."; |
| } |
| } |