Hi, Eric, Are you working from release-1.0 or the master branch?
Thanks, jimmy From: Eric Au [mailto:[email protected]] Sent: Tuesday, June 06, 2017 9:25 AM To: FORSYTH, JAMES <[email protected]> Subject: RE: [ONAP-AAI] AAI data not fully display in GET Hi Jimmy, This is my payload { "hostname": "juniper1", "equipment-vendor": "Juniper", "equipment-model": "NFX250", "pserver-name2": "Test" } But after you asked that question, I tried to PUT the entire payload as follows: { "hostname": "host.test2", "ptnii-equip-name": "PTNII Equipment", "number-of-cpus": "8", "disk-in-gigabytes": "500", "ram-in-megabytes": "16", "equip-type": "Server", "equipment-vendor": "Juniper", "equipment-model": "NFX250", "fqdn": "host.test1", "ipv4-oam-address": "192.168.99.101", "serial-number": "212311", "pserver-id": "host.test1", "internet-topology": "oam", "pserver-name2" : "Test Pserver", "purpose": "Testing", "p-interfaces": { "p-interface": [{ "interface-name": "JDM", "speed-value": "1000", "speed-unit": "Mbps", "port-description": "Test port" }] } } This payload was created and when I do a GET, I was able to see the entire payload. As far as I can tell from the OXM file, only the Hostname was required, everything else seemed optional. Also, if I want to expand and add additional fields to pserver to indicate the physical location of the pserver. I would like to add address, latitude and longitude as String fields into the OXM file, but when I have that in my payload, it still gets created but without my 3 new fields. Is there a step somewhere I am missing? Thanks, Eric ________________________________ From: FORSYTH, JAMES [[email protected]] Sent: Tuesday, June 06, 2017 8:27 AM To: Eric Au Subject: RE: [ONAP-AAI] AAI data not fully display in GET Hi, Eric, Can you include the actual payload you PUT? Thanks, jimmy From: [email protected]<mailto:[email protected]> [mailto:[email protected]] On Behalf Of Eric Au Sent: Tuesday, June 06, 2017 7:54 AM To: [email protected]<mailto:[email protected]> Subject: [onap-discuss] [ONAP-AAI] AAI data not fully display in GET Hi all, As I understand, AAI is model driven using the OXM file found in opt/app/aai/bundleconfig/etc/oxm. From the OXM, I came to understand that the pserver model payload should resemble the following: { "hostname": "{mandatory}", "ptnii-equip-name": "{optional field}", "number-of-cpus": "{optional field}", "disk-in-gigabytes": "{optional field}", "ram-in-megabytes": "{optional field}", "equip-type": "{optional field}", "equipment-vendor": "{optional field}", "equipment-model": "{optional field}", "fqdn": "{optional field}", "ipv4-oam-address": "{optional field}", "serial-number": "{optional field}", "pserver-id": "{optional field}", "internet-topology": "{optional field}", "pserver-name2" : "{optional field}", "purpose": "{optional field}" } I am able to PUT the data into AAI with a 201 Created response code. However, when I perform a GET on the pservers (cloud-infrastructure/pservers) , I end up with only a subset of the information I input. <pservers xmlns="http://org.openecomp.aai.inventory/v8<https://urldefense.proofpoint.com/v2/url?u=http-3A__org.openecomp.aai.inventory_v8&d=DwMFAw&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=tM5fhGLHJ71KqqYGcC2WROFcWpdy4uoqyfOYNzukctc&s=lckDpiELd_K_B_GABq_W_RMj8GgJygeE4cH5btV2xJU&e=>"> <pserver> <hostname>test</hostname> <in-maint>false</in-maint> <resource-version>1496723052</resource-version> <pserver-name2>Pserver Test</pserver-name2> </pserver> </pservers> How do I get the full data set back from AAI? Thanks Eric This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at https://www.amdocs.com/about/email-disclaimer<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.amdocs.com_about_email-2Ddisclaimer&d=DwMFAw&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=LxEyhw5NuXMNgEadfhMnjUEMEsdMsY0yMrEiJOa5Om8&s=8blUPKpOBS6i2HZKdewgmYC67_1hIMG5Lz1_nMyY2N0&e=> This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at https://www.amdocs.com/about/email-disclaimer<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.amdocs.com_about_email-2Ddisclaimer&d=DwMFAw&c=LFYZ-o9_HUMeMTSQicvjIg&r=Oej6QUk5p2KdqNEWySpOHA&m=tM5fhGLHJ71KqqYGcC2WROFcWpdy4uoqyfOYNzukctc&s=AO6_0Isp3cy8czNihJfz-uRDfFnjbMXL0UaS85TuiZg&e=>
_______________________________________________ onap-discuss mailing list [email protected] https://lists.onap.org/mailman/listinfo/onap-discuss
