aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/TestVNF/sample rpc requests
diff options
context:
space:
mode:
authora.sreekumar <ajith.sreekumar@ericsson.com>2018-10-24 16:07:36 +0100
committera.sreekumar <ajith.sreekumar@ericsson.com>2018-10-24 16:08:17 +0100
commitf46c20006c23d119ffc1c83117d203ed649f687c (patch)
treea04482e2a418f557e7423f7cacd375db7c318687 /vnfs/TestVNF/sample rpc requests
parent2233d21abae761e91d7b056644c6ac972e662d57 (diff)
Adding TestVNF netconf server
TestVNF netconf server is a partial implementation of a netconfserver for netconf termination. TestVNF is configurable and can be used for testing purposes. Issue-ID: INT-355 Change-Id: I98594d7df57ca14582159bb006d8df51dca74ec7 Signed-off-by: a.sreekumar <ajith.sreekumar@ericsson.com>
Diffstat (limited to 'vnfs/TestVNF/sample rpc requests')
-rw-r--r--vnfs/TestVNF/sample rpc requests/R13_get_running.xml10
-rw-r--r--vnfs/TestVNF/sample rpc requests/edit_config_sample_request_httpAddress.xml12
-rw-r--r--vnfs/TestVNF/sample rpc requests/get_schema_sample_request.xml6
-rw-r--r--vnfs/TestVNF/sample rpc requests/send_event_sample_request.xml39
-rw-r--r--vnfs/TestVNF/sample rpc requests/send_models_sample_request.xml184
-rw-r--r--vnfs/TestVNF/sample rpc requests/test.xml4
6 files changed, 255 insertions, 0 deletions
diff --git a/vnfs/TestVNF/sample rpc requests/R13_get_running.xml b/vnfs/TestVNF/sample rpc requests/R13_get_running.xml
new file mode 100644
index 00000000..24e88669
--- /dev/null
+++ b/vnfs/TestVNF/sample rpc requests/R13_get_running.xml
@@ -0,0 +1,10 @@
+<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="r13_get_running">
+ <get-config>
+ <source>
+ <running/>
+ </source>
+ <filter type="subtree">
+ <configure xmlns="urn:alcatel-lucent.com:sros:ns:yang:conf-r13"/>
+ </filter>
+ </get-config>
+</rpc>
diff --git a/vnfs/TestVNF/sample rpc requests/edit_config_sample_request_httpAddress.xml b/vnfs/TestVNF/sample rpc requests/edit_config_sample_request_httpAddress.xml
new file mode 100644
index 00000000..45f6e982
--- /dev/null
+++ b/vnfs/TestVNF/sample rpc requests/edit_config_sample_request_httpAddress.xml
@@ -0,0 +1,12 @@
+<rpc message-id="1"
+ xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
+ <edit-config>
+ <target>
+ <running />
+ </target>
+ <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
+ <target-name>vesip</target-name>
+ <target-address>http://131.160.203.58:8080/eventListener/v5</target-address>
+ </config>
+ </edit-config>
+</rpc>
diff --git a/vnfs/TestVNF/sample rpc requests/get_schema_sample_request.xml b/vnfs/TestVNF/sample rpc requests/get_schema_sample_request.xml
new file mode 100644
index 00000000..f51e35c7
--- /dev/null
+++ b/vnfs/TestVNF/sample rpc requests/get_schema_sample_request.xml
@@ -0,0 +1,6 @@
+<rpc message-id="104" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
+ <get-schema xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring">
+ <identifier>send-models</identifier>
+ <version>1.0</version>
+ </get-schema>
+</rpc>
diff --git a/vnfs/TestVNF/sample rpc requests/send_event_sample_request.xml b/vnfs/TestVNF/sample rpc requests/send_event_sample_request.xml
new file mode 100644
index 00000000..8bd64aea
--- /dev/null
+++ b/vnfs/TestVNF/sample rpc requests/send_event_sample_request.xml
@@ -0,0 +1,39 @@
+<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-2">
+ <send-event xmlns="http://example.net/send-event-method/1.0">
+ <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
+ <target-name>eth5</target-name>
+ </config>
+ <content>
+ {
+ "event": {
+ "commonEventHeader": {
+ "startEpochMicrosec": 1.23456814897E12,
+ "sourceId": "mmisVnfName",
+ "sequence": 1910,
+ "eventId": "ManagedElement=1",
+ "domain": "other",
+ "lastEpochMicrosec": 1.53805814897E12,
+ "eventName": "PM_ManagedElement=1",
+ "internalHeaderFields": {
+ "collectorTimeStamp": "Thu, 09 27 2018 02:22:38 GMT"
+ },
+ "sourceName": "131.160.203.248:7af9d6a3-5269-4c45-9060-c6ac6f9f3153",
+ "priority": "Low",
+ "version": 2,
+ "reportingEntityName": "ManagedElement=1"
+ },
+ "otherField": {
+ "nameValuePairs": [{
+ "name": "StartTime",
+ "value": "2018-1-26 8:49:50"
+ }, {
+ "name": "WEB04NY_tej",
+ "value": "350"
+ }],
+ "otherFieldVersion": 2
+ }
+ }
+ }
+</content>
+</send-event>
+</rpc>
diff --git a/vnfs/TestVNF/sample rpc requests/send_models_sample_request.xml b/vnfs/TestVNF/sample rpc requests/send_models_sample_request.xml
new file mode 100644
index 00000000..9b34b859
--- /dev/null
+++ b/vnfs/TestVNF/sample rpc requests/send_models_sample_request.xml
@@ -0,0 +1,184 @@
+<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="m-2">
+ <send-models xmlns="http://example.net/send-models-method/1.0">
+ <config xmlns:xc="urn:ietf:params:xml:ns:netconf:base:1.0">
+ <target-name>vesip</target-name>
+ </config>
+ <content>
+ [{
+ "event": {
+ "commonEventHeader": {
+ "startEpochMicrosec": 1.51234513894E12,
+ "sourceId": "mmisVnfName",
+ "sequence": 1910,
+ "eventId": "ManagedElement=1",
+ "domain": "other",
+ "lastEpochMicrosec": 1.50234513894E12,
+ "eventName": "PM_ManagedElement=1",
+ "internalHeaderFields": {
+ "collectorTimeStamp": "Thu, 09 27 2018 02:22:28 GMT"
+ },
+ "sourceName": "131.160.203.4444:4002",
+ "priority": "Low",
+ "version": 2,
+ "reportingEntityName": "ManagedElement=1"
+ },
+ "otherField": {
+ "nameValuePairs": [{
+ "name": "StartTime",
+ "value": "2018-1-26 8:49:50"
+ }, {
+ "name": "WEB04NY_tej",
+ "value": "15"
+ }],
+ "otherFieldVersion": 2
+ }
+ }
+ },{
+ "event": {
+ "commonEventHeader": {
+ "startEpochMicrosec": 1.51234513894E12,
+ "sourceId": "mmisVnfName",
+ "sequence": 1910,
+ "eventId": "ManagedElement=1",
+ "domain": "other",
+ "lastEpochMicrosec": 1.50234513894E12,
+ "eventName": "PM_ManagedElement=1",
+ "internalHeaderFields": {
+ "collectorTimeStamp": "Thu, 09 27 2018 02:22:28 GMT"
+ },
+ "sourceName": "131.160.203.000:4002",
+ "priority": "Low",
+ "version": 2,
+ "reportingEntityName": "ManagedElement=1"
+ },
+ "otherField": {
+ "nameValuePairs": [{
+ "name": "StartTime",
+ "value": "2018-1-26 8:49:50"
+ }, {
+ "name": "WEB04NY_tej",
+ "value": "150"
+ }],
+ "otherFieldVersion": 2
+ }
+ }
+ },{
+ "event": {
+ "commonEventHeader": {
+ "startEpochMicrosec": 1.51234513894E12,
+ "sourceId": "mmisVnfName",
+ "sequence": 1910,
+ "eventId": "ManagedElement=1",
+ "domain": "other",
+ "lastEpochMicrosec": 1.51234513894E12,
+ "eventName": "PM_ManagedElement=1",
+ "internalHeaderFields": {
+ "collectorTimeStamp": "Thu, 09 27 2018 02:22:28 GMT"
+ },
+ "sourceName": "131.160.203.111:4002",
+ "priority": "Low",
+ "version": 2,
+ "reportingEntityName": "ManagedElement=1"
+ },
+ "otherField": {
+ "nameValuePairs": [{
+ "name": "StartTime",
+ "value": "2018-1-26 8:49:50"
+ }, {
+ "name": "WEB04NY_tej",
+ "value": "250"
+ }],
+ "otherFieldVersion": 2
+ }
+ }
+ }, {
+ "event": {
+ "commonEventHeader": {
+ "startEpochMicrosec": 1.52345614897E12,
+ "sourceId": "mmisVnfName",
+ "sequence": 1910,
+ "eventId": "ManagedElement=1",
+ "domain": "other",
+ "lastEpochMicrosec": 1.53805814897E12,
+ "eventName": "PM_ManagedElement=1",
+ "internalHeaderFields": {
+ "collectorTimeStamp": "Thu, 09 27 2018 02:22:38 GMT"
+ },
+ "sourceName": "131.160.203.222:4002",
+ "priority": "Low",
+ "version": 2,
+ "reportingEntityName": "ManagedElement=1"
+ },
+ "otherField": {
+ "nameValuePairs": [{
+ "name": "StartTime",
+ "value": "2018-1-26 8:49:50"
+ }, {
+ "name": "WEB04NY_tej",
+ "value": "350"
+ }],
+ "otherFieldVersion": 2
+ }
+ }
+ }, {
+ "event": {
+ "commonEventHeader": {
+ "startEpochMicrosec": 1.53456715899E12,
+ "sourceId": "mmisVnfName",
+ "sequence": 1910,
+ "eventId": "ManagedElement=1",
+ "domain": "other",
+ "lastEpochMicrosec": 1.53805815899E12,
+ "eventName": "PM_ManagedElement=1",
+ "internalHeaderFields": {
+ "collectorTimeStamp": "Thu, 09 27 2018 02:22:48 GMT"
+ },
+ "sourceName": "131.160.203.333:4002",
+ "priority": "Low",
+ "version": 2,
+ "reportingEntityName": "ManagedElement=1"
+ },
+ "otherField": {
+ "nameValuePairs": [{
+ "name": "StartTime",
+ "value": "2018-1-26 8:49:50"
+ }, {
+ "name": "WEB04NY_tej",
+ "value": "450"
+ }],
+ "otherFieldVersion": 2
+ }
+ }
+ },{
+ "event": {
+ "commonEventHeader": {
+ "startEpochMicrosec": 1.51234513894E12,
+ "sourceId": "mmisVnfName",
+ "sequence": 1910,
+ "eventId": "ManagedElement=1",
+ "domain": "other",
+ "lastEpochMicrosec": 1.50234513894E12,
+ "eventName": "PM_ManagedElement=1",
+ "internalHeaderFields": {
+ "collectorTimeStamp": "Thu, 09 27 2018 02:22:28 GMT"
+ },
+ "sourceName": "131.160.203.5555:4002",
+ "priority": "Low",
+ "version": 2,
+ "reportingEntityName": "ManagedElement=1"
+ },
+ "otherField": {
+ "nameValuePairs": [{
+ "name": "StartTime",
+ "value": "2018-1-26 8:49:50"
+ }, {
+ "name": "WEB04NY_tej",
+ "value": "205"
+ }],
+ "otherFieldVersion": 2
+ }
+ }
+ }]
+</content>
+</send-models>
+</rpc>
diff --git a/vnfs/TestVNF/sample rpc requests/test.xml b/vnfs/TestVNF/sample rpc requests/test.xml
new file mode 100644
index 00000000..55fbec6e
--- /dev/null
+++ b/vnfs/TestVNF/sample rpc requests/test.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<rpc message-id="terminateConnection" xmlns:netconf="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
+<close-session/>
+</rpc>