commit | 9d980ce62d1f12d1e3fba48efb50398b8b95272a | [log] [tgz] |
---|---|---|
author | alex_sh <alexs@att.com> | Wed Aug 23 17:30:56 2017 -0400 |
committer | alex_sh <alexs@att.com> | Wed Aug 23 17:59:20 2017 -0400 |
tree | bbd0651db6ecb86bbdbae8594f00c5d37e0b30cf | |
parent | 52b336b9a7c8b85460040bf56e4ad4d3e225ffd2 [diff] |
policy-handler seed code Change-Id: I35cd80b6e082f4b84740bab752774e8abc40ca35 Issue-Id: DCAEGEN2-46 Signed-off-by: Alex Shatov <alexs@att.com>
virtualenv policy_venv
cd policy_venv
source bin/activate
cd ../policy_handler
pip install -r requirements.txt
cd policy_venv
source bin/activate
cd ../policy_handler
in folder policy_handler
:
- `config.json` contains - `"scope_prefixes" : ["DCAE_alex.Config_"]` - the list of policy-scope-class values - `"policy_engine"` - the http connect info to ECOMP **policy-engine** - headers.ClientAuth : base64(<mech-id with namespace>:<password>) - headers.Authorization : base64(<policy-engine server auth>) - `"deploy_handler"` - the http connect info to _policy part_ of the **deploy-handler** - `policy_engine.properties` contains config info for the client lib of ECOMP **policy-engine** that receives push notifications from the ECOMP **policy-engine** server - CLIENT_ID is the mech-id with the namespace - need to register with policy-engine team thru email - CLIENT_KEY is the base64 of the mech-id password - separate passwords for TEST versus PROD
in folder policy_handler
:
./run_policy.sh