mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 04:25:43 +00:00

This commit introduces the MGMT Transaction framework that takes management requests from one (or more) frontend client sessions, translates them into transactions and drives them to completion in co-oridination with one (or more) backend client daemons involved in the request. This commit includes the following functionalities in the changeset: 1. Introduces the actual Transaction module. Commands added related to transaction are: a. show mgmt transaction all 2. Adds support for commit rollback feature which stores upto the 10 commit buffers. Each commit has a commit-id which can be used to rollback to the exact configuration state. Commands supported for this feature are: a. show mgmt commit-history b. mgmt rollback commit-id COMMIT_ID 3. Add hidden commands to enable record various performance metrics: a. mgmt performance-measurement b. mgmt reset-statistic Co-authored-by: Pushpasis Sarkar <pushpasis@gmail.com> Co-authored-by: Abhinay Ramesh <rabhinay@vmware.com> Co-authored-by: Ujwal P <ujwalp@vmware.com> Signed-off-by: Yash Ranjan <ranjany@vmware.com>
29 lines
749 B
C
29 lines
749 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* mgmt memory type declarations
|
|
*
|
|
* Copyright (C) 2021 Vmware, Inc.
|
|
* Pushpasis Sarkar <spushpasis@vmware.com>
|
|
*/
|
|
|
|
#ifndef _FRR_MGMTD_MEMORY_H
|
|
#define _FRR_MGMTD_MEMORY_H
|
|
|
|
#include "memory.h"
|
|
|
|
DECLARE_MGROUP(MGMTD);
|
|
DECLARE_MTYPE(MGMTD);
|
|
DECLARE_MTYPE(MGMTD_BE_ADPATER);
|
|
DECLARE_MTYPE(MGMTD_FE_ADPATER);
|
|
DECLARE_MTYPE(MGMTD_FE_SESSION);
|
|
DECLARE_MTYPE(MGMTD_TXN);
|
|
DECLARE_MTYPE(MGMTD_TXN_REQ);
|
|
DECLARE_MTYPE(MGMTD_TXN_SETCFG_REQ);
|
|
DECLARE_MTYPE(MGMTD_TXN_COMMCFG_REQ);
|
|
DECLARE_MTYPE(MGMTD_TXN_GETDATA_REQ);
|
|
DECLARE_MTYPE(MGMTD_TXN_GETDATA_REPLY);
|
|
DECLARE_MTYPE(MGMTD_TXN_CFG_BATCH);
|
|
DECLARE_MTYPE(MGMTD_BE_ADAPTER_MSG_BUF);
|
|
DECLARE_MTYPE(MGMTD_CMT_INFO);
|
|
#endif /* _FRR_MGMTD_MEMORY_H */
|