Example of vFW AAI Update PUT request via Robot

This illustrates what an example AAI Update (i.e. heatbridge) call for a vFW looks like.

This was captured by running the robot demo instantiatevFW test.  Full details of the test - including calls to Openstack to gather the information can be found in this test log file (look for the 'Execute Heatbridge' section.  heatbridge-robot-log-example.html



Following is how the call to AAI looks (not showing all the header details):

PUT https://aai.onap:8443/aai/v11/bulkadd

{ "transactions": [ { "put": [ { "body": { "image-os-distro": "unknown", "application-version": "unknown", "image-architecture": "unknown", "application-vendor": "unknown", "image-name": "unknown", "image-os-version": "unknown", "application": "unknown", "image-id": "42fd42f8-cf81-4f4c-a552-d4b124f83b0b", "image-selflink": "http://10.12.25.2:8774/6bbd2981b210461dbc8fe846df1a7808/images/42fd42f8-cf81-4f4c-a552-d4b124f83b0b" }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/42fd42f8-cf81-4f4c-a552-d4b124f83b0b" } ] }, { "put": [ { "body": { "image-os-distro": "unknown", "application-version": "unknown", "image-architecture": "unknown", "application-vendor": "unknown", "image-name": "unknown", "image-os-version": "unknown", "application": "unknown", "image-id": "42fd42f8-cf81-4f4c-a552-d4b124f83b0b", "image-selflink": "http://10.12.25.2:8774/6bbd2981b210461dbc8fe846df1a7808/images/42fd42f8-cf81-4f4c-a552-d4b124f83b0b" }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/42fd42f8-cf81-4f4c-a552-d4b124f83b0b" } ] }, { "put": [ { "body": { "image-os-distro": "unknown", "application-version": "unknown", "image-architecture": "unknown", "application-vendor": "unknown", "image-name": "unknown", "image-os-version": "unknown", "application": "unknown", "image-id": "42fd42f8-cf81-4f4c-a552-d4b124f83b0b", "image-selflink": "http://10.12.25.2:8774/6bbd2981b210461dbc8fe846df1a7808/images/42fd42f8-cf81-4f4c-a552-d4b124f83b0b" }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/42fd42f8-cf81-4f4c-a552-d4b124f83b0b" } ] }, { "put": [ { "body": { "flavor-id": "764efb04-5a46-4806-a766-2bdd24559f39", "flavor-vcpus": 2, "flavor-ephemeral": 0, "flavor-ram": 4096, "flavor-name": "m1.medium", "flavor-selflink": "http://10.12.25.2:8774/v2.1/6bbd2981b210461dbc8fe846df1a7808/flavors/764efb04-5a46-4806-a766-2bdd24559f39", "flavor-disk": 40 }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39" } ] }, { "put": [ { "body": { "flavor-id": "764efb04-5a46-4806-a766-2bdd24559f39", "flavor-vcpus": 2, "flavor-ephemeral": 0, "flavor-ram": 4096, "flavor-name": "m1.medium", "flavor-selflink": "http://10.12.25.2:8774/v2.1/6bbd2981b210461dbc8fe846df1a7808/flavors/764efb04-5a46-4806-a766-2bdd24559f39", "flavor-disk": 40 }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39" } ] }, { "put": [ { "body": { "flavor-id": "764efb04-5a46-4806-a766-2bdd24559f39", "flavor-vcpus": 2, "flavor-ephemeral": 0, "flavor-ram": 4096, "flavor-name": "m1.medium", "flavor-selflink": "http://10.12.25.2:8774/v2.1/6bbd2981b210461dbc8fe846df1a7808/flavors/764efb04-5a46-4806-a766-2bdd24559f39", "flavor-disk": 40 }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39" } ] }, { "put": [ { "body": { "vserver-name2": "demofwl01pgn", "vserver-name": "demofwl01pgn", "relationship-list": { "relationship": [ { "relationship-data": [ { "relationship-key": "generic-vnf.vnf-id", "relationship-value": "2f938b92-270d-482a-a954-6ee8a47105b6" } ], "related-to": "generic-vnf" }, { "relationship-data": [ { "relationship-key": "vf-module.vf-module-id", "relationship-value": "5cf73a18-ad03-4f57-baba-cb2e5c0aa8f0" }, { "relationship-key": "generic-vnf.vnf-id", "relationship-value": "2f938b92-270d-482a-a954-6ee8a47105b6" } ], "related-to": "vf-module" }, { "relationship-data": [ { "relationship-key": "flavor.flavor-id", "relationship-value": "764efb04-5a46-4806-a766-2bdd24559f39" }, { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" } ], "related-to": "flavor" }, { "relationship-data": [ { "relationship-key": "image.image-id", "relationship-value": "42fd42f8-cf81-4f4c-a552-d4b124f83b0b" }, { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" } ], "related-to": "image" }, { "relationship-data": [ { "relationship-key": "vnfc.vnfc-name", "relationship-value": "demofwl01pgn" } ], "related-to": "vnfc" } ] }, "volumes": [], "prov-status": "ACTIVE", "vserver-id": "5d4c1b18-ba87-4963-9cb7-33fc11066395", "vserver-selflink": "http://10.12.25.2:8774/v2.1/6bbd2981b210461dbc8fe846df1a7808/servers/5d4c1b18-ba87-4963-9cb7-33fc11066395" }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/5d4c1b18-ba87-4963-9cb7-33fc11066395" } ] }, { "put": [ { "body": { "vserver-name2": "demofwl01fwl", "vserver-name": "demofwl01fwl", "relationship-list": { "relationship": [ { "relationship-data": [ { "relationship-key": "generic-vnf.vnf-id", "relationship-value": "2f938b92-270d-482a-a954-6ee8a47105b6" } ], "related-to": "generic-vnf" }, { "relationship-data": [ { "relationship-key": "vf-module.vf-module-id", "relationship-value": "5cf73a18-ad03-4f57-baba-cb2e5c0aa8f0" }, { "relationship-key": "generic-vnf.vnf-id", "relationship-value": "2f938b92-270d-482a-a954-6ee8a47105b6" } ], "related-to": "vf-module" }, { "relationship-data": [ { "relationship-key": "flavor.flavor-id", "relationship-value": "764efb04-5a46-4806-a766-2bdd24559f39" }, { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" } ], "related-to": "flavor" }, { "relationship-data": [ { "relationship-key": "image.image-id", "relationship-value": "42fd42f8-cf81-4f4c-a552-d4b124f83b0b" }, { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" } ], "related-to": "image" }, { "relationship-data": [ { "relationship-key": "vnfc.vnfc-name", "relationship-value": "demofwl01fwl" } ], "related-to": "vnfc" } ] }, "volumes": [], "prov-status": "ACTIVE", "vserver-id": "5bb16c9d-6d6e-4aa3-83eb-564fa663b51c", "vserver-selflink": "http://10.12.25.2:8774/v2.1/6bbd2981b210461dbc8fe846df1a7808/servers/5bb16c9d-6d6e-4aa3-83eb-564fa663b51c" }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/5bb16c9d-6d6e-4aa3-83eb-564fa663b51c" } ] }, { "put": [ { "body": { "vserver-name2": "demofwl01snk", "vserver-name": "demofwl01snk", "relationship-list": { "relationship": [ { "relationship-data": [ { "relationship-key": "generic-vnf.vnf-id", "relationship-value": "2f938b92-270d-482a-a954-6ee8a47105b6" } ], "related-to": "generic-vnf" }, { "relationship-data": [ { "relationship-key": "vf-module.vf-module-id", "relationship-value": "5cf73a18-ad03-4f57-baba-cb2e5c0aa8f0" }, { "relationship-key": "generic-vnf.vnf-id", "relationship-value": "2f938b92-270d-482a-a954-6ee8a47105b6" } ], "related-to": "vf-module" }, { "relationship-data": [ { "relationship-key": "flavor.flavor-id", "relationship-value": "764efb04-5a46-4806-a766-2bdd24559f39" }, { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" } ], "related-to": "flavor" }, { "relationship-data": [ { "relationship-key": "image.image-id", "relationship-value": "42fd42f8-cf81-4f4c-a552-d4b124f83b0b" }, { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" } ], "related-to": "image" }, { "relationship-data": [ { "relationship-key": "vnfc.vnfc-name", "relationship-value": "demofwl01snk" } ], "related-to": "vnfc" } ] }, "volumes": [], "prov-status": "ACTIVE", "vserver-id": "ea899de1-6649-410b-a20e-553baca30212", "vserver-selflink": "http://10.12.25.2:8774/v2.1/6bbd2981b210461dbc8fe846df1a7808/servers/ea899de1-6649-410b-a20e-553baca30212" }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/ea899de1-6649-410b-a20e-553baca30212" } ] }, { "put": [ { "body": { "macaddr": "fa:16:3e:fc:93:26", "interface-name": "Vfmodule_Ete_vFW_079d54d8_0-vsn_0_int_protected_private_port_0-ajdcjwvsyovx", "l3-interface-ipv4-address-list": [ { "neutron-subnet-id": "fff5db63-f4cd-46fa-bc8c-0014cfd98192", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "f5fc2b85-d6b1-464f-a8c2-aabe2947f179", "l3-interface-ipv4-address": "192.168.120.250" } ], "interface-id": "687f8693-7720-461e-818b-dc3d0222e80d", "network-name": "f5fc2b85-d6b1-464f-a8c2-aabe2947f179", "l3-interface-ipv6-address-list": [] }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/ea899de1-6649-410b-a20e-553baca30212/l-interfaces/l-interface/Vfmodule_Ete_vFW_079d54d8_0-vsn_0_int_protected_private_port_0-ajdcjwvsyovx" } ] }, { "put": [ { "body": { "macaddr": "fa:16:3e:80:fb:26", "interface-name": "Vfmodule_Ete_vFW_079d54d8_0-vsn_0_onap_private_port_0-jyzdb7d5r66s", "l3-interface-ipv4-address-list": [ { "neutron-subnet-id": "8754bc21-e28e-4a97-952d-e1c40a84e512", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "3a7ad481-b99e-4e73-81df-0a393e807e09", "l3-interface-ipv4-address": "10.0.141.13" } ], "interface-id": "0faded77-e4fb-43c3-b19c-c39836aabd03", "network-name": "3a7ad481-b99e-4e73-81df-0a393e807e09", "l3-interface-ipv6-address-list": [] }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/ea899de1-6649-410b-a20e-553baca30212/l-interfaces/l-interface/Vfmodule_Ete_vFW_079d54d8_0-vsn_0_onap_private_port_0-jyzdb7d5r66s" } ] }, { "put": [ { "body": { "macaddr": "fa:16:3e:97:5c:9b", "interface-name": "Vfmodule_Ete_vFW_079d54d8_0-vfw_0_onap_private_port_0-ln24pflyb2oc", "l3-interface-ipv4-address-list": [ { "neutron-subnet-id": "8754bc21-e28e-4a97-952d-e1c40a84e512", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "3a7ad481-b99e-4e73-81df-0a393e807e09", "l3-interface-ipv4-address": "10.0.141.11" } ], "interface-id": "715ed2c8-2e18-4984-8c7e-ef054c857120", "network-name": "3a7ad481-b99e-4e73-81df-0a393e807e09", "l3-interface-ipv6-address-list": [] }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/5bb16c9d-6d6e-4aa3-83eb-564fa663b51c/l-interfaces/l-interface/Vfmodule_Ete_vFW_079d54d8_0-vfw_0_onap_private_port_0-ln24pflyb2oc" } ] }, { "put": [ { "body": { "macaddr": "fa:16:3e:c1:f4:ea", "interface-name": "Vfmodule_Ete_vFW_079d54d8_0-vfw_0_int_protected_private_port_0-tmvoyy2xvkdd", "l3-interface-ipv4-address-list": [ { "neutron-subnet-id": "fff5db63-f4cd-46fa-bc8c-0014cfd98192", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "f5fc2b85-d6b1-464f-a8c2-aabe2947f179", "l3-interface-ipv4-address": "192.168.120.100" } ], "interface-id": "16535231-25b1-4cfb-ac1b-2cb7194081b6", "network-name": "f5fc2b85-d6b1-464f-a8c2-aabe2947f179", "l3-interface-ipv6-address-list": [] }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/5bb16c9d-6d6e-4aa3-83eb-564fa663b51c/l-interfaces/l-interface/Vfmodule_Ete_vFW_079d54d8_0-vfw_0_int_protected_private_port_0-tmvoyy2xvkdd" } ] }, { "put": [ { "body": { "macaddr": "fa:16:3e:cd:fe:30", "interface-name": "Vfmodule_Ete_vFW_079d54d8_0-vpg_0_int_unprotected_private_port_0-gtkkpmd553vf", "l3-interface-ipv4-address-list": [ { "neutron-subnet-id": "cd276996-92f9-4df5-85c8-eea59fadb34b", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "3eaaa17a-a5bd-4a07-af12-fd34f903d4b7", "l3-interface-ipv4-address": "192.168.110.200" } ], "interface-id": "36f53375-4db3-4a52-b835-0f3af8ca64ea", "network-name": "3eaaa17a-a5bd-4a07-af12-fd34f903d4b7", "l3-interface-ipv6-address-list": [] }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/5d4c1b18-ba87-4963-9cb7-33fc11066395/l-interfaces/l-interface/Vfmodule_Ete_vFW_079d54d8_0-vpg_0_int_unprotected_private_port_0-gtkkpmd553vf" } ] }, { "put": [ { "body": { "macaddr": "fa:16:3e:83:33:ec", "interface-name": "Vfmodule_Ete_vFW_079d54d8_0-vfw_0_int_unprotected_private_port_0-qwecf2izc2es", "l3-interface-ipv4-address-list": [ { "neutron-subnet-id": "cd276996-92f9-4df5-85c8-eea59fadb34b", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "3eaaa17a-a5bd-4a07-af12-fd34f903d4b7", "l3-interface-ipv4-address": "192.168.110.100" } ], "interface-id": "3ab73050-5efa-4758-a2e5-006b16e37fff", "network-name": "3eaaa17a-a5bd-4a07-af12-fd34f903d4b7", "l3-interface-ipv6-address-list": [] }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/5bb16c9d-6d6e-4aa3-83eb-564fa663b51c/l-interfaces/l-interface/Vfmodule_Ete_vFW_079d54d8_0-vfw_0_int_unprotected_private_port_0-qwecf2izc2es" } ] }, { "put": [ { "body": { "macaddr": "fa:16:3e:8f:db:c3", "interface-name": "Vfmodule_Ete_vFW_079d54d8_0-vpg_0_onap_private_port_0-ddh65w5do34v", "l3-interface-ipv4-address-list": [ { "neutron-subnet-id": "8754bc21-e28e-4a97-952d-e1c40a84e512", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "3a7ad481-b99e-4e73-81df-0a393e807e09", "l3-interface-ipv4-address": "10.0.141.12" } ], "interface-id": "58c30a67-c0ff-4b9d-91c6-c93ab138b96b", "network-name": "3a7ad481-b99e-4e73-81df-0a393e807e09", "l3-interface-ipv6-address-list": [] }, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/6bbd2981b210461dbc8fe846df1a7808/vservers/vserver/5d4c1b18-ba87-4963-9cb7-33fc11066395/l-interfaces/l-interface/Vfmodule_Ete_vFW_079d54d8_0-vpg_0_onap_private_port_0-ddh65w5do34v" } ] } ] }



Here's how one of the vservers looks afterward:

{ "vserver-id": "5d4c1b18-ba87-4963-9cb7-33fc11066395", "vserver-name": "demofwl01pgn", "vserver-name2": "demofwl01pgn", "prov-status": "ACTIVE", "vserver-selflink": "http://10.12.25.2:8774/v2.1/6bbd2981b210461dbc8fe846df1a7808/servers/5d4c1b18-ba87-4963-9cb7-33fc11066395", "in-maint": false, "is-closed-loop-disabled": false, "resource-version": "1564173717038", "relationship-list": { "relationship": [ { "related-to": "generic-vnf", "relationship-label": "tosca.relationships.HostedOn", "related-link": "/aai/v14/network/generic-vnfs/generic-vnf/2f938b92-270d-482a-a954-6ee8a47105b6", "relationship-data": [ { "relationship-key": "generic-vnf.vnf-id", "relationship-value": "2f938b92-270d-482a-a954-6ee8a47105b6" } ], "related-to-property": [ { "property-key": "generic-vnf.vnf-name", "property-value": "Ete_vFW_079d54d8_0" } ] }, { "related-to": "vnfc", "relationship-label": "tosca.relationships.HostedOn", "related-link": "/aai/v14/network/vnfcs/vnfc/demofwl01pgn", "relationship-data": [ { "relationship-key": "vnfc.vnfc-name", "relationship-value": "demofwl01pgn" } ] }, { "related-to": "vf-module", "relationship-label": "org.onap.relationships.inventory.Uses", "related-link": "/aai/v14/network/generic-vnfs/generic-vnf/2f938b92-270d-482a-a954-6ee8a47105b6/vf-modules/vf-module/5cf73a18-ad03-4f57-baba-cb2e5c0aa8f0", "relationship-data": [ { "relationship-key": "generic-vnf.vnf-id", "relationship-value": "2f938b92-270d-482a-a954-6ee8a47105b6" }, { "relationship-key": "vf-module.vf-module-id", "relationship-value": "5cf73a18-ad03-4f57-baba-cb2e5c0aa8f0" } ] }, { "related-to": "image", "relationship-label": "org.onap.relationships.inventory.Uses", "related-link": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/images/image/42fd42f8-cf81-4f4c-a552-d4b124f83b0b", "relationship-data": [ { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" }, { "relationship-key": "image.image-id", "relationship-value": "42fd42f8-cf81-4f4c-a552-d4b124f83b0b" } ], "related-to-property": [ { "property-key": "image.image-name", "property-value": "unknown" } ] }, { "related-to": "flavor", "relationship-label": "org.onap.relationships.inventory.Uses", "related-link": "/aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39", "relationship-data": [ { "relationship-key": "cloud-region.cloud-owner", "relationship-value": "CloudOwner" }, { "relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne" }, { "relationship-key": "flavor.flavor-id", "relationship-value": "764efb04-5a46-4806-a766-2bdd24559f39" } ], "related-to-property": [ { "property-key": "flavor.flavor-name", "property-value": "m1.medium" } ] } ] }, "l-interfaces": { "l-interface": [ { "interface-name": "Vfmodule_Ete_vFW_079d54d8_0-vpg_0_int_unprotected_private_port_0-gtkkpmd553vf", "interface-id": "36f53375-4db3-4a52-b835-0f3af8ca64ea", "macaddr": "fa:16:3e:cd:fe:30", "network-name": "3eaaa17a-a5bd-4a07-af12-fd34f903d4b7", "is-port-mirrored": false, "resource-version": "1564173717781", "in-maint": false, "is-ip-unnumbered": false, "l3-interface-ipv4-address-list": [ { "l3-interface-ipv4-address": "192.168.110.200", "l3-interface-ipv4-prefix-length": 32, "resource-version": "1564173717781", "neutron-network-id": "3eaaa17a-a5bd-4a07-af12-fd34f903d4b7", "neutron-subnet-id": "cd276996-92f9-4df5-85c8-eea59fadb34b" } ] }, { "interface-name": "Vfmodule_Ete_vFW_079d54d8_0-vpg_0_onap_private_port_0-ddh65w5do34v", "interface-id": "58c30a67-c0ff-4b9d-91c6-c93ab138b96b", "macaddr": "fa:16:3e:8f:db:c3", "network-name": "3a7ad481-b99e-4e73-81df-0a393e807e09", "is-port-mirrored": false, "resource-version": "1564173718100", "in-maint": false, "is-ip-unnumbered": false, "l3-interface-ipv4-address-list": [ { "l3-interface-ipv4-address": "10.0.141.12", "l3-interface-ipv4-prefix-length": 32, "resource-version": "1564173718100", "neutron-network-id": "3a7ad481-b99e-4e73-81df-0a393e807e09", "neutron-subnet-id": "8754bc21-e28e-4a97-952d-e1c40a84e512" } ] } ] } }