Hi, I am new to ONAP and I am currently working on AAI (Casablanca branch) and I have below questions for the same.
1. I see APIs to ADD/DELETE/UPDATE a single PNF to/from AAI. Is it possible to do a bulk ADD/DELETE/UPDATE ? That is, ADD/DELETE/UPDATE multiple PNFs in one API call instead of doing multiple calls for each PNF. The reason behind the question is that, I'll have to get Nodes from SDNC (third party) and add it to AAI. When there are 100s of nodes, making more than 100 API calls individually to add the nodes becomes expensive. If the bulk operation is not supported, Can you please help me understand if there is any specific reason for not supporting it ? 2. I added some p-interfaces as part of adding a pnf. Please find below a sample json that I used. I use POSTMAN for all REST operations. The API to add the PNF: PUT https://10.1.8.105:8443/aai/v14/network/pnfs/pnf/T310-NE4 INPUT: { "pnf-name": "T310-NE4", "in-maint": false, "p-interfaces": { "p-interface": [ { "interface-name": "otu-1/1/0/E1.1", "in-maint": false }, { "interface-name": "otu-1/2/0/E1.1", "in-maint": false } ] } } The pnf addition was successful. When I try to fetch the pnf, I expected to see the p-interfaces as well under the pnf element as that's how I see in the pnf model. But I had to make a separate GET API call to see the interfaces. The API to get the pnf: GET https://10.1.8.105:8443/aai/v14/network/pnfs/pnf/T310-NE4 OUTPUT: <?xml version="1.0" encoding="UTF-8"?> <pnf xmlns="http://org.onap.aai.inventory/v14"> <pnf-name>T310-NE4</pnf-name> <pnf-id>059b7753-0c29-3407-a855-11174a1c77bc</pnf-id> <in-maint>false</in-maint> <resource-version>1550012822891</resource-version> </pnf> ----- I expected to see the p-interfaces in the above output The API to get the p-interfaces: GET https://10.1.8.105:8443/aai/v14/network/pnfs/pnf/T310-NE4/p-interfaces OUTPUT: <?xml version="1.0" encoding="UTF-8"?> <p-interfaces xmlns="http://org.onap.aai.inventory/v14"> <p-interface><interface-name>otu-1/2/0/E1.1</interface-name><resource-version>1550012823703</resource-version><in-maint>false</in-maint></p-interface> <p-interface><interface-name>otu-1/1/0/E1.1</interface-name><resource-version>1550012824476</resource-version><in-maint>false</in-maint></p-interface> </p-interfaces> Please correct me if I am wrong. Please help me in understanding whether is this how it is supposed to work or am I doing something wrong. Any pointer is much appreciated. Thanks, Thiriloshini -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15553): https://lists.onap.org/g/onap-discuss/message/15553 Mute This Topic: https://lists.onap.org/mt/29844677/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
