X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Flcm%2Fpub%2Fmsapi%2Fgvnfmdriver.py;h=8d097574e286c79b86e11cfa947efaf1112069de;hb=649ddb83743de05ca5df0626de700ac24635fae7;hp=850736ce0b48d6ad316b8430ec9b6d9f8ef08e77;hpb=d64bcd2879226a2929ee5b0e3b0c8fa5fc7c5972;p=vfc%2Fgvnfm%2Fvnflcm.git diff --git a/lcm/lcm/pub/msapi/gvnfmdriver.py b/lcm/lcm/pub/msapi/gvnfmdriver.py index 850736ce..8d097574 100644 --- a/lcm/lcm/pub/msapi/gvnfmdriver.py +++ b/lcm/lcm/pub/msapi/gvnfmdriver.py @@ -99,7 +99,14 @@ def prepare_notification_data(nfinstid, jobid, changetype, operation): 'vimConnectionId': port.vimid, 'resourceId': port.resourceid, 'resourceProviderId': port.name, # TODO: is resourceName mapped to resourceProviderId? - 'vimLevelResourceType': 'port' + 'vimLevelResourceType': 'port', + 'tenant': port.tenant, + 'ipAddress': port.ipaddress, + 'macAddress': port.macaddress, + 'instId': port.instid, + 'portid': port.portid, + 'networkid': port.networkid, + 'subnetworkid': port.subnetworkid }, 'cpInstanceId': port.portid # TODO: port.cpinstanceid is not initiated when create port resource. }) @@ -115,6 +122,7 @@ def prepare_notification_data(nfinstid, jobid, changetype, operation): ext_connectivity.append({ 'id': network_id, 'resourceHandle': network_resource, + 'changeType': changetype, 'extLinkPorts': ext_link_ports }) logger.debug("ext_connectivity=%s", ext_connectivity) @@ -146,7 +154,7 @@ def prepare_notification_data(nfinstid, jobid, changetype, operation): 'affectedVnfcs': affected_vnfcs, 'affectedVirtualLinks': affected_vls, 'affectedVirtualStorages': affected_vss, - 'changedExtConnectivity': [], # TODO: will add in R4 + 'changedExtConnectivity': ext_connectivity, '_links': { 'vnfInstance': {'href': '/api/vnflcm/v1/vnf_instances/%s' % nfinstid}, # set 'subscription' link after filtering for subscribers