1
0
-1

Hi,

I am referring to below vFW callflow to understand closed control loop better and I have couple of queries.

https://wiki.onap.org/download/attachments/3245081/Screenshot%202017-06-15%2023.54.04.png?version=1&modificationDate=1497585421000&api=v2

  1. Step # 42 : Policy to AAI "put/post" call - Which AAI API is invoked here ? Does policy put TCA events in AAI inventory ? And btw, are policies stored in inventory as well ?
  2. Step # 43 : Policy to APPC "vFW config change" call - Which APPC API is invoked here ?
  3. Where to see the policy actions defined when TCA events are generated ?

    Thanks !
    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Step # 42 : Policy to AAI "put/post" call - Which AAI API is invoked here ? Does policy put TCA events in AAI inventory ? And btw, are policies stored in inventory as well ?

      TM : This put/post Is a bulkadd request to AAI to store all the vnf relevant data in the inventory. for vFW its not used at all.

      for vDNS this is required to create proper request for  MSO 

      Step # 43 : Policy to APPC "vFW config change" call - Which APPC API is invoked here ?

      TM : http://10.247.84.96:8282/restconf/config/network-topology:network-topology/topology/topology-netconf/node/clfwl01pgn6201

      this API help mounting appc to packet generator

      2. Where to see the policy actions defined when TCA events are generated ?

        TM: You can see in the logs of drools container of policy where all the request taking place.
          Network logs is very helpful.


      There are two types of policy :

      xacml policy stored in the file system of pdp and mariadb of policy vm

      BRMS policy : which is stored in the nexus repo . Build by brmsgw container .Drools container fetch the brms policy from nexus repo and store it in the session .

         
      1. Kedar Ambekar

        Thanks Tapan.

        1. Step # 42 - Do you know which is this "bulkadd request to AAI " ? Is it there in AAI API document ?
        2. Step # 43 - So it is the same API that demo.sh appc step invokes on APPC. Where can I find the API specification for this API ? As I asked in another question ( https://wiki.onap.org/questions/8230464/appc-restconfconfig-apis), APPC API spec only has 'operations' APIs.
      2. tapan majhi
        1.  not sure about the AAI api document .

        below data is post to AAI :


        Data :


        {"transactions": [{"put": [{"body": {"image-selflink": "http://10.247.134.60:8774/8df05eabb7b24678aa3006d280f1e95f/images/a8fd3851-7738-4283-9e1d-4f204880c3e0", "image-name": "ubuntu14-ecomp.qcow2", "image-id": "a8fd3851-7738-4283-9e1d-4f204880c3e0"}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/images/image/a8fd3851-7738-4283-9e1d-4f204880c3e0"}]}, {"put": [{"body": {"image-selflink": "http://10.247.134.60:8774/8df05eabb7b24678aa3006d280f1e95f/images/a8fd3851-7738-4283-9e1d-4f204880c3e0", "image-name": "ubuntu14-ecomp.qcow2", "image-id": "a8fd3851-7738-4283-9e1d-4f204880c3e0"}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/images/image/a8fd3851-7738-4283-9e1d-4f204880c3e0"}]}, {"put": [{"body": {"image-selflink": "http://10.247.134.60:8774/8df05eabb7b24678aa3006d280f1e95f/images/a8fd3851-7738-4283-9e1d-4f204880c3e0", "image-name": "ubuntu14-ecomp.qcow2", "image-id": "a8fd3851-7738-4283-9e1d-4f204880c3e0"}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/images/image/a8fd3851-7738-4283-9e1d-4f204880c3e0"}]}, {"put": [{"body": {"flavor-id": "377c039b-68bc-4ae2-af27-888c90ffd476", "flavor-vcpus": 1, "flavor-ephemeral": 0, "flavor-ram": 8128, "flavor-name": "ecomp-medium", "flavor-selflink": "http://10.247.134.60:8774/v2.1/8df05eabb7b24678aa3006d280f1e95f/flavors/377c039b-68bc-4ae2-af27-888c90ffd476", "flavor-disk": 0}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/flavors/flavor/377c039b-68bc-4ae2-af27-888c90ffd476"}]}, {"put": [{"body": {"flavor-id": "377c039b-68bc-4ae2-af27-888c90ffd476", "flavor-vcpus": 1, "flavor-ephemeral": 0, "flavor-ram": 8128, "flavor-name": "ecomp-medium", "flavor-selflink": "http://10.247.134.60:8774/v2.1/8df05eabb7b24678aa3006d280f1e95f/flavors/377c039b-68bc-4ae2-af27-888c90ffd476", "flavor-disk": 0}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/flavors/flavor/377c039b-68bc-4ae2-af27-888c90ffd476"}]}, {"put": [{"body": {"flavor-id": "377c039b-68bc-4ae2-af27-888c90ffd476", "flavor-vcpus": 1, "flavor-ephemeral": 0, "flavor-ram": 8128, "flavor-name": "ecomp-medium", "flavor-selflink": "http://10.247.134.60:8774/v2.1/8df05eabb7b24678aa3006d280f1e95f/flavors/377c039b-68bc-4ae2-af27-888c90ffd476", "flavor-disk": 0}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/flavors/flavor/377c039b-68bc-4ae2-af27-888c90ffd476"}]}, {"put": [{"body": {"vserver-name2": "clfwl01snka1cf", "vserver-name": "clfwl01snka1cf", "relationship-list": {"relationship": [{"relationship-data": [{"relationship-key": "generic-vnf.vnf-id", "relationship-value": "f50214ae-2294-4eee-9564-8a4aef4738b5"}], "related-to": "generic-vnf"}, {"relationship-data": [{"relationship-key": "flavor.flavor-id", "relationship-value": "377c039b-68bc-4ae2-af27-888c90ffd476"}, {"relationship-key": "cloud-region.cloud-owner", "relationship-value": "AmdocsPrivateCloud"}, {"relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne"}], "related-to": "flavor"}, {"relationship-data": [{"relationship-key": "image.image-id", "relationship-value": "a8fd3851-7738-4283-9e1d-4f204880c3e0"}, {"relationship-key": "cloud-region.cloud-owner", "relationship-value": "AmdocsPrivateCloud"}, {"relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne"}], "related-to": "image"}]}, "volumes": [], "prov-status": "ACTIVE", "vserver-id": "9d08fea3-a15d-4b25-b3bb-5014808c8f9f", "vserver-selflink": "http://10.247.134.60:8774/v2.1/8df05eabb7b24678aa3006d280f1e95f/servers/9d08fea3-a15d-4b25-b3bb-5014808c8f9f"}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/tenants/tenant/8df05eabb7b24678aa3006d280f1e95f/vservers/vserver/9d08fea3-a15d-4b25-b3bb-5014808c8f9f"}]}, {"put": [{"body": {"vserver-name2": "clfwl01pgna1cf", "vserver-name": "clfwl01pgna1cf", "relationship-list": {"relationship": [{"relationship-data": [{"relationship-key": "generic-vnf.vnf-id", "relationship-value": "f50214ae-2294-4eee-9564-8a4aef4738b5"}], "related-to": "generic-vnf"}, {"relationship-data": [{"relationship-key": "flavor.flavor-id", "relationship-value": "377c039b-68bc-4ae2-af27-888c90ffd476"}, {"relationship-key": "cloud-region.cloud-owner", "relationship-value": "AmdocsPrivateCloud"}, {"relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne"}], "related-to": "flavor"}, {"relationship-data": [{"relationship-key": "image.image-id", "relationship-value": "a8fd3851-7738-4283-9e1d-4f204880c3e0"}, {"relationship-key": "cloud-region.cloud-owner", "relationship-value": "AmdocsPrivateCloud"}, {"relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne"}], "related-to": "image"}]}, "volumes": [], "prov-status": "ACTIVE", "vserver-id": "9d3c1f92-6a66-4fe2-b2a8-eebe04827445", "vserver-selflink": "http://10.247.134.60:8774/v2.1/8df05eabb7b24678aa3006d280f1e95f/servers/9d3c1f92-6a66-4fe2-b2a8-eebe04827445"}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/tenants/tenant/8df05eabb7b24678aa3006d280f1e95f/vservers/vserver/9d3c1f92-6a66-4fe2-b2a8-eebe04827445"}]}, {"put": [{"body": {"vserver-name2": "clfwl01fwla1cf", "vserver-name": "clfwl01fwla1cf", "relationship-list": {"relationship": [{"relationship-data": [{"relationship-key": "generic-vnf.vnf-id", "relationship-value": "f50214ae-2294-4eee-9564-8a4aef4738b5"}], "related-to": "generic-vnf"}, {"relationship-data": [{"relationship-key": "flavor.flavor-id", "relationship-value": "377c039b-68bc-4ae2-af27-888c90ffd476"}, {"relationship-key": "cloud-region.cloud-owner", "relationship-value": "AmdocsPrivateCloud"}, {"relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne"}], "related-to": "flavor"}, {"relationship-data": [{"relationship-key": "image.image-id", "relationship-value": "a8fd3851-7738-4283-9e1d-4f204880c3e0"}, {"relationship-key": "cloud-region.cloud-owner", "relationship-value": "AmdocsPrivateCloud"}, {"relationship-key": "cloud-region.cloud-region-id", "relationship-value": "RegionOne"}], "related-to": "image"}]}, "volumes": [], "prov-status": "ACTIVE", "vserver-id": "b1f9a171-3731-4a03-91a9-6df17fa6cae9", "vserver-selflink": "http://10.247.134.60:8774/v2.1/8df05eabb7b24678aa3006d280f1e95f/servers/b1f9a171-3731-4a03-91a9-6df17fa6cae9"}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/tenants/tenant/8df05eabb7b24678aa3006d280f1e95f/vservers/vserver/b1f9a171-3731-4a03-91a9-6df17fa6cae9"}]}, {"put": [{"body": {"macaddr": "fa:16:3e:af:62:53", "interface-name": "Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vsn_private_1_port-qmxepe4u2gmv", "l3-interface-ipv4-address-list": [{"neutron-subnet-id": "09159bf2-a3aa-462b-a3c2-fc95a380044a", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "ff1b73e9-9273-4a33-b782-21145b9da423", "l3-interface-ipv4-address": "10.1.0.13"}], "interface-id": "e9f69a61-7f0d-40de-b950-22ec99c6be52", "network-name": "ff1b73e9-9273-4a33-b782-21145b9da423", "l3-interface-ipv6-address-list": []}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/tenants/tenant/8df05eabb7b24678aa3006d280f1e95f/vservers/vserver/9d08fea3-a15d-4b25-b3bb-5014808c8f9f/l-interfaces/l-interface/Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vsn_private_1_port-qmxepe4u2gmv"}]}, {"put": [{"body": {"macaddr": "fa:16:3e:d5:9e:16", "interface-name": "Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vfw_private_2_port-ahc5f6yftmmh", "l3-interface-ipv4-address-list": [{"neutron-subnet-id": "09159bf2-a3aa-462b-a3c2-fc95a380044a", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "ff1b73e9-9273-4a33-b782-21145b9da423", "l3-interface-ipv4-address": "10.1.0.11"}], "interface-id": "c80eab6d-7c7f-411f-bd91-f920c71cf2fa", "network-name": "ff1b73e9-9273-4a33-b782-21145b9da423", "l3-interface-ipv6-address-list": []}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/tenants/tenant/8df05eabb7b24678aa3006d280f1e95f/vservers/vserver/b1f9a171-3731-4a03-91a9-6df17fa6cae9/l-interfaces/l-interface/Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vfw_private_2_port-ahc5f6yftmmh"}]}, {"put": [{"body": {"macaddr": "fa:16:3e:34:bd:d0", "interface-name": "Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vfw_private_1_port-e3gjsi5z6iwj", "l3-interface-ipv4-address-list": [{"neutron-subnet-id": "ccd93325-4cf9-4cd7-a414-056309a6e61f", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "a78ff32a-2300-4712-8267-7002eb216f05", "l3-interface-ipv4-address": "192.168.120.100"}], "interface-id": "5bdef508-3ed6-4e92-88e3-9d65f245ea6d", "network-name": "a78ff32a-2300-4712-8267-7002eb216f05", "l3-interface-ipv6-address-list": []}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/tenants/tenant/8df05eabb7b24678aa3006d280f1e95f/vservers/vserver/b1f9a171-3731-4a03-91a9-6df17fa6cae9/l-interfaces/l-interface/Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vfw_private_1_port-e3gjsi5z6iwj"}]}, {"put": [{"body": {"macaddr": "fa:16:3e:d5:87:75", "interface-name": "Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vpg_private_1_port-5uehwmuarnm3", "l3-interface-ipv4-address-list": [{"neutron-subnet-id": "09159bf2-a3aa-462b-a3c2-fc95a380044a", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "ff1b73e9-9273-4a33-b782-21145b9da423", "l3-interface-ipv4-address": "10.1.0.12"}], "interface-id": "e7b2210f-8d2e-45d6-b59a-afa2388af91e", "network-name": "ff1b73e9-9273-4a33-b782-21145b9da423", "l3-interface-ipv6-address-list": []}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/tenants/tenant/8df05eabb7b24678aa3006d280f1e95f/vservers/vserver/9d3c1f92-6a66-4fe2-b2a8-eebe04827445/l-interfaces/l-interface/Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vpg_private_1_port-5uehwmuarnm3"}]}, {"put": [{"body": {"macaddr": "fa:16:3e:86:fa:d7", "interface-name": "Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vpg_private_0_port-ecihfbcgjg6q", "l3-interface-ipv4-address-list": [{"neutron-subnet-id": "25f3240d-8203-4604-905d-be8821785a85", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "af68cc1a-b632-444c-8766-a01f7019e89b", "l3-interface-ipv4-address": "192.168.110.200"}], "interface-id": "e93e7ef0-9366-44bf-9efb-de109d36ccfa", "network-name": "af68cc1a-b632-444c-8766-a01f7019e89b", "l3-interface-ipv6-address-list": []}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/tenants/tenant/8df05eabb7b24678aa3006d280f1e95f/vservers/vserver/9d3c1f92-6a66-4fe2-b2a8-eebe04827445/l-interfaces/l-interface/Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vpg_private_0_port-ecihfbcgjg6q"}]}, {"put": [{"body": {"macaddr": "fa:16:3e:94:cb:3d", "interface-name": "Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vsn_private_0_port-fjuckj4hhl24", "l3-interface-ipv4-address-list": [{"neutron-subnet-id": "ccd93325-4cf9-4cd7-a414-056309a6e61f", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "a78ff32a-2300-4712-8267-7002eb216f05", "l3-interface-ipv4-address": "192.168.120.250"}], "interface-id": "fe811143-30c5-458a-bb23-4b207638aca2", "network-name": "a78ff32a-2300-4712-8267-7002eb216f05", "l3-interface-ipv6-address-list": []}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/tenants/tenant/8df05eabb7b24678aa3006d280f1e95f/vservers/vserver/9d08fea3-a15d-4b25-b3bb-5014808c8f9f/l-interfaces/l-interface/Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vsn_private_0_port-fjuckj4hhl24"}]}, {"put": [{"body": {"macaddr": "fa:16:3e:41:00:43", "interface-name": "Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vfw_private_0_port-xvozmsaid567", "l3-interface-ipv4-address-list": [{"neutron-subnet-id": "25f3240d-8203-4604-905d-be8821785a85", "l3-interface-ipv4-prefix-length": "32", "neutron-network-id": "af68cc1a-b632-444c-8766-a01f7019e89b", "l3-interface-ipv4-address": "192.168.110.100"}], "interface-id": "5034b1ca-f082-4f49-86d7-fa52f12dda37", "network-name": "af68cc1a-b632-444c-8766-a01f7019e89b", "l3-interface-ipv6-address-list": []}, "uri": "/cloud-infrastructure/cloud-regions/cloud-region/AmdocsPrivateCloud/RegionOne/tenants/tenant/8df05eabb7b24678aa3006d280f1e95f/vservers/vserver/b1f9a171-3731-4a03-91a9-6df17fa6cae9/l-interfaces/l-interface/Vfmodule_Ete_Namec71900c1-a2a9-43e6-a9de-bff4ac3da1cf-vfw_private_0_port-xvozmsaid567"}]}]}

        URI :/aai/v8/bulkadd 



        2. API specifications i am not aware of exactly. I have observed  all this looking at Robot scripts only.

      CommentAdd your comment...