From 54a3992118f4455b99fee8f3a648145bcf2b8e65 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Thu, 11 Aug 2016 13:05:32 +0200 Subject: HONEYCOMB-23 Add plugin sample and sample minimal distribution Change-Id: Idbcdc5a52a9bfd3b90c039f1a1e58c258cd01849 Signed-off-by: Maros Marsalek --- samples/interfaces/models/pom.xml | 75 ++++++++++++++++++++++ .../yang/openconfig-interfaces-notification.yang | 60 +++++++++++++++++ 2 files changed, 135 insertions(+) create mode 100644 samples/interfaces/models/pom.xml create mode 100644 samples/interfaces/models/src/main/yang/openconfig-interfaces-notification.yang (limited to 'samples/interfaces/models') diff --git a/samples/interfaces/models/pom.xml b/samples/interfaces/models/pom.xml new file mode 100644 index 000000000..d78d6f496 --- /dev/null +++ b/samples/interfaces/models/pom.xml @@ -0,0 +1,75 @@ + + + + + io.fd.honeycomb.common + api-parent + 1.0.0-SNAPSHOT + ../../../common/api-parent + + + 4.0.0 + io.fd.honeycomb.samples.interfaces + interfaces-models + 1.0.0-SNAPSHOT + bundle + + + + + org.opendaylight.mdsal.model + mdsal-model-artifacts + 0.8.2-Beryllium-SR2 + pom + import + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 -- cgit 1.2.3-korg