diff options
author | 2021-09-06 16:10:50 +0100 | |
---|---|---|
committer | 2021-09-07 15:07:20 +0100 | |
commit | f906377369016ed5d82dd1f458b4b8cdcc2778b7 (patch) | |
tree | 6a32d40a7a98b179d2ecf69d30d1fd5ea2a1a465 /platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml | |
parent | d39df59d0b50a60922ca790699cecc93258ed519 (diff) |
Bug Fix- Updated the http response code/ response message
Issue-ID: CCSDK-2828
Change-Id: Ifa65c7a75fdc00cb0db5fd34e3a42695bad3c4db
Signed-off-by: Lathish <lathishbabu.ganesan@est.tech>
Diffstat (limited to 'platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml')
-rw-r--r-- | platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml index 2f6abb89..a9afa852 100644 --- a/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml +++ b/platform-logic/a1Adapter-api/src/main/xml/A1-ADAPTER-API_putA1Policy.xml @@ -85,13 +85,13 @@ <outcome value='failure'> <block> <set> - <parameter name='response-code' value='500'/> - <parameter name='response-message' value='Seems A1 Mediator Not Healthy'/> + <parameter name='response-code' value='`$a1MediatorRsp.response-code`'/> + <parameter name='response-message' value='`$a1MediatorRsp.response-message`'/> </set> <return status='failure'> <parameter name='ack-final' value='Y'/> - <parameter name="response-code" value="404" /> - <parameter name="response-message" value="Error creating A1 Policy. Aborting A1 Policy creation" /> + <parameter name='response-code' value='`$a1MediatorRsp.response-code`'/> + <parameter name='response-message' value='`$a1MediatorRsp.response-message`'/> </return> </block> </outcome> @@ -101,7 +101,13 @@ <parameter name="file" value="/opt/opendaylight/current/data/log/A1-Adapter.log" /> <parameter name="level" value="info" /> <parameter name="field1" value="A1 Policy Instance Created."/> + <parameter name='field2' value='`$a1MediatorRsp.response-code`'/> + <parameter name='field3' value='`$a1MediatorRsp.response-message`'/> </record> + <set> + <parameter name='response-code' value='`$a1MediatorRsp.response-code`'/> + <parameter name='response-message' value='`$a1MediatorRsp.response-message`'/> + </set> </block> </outcome> </execute> |