Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Code Block
titleCongiScaleOut ConfigScaleOut via APPC API Doc Explorer with Template ID(Will not be obtained from Querying A&AI for vf-module Info)
collapsetrue
{
    "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\"}}"
    }
}
Code Block
titleConfigScaleOut via APPC API Doc Explorer without Template ID(Will be obtained from Querying A&AI for vf-module Info)
collapsetrue
{
    "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\"}}"
    }
}
Code Block
titleSample 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
Code Block
titleConfigScaleOut via DMaaP with Template ID(Will not be obtained from Querying A&AI for vf-module Info
collapsetrue
{
        "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\"}}"
                }
        }
}
Code Block
titleConfigScaleOut via DMaaP without Template ID(Will be obtained from Querying A&AI for vf-module Info
collapsetrue
{
    "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\"}}"
            }
        }
}
Code Block
titleConfigScaleOut DMaaP Async Response
collapsetrue
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"
}"