Files
openlan-cgw/utils/kafka_producer/kafka_data/message_template.json
Oleksandr Mazur e9d37d1b8c Initial formalization of API in form of YAML files
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>
2024-12-19 14:51:16 +02:00

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
}
}