Please note the values currently used in the test data may not be representative of actually values in ONAP A&AI.

ConfigScaleOut via APPC API Doc Explorer with Template ID(Will not be obtained from Querying A&AI for vf-module Info)
{
    "input": {
        "common-header": {
            "timestamp": "2018-05-16T17:03:30.44Z",
            "api-ver": "2.00",
            "originator-id": "SDNGP",
            "request-id": "ScaleOut_RB3_16th May_TC3",
            "sub-request-id": "ScaleOut_RB3_16th May_TC3",
            "flags": {
                "force": "TRUE",
                "ttl": 12000
            }
        },
        "action": "ConfigScaleOut",
        "action-identifiers": {
            "vnf-id": "APPC-test-vLB"
        },
        "payload": "{\"request-parameters\":{\"vnf-host-ip-address\":\"10.12.6.195\",\"vf-module-id\": \"zdfw1lb01lb01\",\"controller-template-id\": \"vLB\"},\"configuration-parameters\":{\"ip-addr\":\"192.168.10.212\", \"oam-ip-addr\":\"10.0.150.4\",\"enabled\":\"true\"}}"
    }
}
ConfigScaleOut via APPC API Doc Explorer without Template ID(Will be obtained from Querying A&AI for vf-module Info)
{
    "input": {
        "common-header": {
            "timestamp": "2018-05-16T17:03:30.44Z",
            "api-ver": "2.00",
            "originator-id": "SDNGP",
            "request-id": "ScaleOut_RB3_16th May_TC3",
            "sub-request-id": "ScaleOut_RB3_16th May_TC3",
            "flags": {
                "force": "TRUE",
                "ttl": 12000
            }
        },
        "action": "ConfigScaleOut",
        "action-identifiers": {
            "vnf-id": "APPC-test-vLB"
        },
        "payload": "{\"request-parameters\":{\"vnf-host-ip-address\":\"10.12.6.195\",\"vf-module-id\": \"zdfw1lb01lb01\"},\"configuration-parameters\":{\"ip-addr\":\"192.168.10.212\", \"oam-ip-addr\":\"10.0.150.4\",\"enabled\":\"true\"}}"
    }
}
Sample Curl Request for Submitting to DMaaP
curl -X POST -v -H "Content-Type: application/json" -d @./vLB-ConfigScaleOut.json http://10.12.5.5:3904/events/APPC-LCM-READ
ConfigScaleOut via DMaaP with Template ID(Will not be obtained from Querying A&AI for vf-module Info
{
        "version": "2.00",
        "rpc-name": "config-scale-out",
        "correlation-id": "a20e2073-30b1-4357-893b-f5ed57b66ef0-10",
        "type": "request",
        "body": {
                "input": {
                        "common-header": {
                                "timestamp": "2018-05-16T17:25:30.44Z",
                                "api-ver": "2.00",
                                "originator-id": "SDNGP",
                                "request-id": "ScaleOut_RB3_16th May_TC3",
                                "sub-request-id": "ScaleOut_RB3_16th May_TC3",
                                "flags": {
                                        "force": "TRUE",
                                        "ttl": 60000
                                }
                        },
                        "action": "ConfigScaleOut",
                        "action-identifiers": {
                                "vnf-id": "APPC-test-vLB"
                        },
                        "payload": "{\"request-parameters\":{\"vnf-host-ip-address\":\"10.12.6.195\",\"vf-module-id\": \"zdfw1lb01lb01\",\"controller-template-id\": \"vLB\"},\"configuration-parameters\":{\"ip-addr\":\"192.168.10.212\", \"oam-ip-addr\":\"10.0.150.4\",\"enabled\":\"true\"}}"
                }
        }
}
ConfigScaleOut via DMaaP without Template ID(Will be obtained from Querying A&AI for vf-module Info
{
    "version": "2.00",
    "rpc-name": "config-scale-out",
    "correlation-id": "a20e2073-30b1-4357-893b-f5ed57b66ef0-10",
    "type": "request",
    "body": {
            "input": {
                "common-header": {
                    "timestamp": "2018-05-16T12:48:30.44Z",
                    "api-ver": "2.00",
                    "originator-id": "SDNGP",
                    "request-id": "ScaleOut_RB2_16th May_TC3",
                    "sub-request-id": "ScaleOut_RB2_16th May_TC3",
                    "flags": {
                        "force": "TRUE",
                        "ttl": 12000
                    }
                },
                "action": "ConfigScaleOut",
                "action-identifiers": {
                    "vnf-id": "APPC-test-vLB"
                },
                "payload": "{\"request-parameters\":{\"vnf-host-ip-address\":\"10.12.6.195\",\"vf-module-id\": \"zdfw1lb01lb01\"},\"configuration-parameters\":{\"ip-addr\":\"192.168.10.212\", \"oam-ip-addr\":\"10.0.150.4\",\"enabled\":\"true\"}}"
            }
        }
}
ConfigScaleOut DMaaP Async Response
2018-05-16 18:54:28,817 | DEBUG | ppc-dispatcher-3 | wire                             | 403 - appc-dmaap-adapter-bundle - 1.3.0.SNAPSHOT -  -  | http-outgoing-112 >> "0.458.
{
    "body": {
        "output": {
            "common-header": {
                "api-ver": "2.00",
                "flags": {
                    
                },
                "originator-id": "SDNGP",
                "request-id": "ScaleOut_RB3_16th May_TC3",
                "sub-request-id": "ScaleOut_RB3_16th May_TC3",
                "timestamp": "2018-05-16T17:25:30.044Z"
            },
            "payload": "",
            "status": {
                "code": 400,
                "message": "SUCCESS - request has been processed successfully"
            }
        }
    },
    "cambria.partition": "MSO",
    "correlation-id": "ScaleOut_RB3_16th May_TC3-ScaleOut_RB3_16th May_TC3",
    "rpc-name": "config-scale-out",
    "type": "response"
}"
  • No labels