summaryrefslogtreecommitdiffstats
path: root/samples/interfaces/models/src
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-08-11 13:05:32 +0200
committerMaros Marsalek <mmarsale@cisco.com>2016-08-19 12:49:56 +0200
commit54a3992118f4455b99fee8f3a648145bcf2b8e65 (patch)
tree5d3956113ebc593e1068808673e9ea737f9e3cab /samples/interfaces/models/src
parent83efb0ff929801a5a2ab89f6b66c07ed940a309d (diff)
HONEYCOMB-23 Add plugin sample and sample minimal distribution
Change-Id: Idbcdc5a52a9bfd3b90c039f1a1e58c258cd01849 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'samples/interfaces/models/src')
-rw-r--r--samples/interfaces/models/src/main/yang/openconfig-interfaces-notification.yang60
1 files changed, 60 insertions, 0 deletions
diff --git a/samples/interfaces/models/src/main/yang/openconfig-interfaces-notification.yang b/samples/interfaces/models/src/main/yang/openconfig-interfaces-notification.yang
new file mode 100644
index 000000000..456fab4df
--- /dev/null
+++ b/samples/interfaces/models/src/main/yang/openconfig-interfaces-notification.yang
@@ -0,0 +1,60 @@
+module sample-interfaces {
+
+ namespace "io:fd:honeycomb:samples:interfaces";
+
+ prefix "hc-s-if";
+
+ description "Sample interface model";
+
+ revision "2016-08-10" {
+ description "Initial revision";
+ }
+
+ typedef interface-id {
+ type string;
+ }
+
+ grouping interface-common {
+ leaf interface-id {
+ type interface-id;
+ }
+
+ leaf mtu {
+ type uint16;
+ }
+ }
+
+ grouping interface-state {
+ container counters {
+ leaf total-packets {
+ type uint32;
+ }
+ leaf dropped-packets {
+ type uint32;
+ }
+ }
+ }
+
+ container interfaces {
+ list interface {
+ key "interface-id";
+ uses interface-common;
+ }
+ }
+
+ container interfaces-state {
+ config false;
+
+ list interface {
+ key "interface-id";
+ uses interface-common;
+ uses interface-state;
+ }
+ }
+
+ notification interface-up {
+ leaf interface-id {
+ type interface-id;
+ }
+ }
+} \ No newline at end of file