summaryrefslogtreecommitdiff
path: root/lib/northbound_grpc.cpp
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2019-02-02 18:03:15 -0200
committerRenato Westphal <renato@opensourcerouting.org>2019-04-26 18:04:22 -0300
commit364ad673c885d741d575e97dbae70bf6d7c8f36e (patch)
treeb971e555c4c651502e1e3caae9b0d1d85c42c6ba /lib/northbound_grpc.cpp
parent86336f620f6e175e5552085877fa02ffaf9591b1 (diff)
lib: add API to allow northbound clients to lock/unlock the running configuration
The ability to lock the running configuration to prevent other users from changing it is a very important one. We already supported the "configure exclusive" command but the lock was applied to the CLI users only (other clients like ConfD could still commit configuration transactions, ignoring the CLI lock). This commit introduces a global lock for the running configuration that is shared by all northbound clients, and provides a public API to manipulate it. This way other northbound clients will also be able to lock/unlock the running configuration if required (the upcoming gRPC northbound plugin will have RPCs for that). NOTE: this is a management-level lock for the running configuration, not to be confused with low-level locks used to avoid data races. Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/northbound_grpc.cpp')
0 files changed, 0 insertions, 0 deletions