From d701b812258d0e84a5d5cce0296b004e364a1a3b Mon Sep 17 00:00:00 2001 From: subhash kumar singh Date: Thu, 21 Dec 2017 14:06:08 +0000 Subject: 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 --- .../META-INF/services/org.onap.cli.fw.cmd.OnapCommand | 1 + .../open-cli-schema/snmp/default_input_parameters_snmp.yaml | 10 ++++++++++ profiles/snmp/src/main/resources/open-cli-snmp.properties | 9 +++++++++ 3 files changed, 20 insertions(+) create mode 100644 profiles/snmp/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand create mode 100644 profiles/snmp/src/main/resources/open-cli-schema/snmp/default_input_parameters_snmp.yaml create mode 100644 profiles/snmp/src/main/resources/open-cli-snmp.properties (limited to 'profiles/snmp/src/main/resources') diff --git a/profiles/snmp/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand b/profiles/snmp/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand new file mode 100644 index 00000000..59d23e1a --- /dev/null +++ b/profiles/snmp/src/main/resources/META-INF/services/org.onap.cli.fw.cmd.OnapCommand @@ -0,0 +1 @@ +org.onap.cli.fw.snmp.cmd.OnapSnmpCommand \ No newline at end of file diff --git a/profiles/snmp/src/main/resources/open-cli-schema/snmp/default_input_parameters_snmp.yaml b/profiles/snmp/src/main/resources/open-cli-schema/snmp/default_input_parameters_snmp.yaml new file mode 100644 index 00000000..ecce7130 --- /dev/null +++ b/profiles/snmp/src/main/resources/open-cli-schema/snmp/default_input_parameters_snmp.yaml @@ -0,0 +1,10 @@ +open_cli_schema_version: 1.0 + +parameters: + - name: agent + description: agent address (eg. "udp:127.0.0.1/161") + type: string + short_option: x + long_option: agent + is_optional: false + is_default_param: true \ No newline at end of file diff --git a/profiles/snmp/src/main/resources/open-cli-snmp.properties b/profiles/snmp/src/main/resources/open-cli-snmp.properties new file mode 100644 index 00000000..e8ee5af5 --- /dev/null +++ b/profiles/snmp/src/main/resources/open-cli-snmp.properties @@ -0,0 +1,9 @@ +cli.ignore_auth=false + +#schema validation +#snmp + +cli.schema.snmp_request_params=command,version,result_map +cli.schema.snmp_request_mandatory_params=command,version + +cli.schema.snmp_methods=get \ No newline at end of file -- cgit 1.2.3-korg