Hi Jimmy, I have some questions on AAI links and relationship
1. I am trying to add physical-link to AAI. Please find the sequence below. - Add PNF1 with p-interface1 to AAI - Add PNF2 with p-interface2 to AAI - Add link between PNF1_p-interface1 and PNF2_p-interface2. I am using the below Swagger REST API Document https://nexus.onap.org/service/local/repositories/releases/archive/org/onap/aai/aai-common/aai-schema/1.3.2/aai-schema-1.3.2.jar/!/onap/aai_swagger_html/aai_swagger_v14.html#tag-Network I see that link-name is the only required field which should be in the form hostnameA_p-connection_nameA_hostnameZ+p_connection-nameZ. I do not see any attribute to specify the endpoint. Is the link established by breaking-down the link-name ? physical-link: object Collection of physical connections, typically between p-interfaces Related Nodes FROM p-interface( p-interface LinksTo physical-link, MANY2ONE)(3) (3) IF this FROM node is deleted, this PHYSICAL-LINK is DELETED also Properties link-name: string e.g., hostnameA_p-connection_nameA_hostnameZ+p_connection-nameZ speed-value: string Captures the numeric part of the speed speed-units: string Captures the units corresponding to the speed circuit-id: string Circuit it dual-mode: string Dual access mode (e.g., primary, secondary management-option: string To provide information on who manages this circuit. A&AI or 3rd party transport provider service-provider-name: string Name of the service Provider on this link. service-provider-bandwidth-up-value: integer Upstream Bandwidth value agreed with the service provider service-provider-bandwidth-up-units: string Units for the upstream BW value service-provider-bandwidth-down-value: integer Downstream Bandwidth value agreed with the service provider service-provider-bandwidth-down-units: string Units for downstream BW value resource-version: string Used for optimistic concurrency. Must be empty on create, valid on update and delete. relationship-list: object[] relationship Can you please help me understand how links are established in AAI. 2. I would also like to understand a little on relationship. a. If I have p-interfaces for PNF, I am assuming that deleting the pnf would delete the p-interfaces associated with it. Does it happen by default or should I specify the relation for it to happen ? b. For physical-links, I understand that if a p-interface is deleted, the physical-link corresponding to those p-interface will be deleted only if we specify the relationship. Please correct me if am wrong. Can you also please help me understand what goes inside a relationship-data (The key and value) and the use of it. { "related-to" : "p-interface", "related-link" : "/network/pnfs/pnf/{pnf-name}/p-interfaces/p-interface/{interface-name}" "relationship-data": [ { "relationship-key": <key> "relationship-value": <value> } ] } Any pointer is greatly appreciated. Thanks, Thiriloshini -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15594): https://lists.onap.org/g/onap-discuss/message/15594 Mute This Topic: https://lists.onap.org/mt/29867809/21656 Group Owner: [email protected] Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
