aboutsummaryrefslogtreecommitdiffstats
path: root/products/sample
diff options
context:
space:
mode:
authorsubhash kumar singh <subhash.kumar.singh@huawei.com>2017-12-21 14:06:08 +0000
committersubhash kumar singh <subhash.kumar.singh@huawei.com>2018-01-31 05:01:22 +0000
commitd701b812258d0e84a5d5cce0296b004e364a1a3b (patch)
tree182240c7531ab3dd8167b3538290171301b8347c /products/sample
parenta158de7f4f197d65adc7332bd3ad59fb1203a085 (diff)
Add snmp profile for cli
Add snmp profile for cli to support snmp get operation. Issue-ID: CLI-85 Change-Id: I7bebd38f2b3089df80c71a5581b23c5408c6d3ab Signed-off-by: subhash kumar singh <subhash.kumar.singh@huawei.com>
Diffstat (limited to 'products/sample')
-rw-r--r--products/sample/src/main/resources/open-cli-schema/hello-world-snmp.yaml29
1 files changed, 29 insertions, 0 deletions
diff --git a/products/sample/src/main/resources/open-cli-schema/hello-world-snmp.yaml b/products/sample/src/main/resources/open-cli-schema/hello-world-snmp.yaml
new file mode 100644
index 00000000..988ca1a8
--- /dev/null
+++ b/products/sample/src/main/resources/open-cli-schema/hello-world-snmp.yaml
@@ -0,0 +1,29 @@
+open_cli_schema_version: 1.0
+name: hello-world-snmp
+description: Sample yaml usin snmp profile
+
+info:
+ product: sample-helloworld
+ service: hello-world
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+results:
+ direction: portrait
+ attributes:
+ - name: hostname
+ description: hostname of agent
+ scope: short
+ type: string
+ - name: location
+ description: hostname of agent
+ scope: short
+ type: string
+
+snmp:
+ result_map:
+ - hostname: 1.3.6.1.2.1.1.5.0
+ - location: 1.3.6.1.2.1.1.6.0
+ command: get
+ version: v1
+
+