mirror of
https://github.com/optim-enterprises-bv/openlan-cgw.git
synced 2025-10-29 09:22:22 +00:00
Add initial list of YAML files that formalize Kafka API: - requests list that CGW can handle - responses that CGW will generate - unsolicited events that CGW might generate Also a small cleanup of requests and responses was made, to align it with a common format (renamed some of the fields, added missing etc). Tests are tweaked to accomodate for changed field names. Signed-off-by: Oleksandr Mazur <oleksandr.mazur@plvision.eu>
39 lines
1.2 KiB
JSON
39 lines
1.2 KiB
JSON
{
|
|
"add_group": {
|
|
"type": "infrastructure_group_create",
|
|
"infra_group_id": "key",
|
|
"uuid": "290d06b6-8eba-11ee-8005-aabbccddeeff"
|
|
},
|
|
"add_group_to_shard": {
|
|
"type": "infrastructure_group_create_to_shard",
|
|
"infra_group_id": "key",
|
|
"shard_id": 0,
|
|
"uuid": "290d06b6-8eba-11ee-8005-aabbccddeeff"
|
|
},
|
|
"del_group": {
|
|
"type": "infrastructure_group_delete",
|
|
"infra_group_id": "key",
|
|
"uuid": "290d06b6-8eba-11ee-8005-aabbccddeeff"
|
|
},
|
|
"add_to_group": {
|
|
"type": "infrastructure_group_infras_add",
|
|
"infra_group_id": "key",
|
|
"infra_group_infras": [],
|
|
"uuid": "290d06b6-8eba-11ee-8005-aabbccddeeff"
|
|
},
|
|
"del_from_group": {
|
|
"type": "infrastructure_group_infras_del",
|
|
"infra_group_id": "key",
|
|
"infra_group_infras": [],
|
|
"uuid": "290d06b6-8eba-11ee-8005-aabbccddeeff"
|
|
},
|
|
"message_infra": {
|
|
"type": "infrastructure_group_infra_message_enqueue",
|
|
"infra_group_id": "key",
|
|
"infra_group_infra": "mac",
|
|
"msg": {},
|
|
"uuid": "290d06b6-8eba-11ee-8005-aabbccddeeff",
|
|
"timeout": 60
|
|
}
|
|
}
|