Hi Tao,
From your log file, the error message is
2019-01-29 02:21:02.103 ERROR 473 --- [http-nio-8082-exec-9]
o.o.u.s.s.sotn.impl.SOTNServiceImpl : Can not createLink[code=400,
message=Bad Request]
This lacks some detail because the “Bad Request” is usually described in the
response body with more specific information.
I see the request body includes this data, which I assume to be for a
“logical-link” object:
{
"-xmlns": "http://org.onap.aai.inventory/v13",
"link-name": "couldlink",
"link-type": "cross-link",
"operational-status": "up",
"relationship-list": {
"relationship": [{
"related-to": "p-interface",
"related-link":
"/aai/v13/network/pnfs/pnf/13f51197-4bf7-33a7-8e3b-e8129547ee9e/p-interfaces/p-interface/nodeId-13f51197-4bf7-33a7-8e3b-e8129547ee9e-ltpId-d4827cc3-63de-31b7-a3d7-f01edd2a6944"
}, {
"related-to": "p-interface",
"related-link":
"/aai/v13/network/pnfs/pnf/pns1/p-interfaces/p-interface/tp222"
}, {
"related-to": "ext-aai-network",
"related-link":
"/aai/v13/network/ext-aai-networks/ext-aai-network/binbin1548728461500"
}
]
}
}
As a “logical-link”, it is missing the “in-maint” parameter which is mandatory,
e.g. "in-maint": "false".
So, please try adding this extra parameter to your request body and try it
again.
Keong
From: shentao [mailto:[email protected]]
Sent: Tuesday, 29 January 2019 14:11
To: Keong Lim <[email protected]>
Cc: [email protected]; 'onap-discuss' <[email protected]>
Subject: Network Link Creation Error of Calling AAI
Hi Keong
We are trying to test CCVPN use case for Casablanca MR.
When UUI was calling AAI’s API to create a link with partner ONAP network, an
error has happened.
Attachment is UUI error log. Could you help us to have a look if UUI request
body is wrong.
Best regards,
Tao
---------------------------------------------
沈涛
中国移动通信有限公司研究院网络技术研究所
中国北京市西城区宣武门西大街32号(100053)
Shen Tao
China Mobile Research Institute
No.32 Xuanwumen west street,Xicheng District, Beijing 100053, China
Tel: +86 15801696688-34070
Mobile: +86 13521591389
Email: [email protected]<mailto:[email protected]>
---------------------------------------------
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15207): https://lists.onap.org/g/onap-discuss/message/15207
Mute This Topic: https://lists.onap.org/mt/29578607/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-