summaryrefslogtreecommitdiff
path: root/lib/vrf.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2021-06-02 18:13:42 -0400
committerGitHub <noreply@github.com>2021-06-02 18:13:42 -0400
commitd64162ce84ffeefbbc95a91e7a87b2544926c886 (patch)
tree1a61fc71c469b4fefb75179e3cc4d0bd2ad3de37 /lib/vrf.c
parentd532d1092e165dc9b7164039c0366c4f2856c9f9 (diff)
parentfd396924d6fedf0c68707b314fb216b6b7544bcb (diff)
Merge pull request #8210 from LabNConsulting/chopps/always-batch
northbound: KISS always batch yang config, it's faster.
Diffstat (limited to 'lib/vrf.c')
-rw-r--r--lib/vrf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/vrf.c b/lib/vrf.c
index 185a11664a..a44cc50f92 100644
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -690,10 +690,9 @@ int vrf_handler_create(struct vty *vty, const char *vrfname,
vrfname);
nb_cli_enqueue_change(vty, xpath_list, NB_OP_CREATE, NULL);
- ret = nb_cli_apply_changes(vty, xpath_list);
+ ret = nb_cli_apply_changes_clear_pending(vty, xpath_list);
if (ret == CMD_SUCCESS) {
VTY_PUSH_XPATH(VRF_NODE, xpath_list);
- nb_cli_pending_commit_check(vty);
vrfp = vrf_lookup_by_name(vrfname);
if (vrfp)
VTY_PUSH_CONTEXT(VRF_NODE, vrfp);