Traffic Distributtion support added 34/84534/3
authorLukasz Rajewski <lukasz.rajewski@orange.com>
Mon, 8 Apr 2019 13:05:22 +0000 (15:05 +0200)
committerLukasz Rajewski <lukasz.rajewski@orange.com>
Thu, 18 Apr 2019 15:05:54 +0000 (17:05 +0200)
commitfc3ead31e631f69fabf0baaa20c10bf955ce374b
tree5227f20b49628ddf2e3ac533d0cd1dcb9d32a9e8
parent2d59800cf61a90e2a80902186bdce3b28e5ae14d
Traffic Distributtion support added

* New local polcies for vFW TD use case
* Fixed encoding for conductor_request template and parameters
  section modified to accept all requestParameters
* Conductor request can have many attributes in the
  'attributes' section - all that are defined in the vnf policy file
* Conductor request can have many request parameters in the
  'requestParameters' section. The parameters come from QueryPolicies.
  Before list of suppoted parameters was hardcoded
* Optional 'unique' parameter added to the placementDemand section.
  It is already supported by conductor for all inventory types
* Improved debug logs for local policies
* Unit tests added for expanded request format

Change-Id: I41f219c366a3a77881c7096e64a6272edbada23b
Issue-ID: OPTFRA-443
Signed-off-by: Lukasz Rajewski <lukasz.rajewski@orange.com>
22 files changed:
config/common_config.yaml
config/has_config.yaml
osdf/adapters/local_data/local_policies.py
osdf/adapters/policy/interface.py
osdf/models/api/placementRequest.py
osdf/optimizers/placementopt/conductor/api_builder.py
osdf/optimizers/placementopt/conductor/translation.py
osdf/templates/conductor_interface.json
test/conductor/test_conductor_calls.py
test/conductor/test_conductor_translation.py
test/placement-tests/request_placement_vfmod.json [new file with mode: 0644]
test/placement-tests/request_vfmod.json [new file with mode: 0644]
test/placement-tests/response_vfmod.json [new file with mode: 0644]
test/policy-local-files/QueryPolicy_vFW_TD.json [new file with mode: 0644]
test/policy-local-files/affinity_vFW_TD.json [new file with mode: 0644]
test/policy-local-files/meta-valid-policies.txt
test/policy-local-files/vnfPolicy_vFW_TD.json [new file with mode: 0644]
test/policy-local-files/vnfPolicy_vPGN_TD.json [new file with mode: 0644]
test/test_ConductorApiBuilder.py
test/test_api_validation.py
test/test_get_opt_query_data.py
test/test_process_placement_opt.py