mirror_frr/mgmtd
Christian Hopps c10f8e6da6 mgmtd: KISS the locking code
Move away from things like "lock if not locked" type code, require the
user has locked prior to geting to that point.

For now we warn if we are taking a lock we already had; however, this
should really be a failure point.

New requirements:

SETCFG -
  not implicit commit - requires user has locked candidate DS and they
    must unlock after

  implicit commit - requires user has locked candidate and running DS
    both locks will be unlocked on reply to the SETCFG

COMMITCFG -
  requires user has locked candidate and running DS and they must unlock
  after

  rollback - this code now get both locks and then does an unlock and
  early return thing on the adapter side. It needs to be un-special
  cased in follow up work that would also include tests for this
  functionality.

Signed-off-by: Christian Hopps <chopps@labn.net>
2023-06-25 04:46:54 -04:00
..
.gitignore mgmtd: Bringup MGMTD daemon and datastore module support 2023-03-21 22:08:32 -04:00
Makefile mgmtd: Bringup MGMTD daemon and datastore module support 2023-03-21 22:08:32 -04:00
mgmt_be_adapter.c mgmtd: simplify locking, removing read locks 2023-06-25 04:46:54 -04:00
mgmt_be_adapter.h mgmtd: simplify locking, removing read locks 2023-06-25 04:46:54 -04:00
mgmt_defines.h lib: remove write-on-off, just requeue to the back of the queue 2023-05-28 05:13:22 -04:00
mgmt_ds.c mgmtd: simplify locking, removing read locks 2023-06-25 04:46:54 -04:00
mgmt_ds.h mgmtd: simplify locking, removing read locks 2023-06-25 04:46:54 -04:00
mgmt_fe_adapter.c mgmtd: KISS the locking code 2023-06-25 04:46:54 -04:00
mgmt_fe_adapter.h mgmtd: convert BE/FE adapter to use allocated connections 2023-05-28 05:13:22 -04:00
mgmt_history.c mgmtd: KISS the locking code 2023-06-25 04:46:54 -04:00
mgmt_history.h mgmtd: assert an assertion for coverity 2023-06-07 06:13:12 +00:00
mgmt_main.c lib: mgmtd: add manual vty server start option and use it 2023-05-30 02:10:20 -04:00
mgmt_memory.c mgmtd: cleanup BE xpath subscription and matching code 2023-05-30 02:10:20 -04:00
mgmt_memory.h mgmtd: cleanup BE xpath subscription and matching code 2023-05-30 02:10:20 -04:00
mgmt_txn.c mgmtd: KISS the locking code 2023-06-25 04:46:54 -04:00
mgmt_txn.h mgmtd: simplify locking, removing read locks 2023-06-25 04:46:54 -04:00
mgmt_vty.c lib: mgmtd: simplify implicit commit code 2023-06-23 19:18:36 +00:00
mgmt.c mgmtd: fix possible race btw read config and backend connection 2023-05-30 11:52:19 -04:00
mgmt.h mgmtd: fix reading of config file[s] 2023-05-30 02:09:44 -04:00
subdir.am Merge pull request #13601 from opensourcerouting/build-yang-embed-20230525 2023-05-30 11:34:29 -04:00