aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/yang/openconfig/openconfig-qos.yang
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2018-12-21 04:48:35 +0000
committerGerrit Code Review <gerrit@fd.io>2018-12-21 04:48:35 +0000
commit8791f3211bd61d213e4ea4a0af66a14bb2e3a239 (patch)
tree846a89e6ca81d639d024e5509654766d3581b7ea /src/plugins/yang/openconfig/openconfig-qos.yang
parentde7bb8f2b0cdd2dfeba0586213bd415c9bb3fd18 (diff)
parent639509ad42f8bd6baf9b6f5b668a9bbfb05108d4 (diff)
Merge "Add Openconfig YANG modules."
Diffstat (limited to 'src/plugins/yang/openconfig/openconfig-qos.yang')
-rw-r--r--src/plugins/yang/openconfig/openconfig-qos.yang90
1 files changed, 90 insertions, 0 deletions
diff --git a/src/plugins/yang/openconfig/openconfig-qos.yang b/src/plugins/yang/openconfig/openconfig-qos.yang
new file mode 100644
index 0000000..7bda3ae
--- /dev/null
+++ b/src/plugins/yang/openconfig/openconfig-qos.yang
@@ -0,0 +1,90 @@
+module openconfig-qos {
+
+ yang-version "1";
+
+ // namespace
+ namespace "http://openconfig.net/yang/qos";
+
+ prefix "oc-qos";
+
+ // import some basic types
+ import openconfig-extensions { prefix oc-ext; }
+
+ // include submodules
+ include openconfig-qos-interfaces;
+ include openconfig-qos-elements;
+
+
+ // meta
+ organization "OpenConfig working group";
+
+ contact
+ "OpenConfig working group
+ www.openconfig.net";
+
+ description
+ "This module defines configuration and operational state data
+ related to network quality-of-service.";
+
+ oc-ext:openconfig-version "0.2.0";
+
+ revision "2016-12-16" {
+ description
+ "Fix incorrect interface-ref placement";
+ reference "0.2.0";
+ }
+
+ // grouping statements
+ grouping qos-config {
+ description
+ "Configuration data for global QoS";
+ }
+
+ grouping qos-state {
+ description
+ "Operational state data for global QoS";
+ }
+
+ grouping qos-top {
+ description
+ "Top-level grouping for QoS model";
+
+ container qos {
+ description
+ "Top-level container for QoS data";
+
+ container config {
+ description
+ "Configuration data for global QoS";
+
+ uses qos-config;
+ }
+
+ container state {
+ config false;
+ description
+ "Operational state data for global QoS";
+
+ uses qos-config;
+ uses qos-state;
+ }
+
+ uses qos-interfaces-top;
+ uses qos-classifier-top;
+ uses qos-forwarding-group-top;
+ uses qos-queue-top;
+ uses qos-scheduler-top;
+ }
+ }
+
+ // data definition statements
+
+ uses qos-top;
+
+ // augment statements
+
+ // rpc statements
+
+ // notification statements
+
+}