summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2023-10-05 23:13:16 +0200
committerIgor Ryzhov <iryzhov@nfware.com>2024-01-11 14:06:50 +0100
commit5d1a31403832a069d1b655bc3410fcd770ad8313 (patch)
tree733aa85a7c347533acd0ca952fa235a72ed486e8 /lib/vty.c
parentMerge pull request #15098 from donaldsharp/lib_zebra_h_cleanup_2 (diff)
downloadfrr-5d1a31403832a069d1b655bc3410fcd770ad8313.tar.xz
frr-5d1a31403832a069d1b655bc3410fcd770ad8313.zip
lib: split nb_operation into two types
Currently, nb_operation enum means two different things - edit operation type (frontend part), and callback type (backend part). These types overlap, but they are not identical. We need to add more operation types to support NETCONF/RESTCONF integration, so it's better to have separate enums to identify different entities. Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/vty.c b/lib/vty.c
index c7029bdcb..546392ba7 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -4004,16 +4004,9 @@ int vty_mgmt_send_config_data(struct vty *vty, const char *xpath_base,
case NB_OP_CREATE:
case NB_OP_MODIFY:
case NB_OP_MOVE:
- case NB_OP_PRE_VALIDATE:
- case NB_OP_APPLY_FINISH:
cfg_req[indx].req_type =
MGMTD__CFG_DATA_REQ_TYPE__SET_DATA;
break;
- case NB_OP_GET_ELEM:
- case NB_OP_GET_NEXT:
- case NB_OP_GET_KEYS:
- case NB_OP_LOOKUP_ENTRY:
- case NB_OP_RPC:
default:
assertf(false,
"Invalid operation type for send config: %d",