yang: czechlight-network (ietf-interfaces, ietf-ip) model
Introduce ietf-interfaces (RFC 8343) [1] and ietf-ip (RFC 8344) [2]
models to velia.
We are going to implement these models for interface management.
However, in the first stages we don't want to implement interface
statistics (/ietf-interfaces:interfaces/interface/statistics) container.
Also, for simplicity, we want to start with read-only access for the
interface nodes. For that we introduce czechlight-network YANG model
which adds the mentioned limitations to the ietf-interface tree.
ietf-ip and iana-if-type YANG model files are taken from YangModels
repository [3].
[1] https://tools.ietf.org/html/rfc8343
[2] https://tools.ietf.org/html/rfc8344
[3] https://github.com/YangModels/yang/tree/fb9c099/standard/ietf/RFC
Change-Id: Ic9e03f298de818eaf3508f7397263e0453be6e2e
diff --git a/yang/czechlight-network@2021-02-22.yang b/yang/czechlight-network@2021-02-22.yang
new file mode 100644
index 0000000..92a8aad
--- /dev/null
+++ b/yang/czechlight-network@2021-02-22.yang
@@ -0,0 +1,32 @@
+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-ip {
+ prefix ip;
+ }
+
+ import iana-if-type {
+ prefix ianaift;
+ }
+
+ 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 interface statistics (yet)
+ deviation /if:interfaces/if:interface/if:statistics { deviate not-supported; }
+
+ // Remove deprecated interfaces-state container
+ deviation /if:interfaces-state { deviate not-supported; }
+
+ // As of now we implement the model to contain operational data only
+ deviation /if:interfaces { deviate add { config false; } }
+}