
Add dcmanager peer-group-association management API. This commit adds peer-group-association APIs of create/delete/update/show/list/sync, and adds system-peer API of list subcloud-peer-groups. Test Plan: 1. PASS - Verify that cloud manage peer-group-association through api successfully. 2. PASS - Verify that cloud get associated subcloud-peer-group list with system-peer api successfully. 3. PASS - Check create without providing the must required parameters. 4. PASS - Check create with wrong peer_group_priority. 5. PASS - Check delete with a not existing association id. 6. PASS - Check system_peer_manager associate peer group, sync peer group and delete association. 7. PASS - Create an association with 50 subclouds need to sync. Check the sync status on peer site after it is synced. Story: 2010852 Task: 48506 Change-Id: I41c16a8ab13e60f5b1de5b05fbbc51821f7f8d57 Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
13 lines
454 B
JSON
13 lines
454 B
JSON
{
|
|
"peer_uuid": "b00d0863-c54e-4340-af4d-3e2093764276",
|
|
"peer_name": "PeerDistributedCloud1",
|
|
"manager_endpoint": "http://128.128.128.1:5000/v3",
|
|
"manager_username": "admin",
|
|
"manager_password": "V2luZDEyMyQ=",
|
|
"peer_controller_gateway_address": "192.168.204.1",
|
|
"administrative_state": "enabled",
|
|
"heartbeat_interval": 60,
|
|
"heartbeat_failure_threshold": 3,
|
|
"heartbeat_failure_policy": "alarm",
|
|
"heartbeat_maintenance_timeout": 600
|
|
} |