From 10cd619b5e6e34b22b3239a2516f1ca491c87a3a Mon Sep 17 00:00:00 2001 From: "CLAPP, GEORGE H (gc731h)" Date: Fri, 6 Jul 2018 20:12:26 +0000 Subject: First draft Energy Savings POLICY_TO_SDNR handler Initial commit of a karaf feature to process a DMaaP topic sent by Policy to SDNR as part of the Energy Savings project. The topic name is POLICY_TO_SDNR, and the content is a large and complex JSON structure. Currently, this feature simply forwards the JSON string to a server and returns the response of the server to Policy in topic SDNR_TO_POLICY. Change-Id: I84cb891c98fb23f5dfe44a9e3ad8ce69afb72405 Issue-ID: CCSDK-350 Signed-off-by: George Clapp --- sdnr/northbound/energysavings/model/pom.xml | 58 ++++++++++++++++++++++ .../model/src/main/yang/Energysavings.yang | 22 ++++++++ 2 files changed, 80 insertions(+) create mode 100644 sdnr/northbound/energysavings/model/pom.xml create mode 100644 sdnr/northbound/energysavings/model/src/main/yang/Energysavings.yang (limited to 'sdnr/northbound/energysavings/model') diff --git a/sdnr/northbound/energysavings/model/pom.xml b/sdnr/northbound/energysavings/model/pom.xml new file mode 100644 index 000000000..d22fbfc34 --- /dev/null +++ b/sdnr/northbound/energysavings/model/pom.xml @@ -0,0 +1,58 @@ + + + 4.0.0 + + + org.onap.ccsdk.parent + binding-parent + 1.0.5-SNAPSHOT + + + + org.onap.ccsdk.features.sdnr.northbound + energysavings-model + 0.2.4-SNAPSHOT + bundle + + + + org.opendaylight.mdsal.model + ietf-inet-types + + + org.opendaylight.mdsal.model + ietf-yang-types + + + + + + + org.eclipse.m2e + lifecycle-mapping + 1.0.0 + + + + + + org.codehaus.mojo + properties-maven-plugin + [1.0.0,) + + set-system-properties + + + + + + + + + + + + + + diff --git a/sdnr/northbound/energysavings/model/src/main/yang/Energysavings.yang b/sdnr/northbound/energysavings/model/src/main/yang/Energysavings.yang new file mode 100644 index 000000000..572a9d432 --- /dev/null +++ b/sdnr/northbound/energysavings/model/src/main/yang/Energysavings.yang @@ -0,0 +1,22 @@ +module energysavings { + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:energysavings"; + prefix "energysavings"; + + revision "2015-01-05" { + description "Initial revision of energysavings model"; + } + + rpc payload { + input { + leaf payload { + type string; + } + } + output { + leaf result { + type string; + } + } + } +} -- cgit 1.2.3-korg