diff options
author | 2021-04-14 14:15:41 -0400 | |
---|---|---|
committer | 2021-04-19 17:45:33 +0000 | |
commit | 43228cc2a7f06d5e1b6e398023684c80d9ed1270 (patch) | |
tree | 1128649a01f6da9e4941adfb30f1e95715aa14d9 /plugins/restconf-client/provider/src/test/test-yang/SLI-API | |
parent | 19c7de1f524478ea351f4d2dcd76508455a75ba8 (diff) |
Fix yangparser invocation
Fix YangParser invocation in restconf-provider to address breaking
change in ODL Aluminum release.
Issue-ID: SDNC-1515
Signed-off-by: Dan Timoney <dtimoney@att.com>
Change-Id: I9974889bfa9bbd11077c95275c0cb8ba59b1b0bb
Diffstat (limited to 'plugins/restconf-client/provider/src/test/test-yang/SLI-API')
-rw-r--r-- | plugins/restconf-client/provider/src/test/test-yang/SLI-API/sliapi.yang | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/plugins/restconf-client/provider/src/test/test-yang/SLI-API/sliapi.yang b/plugins/restconf-client/provider/src/test/test-yang/SLI-API/sliapi.yang new file mode 100644 index 000000000..98cbb2aa7 --- /dev/null +++ b/plugins/restconf-client/provider/src/test/test-yang/SLI-API/sliapi.yang @@ -0,0 +1,117 @@ +module SLI-API { + + yang-version 1; + + namespace "org:onap:ccsdk:sli:core:sliapi"; + + prefix sample; + + import ietf-inet-types { prefix "inet"; revision-date 2013-07-15; } + + organization "ONAP"; + + contact + "Dan Timoney"; + + description + "Defines API to service logic interpreter"; + + revision "2016-11-10" { + description + "REST API to Service Logic Interpreter"; + } + + grouping parameter-setting { + description + "Parameter setting"; + + leaf parameter-name { + type string; + description "Parameter name"; + } + + leaf int-value { + type int32; + } + leaf string-value { + type string; + } + leaf boolean-value { + type boolean; + } + } + + grouping response-fields { + leaf response-code { + type string; + } + leaf ack-final-indicator { + type string; + } + leaf response-message { + type string; + } + leaf context-memory-json { + type string; + } + } + + container test-results { + description "Test results"; + + list test-result { + key "test-identifier"; + + leaf test-identifier { + type string; + } + + leaf-list results { + type string; + } + } + } + + rpc execute-graph { + description " Method to add a new parameter."; + input { + + leaf module-name { + type string; + } + + leaf rpc-name { + type string; + } + + leaf mode { + type enumeration { + enum sync; + enum async; + } + } + + list sli-parameter { + key "parameter-name"; + uses parameter-setting; + } + } + + output { + uses response-fields; + } + } + + rpc healthcheck { + output { + uses response-fields; + } + } + + rpc vlbcheck { + output { + uses response-fields; + } + } + +} |