summaryrefslogtreecommitdiff
path: root/lib/freebsd-queue.h
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2024-02-24 00:06:41 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2024-02-24 01:39:18 +0200
commit0b905f740459291bca12e552aea4975fb46e9d98 (patch)
treec557d44049cd49936d6f53d7d700a609b6b8348f /lib/freebsd-queue.h
parent38b85e0c2bc555b8827dbd2cb6515b6febf548b4 (diff)
lib: fix nb callbacks for containers inside choice case
Containers inside a choice's case must be treated as presence containers as they can be explicitly created and deleted. They must have `create` and `destroy` callbacks, otherwise the internal data they represent may never be deleted. The issue can be reproduced with the following steps: - create an access-list with destination-network params ``` # access-list test seq 1 permit ip any 10.10.10.0 0.0.0.255 ``` - delete the `destination-network` container ``` # mgmt delete-config /frr-filter:lib/access-list[name='test'][type='ipv4']/entry[sequence='1']/destination-network # mgmt commit apply MGMTD: No changes found to be committed! ``` As the `destination-network` container is non-presence, and all its leafs are mandatory, mgmtd doesn't see any changes to be commited and simply updates its YANG data tree without passing any updates to backend daemons. This commit fixes the issue by requiring `create` and `destroy` callbacks for containers inside choice's cases. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/freebsd-queue.h')
0 files changed, 0 insertions, 0 deletions