Hi Team, I am facing an issue where commit-id is getting improperly incremented when restconf is used. This unusual behavior is causing issues while doing a configuration rollback since we are not sure if each command increased commit IDs by 1 or 2.
confd version: 8.0
I can see two issues:
- If I did few CLI commits, and then did a change via restconf, commit-id is incremented by 2 (10022–> 10024)
- If I pushed a config via restconf that already exists, commit-id is not incremented (expected since there is no delta), but after this if I do another configuration via restconf which does have a config change, commit-ids are incremented by 2. (10027–> 10029)
admin@kumar-abhijeet-10-164-33-141-08-28-06-44 08:26:21# show configuration commit list
2023-08-28 08:26:48
SNo. ID User Client Time Stamp Label Comment
0 10029 admin rest 2023-08-28 08:26:42
1 10027 admin rest 2023-08-28 08:25:51
2 10026 admin rest 2023-08-28 08:24:36
3 10025 admin rest 2023-08-28 08:22:36
4 10024 admin rest 2023-08-28 08:21:07
5 10022 admin cli 2023-08-24 12:03:05
6 10021 admin cli 2023-08-24 12:01:36
7 10020 admin cli 2023-08-24 12:00:44
8 10019 admin cli 2023-08-24 11:59:45