aboutsummaryrefslogtreecommitdiffstats
path: root/products
diff options
context:
space:
mode:
Diffstat (limited to 'products')
-rw-r--r--products/pom.xml5
-rw-r--r--products/sample/src/main/resources/open-cli-schema/hello-world-snmp.yaml29
2 files changed, 34 insertions, 0 deletions
diff --git a/products/pom.xml b/products/pom.xml
index 725feedf..0ddfeef1 100644
--- a/products/pom.xml
+++ b/products/pom.xml
@@ -37,6 +37,11 @@
<artifactId>cli-profiles-http</artifactId>
<version>${project.parent.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.onap.cli</groupId>
+ <artifactId>cli-profiles-snmp</artifactId>
+ <version>${project.parent.version}</version>
+ </dependency>
</dependencies>
<profiles>
<profile>
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
+
+