View file | ||||
---|---|---|---|---|
|
...
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{ "traffic-distribution-decisions": [ { "anchor-point": { "nf-type": "vnf", //[pnf, vnf] - depends on the API used to tretrieve object -> A&AI generic-vnf or pnf "nf-id": "ffe99e79-5860-44d7-a56a-a5d21cfbdc21",//vnf-id or pnf-id -> A&AI generic-vnf or pnf "nf-name": "vfw-dt-pkg-0",//vnf-name or pnf-name -> A&AI generic-vnf or pnf "ipv4-oam-address": "10.0.110.2", // -> A&AI generic-vnf or pnf "ipv6-oam-address": "", // -> A&AI generic-vnf or pnf "vnf-type": "vfw-dt-service/vFW-PKG-DT-VF 0", // -> A&AI generic-vnf "vf-module-id": "a114e77b-709f-4a5f-a802-6f66bc620848", // -> A&AI generic-vnf/vf-module "vf-module-name": "vpkg-dt-module-1", // -> A&AI generic-vnf/vf-module "vf-module-model-invariant-id": "344e26f1-ff29-4570-98fd-2f607b79e609", // -> A&AI generic-vnf/vf-module "vf-module-model-version-id": "a8ad1d21-5e9d-4a91-b155-19c5ce5fbe17", // -> A&AI generic-vnf/vf-module "vf-module-model-name": "VfwPkgDtVf..base_vpkg..module-0", // -> A&AI sdc model/vf-module "cloud-region": "RegionOne", // -> A&AI cloud-inf/v-servers "cloud-owner": "RegionOne", // -> A&AI cloud-inf/v-servers "vservers": [ // -> A&AI cloud-inf/v-server { "vserver-id": "7f237078-c830-4d98-b8e9-0efc8ca36427", // -> A&AI cloud-inf/v-server "vserver-name": "vpg-vf", // -> A&AI cloud-inf/v-server "l-interfaces": [ // -> A&AI cloud-inf/v-server l-interface { "interface-name": "vpkg-dt-module-1-vpg_private_2_port-xan5gtbmgd74", // -> A&AI cloud-inf/v-server l-interface "macaddr": "fa:16:3e:53:a5:b2", // -> A&AI cloud-inf/v-server l-interface "network-id": "828b9558-b107-4b5e-8272-20744dac6885", // -> A&AI cloud-inf/v-server l-interface "ipv4-addresses": ["10.100.100.2"], // -> A&AI cloud-inf/v-server l-interface "network-name": "onap_oam_ext", //A&AI network "ipv6-addresses": [] // -> A&AI cloud-inf/v-server l-interface }, { "interface-name": "vpkg-dt-module-1-vpg_private_1_port-w6av354etjpj", // -> A&AI cloud-inf/v-server l-interface "macaddr": "fa:16:3e:dc:60:d3", // -> A&AI cloud-inf/v-server l-interface "network-id": "848e3e94-d6f8-46b1-bf72-c8477f9a42cb", // -> A&AI cloud-inf/v-server l-interface "network-name": "oam_network_WVly", "ipv4-addresses": ["10.0.110.2"], // -> A&AI cloud-inf/v-server l-interface "ipv6-addresses": [] // -> A&AI cloud-inf/v-server l-interface }, { "interface-name": "vpkg-dt-module-1-vpg_private_0_port-fvlhoybxja7p", // -> A&AI cloud-inf/v-server l-interface "macaddr": "fa:16:3e:96:59:0f", // -> A&AI cloud-inf/v-server l-interface "network-id": "676a05c4-65ab-46c7-86a8-6d748e9089c1", // -> A&AI cloud-inf/v-server l-interface "network-name": "unprotected_net_dt", "ipv4-addresses": ["192.168.10.200"], // -> A&AI cloud-inf/v-server l-interface "ipv6-addresses": [] // -> A&AI cloud-inf/v-server l-interface } ] } ] }, "destination-points": [ {//format is the same like for anchorPoint "nf-type": "vnf", "nf-id": "7dad5e9c-7639-454f-8568-e68b52149127", "nf-name": "vfw-dt-snk-1", "ipv4-oam-address": "10.0.110.4", "ipv6-oam-address": "", "vnf-type": "vfw-dt-service/vFW-SNK-DT-VF 1", "vf-module-id": "63ee489f-8e02-4b7b-a49a-8587445c1b1a", "vf-module-name": "vfw-dt-module-2", "vf-module-model-invariant-id": "b50a101d-dbe3-41b1-a04b-3c44b0ec9d94", // -> A&AI generic-vnf/vf-module "vf-module-model-version-id": "d23ad900-9920-49da-94e3-78c76cbdf331", // -> A&AI generic-vnf/vf-module "vf-module-model-name": "VfwSnkDtVf..base_vfw..module-0", // -> A&AI sdc model/vf-module "cloud-region": "RegionOne", // -> A&AI cloud-inf/v-servers "cloud-owner": "RegionOne", // -> A&AI cloud-inf/v-servers "vServers": [ { "vserver-id": "b1b43d9b-dd47-42b2-979a-9c6ce9ac431e", "vserver-name": "vfw-vfw-2-dt", "l-interfaces": [ { "interface-name": "vfw-dt-module-2-vfw_private_0_port-gn4ev6oxvvj6", "macaddr": "fa:16:3e:ec:39:c3", "network-id": "676a05c4-65ab-46c7-86a8-6d748e9089c1", "network-name": "unprotected_net_dt", "ipv4-addresses": ["192.168.10.110"], "ipv6-addresses": [] }, { "interface-name": "vfw-dt-module-2-vfw_private_3_port-cozwyppibrh2", "macaddr": "fa:16:3e:a1:18:84", "network-id": "828b9558-b107-4b5e-8272-20744dac6885", "network-name": "onap_oam_ext", "ipv4-addresses": ["10.100.100.4"], "ipv6-addresses": [] }, { "interface-name": "vfw-dt-module-2-vfw_private_1_port-cu5rvzfeqsaq", "macaddr": "fa:16:3e:97:09:70", "network-id": "0fe48f60-1738-4fd3-941f-63a2c958b9ec", "network-name": "protected_net_dt", "ipv4-addresses": ["192.168.20.110"], "ipv6-addresses": [] }, { "interface-name": "vfw-dt-module-2-vfw_private_2_port-v4lpjnglwdbp", "macaddr": "fa:16:3e:25:a5:9d", "network-id": "848e3e94-d6f8-46b1-bf72-c8477f9a42cb", "network-name": "oam_network_WVly", "ipv4-addresses": ["10.0.110.4"], "ipv6-addresses": [] } ] }, { "vserver-id": "9a3c21ba-4bcd-42bc-a4da-882d9c2183d0", "vserver-name": "vfw-vsn-2-dt", "l-interfaces": [ { "interface-name": "vfw-dt-module-2-vsn_private_0_port-ctmh5td6ybkf", "macaddr": "fa:16:3e:76:31:07", "network-id": "0fe48f60-1738-4fd3-941f-63a2c958b9ec", "network-name": "protected_net_dt", "ipv4-addresses": ["192.168.20.240"], "ipv6-addresses": [] }, { "interface-name": "vfw-dt-module-2-vsn_private_1_port-nkosg44b6zn6", "macaddr": "fa:16:3e:67:b5:db", "network-id": "848e3e94-d6f8-46b1-bf72-c8477f9a42cb", "network-name": "oam_network_WVly", "ipv4-addresses": ["10.0.110.5"], "ipv6-addresses": [] }, { "interface-name": "vfw-dt-module-2-vsn_private_2_port-7svzynbtnh66", "macaddr": "fa:16:3e:10:20:82", "network-id": "0fe48f60-1738-4fd3-941f-63a2c958b9ec", "network-name": "onap_oam_ext", "ipv4-addresses": ["10.100.100.5"], "ipv6-addresses": [] } ] } ] } ] } ] } |
...
The following REST calls to retrieve topology and VNF candidates from AAI:
- GET /aai/v14/network/generic-vnfs/
- GET /aai/v14/network/generic-vnfs/generic-vnf/e529455a-e50f-4fe2-b170-ec498ba1f75c
- GET /aai/v14/network/generic-vnfs/generic-vnf/e529455a-e50f-4fe2-b170-ec498ba1f75c/vf-modules
- GET /aai/v14/network/generic-vnfs/generic-vnf/e529455a-e50f-4fe2-b170-ec498ba1f75c/vf-modules/vf-module/0c3e0afe-9af4-4d92-bf3f-a8e20f5c093a
- GET /aai/v14/service-design-and-creation/models/model/d7b903e7-a4d5-4ed1-898f-6174a7a88762/model-vers/model-ver/7f9bd514-bb18-431e-9696-794f70c0b66d
- GET /aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/bc43d50ffcb84750bac0c1707a9a765b/vservers
- GET /aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/bc43d50ffcb84750bac0c1707a9a765b/vservers
- GET /aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/bc43d50ffcb84750bac0c1707a9a765b/vservers/vserver/bf5f089c-0632-48dd-814c-2dfa4095f2ac
- GET /aai/v14/cloud-infrastructure/cloud-regions/cloud-region/CloudOwner/RegionOne/tenants/tenant/bc43d50ffcb84750bac0c1707a9a765b/vservers/vserver/bf5f089c-0632-48dd-814c-2dfa4095f2ac/l-interfaces/l-interface/Vfmodule_Demo_vFWSNK_7fa9e563-bf0f-4b4c-966c-0f2179105c1c-vsn_private_0_port-ovft6nu22dz4/l3-interface-ipv4-address-list
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/l3-interface-ipv6-address-list/{l3-interface-ipv6-address}
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/l3-interface-ipv4-address-list/{l3-interface-ipv4-address}
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}/l3-interface-ipv6-address-list/{l3-interface-ipv6-address}
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}/l3-interface-ipv4-address-list/{l3-interface-ipv4-address}
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/vlans
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/lag-interfaces/lag-interface/{interface-name}/l-interfaces
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/lag-interfaces/lag-interface/{interface-name}
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/lag-interfaces
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/vlans
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}/l3-interface-ipv4-address-list/{l3-interface-ipv4-address}
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}/l3-interface-ipv6-address-list/{l3-interface-ipv6-address}
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/l3-interface-ipv4-address-list/{l3-interface-ipv4-address}
GET /aai/v14/network/generic-vnfs/generic-vnf/{vnf-id}/l-interfaces/l-interface/{interface-name}/l3-interface-ipv6-address-list/{l3-interface-ipv6-address}
- GET /aai/v14/network/pnfs
- GET /aai/v14/network/pnfs/pnf/{pnf-name}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/lag-interfaces
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/lag-interfaces/lag-interface/{interface-name}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/lag-interfaces/lag-interface/{interface-name}/l-interfaces
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/vlans
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}/l3-interface-ipv4-address-list/{l3-interface-ipv4-address}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}/l3-interface-ipv6-address-list/{l3-interface-ipv6-address}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/l3-interface-ipv4-address-list/{l3-interface-ipv4-address}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/lag-interfaces/lag-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/l3-interface-ipv6-address-list/{l3-interface-ipv6-address}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/p-interfaces
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/p-interfaces/p-interface/{interface-name}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/p-interfaces/p-interface/{interface-name}/l-interfaces
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/p-interfaces/p-interface/{interface-name}/l-interfaces/l-interface/{interface-name}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/p-interfaces/p-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/l3-interface-ipv4-address-list/{l3-interface-ipv4-address}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/p-interfaces/p-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/l3-interface-ipv6-address-list/{l3-interface-ipv6-address}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/p-interfaces/p-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/vlans
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/p-interfaces/p-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/p-interfaces/p-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}/l3-interface-ipv4-address-list/{l3-interface-ipv4-address}
- GET /aai/v14/network/pnfs/pnf/{pnf-name}/p-interfaces/p-interface/{interface-name}/l-interfaces/l-interface/{interface-name}/vlans/vlan/{vlan-interface}/l3-interface-ipv6-address-list/{l3-interface-ipv6-address}
...