1 .. This work is licensed under a Creative Commons Attribution 4.0
2 .. International License. http://creativecommons.org/licenses/by/4.0
3 .. Copyright 2019 ONAP Contributors. All rights reserved.
7 Declare PNF instances in ONAP
8 =============================
10 PNF instances can be declared in ONAP inventory (AAI) using REST API
18 https://{{ONAP_LB_IP@}}:30233/aai/v16/network/pnfs/pnf/my_pnf_instance_001 \
19 -H 'Accept: application/json' \
20 -H 'Authorization: Basic QUFJOkFBSQ==' \
21 -H 'Cache-Control: no-cache' \
22 -H 'Content-Type: application/json' \
23 -H 'Postman-Token: f5e2aae0-dc1c-4edb-b9e9-a93b05aee5e8' \
24 -H 'X-FromAppId: AAI' \
25 -H 'X-TransactionId: 999' \
28 "pnf-name":" my_pnf_instance_001",
29 "equip-type":" router",
34 "interface-name": "ae1",
35 "port-description": "Link aggregate for trunk between switches"
38 "interface-name": "xe-0/0/6",
39 "port-description": "to PNF_instance_002 trunk1"
42 "interface-name": "xe-0/0/2",
43 "port-description": "to PNF_instance_003 trunk1"
46 "interface-name": "xe-0/0/10",
47 "port-description": "to PNF_instance_004 trunk1"
50 "interface-name": "xe-0/0/0",
51 "port-description": "firewall trunk"
54 "interface-name": "xe-0/0/14",
55 "port-description": "to PNF_instance_005 trunk1"
62 It is possible to declare the location where is deployed the PNF
63 (called a "complex" in ONAP AAI)
68 https:// {{ONAP_LB_IP@}}:30233/aai/v11/cloud-infrastructure/complexes/complex/my_complex_name \
69 -H 'Accept: application/json' \
70 -H 'Authorization: Basic QUFJOkFBSQ==' \
71 -H 'Cache-Control: no-cache' \
72 -H 'Content-Type: application/json' \
73 -H 'Postman-Token: 43523984-db01-449a-8a58-8888871110bc' \
74 -H 'X-FromAppId: AAI' \
75 -H 'X-TransactionId: 999' \
78 "physical-location-type":"PoP",
79 "physical-location-id":"my_complex_name",
80 "complex-name":"Name of my Complex",
82 "postal-code":"22300",
84 "street1":"Avenue Pierre Marzin",
90 To indicate that a PNF instance is located in a complex, we create a relation
95 https:// {{ONAP_LB_IP@}}:30233/aai/v14/network/pnfs/pnf/my_pnf_instance_001/relationship-list/relationship \
96 -H 'Accept: application/json' \
97 -H 'Authorization: Basic QUFJOkFBSQ==' \
98 -H 'Cache-Control: no-cache' \
99 -H 'Content-Type: application/json' \
100 -H 'Postman-Token: 15315304-17c5-4e64-aada-bb149f1af915' \
101 -H 'X-FromAppId: AAI' \
102 -H 'X-TransactionId: 999' \
105 "related-to": "complex",
106 "related-link": "/aai/v11/cloud-infrastructure/complexes/complex/my_complex_name"