1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* MGMTD public defines.
*
* Copyright (C) 2021 Vmware, Inc.
* Pushpasis Sarkar <spushpasis@vmware.com>
*/
#ifndef _FRR_MGMTD_DEFINES_H
#define _FRR_MGMTD_DEFINES_H
#include "yang.h"
#define MGMTD_CLIENT_NAME_MAX_LEN 32
#define MGMTD_MAX_XPATH_LEN XPATH_MAXLEN
#define MGMTD_MAX_YANG_VALUE_LEN YANG_VALUE_MAXLEN
#define MGMTD_MAX_NUM_XPATH_REG 128
#define MGMTD_MAX_NUM_DATA_REQ_IN_BATCH 32
#define MGMTD_MAX_NUM_DATA_REPLY_IN_BATCH 8
enum mgmt_result {
MGMTD_SUCCESS = 0,
MGMTD_INVALID_PARAM,
MGMTD_INTERNAL_ERROR,
MGMTD_NO_CFG_CHANGES,
MGMTD_DS_LOCK_FAILED,
MGMTD_DS_UNLOCK_FAILED,
MGMTD_UNKNOWN_FAILURE
};
enum mgmt_fe_event {
MGMTD_FE_SERVER = 1,
MGMTD_FE_CONN_READ,
MGMTD_FE_CONN_WRITE,
MGMTD_FE_CONN_WRITES_ON,
MGMTD_FE_PROC_MSG
};
enum mgmt_be_event {
MGMTD_BE_SERVER = 1,
MGMTD_BE_CONN_INIT,
MGMTD_BE_CONN_READ,
MGMTD_BE_CONN_WRITE,
MGMTD_BE_CONN_WRITES_ON,
MGMTD_BE_PROC_MSG,
MGMTD_BE_SCHED_CFG_PREPARE,
MGMTD_BE_RESCHED_CFG_PREPARE,
MGMTD_BE_SCHED_CFG_APPLY,
MGMTD_BE_RESCHED_CFG_APPLY,
};
#define MGMTD_TXN_ID_NONE 0
#define MGMTD_TXN_BATCH_ID_NONE 0
#endif /* _FRR_MGMTD_DEFINES_H */
|