2 * Bgp northbound config callbacks
3 * Copyright (C) 2020 Nvidia
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
16 * You should have received a copy of the GNU General Public License along
17 * with this program; see the file COPYING; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21 #include "northbound.h"
24 #include "bgpd/bgp_nb.h"
25 #include "bgpd/bgp_nb.h"
26 #include "bgpd/bgpd.h"
27 #include "bgpd/bgp_vty.h"
28 #include "bgpd/bgp_mplsvpn.h"
29 #include "bgpd/bgp_fsm.h"
30 #include "bgpd/bgp_addpath.h"
31 #include "bgpd/bgp_updgrp.h"
32 #include "bgpd/bgp_io.h"
33 #include "bgpd/bgp_damp.h"
35 FRR_CFG_DEFAULT_ULONG(BGP_CONNECT_RETRY
,
36 { .val_ulong
= 10, .match_profile
= "datacenter", },
39 FRR_CFG_DEFAULT_ULONG(BGP_HOLDTIME
,
40 { .val_ulong
= 9, .match_profile
= "datacenter", },
43 FRR_CFG_DEFAULT_ULONG(BGP_KEEPALIVE
,
44 { .val_ulong
= 3, .match_profile
= "datacenter", },
48 int routing_control_plane_protocols_name_validate(
49 struct nb_cb_create_args
*args
)
53 name
= yang_dnode_get_string(args
->dnode
, "./name");
54 if (!strmatch(name
, "bgp")) {
55 snprintf(args
->errmsg
, args
->errmsg_len
,
56 "per vrf only one bgp instance is supported.");
57 return NB_ERR_VALIDATION
;
64 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp
66 int bgp_router_create(struct nb_cb_create_args
*args
)
68 const struct lyd_node
*vrf_dnode
;
71 const char *name
= NULL
;
73 enum bgp_instance_type inst_type
;
74 bool is_view_inst
= false;
78 inst_type
= BGP_INSTANCE_TYPE_DEFAULT
;
80 switch (args
->event
) {
86 vrf_dnode
= yang_dnode_get_parent(args
->dnode
,
87 "control-plane-protocol");
88 vrf
= nb_running_get_entry(vrf_dnode
, NULL
, true);
90 if (strmatch(vrf
->name
, VRF_DEFAULT_NAME
)) {
94 inst_type
= BGP_INSTANCE_TYPE_VRF
;
97 as
= yang_dnode_get_uint32(args
->dnode
, "./global/local-as");
99 is_view_inst
= yang_dnode_get_bool(
100 args
->dnode
, "./global/instance-type-view");
102 inst_type
= BGP_INSTANCE_TYPE_VIEW
;
104 if (inst_type
== BGP_INSTANCE_TYPE_DEFAULT
)
105 is_new_bgp
= (bgp_lookup(as
, name
) == NULL
);
107 ret
= bgp_get_vty(&bgp
, &as
, name
, inst_type
);
108 if (ret
== BGP_ERR_INSTANCE_MISMATCH
) {
110 args
->errmsg
, args
->errmsg_len
,
111 "BGP instance name and AS number mismatch\nBGP instance is already running; AS is %u, input-as %u",
114 return NB_ERR_INCONSISTENCY
;
117 * If we just instantiated the default instance, complete
118 * any pending VRF-VPN leaking that was configured via
119 * earlier "router bgp X vrf FOO" blocks.
121 if (is_new_bgp
&& inst_type
== BGP_INSTANCE_TYPE_DEFAULT
)
122 vpn_leak_postchange_all();
124 if (inst_type
== BGP_INSTANCE_TYPE_VRF
)
125 bgp_vpn_leak_export(bgp
);
127 UNSET_FLAG(bgp
->vrf_flags
, BGP_VRF_AUTO
);
129 nb_running_set_entry(args
->dnode
, bgp
);
136 int bgp_router_destroy(struct nb_cb_destroy_args
*args
)
140 switch (args
->event
) {
142 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
148 snprintf(args
->errmsg
, args
->errmsg_len
,
149 "Please unconfigure l3vni %u", bgp
->l3vni
);
150 return NB_ERR_VALIDATION
;
153 /* Cannot delete default instance if vrf instances exist */
154 if (bgp
->inst_type
== BGP_INSTANCE_TYPE_DEFAULT
) {
155 struct listnode
*node
;
158 for (ALL_LIST_ELEMENTS_RO(bm
->bgp
, node
, tmp_bgp
)) {
159 if (tmp_bgp
->inst_type
160 == BGP_INSTANCE_TYPE_VRF
) {
162 args
->errmsg
, args
->errmsg_len
,
163 "Cannot delete default BGP instance. Dependent VRF instances exist\n");
164 return NB_ERR_VALIDATION
;
174 bgp
= nb_running_unset_entry(args
->dnode
);
186 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/local-as
188 int bgp_global_local_as_modify(struct nb_cb_modify_args
*args
)
192 const struct lyd_node
*vrf_dnode
;
193 const char *vrf_name
;
194 const char *name
= NULL
;
195 enum bgp_instance_type inst_type
;
197 bool is_view_inst
= false;
199 switch (args
->event
) {
201 as
= yang_dnode_get_uint32(args
->dnode
, NULL
);
203 inst_type
= BGP_INSTANCE_TYPE_DEFAULT
;
205 vrf_dnode
= yang_dnode_get_parent(args
->dnode
,
206 "control-plane-protocol");
207 vrf_name
= yang_dnode_get_string(vrf_dnode
, "./vrf");
209 if (strmatch(vrf_name
, VRF_DEFAULT_NAME
)) {
213 inst_type
= BGP_INSTANCE_TYPE_VRF
;
216 is_view_inst
= yang_dnode_get_bool(args
->dnode
,
217 "../instance-type-view");
219 inst_type
= BGP_INSTANCE_TYPE_VIEW
;
221 ret
= bgp_lookup_by_as_name_type(&bgp
, &as
, name
, inst_type
);
222 if (ret
== BGP_ERR_INSTANCE_MISMATCH
) {
224 args
->errmsg
, args
->errmsg_len
,
225 "BGP instance name and AS number mismatch\nBGP instance is already running; input-as %u",
228 return NB_ERR_VALIDATION
;
236 /* NOTE: handled in bgp_global_create callback, the as change
237 * will be rejected in validate phase.
239 as
= yang_dnode_get_uint32(args
->dnode
, NULL
);
240 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
242 snprintf(args
->errmsg
, args
->errmsg_len
,
243 "BGP instance is already running; AS is %u",
245 return NB_ERR_INCONSISTENCY
;
255 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/router-id
257 int bgp_global_router_id_modify(struct nb_cb_modify_args
*args
)
259 if (args
->event
!= NB_EV_APPLY
)
263 struct in_addr router_id
;
265 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
266 yang_dnode_get_ipv4(&router_id
, args
->dnode
, NULL
);
267 bgp_router_id_static_set(bgp
, router_id
);
272 int bgp_global_router_id_destroy(struct nb_cb_destroy_args
*args
)
274 if (args
->event
!= NB_EV_APPLY
)
278 struct in_addr router_id
;
280 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
282 router_id
.s_addr
= 0;
283 bgp_router_id_static_set(bgp
, router_id
);
290 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/confederation/identifier
292 int bgp_global_confederation_identifier_modify(struct nb_cb_modify_args
*args
)
297 switch (args
->event
) {
299 as
= yang_dnode_get_uint32(args
->dnode
, NULL
);
301 snprintf(args
->errmsg
, args
->errmsg_len
, "Invalid AS.");
302 return NB_ERR_VALIDATION
;
310 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
312 as
= yang_dnode_get_uint32(args
->dnode
, NULL
);
314 bgp_confederation_id_set(bgp
, as
);
322 int bgp_global_confederation_identifier_destroy(struct nb_cb_destroy_args
*args
)
324 if (args
->event
!= NB_EV_APPLY
)
329 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
331 bgp_confederation_id_unset(bgp
);
338 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/confederation/member-as
340 int bgp_global_confederation_member_as_create(struct nb_cb_create_args
*args
)
346 switch (args
->event
) {
348 my_as
= yang_dnode_get_uint32(args
->dnode
,
349 "../../../global/local-as");
350 as
= yang_dnode_get_uint32(args
->dnode
, NULL
);
353 args
->errmsg
, args
->errmsg_len
,
354 "Local member-AS %u not allowed in confed peer list",
356 return NB_ERR_VALIDATION
;
364 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
365 as
= yang_dnode_get_uint32(args
->dnode
, NULL
);
367 ret
= bgp_confederation_peers_add(bgp
, as
);
368 if (ret
== BGP_ERR_INVALID_AS
) {
370 args
->errmsg
, args
->errmsg_len
,
371 "Local member-AS not alloed in confed peer list");
372 return NB_ERR_INCONSISTENCY
;
381 int bgp_global_confederation_member_as_destroy(struct nb_cb_destroy_args
*args
)
383 if (args
->event
!= NB_EV_APPLY
)
389 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
390 as
= yang_dnode_get_uint32(args
->dnode
, NULL
);
392 bgp_confederation_peers_remove(bgp
, as
);
399 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/med-config
401 void bgp_global_med_config_apply_finish(struct nb_cb_apply_finish_args
*args
)
405 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
407 bgp_maxmed_update(bgp
);
412 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/med-config/enable-med-admin
414 int bgp_global_med_config_enable_med_admin_modify(
415 struct nb_cb_modify_args
*args
)
417 if (args
->event
!= NB_EV_APPLY
)
422 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
424 bgp
->v_maxmed_admin
= yang_dnode_get_bool(args
->dnode
, NULL
);
431 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/med-config/max-med-admin
433 int bgp_global_med_config_max_med_admin_modify(struct nb_cb_modify_args
*args
)
436 uint32_t med_admin_val
;
438 switch (args
->event
) {
440 med_admin_val
= yang_dnode_get_uint32(args
->dnode
, NULL
);
442 /* enable_med_admin is required to be enabled for max-med-admin
445 if (med_admin_val
!= BGP_MAXMED_VALUE_DEFAULT
446 && !yang_dnode_get_bool(args
->dnode
,
447 "../enable-med-admin")) {
448 snprintf(args
->errmsg
, args
->errmsg_len
,
449 "enable med admin is not set");
450 return NB_ERR_VALIDATION
;
458 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
460 med_admin_val
= yang_dnode_get_uint32(args
->dnode
, NULL
);
462 bgp
->maxmed_admin_value
= med_admin_val
;
472 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/med-config/max-med-onstart-up-time
474 int bgp_global_med_config_max_med_onstart_up_time_modify(
475 struct nb_cb_modify_args
*args
)
479 switch (args
->event
) {
485 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
487 bgp
->v_maxmed_onstartup
=
488 yang_dnode_get_uint32(args
->dnode
, NULL
);
496 int bgp_global_med_config_max_med_onstart_up_time_destroy(
497 struct nb_cb_destroy_args
*args
)
501 switch (args
->event
) {
507 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
509 /* Cancel max-med onstartup if its on */
510 if (bgp
->t_maxmed_onstartup
) {
511 THREAD_OFF(bgp
->t_maxmed_onstartup
);
512 bgp
->maxmed_onstartup_over
= 1;
515 bgp
->v_maxmed_onstartup
= BGP_MAXMED_ONSTARTUP_UNCONFIGURED
;
516 /* Resetting onstartup value as part of dependent node is
519 bgp
->maxmed_onstartup_value
= BGP_MAXMED_VALUE_DEFAULT
;
529 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/med-config/max-med-onstart-up-value
531 int bgp_global_med_config_max_med_onstart_up_value_modify(
532 struct nb_cb_modify_args
*args
)
535 uint32_t onstartup_val
;
537 switch (args
->event
) {
539 onstartup_val
= yang_dnode_get_uint32(args
->dnode
, NULL
);
541 if (!yang_dnode_exists(args
->dnode
,
542 "../max-med-onstart-up-time")
543 && onstartup_val
!= BGP_MAXMED_VALUE_DEFAULT
) {
544 snprintf(args
->errmsg
, args
->errmsg_len
,
545 "max-med-onstart-up-time is not set.");
546 return NB_ERR_VALIDATION
;
554 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
556 bgp
->maxmed_onstartup_value
=
557 yang_dnode_get_uint32(args
->dnode
, NULL
);
567 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-reflector/route-reflector-cluster-id
569 int bgp_global_route_reflector_route_reflector_cluster_id_modify(
570 struct nb_cb_modify_args
*args
)
572 if (args
->event
!= NB_EV_APPLY
)
576 struct in_addr cluster_id
;
577 const struct lyd_node_leaf_list
*dleaf
;
579 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
581 dleaf
= (const struct lyd_node_leaf_list
*)args
->dnode
;
582 if (dleaf
->value_type
== LY_TYPE_STRING
)
583 yang_dnode_get_ipv4(&cluster_id
, args
->dnode
, NULL
);
585 (void)inet_aton(dleaf
->value_str
, &cluster_id
);
587 bgp_cluster_id_set(bgp
, &cluster_id
);
589 if (bgp_clear_star_soft_out(bgp
->name
, args
->errmsg
, args
->errmsg_len
))
590 return NB_ERR_INCONSISTENCY
;
595 int bgp_global_route_reflector_route_reflector_cluster_id_destroy(
596 struct nb_cb_destroy_args
*args
)
598 if (args
->event
!= NB_EV_APPLY
)
603 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
605 bgp_cluster_id_unset(bgp
);
607 if (bgp_clear_star_soft_out(bgp
->name
, args
->errmsg
, args
->errmsg_len
))
608 return NB_ERR_INCONSISTENCY
;
615 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-reflector/no-client-reflect
617 int bgp_global_route_reflector_no_client_reflect_modify(
618 struct nb_cb_modify_args
*args
)
620 if (args
->event
!= NB_EV_APPLY
)
625 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
627 if (yang_dnode_get_bool(args
->dnode
, NULL
))
628 SET_FLAG(bgp
->flags
, BGP_FLAG_NO_CLIENT_TO_CLIENT
);
630 UNSET_FLAG(bgp
->flags
, BGP_FLAG_NO_CLIENT_TO_CLIENT
);
632 if (bgp_clear_star_soft_out(bgp
->name
, args
->errmsg
, args
->errmsg_len
))
633 return NB_ERR_INCONSISTENCY
;
640 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-reflector/allow-outbound-policy
642 int bgp_global_route_reflector_allow_outbound_policy_modify(
643 struct nb_cb_modify_args
*args
)
645 if (args
->event
!= NB_EV_APPLY
)
650 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
652 if (yang_dnode_get_bool(args
->dnode
, NULL
))
653 SET_FLAG(bgp
->flags
, BGP_FLAG_RR_ALLOW_OUTBOUND_POLICY
);
655 UNSET_FLAG(bgp
->flags
, BGP_FLAG_RR_ALLOW_OUTBOUND_POLICY
);
657 update_group_announce_rrclients(bgp
);
659 if (bgp_clear_star_soft_out(bgp
->name
, args
->errmsg
, args
->errmsg_len
))
660 return NB_ERR_INCONSISTENCY
;
667 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-selection-options
669 void bgp_global_route_selection_options_apply_finish(
670 struct nb_cb_apply_finish_args
*args
)
674 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
676 bgp_recalculate_all_bestpaths(bgp
);
681 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-selection-options/always-compare-med
683 int bgp_global_route_selection_options_always_compare_med_modify(
684 struct nb_cb_modify_args
*args
)
686 if (args
->event
!= NB_EV_APPLY
)
691 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
693 if (yang_dnode_get_bool(args
->dnode
, NULL
))
694 SET_FLAG(bgp
->flags
, BGP_FLAG_ALWAYS_COMPARE_MED
);
696 UNSET_FLAG(bgp
->flags
, BGP_FLAG_ALWAYS_COMPARE_MED
);
704 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-selection-options/deterministic-med
706 int bgp_global_route_selection_options_deterministic_med_modify(
707 struct nb_cb_modify_args
*args
)
710 int bestpath_per_as_used
;
714 struct listnode
*node
;
716 switch (args
->event
) {
718 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
723 /* for deconfiguring deterministic-med case */
724 if (!yang_dnode_get_bool(args
->dnode
, NULL
)
725 && CHECK_FLAG(bgp
->flags
, BGP_FLAG_DETERMINISTIC_MED
)) {
726 bestpath_per_as_used
= 0;
728 for (ALL_LIST_ELEMENTS_RO(bgp
->peer
, node
, peer
)) {
729 FOREACH_AFI_SAFI (afi
, safi
)
730 if (bgp_addpath_dmed_required(
731 peer
->addpath_type
[afi
]
733 bestpath_per_as_used
= 1;
737 if (bestpath_per_as_used
)
741 if (bestpath_per_as_used
) {
743 args
->errmsg
, args
->errmsg_len
,
744 "bgp deterministic-med cannot be disabled while addpath-tx-bestpath-per-AS is in use");
745 return NB_ERR_VALIDATION
;
754 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
756 if (yang_dnode_get_bool(args
->dnode
, NULL
))
757 SET_FLAG(bgp
->flags
, BGP_FLAG_DETERMINISTIC_MED
);
759 UNSET_FLAG(bgp
->flags
, BGP_FLAG_DETERMINISTIC_MED
);
769 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-selection-options/confed-med
771 int bgp_global_route_selection_options_confed_med_modify(
772 struct nb_cb_modify_args
*args
)
774 if (args
->event
!= NB_EV_APPLY
)
779 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
781 if (yang_dnode_get_bool(args
->dnode
, NULL
))
782 SET_FLAG(bgp
->flags
, BGP_FLAG_MED_CONFED
);
784 UNSET_FLAG(bgp
->flags
, BGP_FLAG_MED_CONFED
);
791 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-selection-options/missing-as-worst-med
793 int bgp_global_route_selection_options_missing_as_worst_med_modify(
794 struct nb_cb_modify_args
*args
)
796 if (args
->event
!= NB_EV_APPLY
)
801 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
803 if (yang_dnode_get_bool(args
->dnode
, NULL
))
804 SET_FLAG(bgp
->flags
, BGP_FLAG_MED_MISSING_AS_WORST
);
806 UNSET_FLAG(bgp
->flags
, BGP_FLAG_MED_MISSING_AS_WORST
);
813 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-selection-options/aspath-confed
815 int bgp_global_route_selection_options_aspath_confed_modify(
816 struct nb_cb_modify_args
*args
)
818 switch (args
->event
) {
823 /* TODO: implement me. */
832 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-selection-options/ignore-as-path-length
834 int bgp_global_route_selection_options_ignore_as_path_length_modify(
835 struct nb_cb_modify_args
*args
)
837 if (args
->event
!= NB_EV_APPLY
)
842 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
844 if (yang_dnode_get_bool(args
->dnode
, NULL
))
845 SET_FLAG(bgp
->flags
, BGP_FLAG_ASPATH_IGNORE
);
847 UNSET_FLAG(bgp
->flags
, BGP_FLAG_ASPATH_IGNORE
);
854 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-selection-options/external-compare-router-id
856 int bgp_global_route_selection_options_external_compare_router_id_modify(
857 struct nb_cb_modify_args
*args
)
859 if (args
->event
!= NB_EV_APPLY
)
864 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
866 if (yang_dnode_get_bool(args
->dnode
, NULL
))
867 SET_FLAG(bgp
->flags
, BGP_FLAG_COMPARE_ROUTER_ID
);
869 UNSET_FLAG(bgp
->flags
, BGP_FLAG_COMPARE_ROUTER_ID
);
876 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-selection-options/allow-multiple-as
878 int bgp_global_route_selection_options_allow_multiple_as_modify(
879 struct nb_cb_modify_args
*args
)
883 switch (args
->event
) {
889 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
891 if (yang_dnode_get_bool(args
->dnode
, NULL
)) {
892 SET_FLAG(bgp
->flags
, BGP_FLAG_ASPATH_MULTIPATH_RELAX
);
893 if (yang_dnode_get_bool(args
->dnode
,
894 "../multi-path-as-set")) {
896 BGP_FLAG_MULTIPATH_RELAX_AS_SET
);
899 UNSET_FLAG(bgp
->flags
, BGP_FLAG_ASPATH_MULTIPATH_RELAX
);
901 UNSET_FLAG(bgp
->flags
, BGP_FLAG_MULTIPATH_RELAX_AS_SET
);
912 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/route-selection-options/multi-path-as-set
914 int bgp_global_route_selection_options_multi_path_as_set_modify(
915 struct nb_cb_modify_args
*args
)
919 switch (args
->event
) {
925 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
927 if (!CHECK_FLAG(bgp
->flags
, BGP_FLAG_MULTIPATH_RELAX_AS_SET
)) {
928 SET_FLAG(bgp
->flags
, BGP_FLAG_MULTIPATH_RELAX_AS_SET
);
932 "%s multi-path-as-set as part of allow-multiple-as modify cb.",
941 int bgp_global_route_selection_options_multi_path_as_set_destroy(
942 struct nb_cb_destroy_args
*args
)
946 switch (args
->event
) {
952 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
953 /* Only unset if it set, it is possible allow_multiple_as_modify
956 if (CHECK_FLAG(bgp
->flags
, BGP_FLAG_MULTIPATH_RELAX_AS_SET
)) {
957 UNSET_FLAG(bgp
->flags
, BGP_FLAG_MULTIPATH_RELAX_AS_SET
);
959 bgp_recalculate_all_bestpaths(bgp
);
970 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/global-neighbor-config/dynamic-neighbors-limit
972 int bgp_global_global_neighbor_config_dynamic_neighbors_limit_modify(
973 struct nb_cb_modify_args
*args
)
975 if (args
->event
!= NB_EV_APPLY
)
979 uint32_t listen_limit
;
981 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
983 listen_limit
= yang_dnode_get_uint32(args
->dnode
, NULL
);
985 bgp_listen_limit_set(bgp
, listen_limit
);
990 int bgp_global_global_neighbor_config_dynamic_neighbors_limit_destroy(
991 struct nb_cb_destroy_args
*args
)
993 if (args
->event
!= NB_EV_APPLY
)
998 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1000 bgp_listen_limit_unset(bgp
);
1007 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/global-neighbor-config/log-neighbor-changes
1009 int bgp_global_global_neighbor_config_log_neighbor_changes_modify(
1010 struct nb_cb_modify_args
*args
)
1012 if (args
->event
!= NB_EV_APPLY
)
1017 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1019 if (yang_dnode_get_bool(args
->dnode
, NULL
))
1020 SET_FLAG(bgp
->flags
, BGP_FLAG_LOG_NEIGHBOR_CHANGES
);
1022 UNSET_FLAG(bgp
->flags
, BGP_FLAG_LOG_NEIGHBOR_CHANGES
);
1029 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/global-neighbor-config/packet-quanta-config/wpkt-quanta
1031 int bgp_global_global_neighbor_config_packet_quanta_config_wpkt_quanta_modify(
1032 struct nb_cb_modify_args
*args
)
1034 if (args
->event
!= NB_EV_APPLY
)
1040 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1042 quanta
= yang_dnode_get_uint32(args
->dnode
, NULL
);
1044 if (atomic_load_explicit(&bgp
->wpkt_quanta
, memory_order_relaxed
)
1045 == BGP_WRITE_PACKET_MAX
)
1046 bgp_wpkt_quanta_config_vty(bgp
, quanta
, true);
1048 bgp_wpkt_quanta_config_vty(bgp
, quanta
, false);
1055 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/global-neighbor-config/packet-quanta-config/rpkt-quanta
1057 int bgp_global_global_neighbor_config_packet_quanta_config_rpkt_quanta_modify(
1058 struct nb_cb_modify_args
*args
)
1060 if (args
->event
!= NB_EV_APPLY
)
1066 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1068 quanta
= yang_dnode_get_uint32(args
->dnode
, NULL
);
1070 if (atomic_load_explicit(&bgp
->rpkt_quanta
, memory_order_relaxed
)
1071 == BGP_READ_PACKET_MAX
)
1072 bgp_rpkt_quanta_config_vty(bgp
, quanta
, true);
1074 bgp_rpkt_quanta_config_vty(bgp
, quanta
, false);
1081 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/graceful-restart/enabled
1083 int bgp_global_graceful_restart_enabled_modify(struct nb_cb_modify_args
*args
)
1085 switch (args
->event
) {
1086 case NB_EV_VALIDATE
:
1090 /* TODO: implement me. */
1097 int bgp_global_graceful_restart_enabled_destroy(struct nb_cb_destroy_args
*args
)
1099 switch (args
->event
) {
1100 case NB_EV_VALIDATE
:
1104 /* TODO: implement me. */
1113 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/graceful-restart/graceful-restart-disable
1115 int bgp_global_graceful_restart_graceful_restart_disable_modify(
1116 struct nb_cb_modify_args
*args
)
1118 switch (args
->event
) {
1119 case NB_EV_VALIDATE
:
1123 /* TODO: implement me. */
1130 int bgp_global_graceful_restart_graceful_restart_disable_destroy(
1131 struct nb_cb_destroy_args
*args
)
1133 switch (args
->event
) {
1134 case NB_EV_VALIDATE
:
1138 /* TODO: implement me. */
1147 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/graceful-restart/preserve-fw-entry
1149 int bgp_global_graceful_restart_preserve_fw_entry_modify(
1150 struct nb_cb_modify_args
*args
)
1152 switch (args
->event
) {
1153 case NB_EV_VALIDATE
:
1157 /* TODO: implement me. */
1166 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/graceful-restart/restart-time
1168 int bgp_global_graceful_restart_restart_time_modify(
1169 struct nb_cb_modify_args
*args
)
1171 switch (args
->event
) {
1172 case NB_EV_VALIDATE
:
1176 /* TODO: implement me. */
1185 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/graceful-restart/stale-routes-time
1187 int bgp_global_graceful_restart_stale_routes_time_modify(
1188 struct nb_cb_modify_args
*args
)
1190 switch (args
->event
) {
1191 case NB_EV_VALIDATE
:
1195 /* TODO: implement me. */
1204 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/graceful-restart/selection-deferral-time
1206 int bgp_global_graceful_restart_selection_deferral_time_modify(
1207 struct nb_cb_modify_args
*args
)
1209 switch (args
->event
) {
1210 case NB_EV_VALIDATE
:
1214 /* TODO: implement me. */
1223 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/graceful-restart/rib-stale-time
1225 int bgp_global_graceful_restart_rib_stale_time_modify(
1226 struct nb_cb_modify_args
*args
)
1228 switch (args
->event
) {
1229 case NB_EV_VALIDATE
:
1233 /* TODO: implement me. */
1242 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/global-update-group-config/subgroup-pkt-queue-size
1244 int bgp_global_global_update_group_config_subgroup_pkt_queue_size_modify(
1245 struct nb_cb_modify_args
*args
)
1247 if (args
->event
!= NB_EV_APPLY
)
1253 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1255 max_size
= yang_dnode_get_uint32(args
->dnode
, NULL
);
1257 bgp_default_subgroup_pkt_queue_max_set(bgp
, max_size
);
1264 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/global-update-group-config/coalesce-time
1266 int bgp_global_global_update_group_config_coalesce_time_modify(
1267 struct nb_cb_modify_args
*args
)
1269 if (args
->event
!= NB_EV_APPLY
)
1273 uint32_t coalesce_time
;
1275 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1277 coalesce_time
= yang_dnode_get_uint32(args
->dnode
, NULL
);
1279 if (coalesce_time
!= BGP_DEFAULT_SUBGROUP_COALESCE_TIME
) {
1280 bgp
->heuristic_coalesce
= false;
1281 bgp
->coalesce_time
= coalesce_time
;
1283 bgp
->heuristic_coalesce
= true;
1284 bgp
->coalesce_time
= BGP_DEFAULT_SUBGROUP_COALESCE_TIME
;
1292 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/global-config-timers/rmap-delay-time
1294 int bgp_global_global_config_timers_rmap_delay_time_modify(
1295 struct nb_cb_modify_args
*args
)
1297 switch (args
->event
) {
1298 case NB_EV_VALIDATE
:
1302 /* TODO: implement me. */
1311 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/global-config-timers/update-delay-time
1313 int bgp_global_global_config_timers_update_delay_time_modify(
1314 struct nb_cb_modify_args
*args
)
1316 switch (args
->event
) {
1317 case NB_EV_VALIDATE
:
1321 /* TODO: implement me. */
1328 int bgp_global_global_config_timers_update_delay_time_destroy(
1329 struct nb_cb_destroy_args
*args
)
1331 switch (args
->event
) {
1332 case NB_EV_VALIDATE
:
1336 /* TODO: implement me. */
1345 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/global-config-timers/establish-wait-time
1347 int bgp_global_global_config_timers_establish_wait_time_modify(
1348 struct nb_cb_modify_args
*args
)
1350 switch (args
->event
) {
1351 case NB_EV_VALIDATE
:
1355 /* TODO: implement me. */
1362 int bgp_global_global_config_timers_establish_wait_time_destroy(
1363 struct nb_cb_destroy_args
*args
)
1365 switch (args
->event
) {
1366 case NB_EV_VALIDATE
:
1370 /* TODO: implement me. */
1379 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/global-config-timers/connect-retry-interval
1381 int bgp_global_global_config_timers_connect_retry_interval_modify(
1382 struct nb_cb_modify_args
*args
)
1384 switch (args
->event
) {
1385 case NB_EV_VALIDATE
:
1389 /* TODO: implement me. */
1398 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/global-config-timers/hold-time
1400 int bgp_global_global_config_timers_hold_time_modify(
1401 struct nb_cb_modify_args
*args
)
1404 unsigned long keepalive
= 0;
1405 unsigned long holdtime
= 0;
1407 switch (args
->event
) {
1408 case NB_EV_VALIDATE
:
1409 holdtime
= yang_dnode_get_uint16(args
->dnode
, NULL
);
1410 /* Holdtime value check. */
1411 if (holdtime
< 3 && holdtime
!= 0) {
1413 args
->errmsg
, args
->errmsg_len
,
1414 "hold time value must be either 0 or greater than 3");
1415 return NB_ERR_VALIDATION
;
1423 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1425 keepalive
= yang_dnode_get_uint16(args
->dnode
, "../keepalive");
1426 holdtime
= yang_dnode_get_uint16(args
->dnode
, NULL
);
1428 bgp_timers_set(bgp
, keepalive
, holdtime
,
1429 DFLT_BGP_CONNECT_RETRY
);
1439 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/global-config-timers/keepalive
1441 int bgp_global_global_config_timers_keepalive_modify(
1442 struct nb_cb_modify_args
*args
)
1445 unsigned long keepalive
= 0;
1446 unsigned long holdtime
= 0;
1448 switch (args
->event
) {
1449 case NB_EV_VALIDATE
:
1450 holdtime
= yang_dnode_get_uint16(args
->dnode
, "../hold-time");
1451 /* Holdtime value check. */
1452 if (holdtime
< 3 && holdtime
!= 0) {
1454 args
->errmsg
, args
->errmsg_len
,
1455 "hold time value must be either 0 or greater than 3");
1456 return NB_ERR_VALIDATION
;
1464 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1466 keepalive
= yang_dnode_get_uint16(args
->dnode
, NULL
);
1467 holdtime
= yang_dnode_get_uint16(args
->dnode
, "../hold-time");
1469 bgp_timers_set(bgp
, keepalive
, holdtime
,
1470 DFLT_BGP_CONNECT_RETRY
);
1480 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/instance-type-view
1482 int bgp_global_instance_type_view_modify(struct nb_cb_modify_args
*args
)
1484 switch (args
->event
) {
1485 case NB_EV_VALIDATE
:
1489 /* TODO: implement me. */
1498 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/ebgp-multihop-connected-route-check
1500 int bgp_global_ebgp_multihop_connected_route_check_modify(
1501 struct nb_cb_modify_args
*args
)
1503 if (args
->event
!= NB_EV_APPLY
)
1508 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1510 if (yang_dnode_get_bool(args
->dnode
, NULL
))
1511 SET_FLAG(bgp
->flags
, BGP_FLAG_DISABLE_NH_CONNECTED_CHK
);
1513 UNSET_FLAG(bgp
->flags
, BGP_FLAG_DISABLE_NH_CONNECTED_CHK
);
1515 if (bgp_clear_star_soft_in(bgp
->name
, args
->errmsg
, args
->errmsg_len
))
1516 return NB_ERR_INCONSISTENCY
;
1523 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/fast-external-failover
1525 int bgp_global_fast_external_failover_modify(struct nb_cb_modify_args
*args
)
1527 if (args
->event
!= NB_EV_APPLY
)
1531 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1532 if (!yang_dnode_get_bool(args
->dnode
, NULL
)) {
1533 SET_FLAG(bgp
->flags
, BGP_FLAG_NO_FAST_EXT_FAILOVER
);
1535 UNSET_FLAG(bgp
->flags
, BGP_FLAG_NO_FAST_EXT_FAILOVER
);
1542 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/local-pref
1544 int bgp_global_local_pref_modify(struct nb_cb_modify_args
*args
)
1546 if (args
->event
!= NB_EV_APPLY
)
1549 uint32_t local_pref
;
1551 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1552 local_pref
= yang_dnode_get_uint32(args
->dnode
, NULL
);
1554 bgp_default_local_preference_set(bgp
, local_pref
);
1556 if (bgp_clear_star_soft_in(bgp
->name
, args
->errmsg
, args
->errmsg_len
))
1557 return NB_ERR_INCONSISTENCY
;
1564 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/default-shutdown
1566 int bgp_global_default_shutdown_modify(struct nb_cb_modify_args
*args
)
1568 if (args
->event
!= NB_EV_APPLY
)
1573 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1574 bgp
->autoshutdown
= yang_dnode_get_bool(args
->dnode
, NULL
);
1581 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/ebgp-requires-policy
1583 int bgp_global_ebgp_requires_policy_modify(struct nb_cb_modify_args
*args
)
1585 if (args
->event
!= NB_EV_APPLY
)
1590 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1592 if (yang_dnode_get_bool(args
->dnode
, NULL
))
1593 SET_FLAG(bgp
->flags
, BGP_FLAG_EBGP_REQUIRES_POLICY
);
1595 UNSET_FLAG(bgp
->flags
, BGP_FLAG_EBGP_REQUIRES_POLICY
);
1602 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/show-hostname
1604 int bgp_global_show_hostname_modify(struct nb_cb_modify_args
*args
)
1606 if (args
->event
!= NB_EV_APPLY
)
1611 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1613 if (yang_dnode_get_bool(args
->dnode
, NULL
))
1614 SET_FLAG(bgp
->flags
, BGP_FLAG_SHOW_HOSTNAME
);
1616 UNSET_FLAG(bgp
->flags
, BGP_FLAG_SHOW_HOSTNAME
);
1623 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/show-nexthop-hostname
1625 int bgp_global_show_nexthop_hostname_modify(struct nb_cb_modify_args
*args
)
1627 if (args
->event
!= NB_EV_APPLY
)
1632 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1634 if (yang_dnode_get_bool(args
->dnode
, NULL
))
1635 SET_FLAG(bgp
->flags
, BGP_FLAG_SHOW_NEXTHOP_HOSTNAME
);
1637 UNSET_FLAG(bgp
->flags
, BGP_FLAG_SHOW_NEXTHOP_HOSTNAME
);
1644 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/import-check
1646 int bgp_global_import_check_modify(struct nb_cb_modify_args
*args
)
1648 if (args
->event
!= NB_EV_APPLY
)
1653 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1655 if (yang_dnode_get_bool(args
->dnode
, NULL
))
1656 SET_FLAG(bgp
->flags
, BGP_FLAG_IMPORT_CHECK
);
1658 UNSET_FLAG(bgp
->flags
, BGP_FLAG_IMPORT_CHECK
);
1660 bgp_static_redo_import_check(bgp
);
1667 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/graceful-shutdown/enable
1669 int bgp_global_graceful_shutdown_enable_modify(struct nb_cb_modify_args
*args
)
1673 switch (args
->event
) {
1674 case NB_EV_VALIDATE
:
1675 if (CHECK_FLAG(bm
->flags
, BM_FLAG_GRACEFUL_SHUTDOWN
)) {
1677 args
->errmsg
, args
->errmsg_len
,
1678 "%%Failed: per-vrf graceful-shutdown config not permitted with global graceful-shutdown");
1679 return NB_ERR_VALIDATION
;
1687 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
1689 if (yang_dnode_get_bool(args
->dnode
, NULL
))
1690 SET_FLAG(bgp
->flags
, BGP_FLAG_GRACEFUL_SHUTDOWN
);
1692 UNSET_FLAG(bgp
->flags
, BGP_FLAG_GRACEFUL_SHUTDOWN
);
1694 bgp_static_redo_import_check(bgp
);
1695 bgp_redistribute_redo(bgp
);
1697 if (bgp_clear_star_soft_out(bgp
->name
, args
->errmsg
,
1699 return NB_ERR_INCONSISTENCY
;
1701 if (bgp_clear_star_soft_in(bgp
->name
, args
->errmsg
,
1703 return NB_ERR_INCONSISTENCY
;
1713 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list
1715 int bgp_global_bmp_config_target_list_create(struct nb_cb_create_args
*args
)
1717 switch (args
->event
) {
1718 case NB_EV_VALIDATE
:
1722 /* TODO: implement me. */
1729 int bgp_global_bmp_config_target_list_destroy(struct nb_cb_destroy_args
*args
)
1731 switch (args
->event
) {
1732 case NB_EV_VALIDATE
:
1736 /* TODO: implement me. */
1745 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/incoming-session/session-list
1747 int bgp_global_bmp_config_target_list_incoming_session_session_list_create(
1748 struct nb_cb_create_args
*args
)
1750 switch (args
->event
) {
1751 case NB_EV_VALIDATE
:
1755 /* TODO: implement me. */
1762 int bgp_global_bmp_config_target_list_incoming_session_session_list_destroy(
1763 struct nb_cb_destroy_args
*args
)
1765 switch (args
->event
) {
1766 case NB_EV_VALIDATE
:
1770 /* TODO: implement me. */
1779 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/outgoing-session/session-list
1781 int bgp_global_bmp_config_target_list_outgoing_session_session_list_create(
1782 struct nb_cb_create_args
*args
)
1784 switch (args
->event
) {
1785 case NB_EV_VALIDATE
:
1789 /* TODO: implement me. */
1796 int bgp_global_bmp_config_target_list_outgoing_session_session_list_destroy(
1797 struct nb_cb_destroy_args
*args
)
1799 switch (args
->event
) {
1800 case NB_EV_VALIDATE
:
1804 /* TODO: implement me. */
1813 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/outgoing-session/session-list/min-retry-time
1815 int bgp_global_bmp_config_target_list_outgoing_session_session_list_min_retry_time_modify(
1816 struct nb_cb_modify_args
*args
)
1818 switch (args
->event
) {
1819 case NB_EV_VALIDATE
:
1823 /* TODO: implement me. */
1832 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/outgoing-session/session-list/max-retry-time
1834 int bgp_global_bmp_config_target_list_outgoing_session_session_list_max_retry_time_modify(
1835 struct nb_cb_modify_args
*args
)
1837 switch (args
->event
) {
1838 case NB_EV_VALIDATE
:
1842 /* TODO: implement me. */
1851 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/mirror
1853 int bgp_global_bmp_config_target_list_mirror_modify(
1854 struct nb_cb_modify_args
*args
)
1856 switch (args
->event
) {
1857 case NB_EV_VALIDATE
:
1861 /* TODO: implement me. */
1870 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/stats-time
1872 int bgp_global_bmp_config_target_list_stats_time_modify(
1873 struct nb_cb_modify_args
*args
)
1875 switch (args
->event
) {
1876 case NB_EV_VALIDATE
:
1880 /* TODO: implement me. */
1887 int bgp_global_bmp_config_target_list_stats_time_destroy(
1888 struct nb_cb_destroy_args
*args
)
1890 switch (args
->event
) {
1891 case NB_EV_VALIDATE
:
1895 /* TODO: implement me. */
1904 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/ipv4-access-list
1906 int bgp_global_bmp_config_target_list_ipv4_access_list_modify(
1907 struct nb_cb_modify_args
*args
)
1909 switch (args
->event
) {
1910 case NB_EV_VALIDATE
:
1914 /* TODO: implement me. */
1921 int bgp_global_bmp_config_target_list_ipv4_access_list_destroy(
1922 struct nb_cb_destroy_args
*args
)
1924 switch (args
->event
) {
1925 case NB_EV_VALIDATE
:
1929 /* TODO: implement me. */
1938 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/ipv6-access-list
1940 int bgp_global_bmp_config_target_list_ipv6_access_list_modify(
1941 struct nb_cb_modify_args
*args
)
1943 switch (args
->event
) {
1944 case NB_EV_VALIDATE
:
1948 /* TODO: implement me. */
1955 int bgp_global_bmp_config_target_list_ipv6_access_list_destroy(
1956 struct nb_cb_destroy_args
*args
)
1958 switch (args
->event
) {
1959 case NB_EV_VALIDATE
:
1963 /* TODO: implement me. */
1972 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/afi-safis/afi-safi
1974 int bgp_global_bmp_config_target_list_afi_safis_afi_safi_create(
1975 struct nb_cb_create_args
*args
)
1977 switch (args
->event
) {
1978 case NB_EV_VALIDATE
:
1982 /* TODO: implement me. */
1989 int bgp_global_bmp_config_target_list_afi_safis_afi_safi_destroy(
1990 struct nb_cb_destroy_args
*args
)
1992 switch (args
->event
) {
1993 case NB_EV_VALIDATE
:
1997 /* TODO: implement me. */
2006 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/mirror-buffer-limit
2008 int bgp_global_bmp_config_mirror_buffer_limit_modify(
2009 struct nb_cb_modify_args
*args
)
2011 switch (args
->event
) {
2012 case NB_EV_VALIDATE
:
2016 /* TODO: implement me. */
2023 int bgp_global_bmp_config_mirror_buffer_limit_destroy(
2024 struct nb_cb_destroy_args
*args
)
2026 switch (args
->event
) {
2027 case NB_EV_VALIDATE
:
2031 /* TODO: implement me. */
2040 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi
2042 int bgp_global_afi_safis_afi_safi_create(struct nb_cb_create_args
*args
)
2044 const struct lyd_node
*vrf_dnode
;
2045 const char *vrf_name
;
2046 const char *af_name
;
2050 switch (args
->event
) {
2051 case NB_EV_VALIDATE
:
2052 vrf_dnode
= yang_dnode_get_parent(args
->dnode
,
2053 "control-plane-protocol");
2054 vrf_name
= yang_dnode_get_string(vrf_dnode
, "./vrf");
2055 af_name
= yang_dnode_get_string(args
->dnode
, "./afi-safi-name");
2056 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
2058 if ((!strmatch(vrf_name
, VRF_DEFAULT_NAME
))
2059 && safi
!= SAFI_UNICAST
&& safi
!= SAFI_MULTICAST
2060 && safi
!= SAFI_EVPN
) {
2062 args
->errmsg
, args
->errmsg_len
,
2063 "Only Unicast/Multicast/EVPN SAFIs supported in non-core instances.");
2064 return NB_ERR_VALIDATION
;
2071 /* TODO: implement me. */
2078 int bgp_global_afi_safis_afi_safi_destroy(struct nb_cb_destroy_args
*args
)
2080 switch (args
->event
) {
2081 case NB_EV_VALIDATE
:
2085 /* TODO: implement me. */
2092 static struct peer
*bgp_neighbor_peer_lookup(struct bgp
*bgp
,
2093 const char *peer_str
, char *errmsg
,
2096 struct peer
*peer
= NULL
;
2099 str2sockunion(peer_str
, &su
);
2100 peer
= peer_lookup(bgp
, &su
);
2102 snprintf(errmsg
, errmsg_len
,
2103 "Specify remote-as or peer-group commands first");
2106 if (peer_dynamic_neighbor(peer
)) {
2107 snprintf(errmsg
, errmsg_len
,
2108 "Operation not allowed on a dynamic neighbor\n");
2116 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor
2118 int bgp_neighbors_neighbor_create(struct nb_cb_create_args
*args
)
2121 const char *peer_str
;
2124 switch (args
->event
) {
2125 case NB_EV_VALIDATE
:
2128 yang_dnode_get_string(args
->dnode
, "./remote-address");
2130 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
2134 str2sockunion(peer_str
, &su
);
2135 if (peer_address_self_check(bgp
, &su
)) {
2137 args
->errmsg
, args
->errmsg_len
,
2138 "Can not configure the local system as neighbor");
2139 return NB_ERR_VALIDATION
;
2147 /* Once bgp instance available check self peer addr */
2148 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2151 yang_dnode_get_string(args
->dnode
, "./remote-address");
2152 str2sockunion(peer_str
, &su
);
2153 if (peer_address_self_check(bgp
, &su
)) {
2155 args
->errmsg
, args
->errmsg_len
,
2156 "Can not configure the local system as neighbor");
2157 return NB_ERR_INCONSISTENCY
;
2165 int bgp_neighbors_neighbor_destroy(struct nb_cb_destroy_args
*args
)
2169 const char *peer_str
;
2171 struct peer
*peer
= NULL
;
2174 switch (args
->event
) {
2175 case NB_EV_VALIDATE
:
2176 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
2180 yang_dnode_get_string(args
->dnode
, "./remote-address");
2181 str2sockunion(peer_str
, &su
);
2183 peer
= peer_lookup(bgp
, &su
);
2185 if (peer_dynamic_neighbor(peer
)) {
2187 args
->errmsg
, args
->errmsg_len
,
2188 "Operation not allowed on a dynamic neighbor");
2189 return NB_ERR_VALIDATION
;
2198 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2201 yang_dnode_get_string(args
->dnode
, "./remote-address");
2202 str2sockunion(peer_str
, &su
);
2204 peer
= peer_lookup(bgp
, &su
);
2206 if (peer_dynamic_neighbor(peer
)) {
2208 args
->errmsg
, args
->errmsg_len
,
2209 "Operation not allowed on a dynamic neighbor");
2210 return NB_ERR_INCONSISTENCY
;
2213 other
= peer
->doppelganger
;
2215 if (CHECK_FLAG(peer
->flags
, PEER_FLAG_CAPABILITY_ENHE
))
2216 bgp_zebra_terminate_radv(peer
->bgp
, peer
);
2218 peer_notify_unconfig(peer
);
2220 if (other
&& other
->status
!= Deleted
) {
2221 peer_notify_unconfig(other
);
2234 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/local-interface
2236 int bgp_neighbors_neighbor_local_interface_modify(
2237 struct nb_cb_modify_args
*args
)
2240 const char *peer_str
;
2241 const char *intf_str
;
2244 switch (args
->event
) {
2245 case NB_EV_VALIDATE
:
2250 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2252 yang_dnode_get_string(args
->dnode
, "../remote-address");
2253 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2256 snprintf(args
->errmsg
, args
->errmsg_len
,
2257 "BGP invalid peer %s", peer_str
);
2258 return NB_ERR_INCONSISTENCY
;
2261 if (peer
->conf_if
) {
2262 snprintf(args
->errmsg
, args
->errmsg_len
,
2263 "BGP invalid peer %s", peer_str
);
2264 return NB_ERR_INCONSISTENCY
;
2267 intf_str
= yang_dnode_get_string(args
->dnode
, NULL
);
2269 peer_interface_set(peer
, intf_str
);
2277 int bgp_neighbors_neighbor_local_interface_destroy(
2278 struct nb_cb_destroy_args
*args
)
2281 const char *peer_str
;
2284 switch (args
->event
) {
2285 case NB_EV_VALIDATE
:
2290 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2292 yang_dnode_get_string(args
->dnode
, "../remote-address");
2293 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2296 snprintf(args
->errmsg
, args
->errmsg_len
,
2297 "BGP invalid peer %s", peer_str
);
2298 return NB_ERR_INCONSISTENCY
;
2301 if (peer
->conf_if
) {
2302 snprintf(args
->errmsg
, args
->errmsg_len
,
2303 "BGP invalid peer %s", peer_str
);
2304 return NB_ERR_INCONSISTENCY
;
2307 peer_interface_unset(peer
);
2317 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/local-port
2319 int bgp_neighbors_neighbor_local_port_modify(struct nb_cb_modify_args
*args
)
2322 const char *peer_str
;
2326 switch (args
->event
) {
2327 case NB_EV_VALIDATE
:
2332 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2334 yang_dnode_get_string(args
->dnode
, "../remote-address");
2335 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2338 snprintf(args
->errmsg
, args
->errmsg_len
,
2339 "BGP invalid peer %s", peer_str
);
2340 return NB_ERR_INCONSISTENCY
;
2343 port
= yang_dnode_get_uint16(args
->dnode
, NULL
);
2344 peer_port_set(peer
, port
);
2352 int bgp_neighbors_neighbor_local_port_destroy(struct nb_cb_destroy_args
*args
)
2355 const char *peer_str
;
2360 switch (args
->event
) {
2361 case NB_EV_VALIDATE
:
2366 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2368 yang_dnode_get_string(args
->dnode
, "../remote-address");
2369 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2372 snprintf(args
->errmsg
, args
->errmsg_len
,
2373 "BGP invalid peer %s", peer_str
);
2374 return NB_ERR_INCONSISTENCY
;
2377 sp
= getservbyname("bgp", "tcp");
2378 port
= (sp
== NULL
) ? BGP_PORT_DEFAULT
: ntohs(sp
->s_port
);
2379 peer_port_set(peer
, port
);
2389 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/peer-group
2391 int bgp_neighbors_neighbor_peer_group_modify(struct nb_cb_modify_args
*args
)
2394 const char *peer_str
;
2395 const char *peer_grp_str
;
2397 struct peer_group
*group
;
2401 char prgrp_xpath
[XPATH_MAXLEN
];
2402 const struct lyd_node
*bgp_dnode
;
2404 switch (args
->event
) {
2405 case NB_EV_VALIDATE
:
2406 peer_grp_str
= yang_dnode_get_string(args
->dnode
, NULL
);
2407 bgp_dnode
= yang_dnode_get_parent(args
->dnode
, "bgp");
2408 snprintf(prgrp_xpath
, sizeof(prgrp_xpath
),
2409 FRR_BGP_PEER_GROUP_XPATH
, peer_grp_str
, "");
2411 if (!yang_dnode_exists(bgp_dnode
, prgrp_xpath
)) {
2412 snprintf(args
->errmsg
, args
->errmsg_len
,
2413 "Configure the peer-group first %s",
2415 return NB_ERR_VALIDATION
;
2423 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2425 yang_dnode_get_string(args
->dnode
, "../remote-address");
2426 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2429 str2sockunion(peer_str
, &su
);
2431 peer_grp_str
= yang_dnode_get_string(args
->dnode
, NULL
);
2432 group
= peer_group_lookup(bgp
, peer_grp_str
);
2434 snprintf(args
->errmsg
, args
->errmsg_len
,
2435 "Configure the peer-group first %s",
2437 return NB_ERR_INCONSISTENCY
;
2440 ret
= peer_group_bind(bgp
, &su
, peer
, group
, &as
);
2442 if (ret
== BGP_ERR_PEER_GROUP_PEER_TYPE_DIFFERENT
) {
2444 args
->errmsg
, args
->errmsg_len
,
2445 "Peer with AS %u cannot be in this peer-group, members must be all internal or all external\n",
2447 return NB_ERR_INCONSISTENCY
;
2450 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
2452 return NB_ERR_INCONSISTENCY
;
2460 int bgp_neighbors_neighbor_peer_group_destroy(struct nb_cb_destroy_args
*args
)
2463 const char *peer_str
;
2467 switch (args
->event
) {
2468 case NB_EV_VALIDATE
:
2473 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2475 yang_dnode_get_string(args
->dnode
, "../remote-address");
2476 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2479 if (CHECK_FLAG(peer
->flags
, PEER_FLAG_CAPABILITY_ENHE
))
2480 bgp_zebra_terminate_radv(peer
->bgp
, peer
);
2482 peer_notify_unconfig(peer
);
2483 ret
= peer_delete(peer
);
2485 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
2487 return NB_ERR_INCONSISTENCY
;
2497 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/password
2499 int bgp_neighbors_neighbor_password_modify(struct nb_cb_modify_args
*args
)
2502 const char *peer_str
;
2503 const char *passwrd_str
;
2506 switch (args
->event
) {
2507 case NB_EV_VALIDATE
:
2512 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2514 yang_dnode_get_string(args
->dnode
, "../remote-address");
2515 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2518 return NB_ERR_INCONSISTENCY
;
2520 passwrd_str
= yang_dnode_get_string(args
->dnode
, NULL
);
2522 peer_password_set(peer
, passwrd_str
);
2530 int bgp_neighbors_neighbor_password_destroy(struct nb_cb_destroy_args
*args
)
2533 const char *peer_str
;
2536 switch (args
->event
) {
2537 case NB_EV_VALIDATE
:
2542 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2544 yang_dnode_get_string(args
->dnode
, "../remote-address");
2545 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2548 return NB_ERR_INCONSISTENCY
;
2550 peer_password_unset(peer
);
2560 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/ttl-security
2562 int bgp_neighbors_neighbor_ttl_security_modify(struct nb_cb_modify_args
*args
)
2565 const char *peer_str
;
2570 switch (args
->event
) {
2571 case NB_EV_VALIDATE
:
2576 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2578 yang_dnode_get_string(args
->dnode
, "../remote-address");
2579 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2582 return NB_ERR_INCONSISTENCY
;
2584 gtsm_hops
= yang_dnode_get_uint8(args
->dnode
, NULL
);
2586 * If 'neighbor swpX', then this is for directly connected
2587 * peers, we should not accept a ttl-security hops value greater
2590 if (peer
->conf_if
&& (gtsm_hops
> BGP_GTSM_HOPS_CONNECTED
)) {
2592 args
->errmsg
, args
->errmsg_len
,
2593 "%d is directly connected peer, hops cannot exceed 1\n",
2595 return NB_ERR_INCONSISTENCY
;
2598 ret
= peer_ttl_security_hops_set(peer
, gtsm_hops
);
2599 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
))
2600 return NB_ERR_INCONSISTENCY
;
2608 int bgp_neighbors_neighbor_ttl_security_destroy(struct nb_cb_destroy_args
*args
)
2611 const char *peer_str
;
2615 switch (args
->event
) {
2616 case NB_EV_VALIDATE
:
2621 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2623 yang_dnode_get_string(args
->dnode
, "../remote-address");
2624 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2627 return NB_ERR_INCONSISTENCY
;
2629 ret
= peer_ttl_security_hops_unset(peer
);
2630 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
2632 return NB_ERR_INCONSISTENCY
;
2643 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/solo
2645 int bgp_neighbors_neighbor_solo_modify(struct nb_cb_modify_args
*args
)
2647 switch (args
->event
) {
2648 case NB_EV_VALIDATE
:
2652 /* TODO: implement me. */
2661 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/enforce-first-as
2663 int bgp_neighbors_neighbor_enforce_first_as_modify(
2664 struct nb_cb_modify_args
*args
)
2667 const char *peer_str
;
2669 bool enable
= false;
2671 switch (args
->event
) {
2672 case NB_EV_VALIDATE
:
2677 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2679 yang_dnode_get_string(args
->dnode
, "../remote-address");
2680 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2683 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
2685 peer_flag_modify_nb(bgp
, peer_str
, peer
,
2686 PEER_FLAG_ENFORCE_FIRST_AS
, enable
,
2687 args
->errmsg
, args
->errmsg_len
);
2696 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/description
2698 int bgp_neighbors_neighbor_description_modify(struct nb_cb_modify_args
*args
)
2701 const char *peer_str
;
2702 const char *desc_str
;
2705 switch (args
->event
) {
2706 case NB_EV_VALIDATE
:
2711 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2713 yang_dnode_get_string(args
->dnode
, "../remote-address");
2715 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2718 return NB_ERR_INCONSISTENCY
;
2720 desc_str
= yang_dnode_get_string(args
->dnode
, NULL
);
2722 peer_description_set(peer
, desc_str
);
2730 int bgp_neighbors_neighbor_description_destroy(struct nb_cb_destroy_args
*args
)
2733 const char *peer_str
;
2736 switch (args
->event
) {
2737 case NB_EV_VALIDATE
:
2742 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2744 yang_dnode_get_string(args
->dnode
, "../remote-address");
2745 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2748 return NB_ERR_INCONSISTENCY
;
2750 peer_description_unset(peer
);
2760 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/passive-mode
2762 int bgp_neighbors_neighbor_passive_mode_modify(struct nb_cb_modify_args
*args
)
2765 const char *peer_str
;
2769 switch (args
->event
) {
2770 case NB_EV_VALIDATE
:
2775 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2777 yang_dnode_get_string(args
->dnode
, "../remote-address");
2778 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2781 return NB_ERR_INCONSISTENCY
;
2783 set
= yang_dnode_get_bool(args
->dnode
, NULL
);
2785 if (peer_flag_modify_nb(bgp
, peer_str
, peer
, PEER_FLAG_PASSIVE
,
2786 set
, args
->errmsg
, args
->errmsg_len
)
2788 return NB_ERR_INCONSISTENCY
;
2798 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/capability-options/dynamic-capability
2800 int bgp_neighbors_neighbor_capability_options_dynamic_capability_modify(
2801 struct nb_cb_modify_args
*args
)
2804 const char *peer_str
;
2806 bool enable
= false;
2808 switch (args
->event
) {
2809 case NB_EV_VALIDATE
:
2814 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2815 peer_str
= yang_dnode_get_string(args
->dnode
,
2816 "../../remote-address");
2817 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2820 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
2822 peer_flag_modify_nb(bgp
, peer_str
, peer
,
2823 PEER_FLAG_DYNAMIC_CAPABILITY
, enable
,
2824 args
->errmsg
, args
->errmsg_len
);
2834 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/capability-options/strict-capability
2836 int bgp_neighbors_neighbor_capability_options_strict_capability_modify(
2837 struct nb_cb_modify_args
*args
)
2840 const char *peer_str
;
2842 bool enable
= false;
2844 switch (args
->event
) {
2845 case NB_EV_VALIDATE
:
2850 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2851 peer_str
= yang_dnode_get_string(args
->dnode
,
2852 "../../remote-address");
2853 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2856 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
2858 peer_flag_modify_nb(bgp
, peer_str
, peer
,
2859 PEER_FLAG_STRICT_CAP_MATCH
, enable
,
2860 args
->errmsg
, args
->errmsg_len
);
2870 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/capability-options/extended-nexthop-capability
2872 int bgp_neighbors_neighbor_capability_options_extended_nexthop_capability_modify(
2873 struct nb_cb_modify_args
*args
)
2876 const char *peer_str
;
2878 bool enable
= false;
2880 switch (args
->event
) {
2881 case NB_EV_VALIDATE
:
2886 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2887 peer_str
= yang_dnode_get_string(args
->dnode
,
2888 "../../remote-address");
2889 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2892 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
2894 peer_flag_modify_nb(bgp
, peer_str
, peer
,
2895 PEER_FLAG_CAPABILITY_ENHE
, enable
,
2896 args
->errmsg
, args
->errmsg_len
);
2906 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/capability-options/capability-negotiate
2908 int bgp_neighbors_neighbor_capability_options_capability_negotiate_modify(
2909 struct nb_cb_modify_args
*args
)
2911 switch (args
->event
) {
2912 case NB_EV_VALIDATE
:
2916 /* TODO: implement me. */
2925 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/capability-options/override-capability
2927 int bgp_neighbors_neighbor_capability_options_override_capability_modify(
2928 struct nb_cb_modify_args
*args
)
2931 const char *peer_str
;
2933 bool enable
= false;
2935 switch (args
->event
) {
2936 case NB_EV_VALIDATE
:
2941 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2942 peer_str
= yang_dnode_get_string(args
->dnode
,
2943 "../../remote-address");
2944 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2947 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
2949 peer_flag_modify_nb(bgp
, peer_str
, peer
,
2950 PEER_FLAG_OVERRIDE_CAPABILITY
, enable
,
2951 args
->errmsg
, args
->errmsg_len
);
2961 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/update-source/ip
2963 int bgp_neighbors_neighbor_update_source_ip_modify(
2964 struct nb_cb_modify_args
*args
)
2967 const char *peer_str
, *source_str
;
2971 switch (args
->event
) {
2972 case NB_EV_VALIDATE
:
2977 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
2978 peer_str
= yang_dnode_get_string(args
->dnode
,
2979 "../../remote-address");
2980 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
2983 return NB_ERR_INCONSISTENCY
;
2985 source_str
= yang_dnode_get_string(args
->dnode
, NULL
);
2987 str2sockunion(source_str
, &su
);
2988 peer_update_source_addr_set(peer
, &su
);
2996 int bgp_neighbors_neighbor_update_source_ip_destroy(
2997 struct nb_cb_destroy_args
*args
)
3000 const char *peer_str
;
3003 switch (args
->event
) {
3004 case NB_EV_VALIDATE
:
3009 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3010 peer_str
= yang_dnode_get_string(args
->dnode
,
3011 "../../remote-address");
3012 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
3015 return NB_ERR_INCONSISTENCY
;
3017 peer_update_source_unset(peer
);
3027 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/update-source/interface
3029 int bgp_neighbors_neighbor_update_source_interface_modify(
3030 struct nb_cb_modify_args
*args
)
3033 const char *peer_str
, *source_str
;
3037 switch (args
->event
) {
3038 case NB_EV_VALIDATE
:
3039 source_str
= yang_dnode_get_string(args
->dnode
, NULL
);
3040 if (str2prefix(source_str
, &p
)) {
3041 snprintf(args
->errmsg
, args
->errmsg_len
,
3042 "Invalid update-source, remove prefix length");
3043 return NB_ERR_VALIDATION
;
3050 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3051 peer_str
= yang_dnode_get_string(args
->dnode
,
3052 "../../remote-address");
3053 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
3056 return NB_ERR_INCONSISTENCY
;
3058 source_str
= yang_dnode_get_string(args
->dnode
, NULL
);
3060 peer_update_source_if_set(peer
, source_str
);
3068 int bgp_neighbors_neighbor_update_source_interface_destroy(
3069 struct nb_cb_destroy_args
*args
)
3072 const char *peer_str
;
3075 switch (args
->event
) {
3076 case NB_EV_VALIDATE
:
3081 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3082 peer_str
= yang_dnode_get_string(args
->dnode
,
3083 "../../remote-address");
3084 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
3087 return NB_ERR_INCONSISTENCY
;
3089 peer_update_source_unset(peer
);
3099 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/neighbor-remote-as/remote-as-type
3101 int bgp_neighbors_neighbor_neighbor_remote_as_remote_as_type_modify(
3102 struct nb_cb_modify_args
*args
)
3105 const char *peer_str
;
3106 int as_type
= AS_SPECIFIED
;
3111 switch (args
->event
) {
3112 case NB_EV_VALIDATE
:
3117 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3119 peer_str
= yang_dnode_get_string(args
->dnode
,
3120 "../../remote-address");
3121 as_type
= yang_dnode_get_enum(args
->dnode
, "../remote-as-type");
3122 /* When remote-as-type is as-specified, the peer will be
3123 * created in remote_as_modify callback */
3124 if (yang_dnode_exists(args
->dnode
, "../remote-as"))
3127 str2sockunion(peer_str
, &su
);
3128 ret
= peer_remote_as(bgp
, &su
, NULL
, &as
, as_type
, AFI_IP
,
3130 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
3132 return NB_ERR_INCONSISTENCY
;
3141 int bgp_neighbors_neighbor_neighbor_remote_as_remote_as_type_destroy(
3142 struct nb_cb_destroy_args
*args
)
3144 switch (args
->event
) {
3145 case NB_EV_VALIDATE
:
3149 /* TODO: implement me. */
3158 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/neighbor-remote-as/remote-as
3160 int bgp_neighbors_neighbor_neighbor_remote_as_remote_as_modify(
3161 struct nb_cb_modify_args
*args
)
3164 const char *peer_str
;
3165 int as_type
= AS_SPECIFIED
;
3170 switch (args
->event
) {
3171 case NB_EV_VALIDATE
:
3176 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3178 peer_str
= yang_dnode_get_string(args
->dnode
,
3179 "../../remote-address");
3180 as_type
= yang_dnode_get_enum(args
->dnode
, "../remote-as-type");
3181 as
= yang_dnode_get_uint32(args
->dnode
, NULL
);
3183 str2sockunion(peer_str
, &su
);
3184 ret
= peer_remote_as(bgp
, &su
, NULL
, &as
, as_type
, AFI_IP
,
3186 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
3188 return NB_ERR_INCONSISTENCY
;
3197 int bgp_neighbors_neighbor_neighbor_remote_as_remote_as_destroy(
3198 struct nb_cb_destroy_args
*args
)
3200 switch (args
->event
) {
3201 case NB_EV_VALIDATE
:
3205 /* TODO: implement me. */
3214 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/ebgp-multihop/enabled
3216 int bgp_neighbors_neighbor_ebgp_multihop_enabled_modify(
3217 struct nb_cb_modify_args
*args
)
3220 const char *peer_str
;
3224 uint8_t ttl
= MAXTTL
;
3226 switch (args
->event
) {
3227 case NB_EV_VALIDATE
:
3232 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3233 peer_str
= yang_dnode_get_string(args
->dnode
,
3234 "../../remote-address");
3235 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
3238 return NB_ERR_INCONSISTENCY
;
3240 if (peer
->conf_if
) {
3241 ret
= BGP_ERR_INVALID_FOR_DIRECT_PEER
;
3242 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
,
3244 return NB_ERR_INCONSISTENCY
;
3247 set
= yang_dnode_get_bool(args
->dnode
, NULL
);
3250 ret
= peer_ebgp_multihop_set(peer
, ttl
);
3252 ret
= peer_ebgp_multihop_unset(peer
);
3254 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
3256 return NB_ERR_INCONSISTENCY
;
3265 int bgp_neighbors_neighbor_ebgp_multihop_enabled_destroy(
3266 struct nb_cb_destroy_args
*args
)
3269 const char *peer_str
;
3273 switch (args
->event
) {
3274 case NB_EV_VALIDATE
:
3279 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3280 peer_str
= yang_dnode_get_string(args
->dnode
,
3281 "../../remote-address");
3282 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
3285 return NB_ERR_INCONSISTENCY
;
3287 ret
= peer_ebgp_multihop_unset(peer
);
3289 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
3291 return NB_ERR_INCONSISTENCY
;
3302 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/ebgp-multihop/multihop-ttl
3304 int bgp_neighbors_neighbor_ebgp_multihop_multihop_ttl_modify(
3305 struct nb_cb_modify_args
*args
)
3308 const char *peer_str
;
3311 uint8_t ttl
= MAXTTL
;
3313 switch (args
->event
) {
3314 case NB_EV_VALIDATE
:
3319 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3320 peer_str
= yang_dnode_get_string(args
->dnode
,
3321 "../../remote-address");
3322 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
3325 return NB_ERR_INCONSISTENCY
;
3327 if (peer
->conf_if
) {
3328 ret
= BGP_ERR_INVALID_FOR_DIRECT_PEER
;
3329 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
,
3331 return NB_ERR_INCONSISTENCY
;
3334 ttl
= yang_dnode_get_uint8(args
->dnode
, NULL
);
3336 ret
= peer_ebgp_multihop_set(peer
, ttl
);
3338 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
3346 int bgp_neighbors_neighbor_ebgp_multihop_multihop_ttl_destroy(
3347 struct nb_cb_destroy_args
*args
)
3350 const char *peer_str
;
3354 switch (args
->event
) {
3355 case NB_EV_VALIDATE
:
3360 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3361 peer_str
= yang_dnode_get_string(args
->dnode
,
3362 "../../remote-address");
3363 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
3366 return NB_ERR_INCONSISTENCY
;
3368 ret
= peer_ebgp_multihop_unset(peer
);
3370 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
3380 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/ebgp-multihop/disable-connected-check
3382 int bgp_neighbors_neighbor_ebgp_multihop_disable_connected_check_modify(
3383 struct nb_cb_modify_args
*args
)
3386 const char *peer_str
;
3390 switch (args
->event
) {
3391 case NB_EV_VALIDATE
:
3396 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3397 peer_str
= yang_dnode_get_string(args
->dnode
,
3398 "../../remote-address");
3399 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
3402 return NB_ERR_INCONSISTENCY
;
3404 set
= yang_dnode_get_bool(args
->dnode
, NULL
);
3406 if (peer_flag_modify_nb(bgp
, peer_str
, peer
,
3407 PEER_FLAG_DISABLE_CONNECTED_CHECK
, set
,
3408 args
->errmsg
, args
->errmsg_len
)
3410 return NB_ERR_INCONSISTENCY
;
3420 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/local-as
3422 void bgp_neighbors_neighbor_local_as_apply_finish(
3423 struct nb_cb_apply_finish_args
*args
)
3428 const char *peer_str
;
3429 struct peer
*peer
= NULL
;
3430 bool no_prepend
= 0;
3431 bool replace_as
= 0;
3433 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3434 peer_str
= yang_dnode_get_string(args
->dnode
, "../remote-address");
3435 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
3438 if (yang_dnode_exists(args
->dnode
, "./local-as"))
3439 as
= yang_dnode_get_uint32(args
->dnode
, "./local-as");
3440 if (yang_dnode_exists(args
->dnode
, "./no-prepend"))
3441 no_prepend
= yang_dnode_get_bool(args
->dnode
, "./no-prepend");
3442 if (yang_dnode_exists(args
->dnode
, "./no-replace-as"))
3444 yang_dnode_get_bool(args
->dnode
, "./no-replace-as");
3446 if (!as
&& !no_prepend
&& !replace_as
)
3447 ret
= peer_local_as_unset(peer
);
3449 ret
= peer_local_as_set(peer
, as
, no_prepend
, replace_as
);
3450 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
3455 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/local-as/local-as
3457 int bgp_neighbors_neighbor_local_as_local_as_modify(
3458 struct nb_cb_modify_args
*args
)
3460 switch (args
->event
) {
3461 case NB_EV_VALIDATE
:
3465 /* TODO: implement me. */
3472 int bgp_neighbors_neighbor_local_as_local_as_destroy(
3473 struct nb_cb_destroy_args
*args
)
3477 const char *peer_str
;
3480 switch (args
->event
) {
3481 case NB_EV_VALIDATE
:
3486 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3487 peer_str
= yang_dnode_get_string(args
->dnode
,
3488 "../../remote-address");
3491 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
3494 ret
= peer_local_as_unset(peer
);
3495 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
3497 return NB_ERR_INCONSISTENCY
;
3508 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/local-as/no-prepend
3510 int bgp_neighbors_neighbor_local_as_no_prepend_modify(
3511 struct nb_cb_modify_args
*args
)
3513 switch (args
->event
) {
3514 case NB_EV_VALIDATE
:
3518 /* TODO: implement me. */
3525 int bgp_neighbors_neighbor_local_as_no_prepend_destroy(
3526 struct nb_cb_destroy_args
*args
)
3528 switch (args
->event
) {
3529 case NB_EV_VALIDATE
:
3533 /* TODO: implement me. */
3542 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/local-as/no-replace-as
3544 int bgp_neighbors_neighbor_local_as_no_replace_as_modify(
3545 struct nb_cb_modify_args
*args
)
3547 switch (args
->event
) {
3548 case NB_EV_VALIDATE
:
3552 /* TODO: implement me. */
3561 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/bfd-options/enable
3563 int bgp_neighbors_neighbor_bfd_options_enable_modify(
3564 struct nb_cb_modify_args
*args
)
3566 switch (args
->event
) {
3567 case NB_EV_VALIDATE
:
3571 /* TODO: implement me. */
3580 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/bfd-options/detect-multiplier
3582 int bgp_neighbors_neighbor_bfd_options_detect_multiplier_modify(
3583 struct nb_cb_modify_args
*args
)
3585 switch (args
->event
) {
3586 case NB_EV_VALIDATE
:
3590 /* TODO: implement me. */
3597 int bgp_neighbors_neighbor_bfd_options_detect_multiplier_destroy(
3598 struct nb_cb_destroy_args
*args
)
3600 switch (args
->event
) {
3601 case NB_EV_VALIDATE
:
3605 /* TODO: implement me. */
3614 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/bfd-options/required-min-rx
3616 int bgp_neighbors_neighbor_bfd_options_required_min_rx_modify(
3617 struct nb_cb_modify_args
*args
)
3619 switch (args
->event
) {
3620 case NB_EV_VALIDATE
:
3624 /* TODO: implement me. */
3631 int bgp_neighbors_neighbor_bfd_options_required_min_rx_destroy(
3632 struct nb_cb_destroy_args
*args
)
3634 switch (args
->event
) {
3635 case NB_EV_VALIDATE
:
3639 /* TODO: implement me. */
3648 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/bfd-options/desired-min-tx
3650 int bgp_neighbors_neighbor_bfd_options_desired_min_tx_modify(
3651 struct nb_cb_modify_args
*args
)
3653 switch (args
->event
) {
3654 case NB_EV_VALIDATE
:
3658 /* TODO: implement me. */
3665 int bgp_neighbors_neighbor_bfd_options_desired_min_tx_destroy(
3666 struct nb_cb_destroy_args
*args
)
3668 switch (args
->event
) {
3669 case NB_EV_VALIDATE
:
3673 /* TODO: implement me. */
3682 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/bfd-options/session-type
3684 int bgp_neighbors_neighbor_bfd_options_session_type_modify(
3685 struct nb_cb_modify_args
*args
)
3687 switch (args
->event
) {
3688 case NB_EV_VALIDATE
:
3692 /* TODO: implement me. */
3699 int bgp_neighbors_neighbor_bfd_options_session_type_destroy(
3700 struct nb_cb_destroy_args
*args
)
3702 switch (args
->event
) {
3703 case NB_EV_VALIDATE
:
3707 /* TODO: implement me. */
3716 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/bfd-options/check-cp-failure
3718 int bgp_neighbors_neighbor_bfd_options_check_cp_failure_modify(
3719 struct nb_cb_modify_args
*args
)
3721 switch (args
->event
) {
3722 case NB_EV_VALIDATE
:
3726 /* TODO: implement me. */
3733 int bgp_neighbors_neighbor_bfd_options_check_cp_failure_destroy(
3734 struct nb_cb_destroy_args
*args
)
3736 switch (args
->event
) {
3737 case NB_EV_VALIDATE
:
3741 /* TODO: implement me. */
3750 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/admin-shutdown
3752 void bgp_neighbors_neighbor_admin_shutdown_apply_finish(
3753 struct nb_cb_apply_finish_args
*args
)
3756 const char *peer_str
;
3758 bool enable
= false;
3759 const char *message
;
3761 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3762 peer_str
= yang_dnode_get_string(args
->dnode
, "../remote-address");
3763 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
3766 if (yang_dnode_exists(args
->dnode
, "./message")) {
3767 message
= yang_dnode_get_string(args
->dnode
, "./message");
3768 peer_tx_shutdown_message_set(peer
, message
);
3770 enable
= yang_dnode_get_bool(args
->dnode
, "./enable");
3772 peer_flag_modify_nb(bgp
, peer_str
, peer
, PEER_FLAG_SHUTDOWN
, enable
,
3773 args
->errmsg
, args
->errmsg_len
);
3778 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/admin-shutdown/enable
3780 int bgp_neighbors_neighbor_admin_shutdown_enable_modify(
3781 struct nb_cb_modify_args
*args
)
3783 switch (args
->event
) {
3784 case NB_EV_VALIDATE
:
3788 /* TODO: implement me. */
3795 int bgp_neighbors_neighbor_admin_shutdown_enable_destroy(
3796 struct nb_cb_destroy_args
*args
)
3798 switch (args
->event
) {
3799 case NB_EV_VALIDATE
:
3803 /* TODO: implement me. */
3812 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/admin-shutdown/message
3814 int bgp_neighbors_neighbor_admin_shutdown_message_modify(
3815 struct nb_cb_modify_args
*args
)
3817 switch (args
->event
) {
3818 case NB_EV_VALIDATE
:
3822 /* TODO: implement me. */
3829 int bgp_neighbors_neighbor_admin_shutdown_message_destroy(
3830 struct nb_cb_destroy_args
*args
)
3832 switch (args
->event
) {
3833 case NB_EV_VALIDATE
:
3837 /* TODO: implement me. */
3846 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/graceful-restart/enable
3848 int bgp_neighbors_neighbor_graceful_restart_enable_modify(
3849 struct nb_cb_modify_args
*args
)
3851 switch (args
->event
) {
3852 case NB_EV_VALIDATE
:
3856 /* TODO: implement me. */
3863 int bgp_neighbors_neighbor_graceful_restart_enable_destroy(
3864 struct nb_cb_destroy_args
*args
)
3866 switch (args
->event
) {
3867 case NB_EV_VALIDATE
:
3871 /* TODO: implement me. */
3880 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/graceful-restart/graceful-restart-helper
3882 int bgp_neighbors_neighbor_graceful_restart_graceful_restart_helper_modify(
3883 struct nb_cb_modify_args
*args
)
3885 switch (args
->event
) {
3886 case NB_EV_VALIDATE
:
3890 /* TODO: implement me. */
3897 int bgp_neighbors_neighbor_graceful_restart_graceful_restart_helper_destroy(
3898 struct nb_cb_destroy_args
*args
)
3900 switch (args
->event
) {
3901 case NB_EV_VALIDATE
:
3905 /* TODO: implement me. */
3914 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/graceful-restart/graceful-restart-disable
3916 int bgp_neighbors_neighbor_graceful_restart_graceful_restart_disable_modify(
3917 struct nb_cb_modify_args
*args
)
3919 switch (args
->event
) {
3920 case NB_EV_VALIDATE
:
3924 /* TODO: implement me. */
3931 int bgp_neighbors_neighbor_graceful_restart_graceful_restart_disable_destroy(
3932 struct nb_cb_destroy_args
*args
)
3934 switch (args
->event
) {
3935 case NB_EV_VALIDATE
:
3939 /* TODO: implement me. */
3948 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/timers/advertise-interval
3950 int bgp_neighbors_neighbor_timers_advertise_interval_modify(
3951 struct nb_cb_modify_args
*args
)
3954 const char *peer_str
;
3959 switch (args
->event
) {
3960 case NB_EV_VALIDATE
:
3965 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3966 peer_str
= yang_dnode_get_string(args
->dnode
,
3967 "../../remote-address");
3968 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
3970 routeadv
= yang_dnode_get_uint16(args
->dnode
, NULL
);
3972 ret
= peer_advertise_interval_set(peer
, routeadv
);
3973 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
3975 return NB_ERR_INCONSISTENCY
;
3983 int bgp_neighbors_neighbor_timers_advertise_interval_destroy(
3984 struct nb_cb_destroy_args
*args
)
3987 const char *peer_str
;
3991 switch (args
->event
) {
3992 case NB_EV_VALIDATE
:
3997 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
3998 peer_str
= yang_dnode_get_string(args
->dnode
,
3999 "../../remote-address");
4000 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
4003 ret
= peer_advertise_interval_unset(peer
);
4004 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
4006 return NB_ERR_INCONSISTENCY
;
4016 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/timers/connect-time
4018 int bgp_neighbors_neighbor_timers_connect_time_modify(
4019 struct nb_cb_modify_args
*args
)
4022 const char *peer_str
;
4027 switch (args
->event
) {
4028 case NB_EV_VALIDATE
:
4033 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4034 peer_str
= yang_dnode_get_string(args
->dnode
,
4035 "../../remote-address");
4036 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
4038 connect
= yang_dnode_get_uint16(args
->dnode
, NULL
);
4040 ret
= peer_timers_connect_set(peer
, connect
);
4041 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
4043 return NB_ERR_INCONSISTENCY
;
4051 int bgp_neighbors_neighbor_timers_connect_time_destroy(
4052 struct nb_cb_destroy_args
*args
)
4055 const char *peer_str
;
4059 switch (args
->event
) {
4060 case NB_EV_VALIDATE
:
4065 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4066 peer_str
= yang_dnode_get_string(args
->dnode
,
4067 "../../remote-address");
4068 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
4071 ret
= peer_timers_connect_unset(peer
);
4072 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
4074 return NB_ERR_INCONSISTENCY
;
4084 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/timers/hold-time
4086 int bgp_neighbors_neighbor_timers_hold_time_modify(
4087 struct nb_cb_modify_args
*args
)
4090 const char *peer_str
;
4092 uint16_t keepalive
= 0;
4093 uint16_t holdtime
= 0;
4096 switch (args
->event
) {
4097 case NB_EV_VALIDATE
:
4102 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4103 peer_str
= yang_dnode_get_string(args
->dnode
,
4104 "../../remote-address");
4105 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
4107 keepalive
= yang_dnode_get_uint16(args
->dnode
, "../keepalive");
4108 holdtime
= yang_dnode_get_uint16(args
->dnode
, NULL
);
4110 if (keepalive
!= BGP_DEFAULT_KEEPALIVE
4111 && holdtime
!= BGP_DEFAULT_HOLDTIME
) {
4112 ret
= peer_timers_set(peer
, keepalive
, holdtime
);
4114 ret
= peer_timers_unset(peer
);
4116 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
4118 return NB_ERR_INCONSISTENCY
;
4128 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/timers/keepalive
4130 int bgp_neighbors_neighbor_timers_keepalive_modify(
4131 struct nb_cb_modify_args
*args
)
4134 const char *peer_str
;
4136 uint16_t keepalive
= 0, curr_keep
= 0;
4137 uint16_t holdtime
= 0;
4140 switch (args
->event
) {
4141 case NB_EV_VALIDATE
:
4146 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4147 peer_str
= yang_dnode_get_string(args
->dnode
,
4148 "../../remote-address");
4149 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
4151 keepalive
= yang_dnode_get_uint16(args
->dnode
, NULL
);
4152 holdtime
= yang_dnode_get_uint16(args
->dnode
, "../hold-time");
4154 if (keepalive
!= BGP_DEFAULT_KEEPALIVE
4155 && holdtime
!= BGP_DEFAULT_HOLDTIME
) {
4156 if (peer
->holdtime
== holdtime
) {
4157 curr_keep
= (keepalive
< holdtime
/ 3
4160 if (curr_keep
== keepalive
)
4163 ret
= peer_timers_set(peer
, keepalive
, holdtime
);
4165 ret
= peer_timers_unset(peer
);
4167 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
4169 return NB_ERR_INCONSISTENCY
;
4179 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi
4181 int bgp_neighbors_neighbor_afi_safis_afi_safi_create(
4182 struct nb_cb_create_args
*args
)
4184 switch (args
->event
) {
4185 case NB_EV_VALIDATE
:
4189 /* TODO: implement me. */
4196 int bgp_neighbors_neighbor_afi_safis_afi_safi_destroy(
4197 struct nb_cb_destroy_args
*args
)
4199 switch (args
->event
) {
4200 case NB_EV_VALIDATE
:
4204 /* TODO: implement me. */
4213 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/enabled
4215 int bgp_neighbors_neighbor_afi_safis_afi_safi_enabled_modify(
4216 struct nb_cb_modify_args
*args
)
4219 const char *peer_str
;
4220 const char *af_name
;
4223 bool activate
= false;
4228 switch (args
->event
) {
4229 case NB_EV_VALIDATE
:
4234 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4236 yang_dnode_get_string(args
->dnode
, "../afi-safi-name");
4237 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
4238 peer_str
= yang_dnode_get_string(args
->dnode
,
4239 "../../../remote-address");
4240 str2sockunion(peer_str
, &su
);
4241 peer
= peer_lookup(bgp
, &su
);
4243 activate
= yang_dnode_get_bool(args
->dnode
, NULL
);
4246 ret
= peer_activate(peer
, afi
, safi
);
4248 ret
= peer_deactivate(peer
, afi
, safi
);
4250 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
4258 int bgp_neighbors_neighbor_afi_safis_afi_safi_enabled_destroy(
4259 struct nb_cb_destroy_args
*args
)
4261 switch (args
->event
) {
4262 case NB_EV_VALIDATE
:
4266 /* TODO: implement me. */
4273 static struct peer
*bgp_unnumbered_neighbor_peer_lookup(struct bgp
*bgp
,
4274 const char *peer_str
,
4278 struct peer
*peer
= NULL
;
4280 /* Not IP, could match either peer configured on interface or a
4282 peer
= peer_lookup_by_conf_if(bgp
, peer_str
);
4284 snprintf(errmsg
, errmsg_len
,
4285 "Specify remote-as or peer-group commands first");
4288 if (peer_dynamic_neighbor(peer
)) {
4289 snprintf(errmsg
, errmsg_len
,
4290 "Operation not allowed on a dynamic neighbor\n");
4299 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor
4301 int bgp_neighbors_unnumbered_neighbor_create(struct nb_cb_create_args
*args
)
4304 const char *peer_str
;
4305 const char *peer_grp_str
= NULL
;
4306 bool v6_only
= false;
4307 int as_type
= AS_UNSPECIFIED
;
4309 char prgrp_xpath
[XPATH_MAXLEN
];
4310 const struct lyd_node
*bgp_dnode
;
4312 switch (args
->event
) {
4313 case NB_EV_VALIDATE
:
4314 peer_str
= yang_dnode_get_string(args
->dnode
, "./interface");
4315 bgp_dnode
= yang_dnode_get_parent(args
->dnode
, "bgp");
4316 snprintf(prgrp_xpath
, sizeof(prgrp_xpath
),
4317 FRR_BGP_PEER_GROUP_XPATH
, peer_str
, "");
4319 if (yang_dnode_exists(bgp_dnode
, prgrp_xpath
)) {
4320 snprintf(args
->errmsg
, args
->errmsg_len
,
4321 "Name conflict with peer-group: %s", peer_str
);
4322 return NB_ERR_VALIDATION
;
4330 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4331 peer_str
= yang_dnode_get_string(args
->dnode
, "./interface");
4333 if (yang_dnode_exists(args
->dnode
, "./peer-group"))
4334 peer_grp_str
= yang_dnode_get_string(args
->dnode
,
4337 if (yang_dnode_exists(args
->dnode
, "./v6-only"))
4338 v6_only
= yang_dnode_get_bool(args
->dnode
, "./v6-only");
4340 if (yang_dnode_exists(args
->dnode
,
4341 "./neighbor-remote-as/remote-as-type")) {
4342 as_type
= yang_dnode_get_enum(
4344 "./neighbor-remote-as/remote-as-type");
4345 if (yang_dnode_exists(args
->dnode
,
4346 "./neighbor-remote-as/remote-as"))
4347 as
= yang_dnode_get_uint32(
4349 "./neighbor-remote-as/remote-as");
4352 if (peer_conf_interface_create(bgp
, peer_str
, AFI_IP
,
4353 SAFI_UNICAST
, v6_only
,
4354 peer_grp_str
, as_type
, as
,
4355 args
->errmsg
, args
->errmsg_len
))
4356 return NB_ERR_INCONSISTENCY
;
4364 int bgp_neighbors_unnumbered_neighbor_destroy(struct nb_cb_destroy_args
*args
)
4367 const char *peer_str
;
4370 switch (args
->event
) {
4371 case NB_EV_VALIDATE
:
4376 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4378 peer_str
= yang_dnode_get_string(args
->dnode
, "./interface");
4379 /* look up for neighbor by interface name config. */
4380 peer
= peer_lookup_by_conf_if(bgp
, peer_str
);
4382 /* Request zebra to terminate IPv6 RAs on this
4385 bgp_zebra_terminate_radv(peer
->bgp
, peer
);
4386 peer_notify_unconfig(peer
);
4389 snprintf(args
->errmsg
, args
->errmsg_len
,
4390 "Create the peer-group first");
4391 return NB_ERR_INCONSISTENCY
;
4402 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/v6only
4404 int bgp_neighbors_unnumbered_neighbor_v6only_modify(
4405 struct nb_cb_modify_args
*args
)
4408 const char *peer_str
;
4409 bool v6_only
= false;
4411 switch (args
->event
) {
4412 case NB_EV_VALIDATE
:
4417 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4418 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
4420 v6_only
= yang_dnode_get_bool(args
->dnode
, NULL
);
4422 if (peer_conf_interface_create(
4423 bgp
, peer_str
, AFI_IP
, SAFI_UNICAST
, v6_only
, NULL
,
4424 AS_UNSPECIFIED
, 0, args
->errmsg
, args
->errmsg_len
))
4425 return NB_ERR_INCONSISTENCY
;
4435 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/peer-group
4437 int bgp_neighbors_unnumbered_neighbor_peer_group_modify(
4438 struct nb_cb_modify_args
*args
)
4441 const char *peer_str
;
4442 const char *peer_grp_str
;
4444 struct peer_group
*group
;
4448 char prgrp_xpath
[XPATH_MAXLEN
];
4449 const struct lyd_node
*bgp_dnode
;
4451 switch (args
->event
) {
4452 case NB_EV_VALIDATE
:
4453 peer_grp_str
= yang_dnode_get_string(args
->dnode
, NULL
);
4454 bgp_dnode
= yang_dnode_get_parent(args
->dnode
, "bgp");
4455 snprintf(prgrp_xpath
, sizeof(prgrp_xpath
),
4456 FRR_BGP_PEER_GROUP_XPATH
, peer_grp_str
, "");
4458 if (!yang_dnode_exists(bgp_dnode
, prgrp_xpath
)) {
4459 snprintf(args
->errmsg
, args
->errmsg_len
,
4460 "Configure the peer-group first %s",
4462 return NB_ERR_VALIDATION
;
4470 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4471 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
4472 peer
= bgp_unnumbered_neighbor_peer_lookup(
4473 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4475 peer_grp_str
= yang_dnode_get_string(args
->dnode
, NULL
);
4476 group
= peer_group_lookup(bgp
, peer_grp_str
);
4478 snprintf(args
->errmsg
, args
->errmsg_len
,
4479 "Configure the peer-group first\n");
4480 return NB_ERR_INCONSISTENCY
;
4483 ret
= peer_group_bind(bgp
, &su
, peer
, group
, &as
);
4484 if (ret
== BGP_ERR_PEER_GROUP_PEER_TYPE_DIFFERENT
) {
4486 args
->errmsg
, args
->errmsg_len
,
4487 "Peer with AS %u cannot be in this peer-group, members must be all internal or all external\n",
4489 return NB_ERR_INCONSISTENCY
;
4492 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
4500 int bgp_neighbors_unnumbered_neighbor_peer_group_destroy(
4501 struct nb_cb_destroy_args
*args
)
4504 const char *peer_str
;
4508 switch (args
->event
) {
4509 case NB_EV_VALIDATE
:
4514 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4516 yang_dnode_get_string(args
->dnode
, "../remote-address");
4517 peer
= bgp_unnumbered_neighbor_peer_lookup(
4518 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4520 if (CHECK_FLAG(peer
->flags
, PEER_FLAG_CAPABILITY_ENHE
))
4521 bgp_zebra_terminate_radv(peer
->bgp
, peer
);
4523 peer_notify_unconfig(peer
);
4524 ret
= peer_delete(peer
);
4526 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
4528 return NB_ERR_INCONSISTENCY
;
4538 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/password
4540 int bgp_neighbors_unnumbered_neighbor_password_modify(
4541 struct nb_cb_modify_args
*args
)
4544 const char *peer_str
;
4545 const char *passwrd_str
;
4546 struct peer
*peer
= NULL
;
4548 switch (args
->event
) {
4549 case NB_EV_VALIDATE
:
4554 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4555 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
4556 peer
= bgp_unnumbered_neighbor_peer_lookup(
4557 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4559 return NB_ERR_INCONSISTENCY
;
4561 passwrd_str
= yang_dnode_get_string(args
->dnode
, NULL
);
4562 peer_password_set(peer
, passwrd_str
);
4570 int bgp_neighbors_unnumbered_neighbor_password_destroy(
4571 struct nb_cb_destroy_args
*args
)
4574 const char *peer_str
;
4575 struct peer
*peer
= NULL
;
4577 switch (args
->event
) {
4578 case NB_EV_VALIDATE
:
4583 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4584 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
4585 peer
= bgp_unnumbered_neighbor_peer_lookup(
4586 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4588 return NB_ERR_INCONSISTENCY
;
4590 peer_password_unset(peer
);
4600 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/ttl-security
4602 int bgp_neighbors_unnumbered_neighbor_ttl_security_modify(
4603 struct nb_cb_modify_args
*args
)
4606 const char *peer_str
;
4611 switch (args
->event
) {
4612 case NB_EV_VALIDATE
:
4617 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4618 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
4619 peer
= bgp_unnumbered_neighbor_peer_lookup(
4620 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4622 return NB_ERR_INCONSISTENCY
;
4624 gtsm_hops
= yang_dnode_get_uint8(args
->dnode
, NULL
);
4626 * If 'neighbor swpX', then this is for directly connected
4627 * peers, we should not accept a ttl-security hops value greater
4630 if (peer
->conf_if
&& (gtsm_hops
> BGP_GTSM_HOPS_CONNECTED
)) {
4632 args
->errmsg
, args
->errmsg_len
,
4633 "%d is directly connected peer, hops cannot exceed 1\n",
4635 return NB_ERR_INCONSISTENCY
;
4638 ret
= peer_ttl_security_hops_set(peer
, gtsm_hops
);
4639 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
4641 return NB_ERR_INCONSISTENCY
;
4649 int bgp_neighbors_unnumbered_neighbor_ttl_security_destroy(
4650 struct nb_cb_destroy_args
*args
)
4653 const char *peer_str
;
4657 switch (args
->event
) {
4658 case NB_EV_VALIDATE
:
4663 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4664 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
4665 peer
= bgp_unnumbered_neighbor_peer_lookup(
4666 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4668 return NB_ERR_INCONSISTENCY
;
4670 ret
= peer_ttl_security_hops_unset(peer
);
4671 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
4681 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/solo
4683 int bgp_neighbors_unnumbered_neighbor_solo_modify(
4684 struct nb_cb_modify_args
*args
)
4686 switch (args
->event
) {
4687 case NB_EV_VALIDATE
:
4691 /* TODO: implement me. */
4700 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/enforce-first-as
4702 int bgp_neighbors_unnumbered_neighbor_enforce_first_as_modify(
4703 struct nb_cb_modify_args
*args
)
4706 const char *peer_str
;
4708 bool enable
= false;
4710 switch (args
->event
) {
4711 case NB_EV_VALIDATE
:
4716 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4717 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
4718 peer
= bgp_unnumbered_neighbor_peer_lookup(
4719 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4721 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
4723 peer_flag_modify_nb(bgp
, peer_str
, peer
,
4724 PEER_FLAG_ENFORCE_FIRST_AS
, enable
,
4725 args
->errmsg
, args
->errmsg_len
);
4735 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/description
4737 int bgp_neighbors_unnumbered_neighbor_description_modify(
4738 struct nb_cb_modify_args
*args
)
4741 const char *peer_str
;
4742 const char *desc_str
;
4743 struct peer
*peer
= NULL
;
4745 switch (args
->event
) {
4746 case NB_EV_VALIDATE
:
4751 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4752 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
4754 peer
= bgp_unnumbered_neighbor_peer_lookup(
4755 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4757 return NB_ERR_INCONSISTENCY
;
4759 desc_str
= yang_dnode_get_string(args
->dnode
, NULL
);
4761 peer_description_set(peer
, desc_str
);
4769 int bgp_neighbors_unnumbered_neighbor_description_destroy(
4770 struct nb_cb_destroy_args
*args
)
4773 const char *peer_str
;
4774 struct peer
*peer
= NULL
;
4776 switch (args
->event
) {
4777 case NB_EV_VALIDATE
:
4782 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4783 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
4785 peer
= bgp_unnumbered_neighbor_peer_lookup(
4786 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4788 return NB_ERR_INCONSISTENCY
;
4790 peer_description_unset(peer
);
4800 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/passive-mode
4802 int bgp_neighbors_unnumbered_neighbor_passive_mode_modify(
4803 struct nb_cb_modify_args
*args
)
4806 const char *peer_str
;
4810 switch (args
->event
) {
4811 case NB_EV_VALIDATE
:
4816 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4817 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
4818 peer
= bgp_unnumbered_neighbor_peer_lookup(
4819 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4821 return NB_ERR_INCONSISTENCY
;
4823 set
= yang_dnode_get_bool(args
->dnode
, NULL
);
4825 if (peer_flag_modify_nb(bgp
, peer_str
, peer
, PEER_FLAG_PASSIVE
,
4826 set
, args
->errmsg
, args
->errmsg_len
)
4828 return NB_ERR_INCONSISTENCY
;
4838 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/capability-options/dynamic-capability
4840 int bgp_neighbors_unnumbered_neighbor_capability_options_dynamic_capability_modify(
4841 struct nb_cb_modify_args
*args
)
4844 const char *peer_str
;
4846 bool enable
= false;
4848 switch (args
->event
) {
4849 case NB_EV_VALIDATE
:
4854 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4856 yang_dnode_get_string(args
->dnode
, "../../interface");
4857 peer
= bgp_unnumbered_neighbor_peer_lookup(
4858 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4860 return NB_ERR_INCONSISTENCY
;
4862 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
4864 peer_flag_modify_nb(bgp
, peer_str
, peer
,
4865 PEER_FLAG_DYNAMIC_CAPABILITY
, enable
,
4866 args
->errmsg
, args
->errmsg_len
);
4876 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/capability-options/strict-capability
4878 int bgp_neighbors_unnumbered_neighbor_capability_options_strict_capability_modify(
4879 struct nb_cb_modify_args
*args
)
4882 const char *peer_str
;
4884 bool enable
= false;
4886 switch (args
->event
) {
4887 case NB_EV_VALIDATE
:
4892 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4894 yang_dnode_get_string(args
->dnode
, "../../interface");
4895 peer
= bgp_unnumbered_neighbor_peer_lookup(
4896 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4898 return NB_ERR_INCONSISTENCY
;
4900 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
4902 peer_flag_modify_nb(bgp
, peer_str
, peer
,
4903 PEER_FLAG_STRICT_CAP_MATCH
, enable
,
4904 args
->errmsg
, args
->errmsg_len
);
4914 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/capability-options/extended-nexthop-capability
4916 int bgp_neighbors_unnumbered_neighbor_capability_options_extended_nexthop_capability_modify(
4917 struct nb_cb_modify_args
*args
)
4920 const char *peer_str
;
4922 bool enable
= false;
4924 switch (args
->event
) {
4925 case NB_EV_VALIDATE
:
4930 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4932 yang_dnode_get_string(args
->dnode
, "../../interface");
4933 peer
= bgp_unnumbered_neighbor_peer_lookup(
4934 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4936 return NB_ERR_INCONSISTENCY
;
4938 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
4940 peer_flag_modify_nb(bgp
, peer_str
, peer
,
4941 PEER_FLAG_CAPABILITY_ENHE
, enable
,
4942 args
->errmsg
, args
->errmsg_len
);
4952 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/capability-options/capability-negotiate
4954 int bgp_neighbors_unnumbered_neighbor_capability_options_capability_negotiate_modify(
4955 struct nb_cb_modify_args
*args
)
4957 switch (args
->event
) {
4958 case NB_EV_VALIDATE
:
4962 /* TODO: implement me. */
4971 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/capability-options/override-capability
4973 int bgp_neighbors_unnumbered_neighbor_capability_options_override_capability_modify(
4974 struct nb_cb_modify_args
*args
)
4977 const char *peer_str
;
4979 bool enable
= false;
4981 switch (args
->event
) {
4982 case NB_EV_VALIDATE
:
4987 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
4989 yang_dnode_get_string(args
->dnode
, "../../interface");
4990 peer
= bgp_unnumbered_neighbor_peer_lookup(
4991 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
4993 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
4995 peer_flag_modify_nb(bgp
, peer_str
, peer
,
4996 PEER_FLAG_OVERRIDE_CAPABILITY
, enable
,
4997 args
->errmsg
, args
->errmsg_len
);
5007 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/update-source/ip
5009 int bgp_neighbors_unnumbered_neighbor_update_source_ip_modify(
5010 struct nb_cb_modify_args
*args
)
5013 const char *peer_str
, *source_str
;
5017 switch (args
->event
) {
5018 case NB_EV_VALIDATE
:
5023 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5025 yang_dnode_get_string(args
->dnode
, "../../interface");
5026 peer
= bgp_unnumbered_neighbor_peer_lookup(
5027 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
5029 return NB_ERR_INCONSISTENCY
;
5031 source_str
= yang_dnode_get_string(args
->dnode
, NULL
);
5033 str2sockunion(source_str
, &su
);
5034 peer_update_source_addr_set(peer
, &su
);
5042 int bgp_neighbors_unnumbered_neighbor_update_source_ip_destroy(
5043 struct nb_cb_destroy_args
*args
)
5046 const char *peer_str
;
5049 switch (args
->event
) {
5050 case NB_EV_VALIDATE
:
5055 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5057 yang_dnode_get_string(args
->dnode
, "../../interface");
5058 peer
= bgp_unnumbered_neighbor_peer_lookup(
5059 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
5061 return NB_ERR_INCONSISTENCY
;
5063 peer_update_source_unset(peer
);
5073 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/update-source/interface
5075 int bgp_neighbors_unnumbered_neighbor_update_source_interface_modify(
5076 struct nb_cb_modify_args
*args
)
5079 const char *peer_str
, *source_str
;
5083 switch (args
->event
) {
5084 case NB_EV_VALIDATE
:
5085 source_str
= yang_dnode_get_string(args
->dnode
, NULL
);
5086 if (str2prefix(source_str
, &p
)) {
5087 snprintf(args
->errmsg
, args
->errmsg_len
,
5088 "Invalid update-source, remove prefix length");
5089 return NB_ERR_VALIDATION
;
5096 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5098 yang_dnode_get_string(args
->dnode
, "../../interface");
5099 peer
= bgp_unnumbered_neighbor_peer_lookup(
5100 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
5102 return NB_ERR_INCONSISTENCY
;
5104 source_str
= yang_dnode_get_string(args
->dnode
, NULL
);
5106 peer_update_source_if_set(peer
, source_str
);
5114 int bgp_neighbors_unnumbered_neighbor_update_source_interface_destroy(
5115 struct nb_cb_destroy_args
*args
)
5118 const char *peer_str
;
5121 switch (args
->event
) {
5122 case NB_EV_VALIDATE
:
5127 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5129 yang_dnode_get_string(args
->dnode
, "../../interface");
5130 peer
= bgp_unnumbered_neighbor_peer_lookup(
5131 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
5133 return NB_ERR_INCONSISTENCY
;
5135 peer_update_source_unset(peer
);
5145 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/neighbor-remote-as
5147 void bgp_neighbors_unnumbered_neighbor_neighbor_remote_as_apply_finish(
5148 struct nb_cb_apply_finish_args
*args
)
5151 const char *peer_str
;
5152 int as_type
= AS_SPECIFIED
;
5155 struct peer
*peer
= NULL
;
5157 safi_t safi
= SAFI_UNICAST
;
5159 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5160 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
5161 as_type
= yang_dnode_get_enum(args
->dnode
, "./remote-as-type");
5162 if (yang_dnode_exists(args
->dnode
, "./remote-as"))
5163 as
= yang_dnode_get_uint32(args
->dnode
, "./remote-as");
5165 peer
= peer_lookup_by_conf_if(bgp
, peer_str
);
5167 ret
= peer_remote_as(bgp
, NULL
, peer_str
, &as
, as_type
, afi
, safi
);
5169 if (ret
< 0 && !peer
) {
5170 snprintf(args
->errmsg
, args
->errmsg_len
,
5171 "Create the peer-group or interface first");
5175 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
5180 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/neighbor-remote-as/remote-as-type
5182 int bgp_neighbors_unnumbered_neighbor_neighbor_remote_as_remote_as_type_modify(
5183 struct nb_cb_modify_args
*args
)
5185 switch (args
->event
) {
5186 case NB_EV_VALIDATE
:
5190 /* TODO: implement me. */
5197 int bgp_neighbors_unnumbered_neighbor_neighbor_remote_as_remote_as_type_destroy(
5198 struct nb_cb_destroy_args
*args
)
5201 const char *peer_str
;
5204 switch (args
->event
) {
5205 case NB_EV_VALIDATE
:
5210 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5212 yang_dnode_get_string(args
->dnode
, "../../interface");
5213 peer
= peer_lookup_by_conf_if(bgp
, peer_str
);
5215 /* remote-as set to 0 and as_type to unspecified */
5217 peer_as_change(peer
, 0, AS_UNSPECIFIED
);
5227 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/neighbor-remote-as/remote-as
5229 int bgp_neighbors_unnumbered_neighbor_neighbor_remote_as_remote_as_modify(
5230 struct nb_cb_modify_args
*args
)
5232 switch (args
->event
) {
5233 case NB_EV_VALIDATE
:
5237 /* TODO: implement me. */
5244 int bgp_neighbors_unnumbered_neighbor_neighbor_remote_as_remote_as_destroy(
5245 struct nb_cb_destroy_args
*args
)
5247 switch (args
->event
) {
5248 case NB_EV_VALIDATE
:
5252 /* TODO: implement me. */
5261 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/ebgp-multihop/enabled
5263 int bgp_neighbors_unnumbered_neighbor_ebgp_multihop_enabled_modify(
5264 struct nb_cb_modify_args
*args
)
5267 const char *peer_str
;
5271 uint8_t ttl
= MAXTTL
;
5273 switch (args
->event
) {
5274 case NB_EV_VALIDATE
:
5279 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5281 yang_dnode_get_string(args
->dnode
, "../../interface");
5282 peer
= peer_lookup_by_conf_if(bgp
, peer_str
);
5284 return NB_ERR_INCONSISTENCY
;
5286 if (peer
->conf_if
) {
5287 ret
= BGP_ERR_INVALID_FOR_DIRECT_PEER
;
5288 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
,
5290 return NB_ERR_INCONSISTENCY
;
5293 set
= yang_dnode_get_bool(args
->dnode
, NULL
);
5296 ret
= peer_ebgp_multihop_set(peer
, ttl
);
5298 ret
= peer_ebgp_multihop_unset(peer
);
5300 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
5308 int bgp_neighbors_unnumbered_neighbor_ebgp_multihop_enabled_destroy(
5309 struct nb_cb_destroy_args
*args
)
5312 const char *peer_str
;
5316 switch (args
->event
) {
5317 case NB_EV_VALIDATE
:
5322 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5324 yang_dnode_get_string(args
->dnode
, "../../interface");
5325 peer
= peer_lookup_by_conf_if(bgp
, peer_str
);
5327 return NB_ERR_INCONSISTENCY
;
5329 ret
= peer_ebgp_multihop_unset(peer
);
5331 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
5341 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/ebgp-multihop/multihop-ttl
5343 int bgp_neighbors_unnumbered_neighbor_ebgp_multihop_multihop_ttl_modify(
5344 struct nb_cb_modify_args
*args
)
5347 const char *peer_str
;
5350 uint8_t ttl
= MAXTTL
;
5352 switch (args
->event
) {
5353 case NB_EV_VALIDATE
:
5358 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5360 yang_dnode_get_string(args
->dnode
, "../../interface");
5361 peer
= peer_lookup_by_conf_if(bgp
, peer_str
);
5363 return NB_ERR_INCONSISTENCY
;
5365 if (peer
->conf_if
) {
5366 ret
= BGP_ERR_INVALID_FOR_DIRECT_PEER
;
5367 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
,
5369 return NB_ERR_INCONSISTENCY
;
5372 ttl
= yang_dnode_get_uint8(args
->dnode
, NULL
);
5374 ret
= peer_ebgp_multihop_set(peer
, ttl
);
5376 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
5384 int bgp_neighbors_unnumbered_neighbor_ebgp_multihop_multihop_ttl_destroy(
5385 struct nb_cb_destroy_args
*args
)
5388 const char *peer_str
;
5392 switch (args
->event
) {
5393 case NB_EV_VALIDATE
:
5398 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5400 yang_dnode_get_string(args
->dnode
, "../../interface");
5401 peer
= peer_lookup_by_conf_if(bgp
, peer_str
);
5403 return NB_ERR_INCONSISTENCY
;
5405 ret
= peer_ebgp_multihop_unset(peer
);
5407 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
5417 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/ebgp-multihop/disable-connected-check
5419 int bgp_neighbors_unnumbered_neighbor_ebgp_multihop_disable_connected_check_modify(
5420 struct nb_cb_modify_args
*args
)
5423 const char *peer_str
;
5427 switch (args
->event
) {
5428 case NB_EV_VALIDATE
:
5433 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5435 yang_dnode_get_string(args
->dnode
, "../../interface");
5436 peer
= peer_lookup_by_conf_if(bgp
, peer_str
);
5438 return NB_ERR_INCONSISTENCY
;
5440 set
= yang_dnode_get_bool(args
->dnode
, NULL
);
5442 if (peer_flag_modify_nb(bgp
, peer_str
, peer
,
5443 PEER_FLAG_DISABLE_CONNECTED_CHECK
, set
,
5444 args
->errmsg
, args
->errmsg_len
)
5446 return NB_ERR_INCONSISTENCY
;
5456 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/local-as
5458 void bgp_neighbors_unnumbered_neighbor_local_as_apply_finish(
5459 struct nb_cb_apply_finish_args
*args
)
5464 const char *peer_str
;
5465 struct peer
*peer
= NULL
;
5466 bool no_prepend
= 0;
5467 bool replace_as
= 0;
5469 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5470 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
5472 peer
= bgp_unnumbered_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
5475 if (yang_dnode_exists(args
->dnode
, "./local-as"))
5476 as
= yang_dnode_get_uint32(args
->dnode
, "./local-as");
5477 if (yang_dnode_exists(args
->dnode
, "./no-prepend"))
5478 no_prepend
= yang_dnode_get_bool(args
->dnode
, "./no-prepend");
5479 if (yang_dnode_exists(args
->dnode
, "./no-replace-as"))
5481 yang_dnode_get_bool(args
->dnode
, "./no-replace-as");
5483 if (!as
&& !no_prepend
&& !replace_as
)
5484 ret
= peer_local_as_unset(peer
);
5486 ret
= peer_local_as_set(peer
, as
, no_prepend
, replace_as
);
5488 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
5493 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/local-as/local-as
5495 int bgp_neighbors_unnumbered_neighbor_local_as_local_as_modify(
5496 struct nb_cb_modify_args
*args
)
5498 switch (args
->event
) {
5499 case NB_EV_VALIDATE
:
5503 /* TODO: implement me. */
5510 int bgp_neighbors_unnumbered_neighbor_local_as_local_as_destroy(
5511 struct nb_cb_destroy_args
*args
)
5513 switch (args
->event
) {
5514 case NB_EV_VALIDATE
:
5518 /* TODO: implement me. */
5527 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/local-as/no-prepend
5529 int bgp_neighbors_unnumbered_neighbor_local_as_no_prepend_modify(
5530 struct nb_cb_modify_args
*args
)
5532 switch (args
->event
) {
5533 case NB_EV_VALIDATE
:
5537 /* TODO: implement me. */
5544 int bgp_neighbors_unnumbered_neighbor_local_as_no_prepend_destroy(
5545 struct nb_cb_destroy_args
*args
)
5547 switch (args
->event
) {
5548 case NB_EV_VALIDATE
:
5552 /* TODO: implement me. */
5561 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/local-as/no-replace-as
5563 int bgp_neighbors_unnumbered_neighbor_local_as_no_replace_as_modify(
5564 struct nb_cb_modify_args
*args
)
5566 switch (args
->event
) {
5567 case NB_EV_VALIDATE
:
5571 /* TODO: implement me. */
5580 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/bfd-options/enable
5582 int bgp_neighbors_unnumbered_neighbor_bfd_options_enable_modify(
5583 struct nb_cb_modify_args
*args
)
5585 switch (args
->event
) {
5586 case NB_EV_VALIDATE
:
5590 /* TODO: implement me. */
5599 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/bfd-options/detect-multiplier
5601 int bgp_neighbors_unnumbered_neighbor_bfd_options_detect_multiplier_modify(
5602 struct nb_cb_modify_args
*args
)
5604 switch (args
->event
) {
5605 case NB_EV_VALIDATE
:
5609 /* TODO: implement me. */
5616 int bgp_neighbors_unnumbered_neighbor_bfd_options_detect_multiplier_destroy(
5617 struct nb_cb_destroy_args
*args
)
5619 switch (args
->event
) {
5620 case NB_EV_VALIDATE
:
5624 /* TODO: implement me. */
5633 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/bfd-options/required-min-rx
5635 int bgp_neighbors_unnumbered_neighbor_bfd_options_required_min_rx_modify(
5636 struct nb_cb_modify_args
*args
)
5638 switch (args
->event
) {
5639 case NB_EV_VALIDATE
:
5643 /* TODO: implement me. */
5650 int bgp_neighbors_unnumbered_neighbor_bfd_options_required_min_rx_destroy(
5651 struct nb_cb_destroy_args
*args
)
5653 switch (args
->event
) {
5654 case NB_EV_VALIDATE
:
5658 /* TODO: implement me. */
5667 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/bfd-options/desired-min-tx
5669 int bgp_neighbors_unnumbered_neighbor_bfd_options_desired_min_tx_modify(
5670 struct nb_cb_modify_args
*args
)
5672 switch (args
->event
) {
5673 case NB_EV_VALIDATE
:
5677 /* TODO: implement me. */
5684 int bgp_neighbors_unnumbered_neighbor_bfd_options_desired_min_tx_destroy(
5685 struct nb_cb_destroy_args
*args
)
5687 switch (args
->event
) {
5688 case NB_EV_VALIDATE
:
5692 /* TODO: implement me. */
5701 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/bfd-options/session-type
5703 int bgp_neighbors_unnumbered_neighbor_bfd_options_session_type_modify(
5704 struct nb_cb_modify_args
*args
)
5706 switch (args
->event
) {
5707 case NB_EV_VALIDATE
:
5711 /* TODO: implement me. */
5718 int bgp_neighbors_unnumbered_neighbor_bfd_options_session_type_destroy(
5719 struct nb_cb_destroy_args
*args
)
5721 switch (args
->event
) {
5722 case NB_EV_VALIDATE
:
5726 /* TODO: implement me. */
5735 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/bfd-options/check-cp-failure
5737 int bgp_neighbors_unnumbered_neighbor_bfd_options_check_cp_failure_modify(
5738 struct nb_cb_modify_args
*args
)
5740 switch (args
->event
) {
5741 case NB_EV_VALIDATE
:
5745 /* TODO: implement me. */
5752 int bgp_neighbors_unnumbered_neighbor_bfd_options_check_cp_failure_destroy(
5753 struct nb_cb_destroy_args
*args
)
5755 switch (args
->event
) {
5756 case NB_EV_VALIDATE
:
5760 /* TODO: implement me. */
5769 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/admin-shutdown
5771 void bgp_neighbors_unnumbered_neighbor_admin_shutdown_apply_finish(
5772 struct nb_cb_apply_finish_args
*args
)
5775 const char *peer_str
;
5777 bool enable
= false;
5778 const char *message
;
5780 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5781 peer_str
= yang_dnode_get_string(args
->dnode
, "../interface");
5782 peer
= bgp_unnumbered_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
5785 if (yang_dnode_exists(args
->dnode
, "./message")) {
5786 message
= yang_dnode_get_string(args
->dnode
, "./message");
5787 peer_tx_shutdown_message_set(peer
, message
);
5789 enable
= yang_dnode_get_bool(args
->dnode
, "./enable");
5791 peer_flag_modify_nb(bgp
, peer_str
, peer
, PEER_FLAG_SHUTDOWN
, enable
,
5792 args
->errmsg
, args
->errmsg_len
);
5797 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/admin-shutdown/enable
5799 int bgp_neighbors_unnumbered_neighbor_admin_shutdown_enable_modify(
5800 struct nb_cb_modify_args
*args
)
5802 switch (args
->event
) {
5803 case NB_EV_VALIDATE
:
5807 /* TODO: implement me. */
5814 int bgp_neighbors_unnumbered_neighbor_admin_shutdown_enable_destroy(
5815 struct nb_cb_destroy_args
*args
)
5817 switch (args
->event
) {
5818 case NB_EV_VALIDATE
:
5822 /* TODO: implement me. */
5831 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/admin-shutdown/message
5833 int bgp_neighbors_unnumbered_neighbor_admin_shutdown_message_modify(
5834 struct nb_cb_modify_args
*args
)
5836 switch (args
->event
) {
5837 case NB_EV_VALIDATE
:
5841 /* TODO: implement me. */
5848 int bgp_neighbors_unnumbered_neighbor_admin_shutdown_message_destroy(
5849 struct nb_cb_destroy_args
*args
)
5851 switch (args
->event
) {
5852 case NB_EV_VALIDATE
:
5856 /* TODO: implement me. */
5865 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/graceful-restart/enable
5867 int bgp_neighbors_unnumbered_neighbor_graceful_restart_enable_modify(
5868 struct nb_cb_modify_args
*args
)
5870 switch (args
->event
) {
5871 case NB_EV_VALIDATE
:
5875 /* TODO: implement me. */
5882 int bgp_neighbors_unnumbered_neighbor_graceful_restart_enable_destroy(
5883 struct nb_cb_destroy_args
*args
)
5885 switch (args
->event
) {
5886 case NB_EV_VALIDATE
:
5890 /* TODO: implement me. */
5899 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/graceful-restart/graceful-restart-helper
5901 int bgp_neighbors_unnumbered_neighbor_graceful_restart_graceful_restart_helper_modify(
5902 struct nb_cb_modify_args
*args
)
5904 switch (args
->event
) {
5905 case NB_EV_VALIDATE
:
5909 /* TODO: implement me. */
5916 int bgp_neighbors_unnumbered_neighbor_graceful_restart_graceful_restart_helper_destroy(
5917 struct nb_cb_destroy_args
*args
)
5919 switch (args
->event
) {
5920 case NB_EV_VALIDATE
:
5924 /* TODO: implement me. */
5933 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/graceful-restart/graceful-restart-disable
5935 int bgp_neighbors_unnumbered_neighbor_graceful_restart_graceful_restart_disable_modify(
5936 struct nb_cb_modify_args
*args
)
5938 switch (args
->event
) {
5939 case NB_EV_VALIDATE
:
5943 /* TODO: implement me. */
5950 int bgp_neighbors_unnumbered_neighbor_graceful_restart_graceful_restart_disable_destroy(
5951 struct nb_cb_destroy_args
*args
)
5953 switch (args
->event
) {
5954 case NB_EV_VALIDATE
:
5958 /* TODO: implement me. */
5967 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/timers/advertise-interval
5969 int bgp_neighbors_unnumbered_neighbor_timers_advertise_interval_modify(
5970 struct nb_cb_modify_args
*args
)
5973 const char *peer_str
;
5978 switch (args
->event
) {
5979 case NB_EV_VALIDATE
:
5984 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
5986 yang_dnode_get_string(args
->dnode
, "../../interface");
5987 peer
= bgp_unnumbered_neighbor_peer_lookup(
5988 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
5989 routeadv
= yang_dnode_get_uint16(args
->dnode
, NULL
);
5991 ret
= peer_advertise_interval_set(peer
, routeadv
);
5992 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
6000 int bgp_neighbors_unnumbered_neighbor_timers_advertise_interval_destroy(
6001 struct nb_cb_destroy_args
*args
)
6004 const char *peer_str
;
6008 switch (args
->event
) {
6009 case NB_EV_VALIDATE
:
6014 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6016 yang_dnode_get_string(args
->dnode
, "../../interface");
6017 peer
= bgp_unnumbered_neighbor_peer_lookup(
6018 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
6020 ret
= peer_advertise_interval_unset(peer
);
6021 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
6031 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/timers/connect-time
6033 int bgp_neighbors_unnumbered_neighbor_timers_connect_time_modify(
6034 struct nb_cb_modify_args
*args
)
6037 const char *peer_str
;
6042 switch (args
->event
) {
6043 case NB_EV_VALIDATE
:
6048 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6050 yang_dnode_get_string(args
->dnode
, "../../interface");
6051 peer
= bgp_unnumbered_neighbor_peer_lookup(
6052 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
6053 connect
= yang_dnode_get_uint16(args
->dnode
, NULL
);
6055 ret
= peer_timers_connect_set(peer
, connect
);
6056 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
6064 int bgp_neighbors_unnumbered_neighbor_timers_connect_time_destroy(
6065 struct nb_cb_destroy_args
*args
)
6068 const char *peer_str
;
6072 switch (args
->event
) {
6073 case NB_EV_VALIDATE
:
6078 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6080 yang_dnode_get_string(args
->dnode
, "../../interface");
6081 peer
= bgp_unnumbered_neighbor_peer_lookup(
6082 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
6083 ret
= peer_timers_connect_unset(peer
);
6084 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
6086 return NB_ERR_INCONSISTENCY
;
6096 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/timers/hold-time
6098 int bgp_neighbors_unnumbered_neighbor_timers_hold_time_modify(
6099 struct nb_cb_modify_args
*args
)
6102 const char *peer_str
;
6104 uint16_t keepalive
= 0;
6105 uint16_t holdtime
= 0;
6108 switch (args
->event
) {
6109 case NB_EV_VALIDATE
:
6114 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6116 yang_dnode_get_string(args
->dnode
, "../../interface");
6117 peer
= bgp_unnumbered_neighbor_peer_lookup(
6118 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
6120 keepalive
= yang_dnode_get_uint16(args
->dnode
, "../keepalive");
6121 holdtime
= yang_dnode_get_uint16(args
->dnode
, NULL
);
6123 if (keepalive
!= BGP_DEFAULT_KEEPALIVE
6124 && holdtime
!= BGP_DEFAULT_HOLDTIME
) {
6125 ret
= peer_timers_set(peer
, keepalive
, holdtime
);
6127 ret
= peer_timers_unset(peer
);
6129 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
6131 return NB_ERR_INCONSISTENCY
;
6141 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/timers/keepalive
6143 int bgp_neighbors_unnumbered_neighbor_timers_keepalive_modify(
6144 struct nb_cb_modify_args
*args
)
6147 const char *peer_str
;
6149 uint16_t keepalive
= 0, curr_keep
= 0;
6150 uint16_t holdtime
= 0;
6153 switch (args
->event
) {
6154 case NB_EV_VALIDATE
:
6159 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6161 yang_dnode_get_string(args
->dnode
, "../../interface");
6162 peer
= bgp_unnumbered_neighbor_peer_lookup(
6163 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
6165 keepalive
= yang_dnode_get_uint16(args
->dnode
, NULL
);
6166 holdtime
= yang_dnode_get_uint16(args
->dnode
, "../hold-time");
6168 if (keepalive
!= BGP_DEFAULT_KEEPALIVE
6169 && holdtime
!= BGP_DEFAULT_HOLDTIME
) {
6170 if (peer
->holdtime
== holdtime
) {
6171 curr_keep
= (keepalive
< holdtime
/ 3
6174 if (curr_keep
== keepalive
)
6177 ret
= peer_timers_set(peer
, keepalive
, holdtime
);
6179 ret
= peer_timers_unset(peer
);
6181 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
6183 return NB_ERR_INCONSISTENCY
;
6193 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi
6195 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_create(
6196 struct nb_cb_create_args
*args
)
6198 switch (args
->event
) {
6199 case NB_EV_VALIDATE
:
6203 /* TODO: implement me. */
6210 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_destroy(
6211 struct nb_cb_destroy_args
*args
)
6213 switch (args
->event
) {
6214 case NB_EV_VALIDATE
:
6218 /* TODO: implement me. */
6227 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/enabled
6229 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_enabled_modify(
6230 struct nb_cb_modify_args
*args
)
6233 const char *peer_str
;
6234 const char *af_name
;
6237 bool activate
= false;
6241 switch (args
->event
) {
6242 case NB_EV_VALIDATE
:
6247 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6249 yang_dnode_get_string(args
->dnode
, "../afi-safi-name");
6250 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
6251 peer_str
= yang_dnode_get_string(args
->dnode
,
6252 "../../../interface");
6254 peer
= bgp_unnumbered_neighbor_peer_lookup(
6255 bgp
, peer_str
, args
->errmsg
, args
->errmsg_len
);
6257 activate
= yang_dnode_get_bool(args
->dnode
, NULL
);
6260 ret
= peer_activate(peer
, afi
, safi
);
6262 ret
= peer_deactivate(peer
, afi
, safi
);
6264 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
6266 return NB_ERR_INCONSISTENCY
;
6274 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_enabled_destroy(
6275 struct nb_cb_destroy_args
*args
)
6277 switch (args
->event
) {
6278 case NB_EV_VALIDATE
:
6282 /* TODO: implement me. */
6289 static struct peer
*bgp_peer_group_peer_lookup(struct bgp
*bgp
,
6290 const char *peer_str
)
6292 struct peer_group
*group
= NULL
;
6294 group
= peer_group_lookup(bgp
, peer_str
);
6300 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group
6302 int bgp_peer_groups_peer_group_create(struct nb_cb_create_args
*args
)
6304 const char *peer_grp_str
;
6306 struct peer_group
*group
;
6308 char unnbr_xpath
[XPATH_MAXLEN
];
6309 const struct lyd_node
*bgp_dnode
;
6311 switch (args
->event
) {
6312 case NB_EV_VALIDATE
:
6314 yang_dnode_get_string(args
->dnode
, "./peer-group-name");
6315 bgp_dnode
= yang_dnode_get_parent(args
->dnode
, "bgp");
6316 snprintf(unnbr_xpath
, sizeof(unnbr_xpath
),
6317 FRR_BGP_NEIGHBOR_UNNUM_XPATH
, peer_grp_str
, "");
6319 if (yang_dnode_exists(bgp_dnode
, unnbr_xpath
)) {
6320 snprintf(args
->errmsg
, args
->errmsg_len
,
6321 "Name conflict with interface: %s",
6323 return NB_ERR_VALIDATION
;
6331 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6333 yang_dnode_get_string(args
->dnode
, "./peer-group-name");
6334 peer
= peer_lookup_by_conf_if(bgp
, peer_grp_str
);
6336 snprintf(args
->errmsg
, args
->errmsg_len
,
6337 "Name conflict with interface:");
6338 return NB_ERR_INCONSISTENCY
;
6341 group
= peer_group_get(bgp
, peer_grp_str
);
6343 snprintf(args
->errmsg
, args
->errmsg_len
,
6344 "BGP failed to find or create peer-group");
6345 return NB_ERR_INCONSISTENCY
;
6353 int bgp_peer_groups_peer_group_destroy(struct nb_cb_destroy_args
*args
)
6355 const char *peer_grp_str
;
6356 struct peer_group
*group
;
6359 switch (args
->event
) {
6360 case NB_EV_VALIDATE
:
6365 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6367 yang_dnode_get_string(args
->dnode
, "./peer-group-name");
6369 group
= peer_group_lookup(bgp
, peer_grp_str
);
6371 peer_group_notify_unconfig(group
);
6372 peer_group_delete(group
);
6383 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/ipv4-listen-range
6385 int bgp_peer_groups_peer_group_ipv4_listen_range_create(
6386 struct nb_cb_create_args
*args
)
6388 switch (args
->event
) {
6389 case NB_EV_VALIDATE
:
6393 /* TODO: implement me. */
6400 int bgp_peer_groups_peer_group_ipv4_listen_range_destroy(
6401 struct nb_cb_destroy_args
*args
)
6403 switch (args
->event
) {
6404 case NB_EV_VALIDATE
:
6408 /* TODO: implement me. */
6417 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/ipv6-listen-range
6419 int bgp_peer_groups_peer_group_ipv6_listen_range_create(
6420 struct nb_cb_create_args
*args
)
6422 switch (args
->event
) {
6423 case NB_EV_VALIDATE
:
6427 /* TODO: implement me. */
6434 int bgp_peer_groups_peer_group_ipv6_listen_range_destroy(
6435 struct nb_cb_destroy_args
*args
)
6437 switch (args
->event
) {
6438 case NB_EV_VALIDATE
:
6442 /* TODO: implement me. */
6451 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/password
6453 int bgp_peer_groups_peer_group_password_modify(struct nb_cb_modify_args
*args
)
6456 const char *peer_str
;
6457 const char *passwrd_str
;
6458 struct peer
*peer
= NULL
;
6460 switch (args
->event
) {
6461 case NB_EV_VALIDATE
:
6466 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6467 peer_str
= yang_dnode_get_string(args
->dnode
,
6468 "../peer-group-name");
6469 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6471 passwrd_str
= yang_dnode_get_string(args
->dnode
, NULL
);
6472 peer_password_set(peer
, passwrd_str
);
6480 int bgp_peer_groups_peer_group_password_destroy(struct nb_cb_destroy_args
*args
)
6483 const char *peer_str
;
6484 struct peer
*peer
= NULL
;
6486 switch (args
->event
) {
6487 case NB_EV_VALIDATE
:
6492 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6493 peer_str
= yang_dnode_get_string(args
->dnode
,
6494 "../peer-group-name");
6495 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6497 peer_password_unset(peer
);
6507 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/ttl-security
6509 int bgp_peer_groups_peer_group_ttl_security_modify(
6510 struct nb_cb_modify_args
*args
)
6513 const char *peer_str
;
6518 switch (args
->event
) {
6519 case NB_EV_VALIDATE
:
6524 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6525 peer_str
= yang_dnode_get_string(args
->dnode
,
6526 "../peer-group-name");
6527 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6529 return NB_ERR_INCONSISTENCY
;
6531 gtsm_hops
= yang_dnode_get_uint8(args
->dnode
, NULL
);
6533 * If 'neighbor swpX', then this is for directly connected
6534 * peers, we should not accept a ttl-security hops value greater
6537 if (peer
->conf_if
&& (gtsm_hops
> BGP_GTSM_HOPS_CONNECTED
)) {
6539 args
->errmsg
, args
->errmsg_len
,
6540 "%d is directly connected peer, hops cannot exceed 1\n",
6542 return NB_ERR_INCONSISTENCY
;
6545 ret
= peer_ttl_security_hops_set(peer
, gtsm_hops
);
6546 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
6548 return NB_ERR_INCONSISTENCY
;
6556 int bgp_peer_groups_peer_group_ttl_security_destroy(
6557 struct nb_cb_destroy_args
*args
)
6560 const char *peer_str
;
6564 switch (args
->event
) {
6565 case NB_EV_VALIDATE
:
6570 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6571 peer_str
= yang_dnode_get_string(args
->dnode
,
6572 "../peer-group-name");
6573 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6575 return NB_ERR_INCONSISTENCY
;
6577 ret
= peer_ttl_security_hops_unset(peer
);
6578 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
6580 return NB_ERR_INCONSISTENCY
;
6590 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/solo
6592 int bgp_peer_groups_peer_group_solo_modify(struct nb_cb_modify_args
*args
)
6594 switch (args
->event
) {
6595 case NB_EV_VALIDATE
:
6599 /* TODO: implement me. */
6608 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/enforce-first-as
6610 int bgp_peer_groups_peer_group_enforce_first_as_modify(
6611 struct nb_cb_modify_args
*args
)
6614 const char *peer_str
;
6616 bool enable
= false;
6618 switch (args
->event
) {
6619 case NB_EV_VALIDATE
:
6624 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6625 peer_str
= yang_dnode_get_string(args
->dnode
,
6626 "../peer-group-name");
6627 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6629 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
6631 peer_flag_modify_nb(bgp
, peer_str
, peer
,
6632 PEER_FLAG_ENFORCE_FIRST_AS
, enable
,
6633 args
->errmsg
, args
->errmsg_len
);
6643 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/description
6645 int bgp_peer_groups_peer_group_description_modify(
6646 struct nb_cb_modify_args
*args
)
6649 const char *peer_str
;
6650 const char *desc_str
;
6651 struct peer
*peer
= NULL
;
6653 switch (args
->event
) {
6654 case NB_EV_VALIDATE
:
6659 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6660 peer_str
= yang_dnode_get_string(args
->dnode
,
6661 "../peer-group-name");
6662 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6664 desc_str
= yang_dnode_get_string(args
->dnode
, NULL
);
6666 peer_description_set(peer
, desc_str
);
6674 int bgp_peer_groups_peer_group_description_destroy(
6675 struct nb_cb_destroy_args
*args
)
6678 const char *peer_str
;
6679 struct peer
*peer
= NULL
;
6681 switch (args
->event
) {
6682 case NB_EV_VALIDATE
:
6687 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6688 peer_str
= yang_dnode_get_string(args
->dnode
,
6689 "../peer-group-name");
6690 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6692 return NB_ERR_INCONSISTENCY
;
6694 peer_description_unset(peer
);
6704 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/passive-mode
6706 int bgp_peer_groups_peer_group_passive_mode_modify(
6707 struct nb_cb_modify_args
*args
)
6710 const char *peer_str
;
6714 switch (args
->event
) {
6715 case NB_EV_VALIDATE
:
6720 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6721 peer_str
= yang_dnode_get_string(args
->dnode
,
6722 "../peer-group-name");
6723 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6725 return NB_ERR_INCONSISTENCY
;
6727 set
= yang_dnode_get_bool(args
->dnode
, NULL
);
6729 if (peer_flag_modify_nb(bgp
, peer_str
, peer
, PEER_FLAG_PASSIVE
,
6730 set
, args
->errmsg
, args
->errmsg_len
)
6732 return NB_ERR_INCONSISTENCY
;
6742 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/capability-options/dynamic-capability
6744 int bgp_peer_groups_peer_group_capability_options_dynamic_capability_modify(
6745 struct nb_cb_modify_args
*args
)
6748 const char *peer_str
;
6750 bool enable
= false;
6752 switch (args
->event
) {
6753 case NB_EV_VALIDATE
:
6758 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6759 peer_str
= yang_dnode_get_string(args
->dnode
,
6760 "../../peer-group-name");
6761 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6763 return NB_ERR_INCONSISTENCY
;
6765 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
6767 peer_flag_modify_nb(bgp
, peer_str
, peer
,
6768 PEER_FLAG_DYNAMIC_CAPABILITY
, enable
,
6769 args
->errmsg
, args
->errmsg_len
);
6779 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/capability-options/strict-capability
6781 int bgp_peer_groups_peer_group_capability_options_strict_capability_modify(
6782 struct nb_cb_modify_args
*args
)
6785 const char *peer_str
;
6787 bool enable
= false;
6789 switch (args
->event
) {
6790 case NB_EV_VALIDATE
:
6795 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6796 peer_str
= yang_dnode_get_string(args
->dnode
,
6797 "../../peer-group-name");
6798 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6800 return NB_ERR_INCONSISTENCY
;
6802 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
6804 peer_flag_modify_nb(bgp
, peer_str
, peer
,
6805 PEER_FLAG_STRICT_CAP_MATCH
, enable
,
6806 args
->errmsg
, args
->errmsg_len
);
6816 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/capability-options/extended-nexthop-capability
6818 int bgp_peer_groups_peer_group_capability_options_extended_nexthop_capability_modify(
6819 struct nb_cb_modify_args
*args
)
6822 const char *peer_str
;
6824 bool enable
= false;
6826 switch (args
->event
) {
6827 case NB_EV_VALIDATE
:
6832 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6833 peer_str
= yang_dnode_get_string(args
->dnode
,
6834 "../../peer-group-name");
6835 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6837 return NB_ERR_INCONSISTENCY
;
6839 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
6841 peer_flag_modify_nb(bgp
, peer_str
, peer
,
6842 PEER_FLAG_CAPABILITY_ENHE
, enable
,
6843 args
->errmsg
, args
->errmsg_len
);
6853 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/capability-options/capability-negotiate
6855 int bgp_peer_groups_peer_group_capability_options_capability_negotiate_modify(
6856 struct nb_cb_modify_args
*args
)
6858 switch (args
->event
) {
6859 case NB_EV_VALIDATE
:
6863 /* TODO: implement me. */
6872 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/capability-options/override-capability
6874 int bgp_peer_groups_peer_group_capability_options_override_capability_modify(
6875 struct nb_cb_modify_args
*args
)
6878 const char *peer_str
;
6880 bool enable
= false;
6882 switch (args
->event
) {
6883 case NB_EV_VALIDATE
:
6888 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6889 peer_str
= yang_dnode_get_string(args
->dnode
,
6890 "../../peer-group-name");
6891 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6893 return NB_ERR_INCONSISTENCY
;
6895 enable
= yang_dnode_get_bool(args
->dnode
, NULL
);
6897 peer_flag_modify_nb(bgp
, peer_str
, peer
,
6898 PEER_FLAG_OVERRIDE_CAPABILITY
, enable
,
6899 args
->errmsg
, args
->errmsg_len
);
6909 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/update-source/ip
6911 int bgp_peer_groups_peer_group_update_source_ip_modify(
6912 struct nb_cb_modify_args
*args
)
6915 const char *peer_str
, *source_str
;
6919 switch (args
->event
) {
6920 case NB_EV_VALIDATE
:
6925 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6926 peer_str
= yang_dnode_get_string(args
->dnode
,
6927 "../../peer-group-name");
6928 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6930 return NB_ERR_INCONSISTENCY
;
6932 source_str
= yang_dnode_get_string(args
->dnode
, NULL
);
6934 str2sockunion(source_str
, &su
);
6935 peer_update_source_addr_set(peer
, &su
);
6943 int bgp_peer_groups_peer_group_update_source_ip_destroy(
6944 struct nb_cb_destroy_args
*args
)
6947 const char *peer_str
;
6950 switch (args
->event
) {
6951 case NB_EV_VALIDATE
:
6956 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6957 peer_str
= yang_dnode_get_string(args
->dnode
,
6958 "../../peer-group-name");
6959 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
6961 return NB_ERR_INCONSISTENCY
;
6963 peer_update_source_unset(peer
);
6973 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/update-source/interface
6975 int bgp_peer_groups_peer_group_update_source_interface_modify(
6976 struct nb_cb_modify_args
*args
)
6979 const char *peer_str
, *source_str
;
6983 switch (args
->event
) {
6984 case NB_EV_VALIDATE
:
6985 source_str
= yang_dnode_get_string(args
->dnode
, NULL
);
6986 if (str2prefix(source_str
, &p
)) {
6987 snprintf(args
->errmsg
, args
->errmsg_len
,
6988 "Invalid update-source, remove prefix length");
6989 return NB_ERR_VALIDATION
;
6996 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
6997 peer_str
= yang_dnode_get_string(args
->dnode
,
6998 "../../peer-group-name");
6999 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7001 return NB_ERR_INCONSISTENCY
;
7003 source_str
= yang_dnode_get_string(args
->dnode
, NULL
);
7005 peer_update_source_if_set(peer
, source_str
);
7013 int bgp_peer_groups_peer_group_update_source_interface_destroy(
7014 struct nb_cb_destroy_args
*args
)
7017 const char *peer_str
;
7020 switch (args
->event
) {
7021 case NB_EV_VALIDATE
:
7026 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7027 peer_str
= yang_dnode_get_string(args
->dnode
,
7028 "../../peer-group-name");
7029 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7031 return NB_ERR_INCONSISTENCY
;
7033 peer_update_source_unset(peer
);
7043 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/neighbor-remote-as
7045 void bgp_peer_group_neighbor_remote_as_apply_finish(
7046 struct nb_cb_apply_finish_args
*args
)
7049 const char *peer_str
;
7050 int as_type
= AS_SPECIFIED
;
7054 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7055 peer_str
= yang_dnode_get_string(args
->dnode
, "../peer-group-name");
7056 as_type
= yang_dnode_get_enum(args
->dnode
, "./remote-as-type");
7057 if (yang_dnode_exists(args
->dnode
, "./remote-as"))
7058 as
= yang_dnode_get_uint32(args
->dnode
, "./remote-as");
7060 ret
= peer_group_remote_as(bgp
, peer_str
, &as
, as_type
);
7062 snprintf(args
->errmsg
, args
->errmsg_len
,
7063 "Create the peer-group or interface first");
7070 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/neighbor-remote-as/remote-as-type
7072 int bgp_peer_groups_peer_group_neighbor_remote_as_remote_as_type_modify(
7073 struct nb_cb_modify_args
*args
)
7075 switch (args
->event
) {
7076 case NB_EV_VALIDATE
:
7080 /* TODO: implement me. */
7087 int bgp_peer_groups_peer_group_neighbor_remote_as_remote_as_type_destroy(
7088 struct nb_cb_destroy_args
*args
)
7091 const char *peer_str
;
7092 struct peer_group
*group
;
7094 switch (args
->event
) {
7095 case NB_EV_VALIDATE
:
7100 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7101 peer_str
= yang_dnode_get_string(args
->dnode
,
7102 "../../peer-group-name");
7103 group
= peer_group_lookup(bgp
, peer_str
);
7105 peer_group_remote_as_delete(group
);
7115 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/neighbor-remote-as/remote-as
7117 int bgp_peer_groups_peer_group_neighbor_remote_as_remote_as_modify(
7118 struct nb_cb_modify_args
*args
)
7120 switch (args
->event
) {
7121 case NB_EV_VALIDATE
:
7125 /* TODO: implement me. */
7132 int bgp_peer_groups_peer_group_neighbor_remote_as_remote_as_destroy(
7133 struct nb_cb_destroy_args
*args
)
7135 switch (args
->event
) {
7136 case NB_EV_VALIDATE
:
7140 /* TODO: implement me. */
7149 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/ebgp-multihop/enabled
7151 int bgp_peer_groups_peer_group_ebgp_multihop_enabled_modify(
7152 struct nb_cb_modify_args
*args
)
7155 const char *peer_str
;
7159 uint8_t ttl
= MAXTTL
;
7161 switch (args
->event
) {
7162 case NB_EV_VALIDATE
:
7167 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7168 peer_str
= yang_dnode_get_string(args
->dnode
,
7169 "../../peer-group-name");
7170 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7172 return NB_ERR_INCONSISTENCY
;
7174 if (peer
->conf_if
) {
7175 ret
= BGP_ERR_INVALID_FOR_DIRECT_PEER
;
7176 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
,
7178 return NB_ERR_INCONSISTENCY
;
7181 set
= yang_dnode_get_bool(args
->dnode
, NULL
);
7184 ret
= peer_ebgp_multihop_set(peer
, ttl
);
7186 ret
= peer_ebgp_multihop_unset(peer
);
7188 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
7190 return NB_ERR_INCONSISTENCY
;
7198 int bgp_peer_groups_peer_group_ebgp_multihop_enabled_destroy(
7199 struct nb_cb_destroy_args
*args
)
7202 const char *peer_str
;
7206 switch (args
->event
) {
7207 case NB_EV_VALIDATE
:
7212 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7213 peer_str
= yang_dnode_get_string(args
->dnode
,
7214 "../../peer-group-name");
7215 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7217 return NB_ERR_INCONSISTENCY
;
7219 ret
= peer_ebgp_multihop_unset(peer
);
7221 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
7223 return NB_ERR_INCONSISTENCY
;
7233 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/ebgp-multihop/multihop-ttl
7235 int bgp_peer_groups_peer_group_ebgp_multihop_multihop_ttl_modify(
7236 struct nb_cb_modify_args
*args
)
7239 const char *peer_str
;
7242 uint8_t ttl
= MAXTTL
;
7244 switch (args
->event
) {
7245 case NB_EV_VALIDATE
:
7250 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7251 peer_str
= yang_dnode_get_string(args
->dnode
,
7252 "../../peer-group-name");
7253 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7255 return NB_ERR_INCONSISTENCY
;
7257 if (peer
->conf_if
) {
7258 ret
= BGP_ERR_INVALID_FOR_DIRECT_PEER
;
7259 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
,
7261 return NB_ERR_INCONSISTENCY
;
7264 ttl
= yang_dnode_get_uint8(args
->dnode
, NULL
);
7266 ret
= peer_ebgp_multihop_set(peer
, ttl
);
7268 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
7270 return NB_ERR_INCONSISTENCY
;
7278 int bgp_peer_groups_peer_group_ebgp_multihop_multihop_ttl_destroy(
7279 struct nb_cb_destroy_args
*args
)
7282 const char *peer_str
;
7286 switch (args
->event
) {
7287 case NB_EV_VALIDATE
:
7292 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7293 peer_str
= yang_dnode_get_string(args
->dnode
,
7294 "../../peer-group-name");
7295 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7297 return NB_ERR_INCONSISTENCY
;
7299 ret
= peer_ebgp_multihop_unset(peer
);
7301 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
7303 return NB_ERR_INCONSISTENCY
;
7313 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/ebgp-multihop/disable-connected-check
7315 int bgp_peer_groups_peer_group_ebgp_multihop_disable_connected_check_modify(
7316 struct nb_cb_modify_args
*args
)
7319 const char *peer_str
;
7323 switch (args
->event
) {
7324 case NB_EV_VALIDATE
:
7329 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7330 peer_str
= yang_dnode_get_string(args
->dnode
,
7331 "../../peer-group-name");
7332 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7334 return NB_ERR_INCONSISTENCY
;
7336 set
= yang_dnode_get_bool(args
->dnode
, NULL
);
7338 if (peer_flag_modify_nb(bgp
, peer_str
, peer
,
7339 PEER_FLAG_DISABLE_CONNECTED_CHECK
, set
,
7340 args
->errmsg
, args
->errmsg_len
)
7342 return NB_ERR_INCONSISTENCY
;
7352 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/local-as
7354 void bgp_peer_groups_peer_group_local_as_apply_finish(
7355 struct nb_cb_apply_finish_args
*args
)
7360 const char *peer_str
;
7361 struct peer
*peer
= NULL
;
7362 bool no_prepend
= false;
7363 bool replace_as
= false;
7365 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7366 peer_str
= yang_dnode_get_string(args
->dnode
, "../peer-group-name");
7368 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7370 if (yang_dnode_exists(args
->dnode
, "./local-as"))
7371 as
= yang_dnode_get_uint32(args
->dnode
, "./local-as");
7373 if (yang_dnode_exists(args
->dnode
, "./local-as"))
7374 as
= yang_dnode_get_uint32(args
->dnode
, "./local-as");
7375 if (yang_dnode_exists(args
->dnode
, "./no-prepend"))
7376 no_prepend
= yang_dnode_get_bool(args
->dnode
, "./no-prepend");
7377 if (yang_dnode_exists(args
->dnode
, "./no-replace-as"))
7379 yang_dnode_get_bool(args
->dnode
, "./no-replace-as");
7381 if (!as
&& !no_prepend
&& !replace_as
)
7382 ret
= peer_local_as_unset(peer
);
7384 ret
= peer_local_as_set(peer
, as
, no_prepend
, replace_as
);
7386 bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
7391 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/local-as/local-as
7393 int bgp_peer_groups_peer_group_local_as_local_as_modify(
7394 struct nb_cb_modify_args
*args
)
7396 switch (args
->event
) {
7397 case NB_EV_VALIDATE
:
7401 /* TODO: implement me. */
7408 int bgp_peer_groups_peer_group_local_as_local_as_destroy(
7409 struct nb_cb_destroy_args
*args
)
7412 const char *peer_str
;
7416 switch (args
->event
) {
7417 case NB_EV_VALIDATE
:
7422 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7423 peer_str
= yang_dnode_get_string(args
->dnode
,
7424 "../../peer-group-name");
7425 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7427 ret
= peer_local_as_unset(peer
);
7428 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
7430 return NB_ERR_INCONSISTENCY
;
7440 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/local-as/no-prepend
7442 int bgp_peer_groups_peer_group_local_as_no_prepend_modify(
7443 struct nb_cb_modify_args
*args
)
7445 switch (args
->event
) {
7446 case NB_EV_VALIDATE
:
7450 /* TODO: implement me. */
7457 int bgp_peer_groups_peer_group_local_as_no_prepend_destroy(
7458 struct nb_cb_destroy_args
*args
)
7460 switch (args
->event
) {
7461 case NB_EV_VALIDATE
:
7465 /* TODO: implement me. */
7474 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/local-as/no-replace-as
7476 int bgp_peer_groups_peer_group_local_as_no_replace_as_modify(
7477 struct nb_cb_modify_args
*args
)
7479 switch (args
->event
) {
7480 case NB_EV_VALIDATE
:
7484 /* TODO: implement me. */
7493 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/bfd-options/enable
7495 int bgp_peer_groups_peer_group_bfd_options_enable_modify(
7496 struct nb_cb_modify_args
*args
)
7498 switch (args
->event
) {
7499 case NB_EV_VALIDATE
:
7503 /* TODO: implement me. */
7512 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/bfd-options/detect-multiplier
7514 int bgp_peer_groups_peer_group_bfd_options_detect_multiplier_modify(
7515 struct nb_cb_modify_args
*args
)
7517 switch (args
->event
) {
7518 case NB_EV_VALIDATE
:
7522 /* TODO: implement me. */
7529 int bgp_peer_groups_peer_group_bfd_options_detect_multiplier_destroy(
7530 struct nb_cb_destroy_args
*args
)
7532 switch (args
->event
) {
7533 case NB_EV_VALIDATE
:
7537 /* TODO: implement me. */
7546 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/bfd-options/required-min-rx
7548 int bgp_peer_groups_peer_group_bfd_options_required_min_rx_modify(
7549 struct nb_cb_modify_args
*args
)
7551 switch (args
->event
) {
7552 case NB_EV_VALIDATE
:
7556 /* TODO: implement me. */
7563 int bgp_peer_groups_peer_group_bfd_options_required_min_rx_destroy(
7564 struct nb_cb_destroy_args
*args
)
7566 switch (args
->event
) {
7567 case NB_EV_VALIDATE
:
7571 /* TODO: implement me. */
7580 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/bfd-options/desired-min-tx
7582 int bgp_peer_groups_peer_group_bfd_options_desired_min_tx_modify(
7583 struct nb_cb_modify_args
*args
)
7585 switch (args
->event
) {
7586 case NB_EV_VALIDATE
:
7590 /* TODO: implement me. */
7597 int bgp_peer_groups_peer_group_bfd_options_desired_min_tx_destroy(
7598 struct nb_cb_destroy_args
*args
)
7600 switch (args
->event
) {
7601 case NB_EV_VALIDATE
:
7605 /* TODO: implement me. */
7614 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/bfd-options/session-type
7616 int bgp_peer_groups_peer_group_bfd_options_session_type_modify(
7617 struct nb_cb_modify_args
*args
)
7619 switch (args
->event
) {
7620 case NB_EV_VALIDATE
:
7624 /* TODO: implement me. */
7631 int bgp_peer_groups_peer_group_bfd_options_session_type_destroy(
7632 struct nb_cb_destroy_args
*args
)
7634 switch (args
->event
) {
7635 case NB_EV_VALIDATE
:
7639 /* TODO: implement me. */
7648 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/bfd-options/check-cp-failure
7650 int bgp_peer_groups_peer_group_bfd_options_check_cp_failure_modify(
7651 struct nb_cb_modify_args
*args
)
7653 switch (args
->event
) {
7654 case NB_EV_VALIDATE
:
7658 /* TODO: implement me. */
7665 int bgp_peer_groups_peer_group_bfd_options_check_cp_failure_destroy(
7666 struct nb_cb_destroy_args
*args
)
7668 switch (args
->event
) {
7669 case NB_EV_VALIDATE
:
7673 /* TODO: implement me. */
7682 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/admin-shutdown
7684 void bgp_peer_groups_peer_group_admin_shutdown_apply_finish(
7685 struct nb_cb_apply_finish_args
*args
)
7688 const char *peer_str
;
7690 bool enable
= false;
7691 const char *message
;
7693 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7694 peer_str
= yang_dnode_get_string(args
->dnode
, "../peer-group-name");
7695 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7697 if (yang_dnode_exists(args
->dnode
, "./message")) {
7698 message
= yang_dnode_get_string(args
->dnode
, "./message");
7699 peer_tx_shutdown_message_set(peer
, message
);
7701 enable
= yang_dnode_get_bool(args
->dnode
, "./enable");
7703 peer_flag_modify_nb(bgp
, peer_str
, peer
, PEER_FLAG_SHUTDOWN
, enable
,
7704 args
->errmsg
, args
->errmsg_len
);
7709 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/admin-shutdown/enable
7711 int bgp_peer_groups_peer_group_admin_shutdown_enable_modify(
7712 struct nb_cb_modify_args
*args
)
7714 switch (args
->event
) {
7715 case NB_EV_VALIDATE
:
7719 /* TODO: implement me. */
7726 int bgp_peer_groups_peer_group_admin_shutdown_enable_destroy(
7727 struct nb_cb_destroy_args
*args
)
7729 switch (args
->event
) {
7730 case NB_EV_VALIDATE
:
7734 /* TODO: implement me. */
7743 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/admin-shutdown/message
7745 int bgp_peer_groups_peer_group_admin_shutdown_message_modify(
7746 struct nb_cb_modify_args
*args
)
7748 switch (args
->event
) {
7749 case NB_EV_VALIDATE
:
7753 /* TODO: implement me. */
7760 int bgp_peer_groups_peer_group_admin_shutdown_message_destroy(
7761 struct nb_cb_destroy_args
*args
)
7763 switch (args
->event
) {
7764 case NB_EV_VALIDATE
:
7768 /* TODO: implement me. */
7777 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/graceful-restart/enable
7779 int bgp_peer_groups_peer_group_graceful_restart_enable_modify(
7780 struct nb_cb_modify_args
*args
)
7782 switch (args
->event
) {
7783 case NB_EV_VALIDATE
:
7787 /* TODO: implement me. */
7794 int bgp_peer_groups_peer_group_graceful_restart_enable_destroy(
7795 struct nb_cb_destroy_args
*args
)
7797 switch (args
->event
) {
7798 case NB_EV_VALIDATE
:
7802 /* TODO: implement me. */
7811 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/graceful-restart/graceful-restart-helper
7813 int bgp_peer_groups_peer_group_graceful_restart_graceful_restart_helper_modify(
7814 struct nb_cb_modify_args
*args
)
7816 switch (args
->event
) {
7817 case NB_EV_VALIDATE
:
7821 /* TODO: implement me. */
7828 int bgp_peer_groups_peer_group_graceful_restart_graceful_restart_helper_destroy(
7829 struct nb_cb_destroy_args
*args
)
7831 switch (args
->event
) {
7832 case NB_EV_VALIDATE
:
7836 /* TODO: implement me. */
7845 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/graceful-restart/graceful-restart-disable
7847 int bgp_peer_groups_peer_group_graceful_restart_graceful_restart_disable_modify(
7848 struct nb_cb_modify_args
*args
)
7850 switch (args
->event
) {
7851 case NB_EV_VALIDATE
:
7855 /* TODO: implement me. */
7862 int bgp_peer_groups_peer_group_graceful_restart_graceful_restart_disable_destroy(
7863 struct nb_cb_destroy_args
*args
)
7865 switch (args
->event
) {
7866 case NB_EV_VALIDATE
:
7870 /* TODO: implement me. */
7879 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/timers/advertise-interval
7881 int bgp_peer_groups_peer_group_timers_advertise_interval_modify(
7882 struct nb_cb_modify_args
*args
)
7885 const char *peer_str
;
7890 switch (args
->event
) {
7891 case NB_EV_VALIDATE
:
7896 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7897 peer_str
= yang_dnode_get_string(args
->dnode
,
7898 "../../peer-group-name");
7899 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7900 routeadv
= yang_dnode_get_uint16(args
->dnode
, NULL
);
7902 ret
= peer_advertise_interval_set(peer
, routeadv
);
7903 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
7905 return NB_ERR_INCONSISTENCY
;
7913 int bgp_peer_groups_peer_group_timers_advertise_interval_destroy(
7914 struct nb_cb_destroy_args
*args
)
7917 const char *peer_str
;
7921 switch (args
->event
) {
7922 case NB_EV_VALIDATE
:
7927 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7928 peer_str
= yang_dnode_get_string(args
->dnode
,
7929 "../../peer-group-name");
7930 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7932 ret
= peer_advertise_interval_unset(peer
);
7933 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
7935 return NB_ERR_INCONSISTENCY
;
7945 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/timers/connect-time
7947 int bgp_peer_groups_peer_group_timers_connect_time_modify(
7948 struct nb_cb_modify_args
*args
)
7951 const char *peer_str
;
7956 switch (args
->event
) {
7957 case NB_EV_VALIDATE
:
7962 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7963 peer_str
= yang_dnode_get_string(args
->dnode
,
7964 "../../peer-group-name");
7965 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7966 connect
= yang_dnode_get_uint16(args
->dnode
, NULL
);
7968 ret
= peer_timers_connect_set(peer
, connect
);
7969 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
7971 return NB_ERR_INCONSISTENCY
;
7979 int bgp_peer_groups_peer_group_timers_connect_time_destroy(
7980 struct nb_cb_destroy_args
*args
)
7983 const char *peer_str
;
7987 switch (args
->event
) {
7988 case NB_EV_VALIDATE
:
7993 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
7994 peer_str
= yang_dnode_get_string(args
->dnode
,
7995 "../../peer-group-name");
7996 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
7998 ret
= peer_timers_connect_unset(peer
);
7999 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
8001 return NB_ERR_INCONSISTENCY
;
8011 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/timers/hold-time
8013 int bgp_peer_groups_peer_group_timers_hold_time_modify(
8014 struct nb_cb_modify_args
*args
)
8017 const char *peer_str
;
8019 uint16_t keepalive
= 0;
8020 uint16_t holdtime
= 0;
8023 switch (args
->event
) {
8024 case NB_EV_VALIDATE
:
8029 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
8030 peer_str
= yang_dnode_get_string(args
->dnode
,
8031 "../../peer-group-name");
8032 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
8034 keepalive
= yang_dnode_get_uint16(args
->dnode
, "../keepalive");
8035 holdtime
= yang_dnode_get_uint16(args
->dnode
, NULL
);
8037 if (keepalive
!= BGP_DEFAULT_KEEPALIVE
8038 && holdtime
!= BGP_DEFAULT_HOLDTIME
) {
8039 ret
= peer_timers_set(peer
, keepalive
, holdtime
);
8041 ret
= peer_timers_unset(peer
);
8043 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
8045 return NB_ERR_INCONSISTENCY
;
8055 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/timers/keepalive
8057 int bgp_peer_groups_peer_group_timers_keepalive_modify(
8058 struct nb_cb_modify_args
*args
)
8061 const char *peer_str
;
8063 uint16_t keepalive
= 0, curr_keep
= 0;
8064 uint16_t holdtime
= 0;
8067 switch (args
->event
) {
8068 case NB_EV_VALIDATE
:
8073 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
8074 peer_str
= yang_dnode_get_string(args
->dnode
,
8075 "../../peer-group-name");
8076 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
8078 keepalive
= yang_dnode_get_uint16(args
->dnode
, NULL
);
8079 holdtime
= yang_dnode_get_uint16(args
->dnode
, "../hold-time");
8081 if (keepalive
!= BGP_DEFAULT_KEEPALIVE
8082 && holdtime
!= BGP_DEFAULT_HOLDTIME
) {
8083 if (peer
->holdtime
== holdtime
) {
8084 curr_keep
= (keepalive
< holdtime
/ 3
8087 if (curr_keep
== keepalive
) {
8088 // zlog_debug("%s holdtime %u keepalive
8089 // %u value is already set, skipping
8091 // __func__, holdtime, keepalive);
8095 ret
= peer_timers_set(peer
, keepalive
, holdtime
);
8097 ret
= peer_timers_unset(peer
);
8099 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
8101 return NB_ERR_INCONSISTENCY
;
8111 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi
8113 int bgp_peer_groups_peer_group_afi_safis_afi_safi_create(
8114 struct nb_cb_create_args
*args
)
8116 switch (args
->event
) {
8117 case NB_EV_VALIDATE
:
8121 /* TODO: implement me. */
8128 int bgp_peer_groups_peer_group_afi_safis_afi_safi_destroy(
8129 struct nb_cb_destroy_args
*args
)
8131 switch (args
->event
) {
8132 case NB_EV_VALIDATE
:
8136 /* TODO: implement me. */
8145 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/enabled
8147 int bgp_peer_groups_peer_group_afi_safis_afi_safi_enabled_modify(
8148 struct nb_cb_modify_args
*args
)
8151 const char *peer_str
;
8152 const char *af_name
;
8155 bool activate
= false;
8159 switch (args
->event
) {
8160 case NB_EV_VALIDATE
:
8165 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
8167 yang_dnode_get_string(args
->dnode
, "../afi-safi-name");
8168 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
8169 peer_str
= yang_dnode_get_string(args
->dnode
,
8170 "../../../peer-group-name");
8171 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
8173 activate
= yang_dnode_get_bool(args
->dnode
, NULL
);
8175 ret
= peer_activate(peer
, afi
, safi
);
8177 ret
= peer_deactivate(peer
, afi
, safi
);
8179 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
)
8181 return NB_ERR_INCONSISTENCY
;
8189 int bgp_peer_groups_peer_group_afi_safis_afi_safi_enabled_destroy(
8190 struct nb_cb_destroy_args
*args
)
8192 switch (args
->event
) {
8193 case NB_EV_VALIDATE
:
8197 /* TODO: implement me. */
8204 void bgp_global_afi_safis_afi_safi_network_config_apply_finish(
8205 struct nb_cb_apply_finish_args
*args
)
8207 const struct lyd_node
*af_dnode
;
8209 const char *af_name
;
8210 struct prefix prefix
;
8211 bool is_backdoor
= false;
8212 uint32_t label_index
= BGP_INVALID_LABEL_INDEX
;
8213 const char *rmap_name
= NULL
;
8217 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
8218 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
8219 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
8220 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
8222 yang_dnode_get_prefix(&prefix
, args
->dnode
, "./prefix");
8224 is_backdoor
= yang_dnode_get_bool(args
->dnode
, "./backdoor");
8226 if (yang_dnode_exists(args
->dnode
, "./label-index"))
8228 yang_dnode_get_uint32(args
->dnode
, "./label-index");
8230 if (yang_dnode_exists(args
->dnode
, "./rmap-policy-export"))
8231 rmap_name
= yang_dnode_get_string(args
->dnode
,
8232 "./rmap-policy-export");
8234 bgp_static_set(bgp
, NULL
, &prefix
, afi
, safi
, rmap_name
, is_backdoor
,
8235 label_index
, args
->errmsg
, args
->errmsg_len
);
8238 static int bgp_global_afi_safis_afi_safi_network_config_destroy(
8239 struct nb_cb_destroy_args
*args
)
8241 const struct lyd_node
*af_dnode
;
8243 const char *af_name
;
8244 struct prefix prefix
;
8245 uint32_t label_index
= BGP_INVALID_LABEL_INDEX
;
8246 const char *rmap_name
= NULL
;
8247 bool is_backdoor
= false;
8252 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
8253 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
8254 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
8255 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
8257 yang_dnode_get_prefix(&prefix
, args
->dnode
, "./prefix");
8259 if (yang_dnode_exists(args
->dnode
, "./rmap-policy-export"))
8260 rmap_name
= yang_dnode_get_string(args
->dnode
,
8261 "./rmap-policy-export");
8263 if (yang_dnode_exists(args
->dnode
, "./label-index"))
8265 yang_dnode_get_uint32(args
->dnode
, "./label-index");
8267 if (yang_dnode_exists(args
->dnode
, "./backdoor"))
8268 is_backdoor
= yang_dnode_get_bool(args
->dnode
, "./backdoor");
8270 ret
= bgp_static_set(bgp
, "no", &prefix
, afi
, safi
, rmap_name
,
8271 is_backdoor
, label_index
, args
->errmsg
,
8274 return NB_ERR_INCONSISTENCY
;
8281 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/network-config
8283 int bgp_global_afi_safis_afi_safi_ipv4_unicast_network_config_create(
8284 struct nb_cb_create_args
*args
)
8286 /* Handled in network_config_apply_finish callback */
8291 int bgp_global_afi_safis_afi_safi_ipv4_unicast_network_config_destroy(
8292 struct nb_cb_destroy_args
*args
)
8294 switch (args
->event
) {
8295 case NB_EV_VALIDATE
:
8300 return bgp_global_afi_safis_afi_safi_network_config_destroy(
8311 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/network-config/backdoor
8313 int bgp_global_afi_safis_afi_safi_ipv4_unicast_network_config_backdoor_modify(
8314 struct nb_cb_modify_args
*args
)
8316 /* Handled in unicast_network_config_apply_finish callback */
8323 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/network-config/label-index
8325 int bgp_global_afi_safis_afi_safi_ipv4_unicast_network_config_label_index_modify(
8326 struct nb_cb_modify_args
*args
)
8328 const struct lyd_node
*af_dnode
;
8330 const char *af_name
;
8331 struct prefix prefix
;
8332 uint32_t label_index
;
8335 struct bgp_dest
*dest
;
8336 struct bgp_static
*bgp_static
;
8338 switch (args
->event
) {
8339 case NB_EV_VALIDATE
:
8340 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
8344 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
8345 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
8346 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
8347 yang_dnode_get_prefix(&prefix
, args
->dnode
, "../prefix");
8348 apply_mask(&prefix
);
8350 label_index
= yang_dnode_get_uint32(args
->dnode
, NULL
);
8352 dest
= bgp_node_get(bgp
->route
[afi
][safi
], &prefix
);
8353 bgp_static
= bgp_dest_get_bgp_static_info(dest
);
8355 if (bgp_static
->label_index
!= label_index
) {
8357 args
->errmsg
, args
->errmsg_len
,
8358 "Cannot change label-index: curr %u input %u\n",
8359 bgp_static
->label_index
, label_index
);
8360 return NB_ERR_VALIDATION
;
8374 int bgp_global_afi_safis_afi_safi_ipv4_unicast_network_config_label_index_destroy(
8375 struct nb_cb_destroy_args
*args
)
8377 /* Handled in unicast_network_config_apply_finish callback */
8384 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/network-config/rmap-policy-export
8386 int bgp_global_afi_safis_afi_safi_ipv4_unicast_network_config_rmap_policy_export_modify(
8387 struct nb_cb_modify_args
*args
)
8389 /* Handled in unicast_network_config_apply_finish callback */
8394 int bgp_global_afi_safis_afi_safi_ipv4_unicast_network_config_rmap_policy_export_destroy(
8395 struct nb_cb_destroy_args
*args
)
8397 /* rmap destory alone is not supported by backend, the entire network
8398 * config needs to be destroyed.
8400 switch (args
->event
) {
8401 case NB_EV_VALIDATE
:
8405 /* TODO: implement me. */
8412 void bgp_global_afi_safi_aggregate_route_apply_finish(
8413 struct nb_cb_apply_finish_args
*args
)
8415 const struct lyd_node
*af_dnode
;
8417 const char *af_name
;
8418 struct prefix prefix
;
8419 const char *rmap_name
= NULL
;
8423 int summary_only
= 0;
8424 uint8_t origin
= BGP_ORIGIN_UNSPECIFIED
;
8425 bool match_med
= false;
8426 const char *suppress_map
= NULL
;
8428 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
8429 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
8430 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
8431 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
8433 yang_dnode_get_prefix(&prefix
, args
->dnode
, "./prefix");
8435 if (yang_dnode_exists(args
->dnode
, "./as-set"))
8436 as_set
= yang_dnode_get_bool(args
->dnode
, "./as-set");
8438 summary_only
= yang_dnode_get_bool(args
->dnode
, "./summary-only");
8440 if (yang_dnode_exists(args
->dnode
, "./rmap-policy-export"))
8441 rmap_name
= yang_dnode_get_string(args
->dnode
,
8442 "./rmap-policy-export");
8444 origin
= yang_dnode_get_enum(args
->dnode
, "./origin");
8445 match_med
= yang_dnode_get_bool(args
->dnode
, "./match-med");
8446 if (yang_dnode_exists(args
->dnode
, "./suppress-map"))
8448 yang_dnode_get_string(args
->dnode
, "./suppress-map");
8450 bgp_aggregate_set(bgp
, &prefix
, afi
, safi
, rmap_name
, summary_only
,
8451 as_set
, origin
, match_med
, suppress_map
, args
->errmsg
,
8456 bgp_global_afi_safi_aggregate_route_destroy(struct nb_cb_destroy_args
*args
)
8458 const struct lyd_node
*af_dnode
;
8460 const char *af_name
;
8461 struct prefix prefix
;
8466 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
8467 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
8468 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
8469 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
8471 yang_dnode_get_prefix(&prefix
, args
->dnode
, "./prefix");
8473 ret
= bgp_aggregate_unset(bgp
, &prefix
, afi
, safi
, args
->errmsg
,
8477 return NB_ERR_INCONSISTENCY
;
8484 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/aggregate-route
8486 int bgp_global_afi_safis_afi_safi_ipv4_unicast_aggregate_route_create(
8487 struct nb_cb_create_args
*args
)
8489 switch (args
->event
) {
8490 case NB_EV_VALIDATE
:
8494 /* TODO: implement me. */
8501 int bgp_global_afi_safis_afi_safi_ipv4_unicast_aggregate_route_destroy(
8502 struct nb_cb_destroy_args
*args
)
8504 switch (args
->event
) {
8505 case NB_EV_VALIDATE
:
8510 return bgp_global_afi_safi_aggregate_route_destroy(args
);
8518 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/aggregate-route/as-set
8520 int bgp_global_afi_safis_afi_safi_ipv4_unicast_aggregate_route_as_set_modify(
8521 struct nb_cb_modify_args
*args
)
8523 switch (args
->event
) {
8524 case NB_EV_VALIDATE
:
8528 /* TODO: implement me. */
8537 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/aggregate-route/summary-only
8539 int bgp_global_afi_safis_afi_safi_ipv4_unicast_aggregate_route_summary_only_modify(
8540 struct nb_cb_modify_args
*args
)
8542 switch (args
->event
) {
8543 case NB_EV_VALIDATE
:
8547 /* TODO: implement me. */
8556 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/aggregate-route/rmap-policy-export
8558 int bgp_global_afi_safis_afi_safi_ipv4_unicast_aggregate_route_rmap_policy_export_modify(
8559 struct nb_cb_modify_args
*args
)
8561 switch (args
->event
) {
8562 case NB_EV_VALIDATE
:
8566 /* TODO: implement me. */
8573 int bgp_global_afi_safis_afi_safi_ipv4_unicast_aggregate_route_rmap_policy_export_destroy(
8574 struct nb_cb_destroy_args
*args
)
8576 switch (args
->event
) {
8577 case NB_EV_VALIDATE
:
8581 /* TODO: implement me. */
8590 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/aggregate-route/origin
8592 int bgp_global_afi_safis_afi_safi_ipv4_unicast_aggregate_route_origin_modify(
8593 struct nb_cb_modify_args
*args
)
8595 switch (args
->event
) {
8596 case NB_EV_VALIDATE
:
8600 /* TODO: implement me. */
8609 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/aggregate-route/match-med
8611 int bgp_global_afi_safis_afi_safi_ipv4_unicast_aggregate_route_match_med_modify(
8612 struct nb_cb_modify_args
*args
)
8614 switch (args
->event
) {
8615 case NB_EV_VALIDATE
:
8619 /* TODO: implement me. */
8628 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/aggregate-route/suppress-map
8630 int bgp_global_afi_safis_afi_safi_ipv4_unicast_aggregate_route_suppress_map_modify(
8631 struct nb_cb_modify_args
*args
)
8633 switch (args
->event
) {
8634 case NB_EV_VALIDATE
:
8638 /* TODO: implement me. */
8645 int bgp_global_afi_safis_afi_safi_ipv4_unicast_aggregate_route_suppress_map_destroy(
8646 struct nb_cb_destroy_args
*args
)
8648 switch (args
->event
) {
8649 case NB_EV_VALIDATE
:
8653 /* TODO: implement me. */
8660 void bgp_global_afi_safi_admin_distance_route_apply_finish(
8661 struct nb_cb_apply_finish_args
*args
)
8663 const struct lyd_node
*af_dnode
;
8664 const char *af_name
;
8665 const char *prefix_str
= NULL
;
8666 const char *access_list_str
= NULL
;
8671 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
8672 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
8673 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
8675 prefix_str
= yang_dnode_get_string(args
->dnode
, "./prefix");
8676 distance
= yang_dnode_get_uint8(args
->dnode
, "./distance");
8677 if (yang_dnode_exists(args
->dnode
, "./access-list-policy-export"))
8678 access_list_str
= yang_dnode_get_string(
8679 args
->dnode
, "./access-list-policy-export");
8681 bgp_distance_set(distance
, prefix_str
, access_list_str
, afi
, safi
,
8682 args
->errmsg
, args
->errmsg_len
);
8685 static int bgp_global_afi_safi_admin_distance_route_destroy(
8686 struct nb_cb_destroy_args
*args
)
8688 const struct lyd_node
*af_dnode
;
8689 const char *af_name
;
8690 const char *prefix_str
= NULL
;
8691 const char *access_list_str
= NULL
;
8696 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
8697 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
8698 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
8700 prefix_str
= yang_dnode_get_string(args
->dnode
, "./prefix");
8701 distance
= yang_dnode_get_uint8(args
->dnode
, "./distance");
8702 if (yang_dnode_exists(args
->dnode
, "./access-list-policy-export"))
8703 access_list_str
= yang_dnode_get_string(
8704 args
->dnode
, "./access-list-policy-export");
8706 if (bgp_distance_unset(distance
, prefix_str
, access_list_str
, afi
, safi
,
8707 args
->errmsg
, args
->errmsg_len
)
8709 return NB_ERR_INCONSISTENCY
;
8716 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/admin-distance-route
8718 int bgp_global_afi_safis_afi_safi_ipv4_unicast_admin_distance_route_create(
8719 struct nb_cb_create_args
*args
)
8721 switch (args
->event
) {
8722 case NB_EV_VALIDATE
:
8726 /* TODO: implement me. */
8733 int bgp_global_afi_safis_afi_safi_ipv4_unicast_admin_distance_route_destroy(
8734 struct nb_cb_destroy_args
*args
)
8736 switch (args
->event
) {
8737 case NB_EV_VALIDATE
:
8742 return bgp_global_afi_safi_admin_distance_route_destroy(args
);
8750 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/admin-distance-route/distance
8752 int bgp_global_afi_safis_afi_safi_ipv4_unicast_admin_distance_route_distance_modify(
8753 struct nb_cb_modify_args
*args
)
8755 switch (args
->event
) {
8756 case NB_EV_VALIDATE
:
8760 /* TODO: implement me. */
8769 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/admin-distance-route/access-list-policy-export
8771 int bgp_global_afi_safis_afi_safi_ipv4_unicast_admin_distance_route_access_list_policy_export_modify(
8772 struct nb_cb_modify_args
*args
)
8774 switch (args
->event
) {
8775 case NB_EV_VALIDATE
:
8779 /* TODO: implement me. */
8786 int bgp_global_afi_safis_afi_safi_ipv4_unicast_admin_distance_route_access_list_policy_export_destroy(
8787 struct nb_cb_destroy_args
*args
)
8789 switch (args
->event
) {
8790 case NB_EV_VALIDATE
:
8794 /* TODO: implement me. */
8801 void bgp_global_afi_safis_afi_safi_route_flap_dampening_apply_finish(
8802 struct nb_cb_apply_finish_args
*args
)
8804 const struct lyd_node
*af_dnode
;
8806 const char *af_name
;
8809 int half
= DEFAULT_HALF_LIFE
* 60;
8810 int reuse
= DEFAULT_REUSE
;
8811 int suppress
= DEFAULT_SUPPRESS
;
8813 char ab_xpath
[XPATH_MAXLEN
];
8815 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
8816 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
8817 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
8818 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
8820 if (!yang_dnode_get_bool(args
->dnode
, "./enable")) {
8821 bgp_damp_disable(bgp
, afi
, safi
);
8823 half
= yang_dnode_get_uint8(args
->dnode
, "./reach-decay");
8825 reuse
= yang_dnode_get_uint16(args
->dnode
, "./reuse-above");
8828 yang_dnode_get_uint16(args
->dnode
, "./suppress-above");
8830 max
= yang_dnode_get_uint8(args
->dnode
, "./unreach-decay");
8831 yang_dnode_get_path(args
->dnode
, ab_xpath
, sizeof(ab_xpath
));
8832 strlcat(ab_xpath
, "/unreach-decay", sizeof(ab_xpath
));
8833 if (yang_get_default_uint8(ab_xpath
) == max
)
8838 bgp_damp_enable(bgp
, afi
, safi
, half
, reuse
, suppress
, max
);
8843 bgp_global_afi_safi_route_flap_validation(struct nb_cb_modify_args
*args
)
8848 if (yang_dnode_exists(args
->dnode
, "../suppress-above")
8849 && yang_dnode_exists(args
->dnode
, "../reuse-above")) {
8851 yang_dnode_get_uint16(args
->dnode
, "../suppress-above");
8852 reuse
= yang_dnode_get_uint16(args
->dnode
, "../reuse-above");
8853 if (suppress
< reuse
) {
8855 args
->errmsg
, args
->errmsg_len
,
8856 "Suppress value cannot be less than reuse value \n");
8857 return NB_ERR_VALIDATION
;
8865 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/route-flap-dampening/enable
8867 int bgp_global_afi_safis_afi_safi_ipv4_unicast_route_flap_dampening_enable_modify(
8868 struct nb_cb_modify_args
*args
)
8870 switch (args
->event
) {
8871 case NB_EV_VALIDATE
:
8872 return bgp_global_afi_safi_route_flap_validation(args
);
8884 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/route-flap-dampening/reach-decay
8886 int bgp_global_afi_safis_afi_safi_ipv4_unicast_route_flap_dampening_reach_decay_modify(
8887 struct nb_cb_modify_args
*args
)
8889 switch (args
->event
) {
8890 case NB_EV_VALIDATE
:
8894 /* TODO: implement me. */
8901 int bgp_global_afi_safis_afi_safi_ipv4_unicast_route_flap_dampening_reach_decay_destroy(
8902 struct nb_cb_destroy_args
*args
)
8904 switch (args
->event
) {
8905 case NB_EV_VALIDATE
:
8909 /* TODO: implement me. */
8918 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/route-flap-dampening/reuse-above
8920 int bgp_global_afi_safis_afi_safi_ipv4_unicast_route_flap_dampening_reuse_above_modify(
8921 struct nb_cb_modify_args
*args
)
8923 int reuse
= DEFAULT_REUSE
;
8924 int suppress
= DEFAULT_SUPPRESS
;
8926 switch (args
->event
) {
8927 case NB_EV_VALIDATE
:
8928 if (yang_dnode_exists(args
->dnode
, "../suppress-above"))
8929 suppress
= yang_dnode_get_uint16(args
->dnode
,
8930 "../suppress-above");
8931 reuse
= yang_dnode_get_uint16(args
->dnode
, "../reuse-above");
8932 if (suppress
< reuse
) {
8934 args
->errmsg
, args
->errmsg_len
,
8935 "Suppress value cannot be less than reuse value \n");
8936 return NB_ERR_VALIDATION
;
8942 /* TODO: implement me. */
8949 int bgp_global_afi_safis_afi_safi_ipv4_unicast_route_flap_dampening_reuse_above_destroy(
8950 struct nb_cb_destroy_args
*args
)
8952 switch (args
->event
) {
8953 case NB_EV_VALIDATE
:
8957 /* TODO: implement me. */
8966 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/route-flap-dampening/suppress-above
8968 int bgp_global_afi_safis_afi_safi_ipv4_unicast_route_flap_dampening_suppress_above_modify(
8969 struct nb_cb_modify_args
*args
)
8971 switch (args
->event
) {
8972 case NB_EV_VALIDATE
:
8976 /* TODO: implement me. */
8983 int bgp_global_afi_safis_afi_safi_ipv4_unicast_route_flap_dampening_suppress_above_destroy(
8984 struct nb_cb_destroy_args
*args
)
8986 switch (args
->event
) {
8987 case NB_EV_VALIDATE
:
8991 /* TODO: implement me. */
9000 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/route-flap-dampening/unreach-decay
9002 int bgp_global_afi_safis_afi_safi_ipv4_unicast_route_flap_dampening_unreach_decay_modify(
9003 struct nb_cb_modify_args
*args
)
9005 switch (args
->event
) {
9006 case NB_EV_VALIDATE
:
9010 /* TODO: implement me. */
9017 int bgp_global_afi_safis_afi_safi_ipv4_unicast_route_flap_dampening_unreach_decay_destroy(
9018 struct nb_cb_destroy_args
*args
)
9020 switch (args
->event
) {
9021 case NB_EV_VALIDATE
:
9025 /* TODO: implement me. */
9033 bgp_global_afi_safi_ip_unicast_use_multiple_paths_ebgp_maximum_paths_modify(
9034 struct nb_cb_modify_args
*args
)
9036 const struct lyd_node
*af_dnode
;
9038 const char *af_name
;
9041 uint16_t maxpaths
, default_maxpaths
;
9043 char xpath
[XPATH_MAXLEN
];
9044 char afi_xpath
[XPATH_MAXLEN
];
9046 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9047 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9048 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9049 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
9050 maxpaths
= yang_dnode_get_uint16(args
->dnode
, NULL
);
9052 snprintf(xpath
, sizeof(xpath
), FRR_BGP_GLOBAL_XPATH
, "frr-bgp:bgp",
9053 "bgp", bgp
->name
? bgp
->name
: VRF_DEFAULT_NAME
);
9055 afi_xpath
, sizeof(afi_xpath
),
9056 "/global/afi-safis/afi-safi[afi-safi-name='%s']/%s/use-multiple-paths/ebgp/maximum-paths",
9057 yang_afi_safi_value2identity(afi
, safi
),
9058 bgp_afi_safi_get_container_str(afi
, safi
));
9059 strlcat(xpath
, afi_xpath
, sizeof(xpath
));
9060 default_maxpaths
= yang_get_default_uint16(xpath
);
9062 ret
= bgp_maxpaths_config_vty(bgp
, afi
, safi
, BGP_PEER_EBGP
, maxpaths
,
9063 0, maxpaths
!= default_maxpaths
? 1 : 0,
9064 args
->errmsg
, args
->errmsg_len
);
9065 if (ret
!= CMD_SUCCESS
)
9066 return NB_ERR_INCONSISTENCY
;
9073 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/use-multiple-paths/ebgp/maximum-paths
9075 int bgp_global_afi_safis_afi_safi_ipv4_unicast_use_multiple_paths_ebgp_maximum_paths_modify(
9076 struct nb_cb_modify_args
*args
)
9080 switch (args
->event
) {
9081 case NB_EV_VALIDATE
:
9082 maxpaths
= yang_dnode_get_uint16(args
->dnode
, NULL
);
9083 if (maxpaths
> multipath_num
) {
9084 snprintf(args
->errmsg
, args
->errmsg_len
,
9085 "maxpaths %u is out of range %u", maxpaths
,
9087 return NB_ERR_VALIDATION
;
9094 return bgp_global_afi_safi_ip_unicast_use_multiple_paths_ebgp_maximum_paths_modify(
9103 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/use-multiple-paths/ibgp
9105 void bgp_global_afi_safi_ip_unicast_use_multiple_paths_ibgp_maximum_paths_apply_finish(
9106 struct nb_cb_apply_finish_args
*args
)
9108 const struct lyd_node
*af_dnode
;
9110 const char *af_name
;
9113 uint16_t maxpaths
, default_maxpaths
;
9114 char xpath
[XPATH_MAXLEN
];
9115 char afi_xpath
[XPATH_MAXLEN
];
9116 uint16_t options
= 0;
9118 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9119 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9120 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9121 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
9123 maxpaths
= yang_dnode_get_uint16(args
->dnode
, "./maximum-paths");
9124 if (yang_dnode_get_bool(args
->dnode
, "./cluster-length-list"))
9125 options
= BGP_FLAG_IBGP_MULTIPATH_SAME_CLUSTERLEN
;
9127 snprintf(xpath
, sizeof(xpath
), FRR_BGP_GLOBAL_XPATH
, "frr-bgp:bgp",
9128 "bgp", bgp
->name
? bgp
->name
: VRF_DEFAULT_NAME
);
9130 afi_xpath
, sizeof(afi_xpath
),
9131 "/global/afi-safis/afi-safi[afi-safi-name='%s']/%s/use-multiple-paths/ibgp/maximum-paths",
9132 yang_afi_safi_value2identity(afi
, safi
),
9133 bgp_afi_safi_get_container_str(afi
, safi
));
9134 strlcat(xpath
, afi_xpath
, sizeof(xpath
));
9135 default_maxpaths
= yang_get_default_uint16(xpath
);
9137 bgp_maxpaths_config_vty(bgp
, afi
, safi
, BGP_PEER_IBGP
, maxpaths
,
9138 options
, maxpaths
!= default_maxpaths
? 1 : 0,
9139 args
->errmsg
, args
->errmsg_len
);
9144 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/use-multiple-paths/ibgp/maximum-paths
9146 int bgp_global_afi_safis_afi_safi_ipv4_unicast_use_multiple_paths_ibgp_maximum_paths_modify(
9147 struct nb_cb_modify_args
*args
)
9151 switch (args
->event
) {
9152 case NB_EV_VALIDATE
:
9153 maxpaths
= yang_dnode_get_uint16(args
->dnode
, NULL
);
9154 if (maxpaths
> multipath_num
) {
9155 snprintf(args
->errmsg
, args
->errmsg_len
,
9156 "maxpaths %u is out of range %u", maxpaths
,
9158 return NB_ERR_VALIDATION
;
9173 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/use-multiple-paths/ibgp/cluster-length-list
9175 int bgp_global_afi_safis_afi_safi_ipv4_unicast_use_multiple_paths_ibgp_cluster_length_list_modify(
9176 struct nb_cb_modify_args
*args
)
9178 switch (args
->event
) {
9179 case NB_EV_VALIDATE
:
9183 /* TODO: implement me. */
9190 int bgp_global_afi_safis_afi_safi_ipv4_unicast_use_multiple_paths_ibgp_cluster_length_list_destroy(
9191 struct nb_cb_destroy_args
*args
)
9193 switch (args
->event
) {
9194 case NB_EV_VALIDATE
:
9198 /* TODO: implement me. */
9205 void bgp_global_afi_safi_ip_unicast_redistribution_list_apply_finish(
9206 struct nb_cb_apply_finish_args
*args
)
9208 const struct lyd_node
*af_dnode
;
9210 const char *af_name
;
9215 struct bgp_redist
*red
;
9216 bool changed
= false;
9217 struct route_map
*route_map
= NULL
;
9218 const char *rmap_name
= NULL
;
9219 uint32_t metric
= 0;
9221 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9222 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9223 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9224 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
9226 route_type
= yang_dnode_get_enum(args
->dnode
, "./route-type");
9227 route_instance
= yang_dnode_get_uint16(args
->dnode
, "./route-instance");
9229 red
= bgp_redist_add(bgp
, afi
, route_type
, route_instance
);
9231 if (yang_dnode_exists(args
->dnode
, "./rmap-policy-import")) {
9232 rmap_name
= yang_dnode_get_string(args
->dnode
,
9233 "./rmap-policy-import");
9234 route_map
= route_map_lookup_by_name(rmap_name
);
9236 changed
= bgp_redistribute_rmap_set(red
, rmap_name
, route_map
);
9239 if (yang_dnode_exists(args
->dnode
, "./metric")) {
9240 metric
= yang_dnode_get_uint32(args
->dnode
, "./metric");
9241 changed
|= bgp_redistribute_metric_set(bgp
, red
, afi
,
9242 route_type
, metric
);
9245 bgp_redistribute_set(bgp
, afi
, route_type
, route_instance
, changed
);
9250 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/redistribution-list
9252 int bgp_global_afi_safis_afi_safi_ipv4_unicast_redistribution_list_create(
9253 struct nb_cb_create_args
*args
)
9255 switch (args
->event
) {
9256 case NB_EV_VALIDATE
:
9260 /* TODO: implement me. */
9267 int bgp_global_afi_safis_afi_safi_ipv4_unicast_redistribution_list_destroy(
9268 struct nb_cb_destroy_args
*args
)
9270 const struct lyd_node
*af_dnode
;
9272 const char *af_name
;
9278 switch (args
->event
) {
9279 case NB_EV_VALIDATE
:
9284 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9285 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9286 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9287 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
9289 route_type
= yang_dnode_get_enum(args
->dnode
, "./route-type");
9291 yang_dnode_get_uint16(args
->dnode
, "./route-instance");
9293 bgp_redistribute_unset(bgp
, afi
, route_type
, route_instance
);
9303 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/redistribution-list/metric
9305 int bgp_global_afi_safis_afi_safi_ipv4_unicast_redistribution_list_metric_modify(
9306 struct nb_cb_modify_args
*args
)
9308 switch (args
->event
) {
9309 case NB_EV_VALIDATE
:
9313 /* TODO: implement me. */
9320 int bgp_global_afi_safis_afi_safi_ipv4_unicast_redistribution_list_metric_destroy(
9321 struct nb_cb_destroy_args
*args
)
9323 switch (args
->event
) {
9324 case NB_EV_VALIDATE
:
9328 /* TODO: implement me. */
9337 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/redistribution-list/rmap-policy-import
9339 int bgp_global_afi_safis_afi_safi_ipv4_unicast_redistribution_list_rmap_policy_import_modify(
9340 struct nb_cb_modify_args
*args
)
9342 switch (args
->event
) {
9343 case NB_EV_VALIDATE
:
9347 /* TODO: implement me. */
9354 int bgp_global_afi_safis_afi_safi_ipv4_unicast_redistribution_list_rmap_policy_import_destroy(
9355 struct nb_cb_destroy_args
*args
)
9357 switch (args
->event
) {
9358 case NB_EV_VALIDATE
:
9362 /* TODO: implement me. */
9370 bgp_global_afi_safis_admin_distance_modify(struct nb_cb_apply_finish_args
*args
)
9373 const struct lyd_node
*af_dnode
;
9374 const char *af_name
;
9377 uint8_t distance_ebgp
, distance_ibgp
, distance_local
;
9379 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9380 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9381 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9382 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
9384 distance_ebgp
= yang_dnode_get_uint8(args
->dnode
, "./external");
9385 distance_ibgp
= yang_dnode_get_uint8(args
->dnode
, "./internal");
9386 distance_local
= yang_dnode_get_uint8(args
->dnode
, "./local");
9388 bgp
->distance_ebgp
[afi
][safi
] = distance_ebgp
;
9389 bgp
->distance_ibgp
[afi
][safi
] = distance_ibgp
;
9390 bgp
->distance_local
[afi
][safi
] = distance_local
;
9392 bgp_announce_routes_distance_update(bgp
, afi
, safi
);
9399 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/admin-distance
9401 void bgp_global_afi_safis_afi_safi_ipv4_unicast_admin_distance_apply_finish(
9402 struct nb_cb_apply_finish_args
*args
)
9404 bgp_global_afi_safis_admin_distance_modify(args
);
9409 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/admin-distance/external
9411 int bgp_global_afi_safis_afi_safi_ipv4_unicast_admin_distance_external_modify(
9412 struct nb_cb_modify_args
*args
)
9414 /* Handled in admin_distance_apply_finish callback */
9421 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/admin-distance/internal
9423 int bgp_global_afi_safis_afi_safi_ipv4_unicast_admin_distance_internal_modify(
9424 struct nb_cb_modify_args
*args
)
9426 /* Handled in admin_distance_apply_finish callback */
9433 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/admin-distance/local
9435 int bgp_global_afi_safis_afi_safi_ipv4_unicast_admin_distance_local_modify(
9436 struct nb_cb_modify_args
*args
)
9438 /* Handled in admin_distance_apply_finish callback */
9445 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/filter-config/rmap-export
9447 int bgp_global_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_export_modify(
9448 struct nb_cb_modify_args
*args
)
9450 switch (args
->event
) {
9451 case NB_EV_VALIDATE
:
9455 /* TODO: implement me. */
9462 int bgp_global_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_export_destroy(
9463 struct nb_cb_destroy_args
*args
)
9465 switch (args
->event
) {
9466 case NB_EV_VALIDATE
:
9470 /* TODO: implement me. */
9477 static int bgp_global_afi_safi_ip_unicast_vpn_config_rd_modify(
9478 struct nb_cb_modify_args
*args
)
9481 const struct lyd_node
*af_dnode
;
9482 const char *af_name
;
9485 const char *rd_str
= NULL
;
9486 struct prefix_rd prd
;
9488 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
9490 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9491 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9492 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9494 rd_str
= yang_dnode_get_string(args
->dnode
, NULL
);
9495 if (!str2prefix_rd(rd_str
, &prd
)) {
9496 snprintf(args
->errmsg
, args
->errmsg_len
, "Malformed rd %s\n",
9498 return NB_ERR_INCONSISTENCY
;
9502 * pre-change: un-export vpn routes (vpn->vrf routes unaffected)
9504 vpn_leak_prechange(BGP_VPN_POLICY_DIR_TOVPN
, afi
, bgp_get_default(),
9507 bgp
->vpn_policy
[afi
].tovpn_rd
= prd
;
9508 SET_FLAG(bgp
->vpn_policy
[afi
].flags
, BGP_VPN_POLICY_TOVPN_RD_SET
);
9510 /* post-change: re-export vpn routes */
9511 vpn_leak_postchange(BGP_VPN_POLICY_DIR_TOVPN
, afi
, bgp_get_default(),
9517 static int bgp_global_afi_safi_ip_unicast_vpn_config_rd_destroy(
9518 struct nb_cb_destroy_args
*args
)
9521 const struct lyd_node
*af_dnode
;
9522 const char *af_name
;
9525 const char *rd_str
= NULL
;
9526 struct prefix_rd prd
;
9528 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9529 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9530 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9531 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
9533 rd_str
= yang_dnode_get_string(args
->dnode
, NULL
);
9534 if (str2prefix_rd(rd_str
, &prd
)) {
9535 snprintf(args
->errmsg
, args
->errmsg_len
, "Malformed rd %s \n",
9537 return NB_ERR_INCONSISTENCY
;
9541 * pre-change: un-export vpn routes (vpn->vrf routes unaffected)
9543 vpn_leak_prechange(BGP_VPN_POLICY_DIR_TOVPN
, afi
, bgp_get_default(),
9546 UNSET_FLAG(bgp
->vpn_policy
[afi
].flags
, BGP_VPN_POLICY_TOVPN_RD_SET
);
9548 /* post-change: re-export vpn routes */
9549 vpn_leak_postchange(BGP_VPN_POLICY_DIR_TOVPN
, afi
, bgp_get_default(),
9556 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/rd
9558 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_rd_modify(
9559 struct nb_cb_modify_args
*args
)
9562 const struct lyd_node
*af_dnode
;
9563 const char *af_name
;
9567 switch (args
->event
) {
9568 case NB_EV_VALIDATE
:
9569 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
9573 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9574 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9575 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9577 if (!vpn_policy_check_import(bgp
, afi
, safi
, false,
9578 args
->errmsg
, args
->errmsg_len
))
9579 return NB_ERR_VALIDATION
;
9586 return bgp_global_afi_safi_ip_unicast_vpn_config_rd_modify(
9595 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_rd_destroy(
9596 struct nb_cb_destroy_args
*args
)
9598 switch (args
->event
) {
9599 case NB_EV_VALIDATE
:
9604 return bgp_global_afi_safi_ip_unicast_vpn_config_rd_destroy(
9613 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/label
9615 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_label_modify(
9616 struct nb_cb_modify_args
*args
)
9618 switch (args
->event
) {
9619 case NB_EV_VALIDATE
:
9623 /* TODO: implement me. */
9630 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_label_destroy(
9631 struct nb_cb_destroy_args
*args
)
9633 switch (args
->event
) {
9634 case NB_EV_VALIDATE
:
9638 /* TODO: implement me. */
9647 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/label-auto
9649 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_label_auto_modify(
9650 struct nb_cb_modify_args
*args
)
9652 switch (args
->event
) {
9653 case NB_EV_VALIDATE
:
9657 /* TODO: implement me. */
9664 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_label_auto_destroy(
9665 struct nb_cb_destroy_args
*args
)
9667 switch (args
->event
) {
9668 case NB_EV_VALIDATE
:
9672 /* TODO: implement me. */
9679 static int bgp_global_afi_safi_ip_unicast_vpn_config_nexthop_modify(
9680 struct nb_cb_modify_args
*args
)
9683 const struct lyd_node
*af_dnode
;
9684 const char *af_name
;
9689 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9690 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9691 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9692 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
9694 yang_dnode_get_prefix(&p
, args
->dnode
, NULL
);
9697 * pre-change: un-export vpn routes (vpn->vrf routes unaffected)
9699 vpn_leak_prechange(BGP_VPN_POLICY_DIR_TOVPN
, afi
, bgp_get_default(),
9702 bgp
->vpn_policy
[afi
].tovpn_nexthop
= p
;
9703 SET_FLAG(bgp
->vpn_policy
[afi
].flags
, BGP_VPN_POLICY_TOVPN_NEXTHOP_SET
);
9705 /* post-change: re-export vpn routes */
9706 vpn_leak_postchange(BGP_VPN_POLICY_DIR_TOVPN
, afi
, bgp_get_default(),
9712 static int bgp_global_afi_safi_ip_unicast_vpn_config_nexthop_destroy(
9713 struct nb_cb_destroy_args
*args
)
9716 const struct lyd_node
*af_dnode
;
9717 const char *af_name
;
9722 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9723 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9724 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9725 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
9727 yang_dnode_get_prefix(&p
, args
->dnode
, NULL
);
9730 * pre-change: un-export vpn routes (vpn->vrf routes unaffected)
9732 vpn_leak_prechange(BGP_VPN_POLICY_DIR_TOVPN
, afi
, bgp_get_default(),
9734 UNSET_FLAG(bgp
->vpn_policy
[afi
].flags
,
9735 BGP_VPN_POLICY_TOVPN_NEXTHOP_SET
);
9736 /* post-change: re-export vpn routes */
9737 vpn_leak_postchange(BGP_VPN_POLICY_DIR_TOVPN
, afi
, bgp_get_default(),
9744 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/nexthop
9746 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_nexthop_modify(
9747 struct nb_cb_modify_args
*args
)
9750 const struct lyd_node
*af_dnode
;
9751 const char *af_name
;
9755 switch (args
->event
) {
9756 case NB_EV_VALIDATE
:
9757 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
9760 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9761 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9762 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9764 if (!vpn_policy_check_import(bgp
, afi
, safi
, false,
9765 args
->errmsg
, args
->errmsg_len
))
9766 return NB_ERR_VALIDATION
;
9773 return bgp_global_afi_safi_ip_unicast_vpn_config_nexthop_modify(
9780 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_nexthop_destroy(
9781 struct nb_cb_destroy_args
*args
)
9783 switch (args
->event
) {
9784 case NB_EV_VALIDATE
:
9789 return bgp_global_afi_safi_ip_unicast_vpn_config_nexthop_destroy(
9796 static int bgp_global_afi_safi_ip_unicast_vpn_config_import_export_vpn_modify(
9797 struct nb_cb_modify_args
*args
, const char *direction_str
,
9801 const struct lyd_node
*af_dnode
;
9802 const char *af_name
;
9807 vpn_policy_direction_t dir
;
9809 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9810 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9811 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9812 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
9814 if (!strcmp(direction_str
, "import")) {
9815 flag
= BGP_CONFIG_MPLSVPN_TO_VRF_IMPORT
;
9816 dir
= BGP_VPN_POLICY_DIR_FROMVPN
;
9817 } else if (!strcmp(direction_str
, "export")) {
9818 flag
= BGP_CONFIG_VRF_TO_MPLSVPN_EXPORT
;
9819 dir
= BGP_VPN_POLICY_DIR_TOVPN
;
9821 snprintf(args
->errmsg
, args
->errmsg_len
,
9822 "unknown direction %s\n", direction_str
);
9823 return NB_ERR_INCONSISTENCY
;
9826 previous_state
= CHECK_FLAG(bgp
->af_flags
[afi
][safi
], flag
);
9829 SET_FLAG(bgp
->af_flags
[afi
][safi
], flag
);
9830 if (!previous_state
) {
9831 /* trigger export current vrf */
9832 vpn_leak_postchange(dir
, afi
, bgp_get_default(), bgp
);
9835 if (previous_state
) {
9836 /* trigger un-export current vrf */
9837 vpn_leak_prechange(dir
, afi
, bgp_get_default(), bgp
);
9839 UNSET_FLAG(bgp
->af_flags
[afi
][safi
], flag
);
9847 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/import-vpn
9849 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_import_vpn_modify(
9850 struct nb_cb_modify_args
*args
)
9852 bool is_enable
= false;
9855 switch (args
->event
) {
9856 case NB_EV_VALIDATE
:
9857 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
9861 if (BGP_INSTANCE_TYPE_VRF
!= bgp
->inst_type
9862 && BGP_INSTANCE_TYPE_DEFAULT
!= bgp
->inst_type
) {
9864 args
->errmsg
, args
->errmsg_len
,
9865 "import|export vpn valid only for bgp vrf or default instance");
9866 return NB_ERR_VALIDATION
;
9874 if (yang_dnode_get_bool(args
->dnode
, NULL
))
9877 return bgp_global_afi_safi_ip_unicast_vpn_config_import_export_vpn_modify(
9878 args
, "import", is_enable
);
9886 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/export-vpn
9888 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_export_vpn_modify(
9889 struct nb_cb_modify_args
*args
)
9891 bool is_enable
= false;
9894 switch (args
->event
) {
9895 case NB_EV_VALIDATE
:
9896 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
9900 if (BGP_INSTANCE_TYPE_VRF
!= bgp
->inst_type
9901 && BGP_INSTANCE_TYPE_DEFAULT
!= bgp
->inst_type
) {
9903 args
->errmsg
, args
->errmsg_len
,
9904 "import|export vpn valid only for bgp vrf or default instance");
9905 return NB_ERR_VALIDATION
;
9912 if (yang_dnode_get_bool(args
->dnode
, NULL
))
9915 return bgp_global_afi_safi_ip_unicast_vpn_config_import_export_vpn_modify(
9916 args
, "export", is_enable
);
9923 static int bgp_global_afi_safi_ip_unicast_vpn_config_import_vrfs_create(
9924 struct nb_cb_create_args
*args
)
9927 const struct lyd_node
*af_dnode
;
9928 const char *af_name
;
9933 struct bgp
*vrf_bgp
, *bgp_default
;
9934 const char *import_name
;
9936 enum bgp_instance_type bgp_type
= BGP_INSTANCE_TYPE_VRF
;
9937 struct listnode
*node
;
9939 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
9940 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
9941 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
9942 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
9945 import_name
= yang_dnode_get_string(args
->dnode
, "./vrf");
9947 if (((BGP_INSTANCE_TYPE_DEFAULT
== bgp
->inst_type
)
9948 && (strcmp(import_name
, VRF_DEFAULT_NAME
) == 0))
9949 || (bgp
->name
&& (strcmp(import_name
, bgp
->name
) == 0))) {
9950 snprintf(args
->errmsg
, args
->errmsg_len
,
9951 "Cannot %s vrf %s into itself\n", "import",
9953 return NB_ERR_INCONSISTENCY
;
9956 bgp_default
= bgp_get_default();
9958 /* Auto-create assuming the same AS */
9959 ret
= bgp_get_vty(&bgp_default
, &as
, NULL
,
9960 BGP_INSTANCE_TYPE_DEFAULT
);
9964 args
->errmsg
, args
->errmsg_len
,
9965 "VRF default is not configured as a bgp instance");
9966 return NB_ERR_INCONSISTENCY
;
9970 vrf_bgp
= bgp_lookup_by_name(import_name
);
9972 if (strcmp(import_name
, VRF_DEFAULT_NAME
) == 0)
9973 vrf_bgp
= bgp_default
;
9975 /* Auto-create assuming the same AS */
9976 ret
= bgp_get_vty(&vrf_bgp
, &as
, import_name
, bgp_type
);
9979 snprintf(args
->errmsg
, args
->errmsg_len
,
9980 "VRF %s is not configured as a bgp instance\n",
9982 return NB_ERR_INCONSISTENCY
;
9986 /* Already importing from "import_vrf"? */
9987 for (ALL_LIST_ELEMENTS_RO(bgp
->vpn_policy
[afi
].import_vrf
, node
,
9989 if (strcmp(vname
, import_name
) == 0) {
9990 snprintf(args
->errmsg
, args
->errmsg_len
,
9991 "already importing from vrf %s", import_name
);
9992 return NB_ERR_INCONSISTENCY
;
9996 vrf_import_from_vrf(bgp
, vrf_bgp
, afi
, safi
);
10002 static int bgp_global_afi_safi_ip_unicast_vpn_config_import_vrf_list_destroy(
10003 struct nb_cb_destroy_args
*args
)
10006 const struct lyd_node
*af_dnode
;
10007 const char *af_name
;
10012 struct bgp
*vrf_bgp
, *bgp_default
;
10013 const char *import_name
;
10014 enum bgp_instance_type bgp_type
= BGP_INSTANCE_TYPE_VRF
;
10016 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
10017 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
10018 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
10019 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
10022 import_name
= yang_dnode_get_string(args
->dnode
, "./vrf");
10024 if (((BGP_INSTANCE_TYPE_DEFAULT
== bgp
->inst_type
)
10025 && (strcmp(import_name
, VRF_DEFAULT_NAME
) == 0))
10026 || (bgp
->name
&& (strcmp(import_name
, bgp
->name
) == 0))) {
10027 snprintf(args
->errmsg
, args
->errmsg_len
,
10028 "Cannot %s vrf %s into itself\n", "unimport",
10030 return NB_ERR_INCONSISTENCY
;
10033 bgp_default
= bgp_get_default();
10034 if (!bgp_default
) {
10035 /* Auto-create assuming the same AS */
10036 ret
= bgp_get_vty(&bgp_default
, &as
, NULL
,
10037 BGP_INSTANCE_TYPE_DEFAULT
);
10041 args
->errmsg
, args
->errmsg_len
, "%s",
10042 "VRF default is not configured as a bgp instance");
10043 return NB_ERR_INCONSISTENCY
;
10047 vrf_bgp
= bgp_lookup_by_name(import_name
);
10049 if (strcmp(import_name
, VRF_DEFAULT_NAME
) == 0)
10050 vrf_bgp
= bgp_default
;
10052 /* Auto-create assuming the same AS */
10053 ret
= bgp_get_vty(&vrf_bgp
, &as
, import_name
, bgp_type
);
10056 snprintf(args
->errmsg
, args
->errmsg_len
,
10057 "VRF %s is not configured as a bgp instance\n",
10059 return NB_ERR_INCONSISTENCY
;
10063 vrf_unimport_from_vrf(bgp
, vrf_bgp
, afi
, safi
);
10071 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/import-vrf-list
10073 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_import_vrf_list_create(
10074 struct nb_cb_create_args
*args
)
10077 const struct lyd_node
*af_dnode
;
10078 const char *af_name
;
10082 switch (args
->event
) {
10083 case NB_EV_VALIDATE
:
10084 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
10087 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
10088 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
10089 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
10091 if (!vpn_policy_check_import(bgp
, afi
, safi
, true, args
->errmsg
,
10093 return NB_ERR_VALIDATION
;
10096 case NB_EV_PREPARE
:
10100 return bgp_global_afi_safi_ip_unicast_vpn_config_import_vrfs_create(
10107 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_import_vrf_list_destroy(
10108 struct nb_cb_destroy_args
*args
)
10110 switch (args
->event
) {
10111 case NB_EV_VALIDATE
:
10112 case NB_EV_PREPARE
:
10116 return bgp_global_afi_safi_ip_unicast_vpn_config_import_vrf_list_destroy(
10123 static int bgp_global_afi_safi_ip_unicast_vpn_config_rmap_import_modify(
10124 struct nb_cb_modify_args
*args
, const char *dstr
)
10127 const struct lyd_node
*af_dnode
;
10128 const char *af_name
;
10131 const char *rmap_str
= NULL
;
10132 int dodir
[BGP_VPN_POLICY_DIR_MAX
] = {0};
10133 vpn_policy_direction_t dir
;
10135 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
10136 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
10137 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
10138 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
10140 if (!strcmp(dstr
, "import")) {
10141 rmap_str
= yang_dnode_get_string(args
->dnode
, NULL
);
10142 dodir
[BGP_VPN_POLICY_DIR_FROMVPN
] = 1;
10143 } else if (!strcmp(dstr
, "export")) {
10144 rmap_str
= yang_dnode_get_string(args
->dnode
, NULL
);
10145 dodir
[BGP_VPN_POLICY_DIR_TOVPN
] = 1;
10146 } else if (!strcmp(dstr
, "both")) {
10147 dodir
[BGP_VPN_POLICY_DIR_FROMVPN
] = 1;
10148 dodir
[BGP_VPN_POLICY_DIR_TOVPN
] = 1;
10151 for (dir
= 0; dir
< BGP_VPN_POLICY_DIR_MAX
; ++dir
) {
10155 vpn_leak_prechange(dir
, afi
, bgp_get_default(), bgp
);
10157 if (bgp
->vpn_policy
[afi
].rmap_name
[dir
])
10158 XFREE(MTYPE_ROUTE_MAP_NAME
,
10159 bgp
->vpn_policy
[afi
].rmap_name
[dir
]);
10160 bgp
->vpn_policy
[afi
].rmap_name
[dir
] =
10161 XSTRDUP(MTYPE_ROUTE_MAP_NAME
, rmap_str
);
10162 bgp
->vpn_policy
[afi
].rmap
[dir
] =
10163 route_map_lookup_by_name(rmap_str
);
10164 if (!bgp
->vpn_policy
[afi
].rmap
[dir
])
10168 vpn_leak_postchange(dir
, afi
, bgp_get_default(), bgp
);
10174 static int bgp_global_afi_safi_ip_unicast_vpn_config_rmap_import_destroy(
10175 struct nb_cb_destroy_args
*args
, const char *dstr
)
10178 const struct lyd_node
*af_dnode
;
10179 const char *af_name
;
10182 int dodir
[BGP_VPN_POLICY_DIR_MAX
] = {0};
10183 vpn_policy_direction_t dir
;
10185 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
10186 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
10187 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
10188 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
10190 if (!strcmp(dstr
, "import")) {
10191 dodir
[BGP_VPN_POLICY_DIR_FROMVPN
] = 1;
10192 } else if (!strcmp(dstr
, "export")) {
10193 dodir
[BGP_VPN_POLICY_DIR_TOVPN
] = 1;
10194 } else if (!strcmp(dstr
, "both")) {
10195 dodir
[BGP_VPN_POLICY_DIR_FROMVPN
] = 1;
10196 dodir
[BGP_VPN_POLICY_DIR_TOVPN
] = 1;
10199 for (dir
= 0; dir
< BGP_VPN_POLICY_DIR_MAX
; ++dir
) {
10203 vpn_leak_prechange(dir
, afi
, bgp_get_default(), bgp
);
10205 if (bgp
->vpn_policy
[afi
].rmap_name
[dir
])
10206 XFREE(MTYPE_ROUTE_MAP_NAME
,
10207 bgp
->vpn_policy
[afi
].rmap_name
[dir
]);
10208 bgp
->vpn_policy
[afi
].rmap_name
[dir
] = NULL
;
10209 bgp
->vpn_policy
[afi
].rmap
[dir
] = NULL
;
10211 vpn_leak_postchange(dir
, afi
, bgp_get_default(), bgp
);
10219 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/rmap-import
10221 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_rmap_import_modify(
10222 struct nb_cb_modify_args
*args
)
10225 const struct lyd_node
*af_dnode
;
10226 const char *af_name
;
10230 switch (args
->event
) {
10231 case NB_EV_VALIDATE
:
10232 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
10235 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
10236 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
10237 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
10239 if (!vpn_policy_check_import(bgp
, afi
, safi
, false,
10240 args
->errmsg
, args
->errmsg_len
))
10241 return NB_ERR_VALIDATION
;
10243 case NB_EV_PREPARE
:
10247 return bgp_global_afi_safi_ip_unicast_vpn_config_rmap_import_modify(
10254 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_rmap_import_destroy(
10255 struct nb_cb_destroy_args
*args
)
10258 const struct lyd_node
*af_dnode
;
10259 const char *af_name
;
10263 switch (args
->event
) {
10264 case NB_EV_VALIDATE
:
10265 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
10268 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
10269 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
10270 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
10272 if (!vpn_policy_check_import(bgp
, afi
, safi
, false,
10273 args
->errmsg
, args
->errmsg_len
))
10274 return NB_ERR_VALIDATION
;
10276 case NB_EV_PREPARE
:
10280 return bgp_global_afi_safi_ip_unicast_vpn_config_rmap_import_destroy(
10289 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/rmap-export
10291 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_rmap_export_modify(
10292 struct nb_cb_modify_args
*args
)
10294 switch (args
->event
) {
10295 case NB_EV_VALIDATE
:
10296 case NB_EV_PREPARE
:
10300 return bgp_global_afi_safi_ip_unicast_vpn_config_rmap_import_modify(
10307 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_rmap_export_destroy(
10308 struct nb_cb_destroy_args
*args
)
10310 switch (args
->event
) {
10311 case NB_EV_VALIDATE
:
10312 case NB_EV_PREPARE
:
10316 return bgp_global_afi_safi_ip_unicast_vpn_config_rmap_import_destroy(
10326 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/redirect-rt
10328 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_redirect_rt_modify(
10329 struct nb_cb_modify_args
*args
)
10331 switch (args
->event
) {
10332 case NB_EV_VALIDATE
:
10333 case NB_EV_PREPARE
:
10336 /* TODO: implement me. */
10343 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_redirect_rt_destroy(
10344 struct nb_cb_destroy_args
*args
)
10346 switch (args
->event
) {
10347 case NB_EV_VALIDATE
:
10348 case NB_EV_PREPARE
:
10351 /* TODO: implement me. */
10360 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/import-rt-list
10362 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_import_rt_list_create(
10363 struct nb_cb_create_args
*args
)
10365 switch (args
->event
) {
10366 case NB_EV_VALIDATE
:
10367 case NB_EV_PREPARE
:
10370 /* TODO: implement me. */
10377 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_import_rt_list_destroy(
10378 struct nb_cb_destroy_args
*args
)
10380 switch (args
->event
) {
10381 case NB_EV_VALIDATE
:
10382 case NB_EV_PREPARE
:
10385 /* TODO: implement me. */
10394 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/export-rt-list
10396 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_export_rt_list_create(
10397 struct nb_cb_create_args
*args
)
10399 switch (args
->event
) {
10400 case NB_EV_VALIDATE
:
10401 case NB_EV_PREPARE
:
10404 /* TODO: implement me. */
10411 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_export_rt_list_destroy(
10412 struct nb_cb_destroy_args
*args
)
10414 switch (args
->event
) {
10415 case NB_EV_VALIDATE
:
10416 case NB_EV_PREPARE
:
10419 /* TODO: implement me. */
10428 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-unicast/vpn-config/rt-list
10430 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_rt_list_create(
10431 struct nb_cb_create_args
*args
)
10433 switch (args
->event
) {
10434 case NB_EV_VALIDATE
:
10435 case NB_EV_PREPARE
:
10438 /* TODO: implement me. */
10445 int bgp_global_afi_safis_afi_safi_ipv4_unicast_vpn_config_rt_list_destroy(
10446 struct nb_cb_destroy_args
*args
)
10448 switch (args
->event
) {
10449 case NB_EV_VALIDATE
:
10450 case NB_EV_PREPARE
:
10453 /* TODO: implement me. */
10462 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/network-config
10464 int bgp_global_afi_safis_afi_safi_ipv6_unicast_network_config_create(
10465 struct nb_cb_create_args
*args
)
10467 /* Handled in network_config_apply_finish callback */
10472 int bgp_global_afi_safis_afi_safi_ipv6_unicast_network_config_destroy(
10473 struct nb_cb_destroy_args
*args
)
10475 switch (args
->event
) {
10476 case NB_EV_VALIDATE
:
10477 case NB_EV_PREPARE
:
10481 return bgp_global_afi_safis_afi_safi_network_config_destroy(
10491 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/network-config/backdoor
10493 int bgp_global_afi_safis_afi_safi_ipv6_unicast_network_config_backdoor_modify(
10494 struct nb_cb_modify_args
*args
)
10496 /* Handled in unicast_network_config_apply_finish callback */
10503 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/network-config/label-index
10505 int bgp_global_afi_safis_afi_safi_ipv6_unicast_network_config_label_index_modify(
10506 struct nb_cb_modify_args
*args
)
10508 /* Handled in unicast_network_config_apply_finish callback */
10513 int bgp_global_afi_safis_afi_safi_ipv6_unicast_network_config_label_index_destroy(
10514 struct nb_cb_destroy_args
*args
)
10516 switch (args
->event
) {
10517 case NB_EV_VALIDATE
:
10518 case NB_EV_PREPARE
:
10521 /* TODO: implement me. */
10530 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/network-config/rmap-policy-export
10532 int bgp_global_afi_safis_afi_safi_ipv6_unicast_network_config_rmap_policy_export_modify(
10533 struct nb_cb_modify_args
*args
)
10535 /* Handled in unicast_network_config_apply_finish callback */
10540 int bgp_global_afi_safis_afi_safi_ipv6_unicast_network_config_rmap_policy_export_destroy(
10541 struct nb_cb_destroy_args
*args
)
10543 switch (args
->event
) {
10544 case NB_EV_VALIDATE
:
10545 case NB_EV_PREPARE
:
10548 /* TODO: implement me. */
10557 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/aggregate-route
10559 int bgp_global_afi_safis_afi_safi_ipv6_unicast_aggregate_route_create(
10560 struct nb_cb_create_args
*args
)
10562 switch (args
->event
) {
10563 case NB_EV_VALIDATE
:
10564 case NB_EV_PREPARE
:
10567 /* TODO: implement me. */
10574 int bgp_global_afi_safis_afi_safi_ipv6_unicast_aggregate_route_destroy(
10575 struct nb_cb_destroy_args
*args
)
10577 switch (args
->event
) {
10578 case NB_EV_VALIDATE
:
10579 case NB_EV_PREPARE
:
10583 return bgp_global_afi_safi_aggregate_route_destroy(args
);
10591 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/aggregate-route/as-set
10593 int bgp_global_afi_safis_afi_safi_ipv6_unicast_aggregate_route_as_set_modify(
10594 struct nb_cb_modify_args
*args
)
10596 switch (args
->event
) {
10597 case NB_EV_VALIDATE
:
10598 case NB_EV_PREPARE
:
10601 /* TODO: implement me. */
10610 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/aggregate-route/summary-only
10612 int bgp_global_afi_safis_afi_safi_ipv6_unicast_aggregate_route_summary_only_modify(
10613 struct nb_cb_modify_args
*args
)
10615 switch (args
->event
) {
10616 case NB_EV_VALIDATE
:
10617 case NB_EV_PREPARE
:
10620 /* TODO: implement me. */
10629 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/aggregate-route/rmap-policy-export
10631 int bgp_global_afi_safis_afi_safi_ipv6_unicast_aggregate_route_rmap_policy_export_modify(
10632 struct nb_cb_modify_args
*args
)
10634 switch (args
->event
) {
10635 case NB_EV_VALIDATE
:
10636 case NB_EV_PREPARE
:
10639 /* TODO: implement me. */
10646 int bgp_global_afi_safis_afi_safi_ipv6_unicast_aggregate_route_rmap_policy_export_destroy(
10647 struct nb_cb_destroy_args
*args
)
10649 switch (args
->event
) {
10650 case NB_EV_VALIDATE
:
10651 case NB_EV_PREPARE
:
10654 /* TODO: implement me. */
10663 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/aggregate-route/origin
10665 int bgp_global_afi_safis_afi_safi_ipv6_unicast_aggregate_route_origin_modify(
10666 struct nb_cb_modify_args
*args
)
10668 switch (args
->event
) {
10669 case NB_EV_VALIDATE
:
10670 case NB_EV_PREPARE
:
10673 /* TODO: implement me. */
10682 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/aggregate-route/match-med
10684 int bgp_global_afi_safis_afi_safi_ipv6_unicast_aggregate_route_match_med_modify(
10685 struct nb_cb_modify_args
*args
)
10687 switch (args
->event
) {
10688 case NB_EV_VALIDATE
:
10689 case NB_EV_PREPARE
:
10692 /* TODO: implement me. */
10701 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/aggregate-route/suppress-map
10703 int bgp_global_afi_safis_afi_safi_ipv6_unicast_aggregate_route_suppress_map_modify(
10704 struct nb_cb_modify_args
*args
)
10706 switch (args
->event
) {
10707 case NB_EV_VALIDATE
:
10708 case NB_EV_PREPARE
:
10711 /* TODO: implement me. */
10718 int bgp_global_afi_safis_afi_safi_ipv6_unicast_aggregate_route_suppress_map_destroy(
10719 struct nb_cb_destroy_args
*args
)
10721 switch (args
->event
) {
10722 case NB_EV_VALIDATE
:
10723 case NB_EV_PREPARE
:
10726 /* TODO: implement me. */
10735 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/admin-distance-route
10737 int bgp_global_afi_safis_afi_safi_ipv6_unicast_admin_distance_route_create(
10738 struct nb_cb_create_args
*args
)
10740 switch (args
->event
) {
10741 case NB_EV_VALIDATE
:
10742 case NB_EV_PREPARE
:
10745 /* TODO: implement me. */
10752 int bgp_global_afi_safis_afi_safi_ipv6_unicast_admin_distance_route_destroy(
10753 struct nb_cb_destroy_args
*args
)
10755 switch (args
->event
) {
10756 case NB_EV_VALIDATE
:
10757 case NB_EV_PREPARE
:
10761 return bgp_global_afi_safi_admin_distance_route_destroy(args
);
10769 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/admin-distance-route/distance
10771 int bgp_global_afi_safis_afi_safi_ipv6_unicast_admin_distance_route_distance_modify(
10772 struct nb_cb_modify_args
*args
)
10774 switch (args
->event
) {
10775 case NB_EV_VALIDATE
:
10776 case NB_EV_PREPARE
:
10779 /* TODO: implement me. */
10788 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/admin-distance-route/access-list-policy-export
10790 int bgp_global_afi_safis_afi_safi_ipv6_unicast_admin_distance_route_access_list_policy_export_modify(
10791 struct nb_cb_modify_args
*args
)
10793 switch (args
->event
) {
10794 case NB_EV_VALIDATE
:
10795 case NB_EV_PREPARE
:
10798 /* TODO: implement me. */
10805 int bgp_global_afi_safis_afi_safi_ipv6_unicast_admin_distance_route_access_list_policy_export_destroy(
10806 struct nb_cb_destroy_args
*args
)
10808 switch (args
->event
) {
10809 case NB_EV_VALIDATE
:
10810 case NB_EV_PREPARE
:
10813 /* TODO: implement me. */
10822 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/route-flap-dampening/enable
10824 int bgp_global_afi_safis_afi_safi_ipv6_unicast_route_flap_dampening_enable_modify(
10825 struct nb_cb_modify_args
*args
)
10827 switch (args
->event
) {
10828 case NB_EV_VALIDATE
:
10829 return bgp_global_afi_safi_route_flap_validation(args
);
10830 case NB_EV_PREPARE
:
10841 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/route-flap-dampening/reach-decay
10843 int bgp_global_afi_safis_afi_safi_ipv6_unicast_route_flap_dampening_reach_decay_modify(
10844 struct nb_cb_modify_args
*args
)
10846 switch (args
->event
) {
10847 case NB_EV_VALIDATE
:
10848 case NB_EV_PREPARE
:
10851 /* TODO: implement me. */
10858 int bgp_global_afi_safis_afi_safi_ipv6_unicast_route_flap_dampening_reach_decay_destroy(
10859 struct nb_cb_destroy_args
*args
)
10861 switch (args
->event
) {
10862 case NB_EV_VALIDATE
:
10863 case NB_EV_PREPARE
:
10866 /* TODO: implement me. */
10875 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/route-flap-dampening/reuse-above
10877 int bgp_global_afi_safis_afi_safi_ipv6_unicast_route_flap_dampening_reuse_above_modify(
10878 struct nb_cb_modify_args
*args
)
10880 int reuse
= DEFAULT_REUSE
;
10881 int suppress
= DEFAULT_SUPPRESS
;
10883 switch (args
->event
) {
10884 case NB_EV_VALIDATE
:
10885 if (yang_dnode_exists(args
->dnode
, "../suppress-above"))
10886 suppress
= yang_dnode_get_uint16(args
->dnode
,
10887 "../suppress-above");
10888 reuse
= yang_dnode_get_uint16(args
->dnode
, "../reuse-above");
10889 if (suppress
< reuse
) {
10891 args
->errmsg
, args
->errmsg_len
,
10892 "Suppress value cannot be less than reuse value \n");
10893 return NB_ERR_VALIDATION
;
10896 case NB_EV_PREPARE
:
10899 /* TODO: implement me. */
10906 int bgp_global_afi_safis_afi_safi_ipv6_unicast_route_flap_dampening_reuse_above_destroy(
10907 struct nb_cb_destroy_args
*args
)
10909 switch (args
->event
) {
10910 case NB_EV_VALIDATE
:
10911 case NB_EV_PREPARE
:
10914 /* TODO: implement me. */
10923 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/route-flap-dampening/suppress-above
10925 int bgp_global_afi_safis_afi_safi_ipv6_unicast_route_flap_dampening_suppress_above_modify(
10926 struct nb_cb_modify_args
*args
)
10928 switch (args
->event
) {
10929 case NB_EV_VALIDATE
:
10930 case NB_EV_PREPARE
:
10933 /* TODO: implement me. */
10940 int bgp_global_afi_safis_afi_safi_ipv6_unicast_route_flap_dampening_suppress_above_destroy(
10941 struct nb_cb_destroy_args
*args
)
10943 switch (args
->event
) {
10944 case NB_EV_VALIDATE
:
10945 case NB_EV_PREPARE
:
10948 /* TODO: implement me. */
10957 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/route-flap-dampening/unreach-decay
10959 int bgp_global_afi_safis_afi_safi_ipv6_unicast_route_flap_dampening_unreach_decay_modify(
10960 struct nb_cb_modify_args
*args
)
10962 switch (args
->event
) {
10963 case NB_EV_VALIDATE
:
10964 case NB_EV_PREPARE
:
10967 /* TODO: implement me. */
10974 int bgp_global_afi_safis_afi_safi_ipv6_unicast_route_flap_dampening_unreach_decay_destroy(
10975 struct nb_cb_destroy_args
*args
)
10977 switch (args
->event
) {
10978 case NB_EV_VALIDATE
:
10979 case NB_EV_PREPARE
:
10982 /* TODO: implement me. */
10991 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/use-multiple-paths/ebgp/maximum-paths
10993 int bgp_global_afi_safis_afi_safi_ipv6_unicast_use_multiple_paths_ebgp_maximum_paths_modify(
10994 struct nb_cb_modify_args
*args
)
10998 switch (args
->event
) {
10999 case NB_EV_VALIDATE
:
11000 maxpaths
= yang_dnode_get_uint16(args
->dnode
, NULL
);
11001 if (maxpaths
> multipath_num
) {
11002 snprintf(args
->errmsg
, args
->errmsg_len
,
11003 "maxpaths %u is out of range %u", maxpaths
,
11005 return NB_ERR_VALIDATION
;
11008 case NB_EV_PREPARE
:
11012 return bgp_global_afi_safi_ip_unicast_use_multiple_paths_ebgp_maximum_paths_modify(
11021 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/use-multiple-paths/ibgp/maximum-paths
11023 int bgp_global_afi_safis_afi_safi_ipv6_unicast_use_multiple_paths_ibgp_maximum_paths_modify(
11024 struct nb_cb_modify_args
*args
)
11026 switch (args
->event
) {
11027 case NB_EV_VALIDATE
:
11028 case NB_EV_PREPARE
:
11031 /* TODO: implement me. */
11040 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/use-multiple-paths/ibgp/cluster-length-list
11042 int bgp_global_afi_safis_afi_safi_ipv6_unicast_use_multiple_paths_ibgp_cluster_length_list_modify(
11043 struct nb_cb_modify_args
*args
)
11045 switch (args
->event
) {
11046 case NB_EV_VALIDATE
:
11047 case NB_EV_PREPARE
:
11050 /* TODO: implement me. */
11057 int bgp_global_afi_safis_afi_safi_ipv6_unicast_use_multiple_paths_ibgp_cluster_length_list_destroy(
11058 struct nb_cb_destroy_args
*args
)
11060 switch (args
->event
) {
11061 case NB_EV_VALIDATE
:
11062 case NB_EV_PREPARE
:
11065 /* TODO: implement me. */
11074 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/redistribution-list
11076 int bgp_global_afi_safis_afi_safi_ipv6_unicast_redistribution_list_create(
11077 struct nb_cb_create_args
*args
)
11079 switch (args
->event
) {
11080 case NB_EV_VALIDATE
:
11081 case NB_EV_PREPARE
:
11084 /* TODO: implement me. */
11091 int bgp_global_afi_safis_afi_safi_ipv6_unicast_redistribution_list_destroy(
11092 struct nb_cb_destroy_args
*args
)
11094 const struct lyd_node
*af_dnode
;
11096 const char *af_name
;
11100 int route_instance
;
11102 switch (args
->event
) {
11103 case NB_EV_VALIDATE
:
11104 case NB_EV_PREPARE
:
11108 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
11109 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
11110 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
11111 bgp
= nb_running_get_entry(af_dnode
, NULL
, true);
11113 route_type
= yang_dnode_get_enum(args
->dnode
, "./route-type");
11115 yang_dnode_get_uint16(args
->dnode
, "./route-instance");
11117 bgp_redistribute_unset(bgp
, afi
, route_type
, route_instance
);
11127 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/redistribution-list/metric
11129 int bgp_global_afi_safis_afi_safi_ipv6_unicast_redistribution_list_metric_modify(
11130 struct nb_cb_modify_args
*args
)
11132 switch (args
->event
) {
11133 case NB_EV_VALIDATE
:
11134 case NB_EV_PREPARE
:
11137 /* TODO: implement me. */
11144 int bgp_global_afi_safis_afi_safi_ipv6_unicast_redistribution_list_metric_destroy(
11145 struct nb_cb_destroy_args
*args
)
11147 switch (args
->event
) {
11148 case NB_EV_VALIDATE
:
11149 case NB_EV_PREPARE
:
11152 /* TODO: implement me. */
11161 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/redistribution-list/rmap-policy-import
11163 int bgp_global_afi_safis_afi_safi_ipv6_unicast_redistribution_list_rmap_policy_import_modify(
11164 struct nb_cb_modify_args
*args
)
11166 switch (args
->event
) {
11167 case NB_EV_VALIDATE
:
11168 case NB_EV_PREPARE
:
11171 /* TODO: implement me. */
11178 int bgp_global_afi_safis_afi_safi_ipv6_unicast_redistribution_list_rmap_policy_import_destroy(
11179 struct nb_cb_destroy_args
*args
)
11181 switch (args
->event
) {
11182 case NB_EV_VALIDATE
:
11183 case NB_EV_PREPARE
:
11186 /* TODO: implement me. */
11195 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/admin-distance
11197 void bgp_global_afi_safis_afi_safi_ipv6_unicast_admin_distance_apply_finish(
11198 struct nb_cb_apply_finish_args
*args
)
11200 bgp_global_afi_safis_admin_distance_modify(args
);
11205 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/admin-distance/external
11207 int bgp_global_afi_safis_afi_safi_ipv6_unicast_admin_distance_external_modify(
11208 struct nb_cb_modify_args
*args
)
11210 /* Handled in admin_distance_apply_finish callback */
11217 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/admin-distance/internal
11219 int bgp_global_afi_safis_afi_safi_ipv6_unicast_admin_distance_internal_modify(
11220 struct nb_cb_modify_args
*args
)
11222 /* Handled in admin_distance_apply_finish callback */
11229 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/admin-distance/local
11231 int bgp_global_afi_safis_afi_safi_ipv6_unicast_admin_distance_local_modify(
11232 struct nb_cb_modify_args
*args
)
11234 /* Handled in admin_distance_apply_finish callback */
11241 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/filter-config/rmap-export
11243 int bgp_global_afi_safis_afi_safi_ipv6_unicast_filter_config_rmap_export_modify(
11244 struct nb_cb_modify_args
*args
)
11246 switch (args
->event
) {
11247 case NB_EV_VALIDATE
:
11248 case NB_EV_PREPARE
:
11251 /* TODO: implement me. */
11258 int bgp_global_afi_safis_afi_safi_ipv6_unicast_filter_config_rmap_export_destroy(
11259 struct nb_cb_destroy_args
*args
)
11261 switch (args
->event
) {
11262 case NB_EV_VALIDATE
:
11263 case NB_EV_PREPARE
:
11266 /* TODO: implement me. */
11275 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/rd
11277 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_rd_modify(
11278 struct nb_cb_modify_args
*args
)
11281 const struct lyd_node
*af_dnode
;
11282 const char *af_name
;
11286 switch (args
->event
) {
11287 case NB_EV_VALIDATE
:
11288 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
11292 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
11293 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
11294 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
11296 if (!vpn_policy_check_import(bgp
, afi
, safi
, false,
11297 args
->errmsg
, args
->errmsg_len
))
11298 return NB_ERR_VALIDATION
;
11301 case NB_EV_PREPARE
:
11305 return bgp_global_afi_safi_ip_unicast_vpn_config_rd_modify(
11312 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_rd_destroy(
11313 struct nb_cb_destroy_args
*args
)
11315 switch (args
->event
) {
11316 case NB_EV_VALIDATE
:
11317 case NB_EV_PREPARE
:
11321 return bgp_global_afi_safi_ip_unicast_vpn_config_rd_destroy(
11330 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/label
11332 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_label_modify(
11333 struct nb_cb_modify_args
*args
)
11335 switch (args
->event
) {
11336 case NB_EV_VALIDATE
:
11337 case NB_EV_PREPARE
:
11340 /* TODO: implement me. */
11347 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_label_destroy(
11348 struct nb_cb_destroy_args
*args
)
11350 switch (args
->event
) {
11351 case NB_EV_VALIDATE
:
11352 case NB_EV_PREPARE
:
11355 /* TODO: implement me. */
11364 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/label-auto
11366 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_label_auto_modify(
11367 struct nb_cb_modify_args
*args
)
11369 switch (args
->event
) {
11370 case NB_EV_VALIDATE
:
11371 case NB_EV_PREPARE
:
11374 /* TODO: implement me. */
11381 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_label_auto_destroy(
11382 struct nb_cb_destroy_args
*args
)
11384 switch (args
->event
) {
11385 case NB_EV_VALIDATE
:
11386 case NB_EV_PREPARE
:
11389 /* TODO: implement me. */
11398 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/nexthop
11400 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_nexthop_modify(
11401 struct nb_cb_modify_args
*args
)
11404 const struct lyd_node
*af_dnode
;
11405 const char *af_name
;
11409 switch (args
->event
) {
11410 case NB_EV_VALIDATE
:
11411 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
11415 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
11416 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
11417 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
11419 if (!vpn_policy_check_import(bgp
, afi
, safi
, false,
11420 args
->errmsg
, args
->errmsg_len
))
11421 return NB_ERR_VALIDATION
;
11424 case NB_EV_PREPARE
:
11428 return bgp_global_afi_safi_ip_unicast_vpn_config_nexthop_modify(
11435 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_nexthop_destroy(
11436 struct nb_cb_destroy_args
*args
)
11438 switch (args
->event
) {
11439 case NB_EV_VALIDATE
:
11440 case NB_EV_PREPARE
:
11444 return bgp_global_afi_safi_ip_unicast_vpn_config_nexthop_destroy(
11453 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/import-vpn
11455 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_import_vpn_modify(
11456 struct nb_cb_modify_args
*args
)
11458 switch (args
->event
) {
11459 case NB_EV_VALIDATE
:
11460 case NB_EV_PREPARE
:
11463 /* TODO: implement me. */
11472 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/export-vpn
11474 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_export_vpn_modify(
11475 struct nb_cb_modify_args
*args
)
11477 switch (args
->event
) {
11478 case NB_EV_VALIDATE
:
11479 case NB_EV_PREPARE
:
11482 /* TODO: implement me. */
11491 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/import-vrf-list
11493 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_import_vrf_list_create(
11494 struct nb_cb_create_args
*args
)
11497 const struct lyd_node
*af_dnode
;
11498 const char *af_name
;
11502 switch (args
->event
) {
11503 case NB_EV_VALIDATE
:
11504 bgp
= nb_running_get_entry(args
->dnode
, NULL
, false);
11507 af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
11508 af_name
= yang_dnode_get_string(af_dnode
, "./afi-safi-name");
11509 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
11511 if (!vpn_policy_check_import(bgp
, afi
, safi
, true, args
->errmsg
,
11513 return NB_ERR_VALIDATION
;
11516 case NB_EV_PREPARE
:
11520 return bgp_global_afi_safi_ip_unicast_vpn_config_import_vrfs_create(
11527 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_import_vrf_list_destroy(
11528 struct nb_cb_destroy_args
*args
)
11530 switch (args
->event
) {
11531 case NB_EV_VALIDATE
:
11532 case NB_EV_PREPARE
:
11536 return bgp_global_afi_safi_ip_unicast_vpn_config_import_vrf_list_destroy(
11545 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/rmap-import
11547 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_rmap_import_modify(
11548 struct nb_cb_modify_args
*args
)
11550 switch (args
->event
) {
11551 case NB_EV_VALIDATE
:
11552 case NB_EV_PREPARE
:
11556 return bgp_global_afi_safi_ip_unicast_vpn_config_rmap_import_modify(
11563 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_rmap_import_destroy(
11564 struct nb_cb_destroy_args
*args
)
11566 switch (args
->event
) {
11567 case NB_EV_VALIDATE
:
11568 case NB_EV_PREPARE
:
11572 return bgp_global_afi_safi_ip_unicast_vpn_config_rmap_import_destroy(
11581 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/rmap-export
11583 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_rmap_export_modify(
11584 struct nb_cb_modify_args
*args
)
11586 switch (args
->event
) {
11587 case NB_EV_VALIDATE
:
11588 case NB_EV_PREPARE
:
11592 return bgp_global_afi_safi_ip_unicast_vpn_config_rmap_import_modify(
11599 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_rmap_export_destroy(
11600 struct nb_cb_destroy_args
*args
)
11602 switch (args
->event
) {
11603 case NB_EV_VALIDATE
:
11604 case NB_EV_PREPARE
:
11608 return bgp_global_afi_safi_ip_unicast_vpn_config_rmap_import_destroy(
11617 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/redirect-rt
11619 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_redirect_rt_modify(
11620 struct nb_cb_modify_args
*args
)
11622 switch (args
->event
) {
11623 case NB_EV_VALIDATE
:
11624 case NB_EV_PREPARE
:
11627 /* TODO: implement me. */
11634 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_redirect_rt_destroy(
11635 struct nb_cb_destroy_args
*args
)
11637 switch (args
->event
) {
11638 case NB_EV_VALIDATE
:
11639 case NB_EV_PREPARE
:
11642 /* TODO: implement me. */
11651 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/import-rt-list
11653 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_import_rt_list_create(
11654 struct nb_cb_create_args
*args
)
11656 switch (args
->event
) {
11657 case NB_EV_VALIDATE
:
11658 case NB_EV_PREPARE
:
11661 /* TODO: implement me. */
11668 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_import_rt_list_destroy(
11669 struct nb_cb_destroy_args
*args
)
11671 switch (args
->event
) {
11672 case NB_EV_VALIDATE
:
11673 case NB_EV_PREPARE
:
11676 /* TODO: implement me. */
11685 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/export-rt-list
11687 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_export_rt_list_create(
11688 struct nb_cb_create_args
*args
)
11690 switch (args
->event
) {
11691 case NB_EV_VALIDATE
:
11692 case NB_EV_PREPARE
:
11695 /* TODO: implement me. */
11702 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_export_rt_list_destroy(
11703 struct nb_cb_destroy_args
*args
)
11705 switch (args
->event
) {
11706 case NB_EV_VALIDATE
:
11707 case NB_EV_PREPARE
:
11710 /* TODO: implement me. */
11719 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-unicast/vpn-config/rt-list
11721 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_rt_list_create(
11722 struct nb_cb_create_args
*args
)
11724 switch (args
->event
) {
11725 case NB_EV_VALIDATE
:
11726 case NB_EV_PREPARE
:
11729 /* TODO: implement me. */
11736 int bgp_global_afi_safis_afi_safi_ipv6_unicast_vpn_config_rt_list_destroy(
11737 struct nb_cb_destroy_args
*args
)
11739 switch (args
->event
) {
11740 case NB_EV_VALIDATE
:
11741 case NB_EV_PREPARE
:
11744 /* TODO: implement me. */
11753 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-labeled-unicast/use-multiple-paths/ebgp/maximum-paths
11755 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_use_multiple_paths_ebgp_maximum_paths_modify(
11756 struct nb_cb_modify_args
*args
)
11760 switch (args
->event
) {
11761 case NB_EV_VALIDATE
:
11762 maxpaths
= yang_dnode_get_uint16(args
->dnode
, NULL
);
11763 if (maxpaths
> multipath_num
) {
11764 snprintf(args
->errmsg
, args
->errmsg_len
,
11765 "maxpaths %u is out of range %u", maxpaths
,
11767 return NB_ERR_VALIDATION
;
11770 case NB_EV_PREPARE
:
11774 return bgp_global_afi_safi_ip_unicast_use_multiple_paths_ebgp_maximum_paths_modify(
11783 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-labeled-unicast/use-multiple-paths/ibgp/maximum-paths
11785 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_use_multiple_paths_ibgp_maximum_paths_modify(
11786 struct nb_cb_modify_args
*args
)
11788 switch (args
->event
) {
11789 case NB_EV_VALIDATE
:
11790 case NB_EV_PREPARE
:
11793 /* TODO: implement me. */
11802 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-labeled-unicast/use-multiple-paths/ibgp/cluster-length-list
11804 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_use_multiple_paths_ibgp_cluster_length_list_modify(
11805 struct nb_cb_modify_args
*args
)
11807 switch (args
->event
) {
11808 case NB_EV_VALIDATE
:
11809 case NB_EV_PREPARE
:
11812 /* TODO: implement me. */
11819 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_use_multiple_paths_ibgp_cluster_length_list_destroy(
11820 struct nb_cb_destroy_args
*args
)
11822 switch (args
->event
) {
11823 case NB_EV_VALIDATE
:
11824 case NB_EV_PREPARE
:
11827 /* TODO: implement me. */
11836 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-labeled-unicast/route-flap-dampening/enable
11838 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_route_flap_dampening_enable_modify(
11839 struct nb_cb_modify_args
*args
)
11841 switch (args
->event
) {
11842 case NB_EV_VALIDATE
:
11843 return bgp_global_afi_safi_route_flap_validation(args
);
11844 case NB_EV_PREPARE
:
11855 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-labeled-unicast/route-flap-dampening/reach-decay
11857 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_route_flap_dampening_reach_decay_modify(
11858 struct nb_cb_modify_args
*args
)
11860 switch (args
->event
) {
11861 case NB_EV_VALIDATE
:
11862 case NB_EV_PREPARE
:
11865 /* TODO: implement me. */
11872 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_route_flap_dampening_reach_decay_destroy(
11873 struct nb_cb_destroy_args
*args
)
11875 switch (args
->event
) {
11876 case NB_EV_VALIDATE
:
11877 case NB_EV_PREPARE
:
11880 /* TODO: implement me. */
11889 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-labeled-unicast/route-flap-dampening/reuse-above
11891 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_route_flap_dampening_reuse_above_modify(
11892 struct nb_cb_modify_args
*args
)
11894 switch (args
->event
) {
11895 case NB_EV_VALIDATE
:
11896 case NB_EV_PREPARE
:
11899 /* TODO: implement me. */
11906 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_route_flap_dampening_reuse_above_destroy(
11907 struct nb_cb_destroy_args
*args
)
11909 switch (args
->event
) {
11910 case NB_EV_VALIDATE
:
11911 case NB_EV_PREPARE
:
11914 /* TODO: implement me. */
11923 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-labeled-unicast/route-flap-dampening/suppress-above
11925 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_route_flap_dampening_suppress_above_modify(
11926 struct nb_cb_modify_args
*args
)
11928 switch (args
->event
) {
11929 case NB_EV_VALIDATE
:
11930 case NB_EV_PREPARE
:
11933 /* TODO: implement me. */
11940 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_route_flap_dampening_suppress_above_destroy(
11941 struct nb_cb_destroy_args
*args
)
11943 switch (args
->event
) {
11944 case NB_EV_VALIDATE
:
11945 case NB_EV_PREPARE
:
11948 /* TODO: implement me. */
11957 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-labeled-unicast/route-flap-dampening/unreach-decay
11959 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_route_flap_dampening_unreach_decay_modify(
11960 struct nb_cb_modify_args
*args
)
11962 switch (args
->event
) {
11963 case NB_EV_VALIDATE
:
11964 case NB_EV_PREPARE
:
11967 /* TODO: implement me. */
11974 int bgp_global_afi_safis_afi_safi_ipv4_labeled_unicast_route_flap_dampening_unreach_decay_destroy(
11975 struct nb_cb_destroy_args
*args
)
11977 switch (args
->event
) {
11978 case NB_EV_VALIDATE
:
11979 case NB_EV_PREPARE
:
11982 /* TODO: implement me. */
11991 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-labeled-unicast/use-multiple-paths/ebgp/maximum-paths
11993 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_use_multiple_paths_ebgp_maximum_paths_modify(
11994 struct nb_cb_modify_args
*args
)
11998 switch (args
->event
) {
11999 case NB_EV_VALIDATE
:
12000 maxpaths
= yang_dnode_get_uint16(args
->dnode
, NULL
);
12001 if (maxpaths
> multipath_num
) {
12002 snprintf(args
->errmsg
, args
->errmsg_len
,
12003 "maxpaths %u is out of range %u", maxpaths
,
12005 return NB_ERR_VALIDATION
;
12008 case NB_EV_PREPARE
:
12012 return bgp_global_afi_safi_ip_unicast_use_multiple_paths_ebgp_maximum_paths_modify(
12021 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-labeled-unicast/use-multiple-paths/ibgp/maximum-paths
12023 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_use_multiple_paths_ibgp_maximum_paths_modify(
12024 struct nb_cb_modify_args
*args
)
12028 switch (args
->event
) {
12029 case NB_EV_VALIDATE
:
12030 maxpaths
= yang_dnode_get_uint16(args
->dnode
, NULL
);
12031 if (maxpaths
> multipath_num
) {
12032 snprintf(args
->errmsg
, args
->errmsg_len
,
12033 "maxpaths %u is out of range %u", maxpaths
,
12035 return NB_ERR_VALIDATION
;
12038 case NB_EV_PREPARE
:
12041 /* TODO: implement me. */
12050 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-labeled-unicast/use-multiple-paths/ibgp/cluster-length-list
12052 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_use_multiple_paths_ibgp_cluster_length_list_modify(
12053 struct nb_cb_modify_args
*args
)
12055 switch (args
->event
) {
12056 case NB_EV_VALIDATE
:
12057 case NB_EV_PREPARE
:
12060 /* TODO: implement me. */
12067 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_use_multiple_paths_ibgp_cluster_length_list_destroy(
12068 struct nb_cb_destroy_args
*args
)
12070 switch (args
->event
) {
12071 case NB_EV_VALIDATE
:
12072 case NB_EV_PREPARE
:
12075 /* TODO: implement me. */
12084 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-labeled-unicast/route-flap-dampening/enable
12086 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_route_flap_dampening_enable_modify(
12087 struct nb_cb_modify_args
*args
)
12089 switch (args
->event
) {
12090 case NB_EV_VALIDATE
:
12091 return bgp_global_afi_safi_route_flap_validation(args
);
12092 case NB_EV_PREPARE
:
12103 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-labeled-unicast/route-flap-dampening/reach-decay
12105 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_route_flap_dampening_reach_decay_modify(
12106 struct nb_cb_modify_args
*args
)
12108 switch (args
->event
) {
12109 case NB_EV_VALIDATE
:
12110 case NB_EV_PREPARE
:
12113 /* TODO: implement me. */
12120 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_route_flap_dampening_reach_decay_destroy(
12121 struct nb_cb_destroy_args
*args
)
12123 switch (args
->event
) {
12124 case NB_EV_VALIDATE
:
12125 case NB_EV_PREPARE
:
12128 /* TODO: implement me. */
12137 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-labeled-unicast/route-flap-dampening/reuse-above
12139 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_route_flap_dampening_reuse_above_modify(
12140 struct nb_cb_modify_args
*args
)
12142 switch (args
->event
) {
12143 case NB_EV_VALIDATE
:
12144 case NB_EV_PREPARE
:
12147 /* TODO: implement me. */
12154 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_route_flap_dampening_reuse_above_destroy(
12155 struct nb_cb_destroy_args
*args
)
12157 switch (args
->event
) {
12158 case NB_EV_VALIDATE
:
12159 case NB_EV_PREPARE
:
12162 /* TODO: implement me. */
12171 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-labeled-unicast/route-flap-dampening/suppress-above
12173 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_route_flap_dampening_suppress_above_modify(
12174 struct nb_cb_modify_args
*args
)
12176 switch (args
->event
) {
12177 case NB_EV_VALIDATE
:
12178 case NB_EV_PREPARE
:
12181 /* TODO: implement me. */
12188 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_route_flap_dampening_suppress_above_destroy(
12189 struct nb_cb_destroy_args
*args
)
12191 switch (args
->event
) {
12192 case NB_EV_VALIDATE
:
12193 case NB_EV_PREPARE
:
12196 /* TODO: implement me. */
12205 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-labeled-unicast/route-flap-dampening/unreach-decay
12207 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_route_flap_dampening_unreach_decay_modify(
12208 struct nb_cb_modify_args
*args
)
12210 switch (args
->event
) {
12211 case NB_EV_VALIDATE
:
12212 case NB_EV_PREPARE
:
12215 /* TODO: implement me. */
12222 int bgp_global_afi_safis_afi_safi_ipv6_labeled_unicast_route_flap_dampening_unreach_decay_destroy(
12223 struct nb_cb_destroy_args
*args
)
12225 switch (args
->event
) {
12226 case NB_EV_VALIDATE
:
12227 case NB_EV_PREPARE
:
12230 /* TODO: implement me. */
12239 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/network-config
12241 int bgp_global_afi_safis_afi_safi_ipv4_multicast_network_config_create(
12242 struct nb_cb_create_args
*args
)
12244 /* Handled in network_config_apply_finish callback */
12249 int bgp_global_afi_safis_afi_safi_ipv4_multicast_network_config_destroy(
12250 struct nb_cb_destroy_args
*args
)
12252 switch (args
->event
) {
12253 case NB_EV_VALIDATE
:
12254 case NB_EV_PREPARE
:
12258 return bgp_global_afi_safis_afi_safi_network_config_destroy(
12268 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/network-config/backdoor
12270 int bgp_global_afi_safis_afi_safi_ipv4_multicast_network_config_backdoor_modify(
12271 struct nb_cb_modify_args
*args
)
12273 switch (args
->event
) {
12274 case NB_EV_VALIDATE
:
12275 case NB_EV_PREPARE
:
12278 /* TODO: implement me. */
12287 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/network-config/label-index
12289 int bgp_global_afi_safis_afi_safi_ipv4_multicast_network_config_label_index_modify(
12290 struct nb_cb_modify_args
*args
)
12292 switch (args
->event
) {
12293 case NB_EV_VALIDATE
:
12294 case NB_EV_PREPARE
:
12297 /* TODO: implement me. */
12304 int bgp_global_afi_safis_afi_safi_ipv4_multicast_network_config_label_index_destroy(
12305 struct nb_cb_destroy_args
*args
)
12307 switch (args
->event
) {
12308 case NB_EV_VALIDATE
:
12309 case NB_EV_PREPARE
:
12312 /* TODO: implement me. */
12321 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/network-config/rmap-policy-export
12323 int bgp_global_afi_safis_afi_safi_ipv4_multicast_network_config_rmap_policy_export_modify(
12324 struct nb_cb_modify_args
*args
)
12326 switch (args
->event
) {
12327 case NB_EV_VALIDATE
:
12328 case NB_EV_PREPARE
:
12331 /* TODO: implement me. */
12338 int bgp_global_afi_safis_afi_safi_ipv4_multicast_network_config_rmap_policy_export_destroy(
12339 struct nb_cb_destroy_args
*args
)
12341 switch (args
->event
) {
12342 case NB_EV_VALIDATE
:
12343 case NB_EV_PREPARE
:
12346 /* TODO: implement me. */
12355 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/aggregate-route
12357 int bgp_global_afi_safis_afi_safi_ipv4_multicast_aggregate_route_create(
12358 struct nb_cb_create_args
*args
)
12360 switch (args
->event
) {
12361 case NB_EV_VALIDATE
:
12362 case NB_EV_PREPARE
:
12365 /* TODO: implement me. */
12372 int bgp_global_afi_safis_afi_safi_ipv4_multicast_aggregate_route_destroy(
12373 struct nb_cb_destroy_args
*args
)
12375 switch (args
->event
) {
12376 case NB_EV_VALIDATE
:
12377 case NB_EV_PREPARE
:
12380 /* TODO: implement me. */
12389 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/aggregate-route/as-set
12391 int bgp_global_afi_safis_afi_safi_ipv4_multicast_aggregate_route_as_set_modify(
12392 struct nb_cb_modify_args
*args
)
12394 switch (args
->event
) {
12395 case NB_EV_VALIDATE
:
12396 case NB_EV_PREPARE
:
12399 /* TODO: implement me. */
12408 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/aggregate-route/summary-only
12410 int bgp_global_afi_safis_afi_safi_ipv4_multicast_aggregate_route_summary_only_modify(
12411 struct nb_cb_modify_args
*args
)
12413 switch (args
->event
) {
12414 case NB_EV_VALIDATE
:
12415 case NB_EV_PREPARE
:
12418 /* TODO: implement me. */
12427 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/aggregate-route/rmap-policy-export
12429 int bgp_global_afi_safis_afi_safi_ipv4_multicast_aggregate_route_rmap_policy_export_modify(
12430 struct nb_cb_modify_args
*args
)
12432 switch (args
->event
) {
12433 case NB_EV_VALIDATE
:
12434 case NB_EV_PREPARE
:
12437 /* TODO: implement me. */
12444 int bgp_global_afi_safis_afi_safi_ipv4_multicast_aggregate_route_rmap_policy_export_destroy(
12445 struct nb_cb_destroy_args
*args
)
12447 switch (args
->event
) {
12448 case NB_EV_VALIDATE
:
12449 case NB_EV_PREPARE
:
12452 /* TODO: implement me. */
12461 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/aggregate-route/origin
12463 int bgp_global_afi_safis_afi_safi_ipv4_multicast_aggregate_route_origin_modify(
12464 struct nb_cb_modify_args
*args
)
12466 switch (args
->event
) {
12467 case NB_EV_VALIDATE
:
12468 case NB_EV_PREPARE
:
12471 /* TODO: implement me. */
12480 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/aggregate-route/match-med
12482 int bgp_global_afi_safis_afi_safi_ipv4_multicast_aggregate_route_match_med_modify(
12483 struct nb_cb_modify_args
*args
)
12485 switch (args
->event
) {
12486 case NB_EV_VALIDATE
:
12487 case NB_EV_PREPARE
:
12490 /* TODO: implement me. */
12499 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/aggregate-route/suppress-map
12501 int bgp_global_afi_safis_afi_safi_ipv4_multicast_aggregate_route_suppress_map_modify(
12502 struct nb_cb_modify_args
*args
)
12504 switch (args
->event
) {
12505 case NB_EV_VALIDATE
:
12506 case NB_EV_PREPARE
:
12509 /* TODO: implement me. */
12516 int bgp_global_afi_safis_afi_safi_ipv4_multicast_aggregate_route_suppress_map_destroy(
12517 struct nb_cb_destroy_args
*args
)
12519 switch (args
->event
) {
12520 case NB_EV_VALIDATE
:
12521 case NB_EV_PREPARE
:
12524 /* TODO: implement me. */
12533 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/admin-distance-route
12535 int bgp_global_afi_safis_afi_safi_ipv4_multicast_admin_distance_route_create(
12536 struct nb_cb_create_args
*args
)
12538 switch (args
->event
) {
12539 case NB_EV_VALIDATE
:
12540 case NB_EV_PREPARE
:
12543 /* TODO: implement me. */
12550 int bgp_global_afi_safis_afi_safi_ipv4_multicast_admin_distance_route_destroy(
12551 struct nb_cb_destroy_args
*args
)
12553 switch (args
->event
) {
12554 case NB_EV_VALIDATE
:
12555 case NB_EV_PREPARE
:
12559 return bgp_global_afi_safi_admin_distance_route_destroy(args
);
12567 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/admin-distance-route/distance
12569 int bgp_global_afi_safis_afi_safi_ipv4_multicast_admin_distance_route_distance_modify(
12570 struct nb_cb_modify_args
*args
)
12572 switch (args
->event
) {
12573 case NB_EV_VALIDATE
:
12574 case NB_EV_PREPARE
:
12577 /* TODO: implement me. */
12586 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/admin-distance-route/access-list-policy-export
12588 int bgp_global_afi_safis_afi_safi_ipv4_multicast_admin_distance_route_access_list_policy_export_modify(
12589 struct nb_cb_modify_args
*args
)
12591 switch (args
->event
) {
12592 case NB_EV_VALIDATE
:
12593 case NB_EV_PREPARE
:
12596 /* TODO: implement me. */
12603 int bgp_global_afi_safis_afi_safi_ipv4_multicast_admin_distance_route_access_list_policy_export_destroy(
12604 struct nb_cb_destroy_args
*args
)
12606 switch (args
->event
) {
12607 case NB_EV_VALIDATE
:
12608 case NB_EV_PREPARE
:
12611 /* TODO: implement me. */
12620 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/admin-distance-route/distance
12622 int bgp_global_afi_safis_afi_safi_ipv6_multicast_admin_distance_route_distance_modify(
12623 struct nb_cb_modify_args
*args
)
12625 switch (args
->event
) {
12626 case NB_EV_VALIDATE
:
12627 case NB_EV_PREPARE
:
12630 /* TODO: implement me. */
12639 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/admin-distance-route/access-list-policy-export
12641 int bgp_global_afi_safis_afi_safi_ipv6_multicast_admin_distance_route_access_list_policy_export_modify(
12642 struct nb_cb_modify_args
*args
)
12644 switch (args
->event
) {
12645 case NB_EV_VALIDATE
:
12646 case NB_EV_PREPARE
:
12649 /* TODO: implement me. */
12656 int bgp_global_afi_safis_afi_safi_ipv6_multicast_admin_distance_route_access_list_policy_export_destroy(
12657 struct nb_cb_destroy_args
*args
)
12659 switch (args
->event
) {
12660 case NB_EV_VALIDATE
:
12661 case NB_EV_PREPARE
:
12664 /* TODO: implement me. */
12673 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/route-flap-dampening/enable
12675 int bgp_global_afi_safis_afi_safi_ipv6_multicast_route_flap_dampening_enable_modify(
12676 struct nb_cb_modify_args
*args
)
12678 switch (args
->event
) {
12679 case NB_EV_VALIDATE
:
12680 return bgp_global_afi_safi_route_flap_validation(args
);
12681 case NB_EV_PREPARE
:
12692 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/route-flap-dampening/reach-decay
12694 int bgp_global_afi_safis_afi_safi_ipv6_multicast_route_flap_dampening_reach_decay_modify(
12695 struct nb_cb_modify_args
*args
)
12697 switch (args
->event
) {
12698 case NB_EV_VALIDATE
:
12699 case NB_EV_PREPARE
:
12702 /* TODO: implement me. */
12709 int bgp_global_afi_safis_afi_safi_ipv6_multicast_route_flap_dampening_reach_decay_destroy(
12710 struct nb_cb_destroy_args
*args
)
12712 switch (args
->event
) {
12713 case NB_EV_VALIDATE
:
12714 case NB_EV_PREPARE
:
12717 /* TODO: implement me. */
12726 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/route-flap-dampening/reuse-above
12728 int bgp_global_afi_safis_afi_safi_ipv6_multicast_route_flap_dampening_reuse_above_modify(
12729 struct nb_cb_modify_args
*args
)
12731 switch (args
->event
) {
12732 case NB_EV_VALIDATE
:
12733 case NB_EV_PREPARE
:
12736 /* TODO: implement me. */
12743 int bgp_global_afi_safis_afi_safi_ipv6_multicast_route_flap_dampening_reuse_above_destroy(
12744 struct nb_cb_destroy_args
*args
)
12746 switch (args
->event
) {
12747 case NB_EV_VALIDATE
:
12748 case NB_EV_PREPARE
:
12751 /* TODO: implement me. */
12760 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/route-flap-dampening/suppress-above
12762 int bgp_global_afi_safis_afi_safi_ipv6_multicast_route_flap_dampening_suppress_above_modify(
12763 struct nb_cb_modify_args
*args
)
12765 switch (args
->event
) {
12766 case NB_EV_VALIDATE
:
12767 case NB_EV_PREPARE
:
12770 /* TODO: implement me. */
12777 int bgp_global_afi_safis_afi_safi_ipv6_multicast_route_flap_dampening_suppress_above_destroy(
12778 struct nb_cb_destroy_args
*args
)
12780 switch (args
->event
) {
12781 case NB_EV_VALIDATE
:
12782 case NB_EV_PREPARE
:
12785 /* TODO: implement me. */
12794 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/route-flap-dampening/unreach-decay
12796 int bgp_global_afi_safis_afi_safi_ipv6_multicast_route_flap_dampening_unreach_decay_modify(
12797 struct nb_cb_modify_args
*args
)
12799 switch (args
->event
) {
12800 case NB_EV_VALIDATE
:
12801 case NB_EV_PREPARE
:
12804 /* TODO: implement me. */
12811 int bgp_global_afi_safis_afi_safi_ipv6_multicast_route_flap_dampening_unreach_decay_destroy(
12812 struct nb_cb_destroy_args
*args
)
12814 switch (args
->event
) {
12815 case NB_EV_VALIDATE
:
12816 case NB_EV_PREPARE
:
12819 /* TODO: implement me. */
12828 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/admin-distance
12830 void bgp_global_afi_safis_afi_safi_ipv4_multicast_admin_distance_apply_finish(
12831 struct nb_cb_apply_finish_args
*args
)
12833 bgp_global_afi_safis_admin_distance_modify(args
);
12838 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/admin-distance/external
12840 int bgp_global_afi_safis_afi_safi_ipv4_multicast_admin_distance_external_modify(
12841 struct nb_cb_modify_args
*args
)
12843 /* Handled in admin_distance_apply_finish callback */
12850 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/admin-distance/internal
12852 int bgp_global_afi_safis_afi_safi_ipv4_multicast_admin_distance_internal_modify(
12853 struct nb_cb_modify_args
*args
)
12855 /* Handled in admin_distance_apply_finish callback */
12862 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/admin-distance/local
12864 int bgp_global_afi_safis_afi_safi_ipv4_multicast_admin_distance_local_modify(
12865 struct nb_cb_modify_args
*args
)
12867 /* Handled in admin_distance_apply_finish callback */
12874 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/route-flap-dampening/enable
12876 int bgp_global_afi_safis_afi_safi_ipv4_multicast_route_flap_dampening_enable_modify(
12877 struct nb_cb_modify_args
*args
)
12879 switch (args
->event
) {
12880 case NB_EV_VALIDATE
:
12881 return bgp_global_afi_safi_route_flap_validation(args
);
12882 case NB_EV_PREPARE
:
12893 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/route-flap-dampening/reach-decay
12895 int bgp_global_afi_safis_afi_safi_ipv4_multicast_route_flap_dampening_reach_decay_modify(
12896 struct nb_cb_modify_args
*args
)
12898 switch (args
->event
) {
12899 case NB_EV_VALIDATE
:
12900 case NB_EV_PREPARE
:
12903 /* TODO: implement me. */
12910 int bgp_global_afi_safis_afi_safi_ipv4_multicast_route_flap_dampening_reach_decay_destroy(
12911 struct nb_cb_destroy_args
*args
)
12913 switch (args
->event
) {
12914 case NB_EV_VALIDATE
:
12915 case NB_EV_PREPARE
:
12918 /* TODO: implement me. */
12927 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/route-flap-dampening/reuse-above
12929 int bgp_global_afi_safis_afi_safi_ipv4_multicast_route_flap_dampening_reuse_above_modify(
12930 struct nb_cb_modify_args
*args
)
12932 switch (args
->event
) {
12933 case NB_EV_VALIDATE
:
12934 case NB_EV_PREPARE
:
12937 /* TODO: implement me. */
12944 int bgp_global_afi_safis_afi_safi_ipv4_multicast_route_flap_dampening_reuse_above_destroy(
12945 struct nb_cb_destroy_args
*args
)
12947 switch (args
->event
) {
12948 case NB_EV_VALIDATE
:
12949 case NB_EV_PREPARE
:
12952 /* TODO: implement me. */
12961 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/route-flap-dampening/suppress-above
12963 int bgp_global_afi_safis_afi_safi_ipv4_multicast_route_flap_dampening_suppress_above_modify(
12964 struct nb_cb_modify_args
*args
)
12966 switch (args
->event
) {
12967 case NB_EV_VALIDATE
:
12968 case NB_EV_PREPARE
:
12971 /* TODO: implement me. */
12978 int bgp_global_afi_safis_afi_safi_ipv4_multicast_route_flap_dampening_suppress_above_destroy(
12979 struct nb_cb_destroy_args
*args
)
12981 switch (args
->event
) {
12982 case NB_EV_VALIDATE
:
12983 case NB_EV_PREPARE
:
12986 /* TODO: implement me. */
12995 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/route-flap-dampening/unreach-decay
12997 int bgp_global_afi_safis_afi_safi_ipv4_multicast_route_flap_dampening_unreach_decay_modify(
12998 struct nb_cb_modify_args
*args
)
13000 switch (args
->event
) {
13001 case NB_EV_VALIDATE
:
13002 case NB_EV_PREPARE
:
13005 /* TODO: implement me. */
13012 int bgp_global_afi_safis_afi_safi_ipv4_multicast_route_flap_dampening_unreach_decay_destroy(
13013 struct nb_cb_destroy_args
*args
)
13015 switch (args
->event
) {
13016 case NB_EV_VALIDATE
:
13017 case NB_EV_PREPARE
:
13020 /* TODO: implement me. */
13029 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/filter-config/rmap-export
13031 int bgp_global_afi_safis_afi_safi_ipv4_multicast_filter_config_rmap_export_modify(
13032 struct nb_cb_modify_args
*args
)
13034 switch (args
->event
) {
13035 case NB_EV_VALIDATE
:
13036 case NB_EV_PREPARE
:
13039 /* TODO: implement me. */
13046 int bgp_global_afi_safis_afi_safi_ipv4_multicast_filter_config_rmap_export_destroy(
13047 struct nb_cb_destroy_args
*args
)
13049 switch (args
->event
) {
13050 case NB_EV_VALIDATE
:
13051 case NB_EV_PREPARE
:
13054 /* TODO: implement me. */
13063 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/network-config
13065 int bgp_global_afi_safis_afi_safi_ipv6_multicast_network_config_create(
13066 struct nb_cb_create_args
*args
)
13068 /* Handled in network_config_apply_finish callback */
13073 int bgp_global_afi_safis_afi_safi_ipv6_multicast_network_config_destroy(
13074 struct nb_cb_destroy_args
*args
)
13076 switch (args
->event
) {
13077 case NB_EV_VALIDATE
:
13078 case NB_EV_PREPARE
:
13082 return bgp_global_afi_safis_afi_safi_network_config_destroy(
13093 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/network-config/backdoor
13095 int bgp_global_afi_safis_afi_safi_ipv6_multicast_network_config_backdoor_modify(
13096 struct nb_cb_modify_args
*args
)
13098 switch (args
->event
) {
13099 case NB_EV_VALIDATE
:
13100 case NB_EV_PREPARE
:
13103 /* TODO: implement me. */
13112 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/network-config/label-index
13114 int bgp_global_afi_safis_afi_safi_ipv6_multicast_network_config_label_index_modify(
13115 struct nb_cb_modify_args
*args
)
13117 switch (args
->event
) {
13118 case NB_EV_VALIDATE
:
13119 case NB_EV_PREPARE
:
13122 /* TODO: implement me. */
13129 int bgp_global_afi_safis_afi_safi_ipv6_multicast_network_config_label_index_destroy(
13130 struct nb_cb_destroy_args
*args
)
13132 switch (args
->event
) {
13133 case NB_EV_VALIDATE
:
13134 case NB_EV_PREPARE
:
13137 /* TODO: implement me. */
13146 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/network-config/rmap-policy-export
13148 int bgp_global_afi_safis_afi_safi_ipv6_multicast_network_config_rmap_policy_export_modify(
13149 struct nb_cb_modify_args
*args
)
13151 switch (args
->event
) {
13152 case NB_EV_VALIDATE
:
13153 case NB_EV_PREPARE
:
13156 /* TODO: implement me. */
13163 int bgp_global_afi_safis_afi_safi_ipv6_multicast_network_config_rmap_policy_export_destroy(
13164 struct nb_cb_destroy_args
*args
)
13166 switch (args
->event
) {
13167 case NB_EV_VALIDATE
:
13168 case NB_EV_PREPARE
:
13171 /* TODO: implement me. */
13180 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/aggregate-route
13182 int bgp_global_afi_safis_afi_safi_ipv6_multicast_aggregate_route_create(
13183 struct nb_cb_create_args
*args
)
13185 switch (args
->event
) {
13186 case NB_EV_VALIDATE
:
13187 case NB_EV_PREPARE
:
13190 /* TODO: implement me. */
13197 int bgp_global_afi_safis_afi_safi_ipv6_multicast_aggregate_route_destroy(
13198 struct nb_cb_destroy_args
*args
)
13200 switch (args
->event
) {
13201 case NB_EV_VALIDATE
:
13202 case NB_EV_PREPARE
:
13205 /* TODO: implement me. */
13214 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/aggregate-route/as-set
13216 int bgp_global_afi_safis_afi_safi_ipv6_multicast_aggregate_route_as_set_modify(
13217 struct nb_cb_modify_args
*args
)
13219 switch (args
->event
) {
13220 case NB_EV_VALIDATE
:
13221 case NB_EV_PREPARE
:
13224 /* TODO: implement me. */
13233 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/aggregate-route/summary-only
13235 int bgp_global_afi_safis_afi_safi_ipv6_multicast_aggregate_route_summary_only_modify(
13236 struct nb_cb_modify_args
*args
)
13238 switch (args
->event
) {
13239 case NB_EV_VALIDATE
:
13240 case NB_EV_PREPARE
:
13243 /* TODO: implement me. */
13252 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/aggregate-route/rmap-policy-export
13254 int bgp_global_afi_safis_afi_safi_ipv6_multicast_aggregate_route_rmap_policy_export_modify(
13255 struct nb_cb_modify_args
*args
)
13257 switch (args
->event
) {
13258 case NB_EV_VALIDATE
:
13259 case NB_EV_PREPARE
:
13262 /* TODO: implement me. */
13269 int bgp_global_afi_safis_afi_safi_ipv6_multicast_aggregate_route_rmap_policy_export_destroy(
13270 struct nb_cb_destroy_args
*args
)
13272 switch (args
->event
) {
13273 case NB_EV_VALIDATE
:
13274 case NB_EV_PREPARE
:
13277 /* TODO: implement me. */
13286 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/aggregate-route/origin
13288 int bgp_global_afi_safis_afi_safi_ipv6_multicast_aggregate_route_origin_modify(
13289 struct nb_cb_modify_args
*args
)
13291 switch (args
->event
) {
13292 case NB_EV_VALIDATE
:
13293 case NB_EV_PREPARE
:
13296 /* TODO: implement me. */
13305 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/aggregate-route/match-med
13307 int bgp_global_afi_safis_afi_safi_ipv6_multicast_aggregate_route_match_med_modify(
13308 struct nb_cb_modify_args
*args
)
13310 switch (args
->event
) {
13311 case NB_EV_VALIDATE
:
13312 case NB_EV_PREPARE
:
13315 /* TODO: implement me. */
13324 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/aggregate-route/suppress-map
13326 int bgp_global_afi_safis_afi_safi_ipv6_multicast_aggregate_route_suppress_map_modify(
13327 struct nb_cb_modify_args
*args
)
13329 switch (args
->event
) {
13330 case NB_EV_VALIDATE
:
13331 case NB_EV_PREPARE
:
13334 /* TODO: implement me. */
13341 int bgp_global_afi_safis_afi_safi_ipv6_multicast_aggregate_route_suppress_map_destroy(
13342 struct nb_cb_destroy_args
*args
)
13344 switch (args
->event
) {
13345 case NB_EV_VALIDATE
:
13346 case NB_EV_PREPARE
:
13349 /* TODO: implement me. */
13358 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/admin-distance-route
13360 int bgp_global_afi_safis_afi_safi_ipv6_multicast_admin_distance_route_create(
13361 struct nb_cb_create_args
*args
)
13363 switch (args
->event
) {
13364 case NB_EV_VALIDATE
:
13365 case NB_EV_PREPARE
:
13368 /* TODO: implement me. */
13375 int bgp_global_afi_safis_afi_safi_ipv6_multicast_admin_distance_route_destroy(
13376 struct nb_cb_destroy_args
*args
)
13378 switch (args
->event
) {
13379 case NB_EV_VALIDATE
:
13380 case NB_EV_PREPARE
:
13384 return bgp_global_afi_safi_admin_distance_route_destroy(args
);
13392 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-multicast/admin-distance
13394 void bgp_global_afi_safis_afi_safi_ipv6_multicast_admin_distance_apply_finish(
13395 struct nb_cb_apply_finish_args
*args
)
13397 bgp_global_afi_safis_admin_distance_modify(args
);
13402 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/admin-distance/external
13404 int bgp_global_afi_safis_afi_safi_ipv6_multicast_admin_distance_external_modify(
13405 struct nb_cb_modify_args
*args
)
13407 /* Handled in admin_distance_apply_finish callback */
13414 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/admin-distance/internal
13416 int bgp_global_afi_safis_afi_safi_ipv6_multicast_admin_distance_internal_modify(
13417 struct nb_cb_modify_args
*args
)
13419 /* Handled in admin_distance_apply_finish callback */
13426 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv6-multicast/admin-distance/local
13428 int bgp_global_afi_safis_afi_safi_ipv6_multicast_admin_distance_local_modify(
13429 struct nb_cb_modify_args
*args
)
13431 /* Handled in admin_distance_apply_finish callback */
13438 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/ipv4-flowspec/flow-spec-config/interface
13440 int bgp_global_afi_safis_afi_safi_ipv4_flowspec_flow_spec_config_interface_modify(
13441 struct nb_cb_modify_args
*args
)
13443 switch (args
->event
) {
13444 case NB_EV_VALIDATE
:
13445 case NB_EV_PREPARE
:
13448 /* TODO: implement me. */
13455 int bgp_global_afi_safis_afi_safi_ipv4_flowspec_flow_spec_config_interface_destroy(
13456 struct nb_cb_destroy_args
*args
)
13458 switch (args
->event
) {
13459 case NB_EV_VALIDATE
:
13460 case NB_EV_PREPARE
:
13463 /* TODO: implement me. */
13472 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/l3vpn-ipv4-unicast/network-config
13474 int bgp_global_afi_safis_afi_safi_l3vpn_ipv4_unicast_network_config_create(
13475 struct nb_cb_create_args
*args
)
13477 switch (args
->event
) {
13478 case NB_EV_VALIDATE
:
13479 case NB_EV_PREPARE
:
13482 /* TODO: implement me. */
13489 int bgp_global_afi_safis_afi_safi_l3vpn_ipv4_unicast_network_config_destroy(
13490 struct nb_cb_destroy_args
*args
)
13492 switch (args
->event
) {
13493 case NB_EV_VALIDATE
:
13494 case NB_EV_PREPARE
:
13497 /* TODO: implement me. */
13506 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/l3vpn-ipv4-unicast/network-config/prefix-list
13508 int bgp_global_afi_safis_afi_safi_l3vpn_ipv4_unicast_network_config_prefix_list_create(
13509 struct nb_cb_create_args
*args
)
13511 switch (args
->event
) {
13512 case NB_EV_VALIDATE
:
13513 case NB_EV_PREPARE
:
13516 /* TODO: implement me. */
13523 int bgp_global_afi_safis_afi_safi_l3vpn_ipv4_unicast_network_config_prefix_list_destroy(
13524 struct nb_cb_destroy_args
*args
)
13526 switch (args
->event
) {
13527 case NB_EV_VALIDATE
:
13528 case NB_EV_PREPARE
:
13531 /* TODO: implement me. */
13540 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/l3vpn-ipv4-unicast/network-config/prefix-list/label-index
13542 int bgp_global_afi_safis_afi_safi_l3vpn_ipv4_unicast_network_config_prefix_list_label_index_modify(
13543 struct nb_cb_modify_args
*args
)
13545 switch (args
->event
) {
13546 case NB_EV_VALIDATE
:
13547 case NB_EV_PREPARE
:
13550 /* TODO: implement me. */
13559 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/l3vpn-ipv4-unicast/network-config/prefix-list/rmap-policy-export
13561 int bgp_global_afi_safis_afi_safi_l3vpn_ipv4_unicast_network_config_prefix_list_rmap_policy_export_modify(
13562 struct nb_cb_modify_args
*args
)
13564 switch (args
->event
) {
13565 case NB_EV_VALIDATE
:
13566 case NB_EV_PREPARE
:
13569 /* TODO: implement me. */
13576 int bgp_global_afi_safis_afi_safi_l3vpn_ipv4_unicast_network_config_prefix_list_rmap_policy_export_destroy(
13577 struct nb_cb_destroy_args
*args
)
13579 switch (args
->event
) {
13580 case NB_EV_VALIDATE
:
13581 case NB_EV_PREPARE
:
13584 /* TODO: implement me. */
13593 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/l3vpn-ipv6-unicast/network-config
13595 int bgp_global_afi_safis_afi_safi_l3vpn_ipv6_unicast_network_config_create(
13596 struct nb_cb_create_args
*args
)
13598 switch (args
->event
) {
13599 case NB_EV_VALIDATE
:
13600 case NB_EV_PREPARE
:
13603 /* TODO: implement me. */
13610 int bgp_global_afi_safis_afi_safi_l3vpn_ipv6_unicast_network_config_destroy(
13611 struct nb_cb_destroy_args
*args
)
13613 switch (args
->event
) {
13614 case NB_EV_VALIDATE
:
13615 case NB_EV_PREPARE
:
13618 /* TODO: implement me. */
13627 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/l3vpn-ipv6-unicast/network-config/prefix-list
13629 int bgp_global_afi_safis_afi_safi_l3vpn_ipv6_unicast_network_config_prefix_list_create(
13630 struct nb_cb_create_args
*args
)
13632 switch (args
->event
) {
13633 case NB_EV_VALIDATE
:
13634 case NB_EV_PREPARE
:
13637 /* TODO: implement me. */
13644 int bgp_global_afi_safis_afi_safi_l3vpn_ipv6_unicast_network_config_prefix_list_destroy(
13645 struct nb_cb_destroy_args
*args
)
13647 switch (args
->event
) {
13648 case NB_EV_VALIDATE
:
13649 case NB_EV_PREPARE
:
13652 /* TODO: implement me. */
13661 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/l3vpn-ipv6-unicast/network-config/prefix-list/label-index
13663 int bgp_global_afi_safis_afi_safi_l3vpn_ipv6_unicast_network_config_prefix_list_label_index_modify(
13664 struct nb_cb_modify_args
*args
)
13666 switch (args
->event
) {
13667 case NB_EV_VALIDATE
:
13668 case NB_EV_PREPARE
:
13671 /* TODO: implement me. */
13680 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/afi-safis/afi-safi/l3vpn-ipv6-unicast/network-config/prefix-list/rmap-policy-export
13682 int bgp_global_afi_safis_afi_safi_l3vpn_ipv6_unicast_network_config_prefix_list_rmap_policy_export_modify(
13683 struct nb_cb_modify_args
*args
)
13685 switch (args
->event
) {
13686 case NB_EV_VALIDATE
:
13687 case NB_EV_PREPARE
:
13690 /* TODO: implement me. */
13697 int bgp_global_afi_safis_afi_safi_l3vpn_ipv6_unicast_network_config_prefix_list_rmap_policy_export_destroy(
13698 struct nb_cb_destroy_args
*args
)
13700 switch (args
->event
) {
13701 case NB_EV_VALIDATE
:
13702 case NB_EV_PREPARE
:
13705 /* TODO: implement me. */
13714 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv4-unicast/common-config/pre-policy
13716 int bgp_global_bmp_config_target_list_afi_safis_afi_safi_ipv4_unicast_common_config_pre_policy_modify(
13717 struct nb_cb_modify_args
*args
)
13719 switch (args
->event
) {
13720 case NB_EV_VALIDATE
:
13721 case NB_EV_PREPARE
:
13724 /* TODO: implement me. */
13733 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv4-unicast/common-config/post-policy
13735 int bgp_global_bmp_config_target_list_afi_safis_afi_safi_ipv4_unicast_common_config_post_policy_modify(
13736 struct nb_cb_modify_args
*args
)
13738 switch (args
->event
) {
13739 case NB_EV_VALIDATE
:
13740 case NB_EV_PREPARE
:
13743 /* TODO: implement me. */
13752 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv4-multicast/common-config/pre-policy
13754 int bgp_global_bmp_config_target_list_afi_safis_afi_safi_ipv4_multicast_common_config_pre_policy_modify(
13755 struct nb_cb_modify_args
*args
)
13757 switch (args
->event
) {
13758 case NB_EV_VALIDATE
:
13759 case NB_EV_PREPARE
:
13762 /* TODO: implement me. */
13771 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv4-multicast/common-config/post-policy
13773 int bgp_global_bmp_config_target_list_afi_safis_afi_safi_ipv4_multicast_common_config_post_policy_modify(
13774 struct nb_cb_modify_args
*args
)
13776 switch (args
->event
) {
13777 case NB_EV_VALIDATE
:
13778 case NB_EV_PREPARE
:
13781 /* TODO: implement me. */
13790 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv6-unicast/common-config/pre-policy
13792 int bgp_global_bmp_config_target_list_afi_safis_afi_safi_ipv6_unicast_common_config_pre_policy_modify(
13793 struct nb_cb_modify_args
*args
)
13795 switch (args
->event
) {
13796 case NB_EV_VALIDATE
:
13797 case NB_EV_PREPARE
:
13800 /* TODO: implement me. */
13809 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv6-unicast/common-config/post-policy
13811 int bgp_global_bmp_config_target_list_afi_safis_afi_safi_ipv6_unicast_common_config_post_policy_modify(
13812 struct nb_cb_modify_args
*args
)
13814 switch (args
->event
) {
13815 case NB_EV_VALIDATE
:
13816 case NB_EV_PREPARE
:
13819 /* TODO: implement me. */
13828 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv6-multicast/common-config/pre-policy
13830 int bgp_global_bmp_config_target_list_afi_safis_afi_safi_ipv6_multicast_common_config_pre_policy_modify(
13831 struct nb_cb_modify_args
*args
)
13833 switch (args
->event
) {
13834 case NB_EV_VALIDATE
:
13835 case NB_EV_PREPARE
:
13838 /* TODO: implement me. */
13847 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/global/bmp-config/target-list/afi-safis/afi-safi/ipv6-multicast/common-config/post-policy
13849 int bgp_global_bmp_config_target_list_afi_safis_afi_safi_ipv6_multicast_common_config_post_policy_modify(
13850 struct nb_cb_modify_args
*args
)
13852 switch (args
->event
) {
13853 case NB_EV_VALIDATE
:
13854 case NB_EV_PREPARE
:
13857 /* TODO: implement me. */
13864 static int bgp_neighbor_afi_safi_flag_modify(struct nb_cb_modify_args
*args
,
13865 uint32_t flags
, bool set
)
13868 const char *peer_str
;
13870 const struct lyd_node
*nbr_dnode
;
13871 const struct lyd_node
*nbr_af_dnode
;
13872 const char *af_name
;
13876 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
13877 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
13878 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
13880 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "neighbor");
13881 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
13882 peer_str
= yang_dnode_get_string(nbr_dnode
, "./remote-address");
13883 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
13886 if (peer_af_flag_modify_nb(peer
, afi
, safi
, flags
, set
, args
->errmsg
,
13889 return NB_ERR_INCONSISTENCY
;
13896 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/add-paths/path-type
13898 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_add_paths_path_type_modify(
13899 struct nb_cb_modify_args
*args
)
13901 switch (args
->event
) {
13902 case NB_EV_VALIDATE
:
13903 case NB_EV_PREPARE
:
13906 /* TODO: implement me. */
13915 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/as-path-options/allow-own-as
13917 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_as_path_options_allow_own_as_modify(
13918 struct nb_cb_modify_args
*args
)
13920 switch (args
->event
) {
13921 case NB_EV_VALIDATE
:
13922 case NB_EV_PREPARE
:
13925 /* TODO: implement me. */
13932 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_as_path_options_allow_own_as_destroy(
13933 struct nb_cb_destroy_args
*args
)
13935 switch (args
->event
) {
13936 case NB_EV_VALIDATE
:
13937 case NB_EV_PREPARE
:
13940 /* TODO: implement me. */
13949 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/as-path-options/allow-own-origin-as
13951 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_as_path_options_allow_own_origin_as_modify(
13952 struct nb_cb_modify_args
*args
)
13954 switch (args
->event
) {
13955 case NB_EV_VALIDATE
:
13956 case NB_EV_PREPARE
:
13959 /* TODO: implement me. */
13966 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_as_path_options_allow_own_origin_as_destroy(
13967 struct nb_cb_destroy_args
*args
)
13969 switch (args
->event
) {
13970 case NB_EV_VALIDATE
:
13971 case NB_EV_PREPARE
:
13974 /* TODO: implement me. */
13983 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/as-path-options/replace-peer-as
13985 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_as_path_options_replace_peer_as_modify(
13986 struct nb_cb_modify_args
*args
)
13988 switch (args
->event
) {
13989 case NB_EV_VALIDATE
:
13990 case NB_EV_PREPARE
:
13994 return bgp_neighbor_afi_safi_flag_modify(
13995 args
, PEER_FLAG_AS_OVERRIDE
,
13996 yang_dnode_get_bool(args
->dnode
, NULL
));
14005 bgp_peer_afi_safi_default_originate_apply(struct nb_cb_apply_finish_args
*args
,
14006 struct peer
*peer
, afi_t afi
,
14009 bool originate
= false;
14011 struct route_map
*route_map
= NULL
;
14012 const char *rmap
= NULL
;
14014 originate
= yang_dnode_get_bool(args
->dnode
, "./originate");
14016 if (yang_dnode_exists(args
->dnode
, "./route-map")) {
14017 rmap
= yang_dnode_get_string(args
->dnode
, "./route-map");
14018 route_map
= route_map_lookup_by_name(rmap
);
14020 snprintf(args
->errmsg
, args
->errmsg_len
,
14021 "The route-map '%s' does not exist.", rmap
);
14026 // zlog_debug("%s: originate %u route-map %s", __func__, originate,
14029 ret
= peer_default_originate_set(peer
, afi
, safi
, rmap
,
14032 ret
= peer_default_originate_unset(peer
, afi
, safi
);
14034 return bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
);
14039 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/default-originate
14041 void bgp_neighbor_afi_safi_default_originate_apply_finish(
14042 struct nb_cb_apply_finish_args
*args
)
14045 const char *peer_str
;
14047 const struct lyd_node
*nbr_dnode
;
14048 const struct lyd_node
*nbr_af_dnode
;
14049 const char *af_name
;
14053 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
14054 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
14055 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
14057 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "neighbor");
14058 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
14059 peer_str
= yang_dnode_get_string(nbr_dnode
, "./remote-address");
14060 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
14065 bgp_peer_afi_safi_default_originate_apply(args
, peer
, afi
, safi
);
14070 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/default-originate/originate
14072 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_default_originate_originate_modify(
14073 struct nb_cb_modify_args
*args
)
14075 switch (args
->event
) {
14076 case NB_EV_VALIDATE
:
14077 case NB_EV_PREPARE
:
14080 /* TODO: implement me. */
14089 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/default-originate/route-map
14091 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_default_originate_route_map_modify(
14092 struct nb_cb_modify_args
*args
)
14094 switch (args
->event
) {
14095 case NB_EV_VALIDATE
:
14096 case NB_EV_PREPARE
:
14099 /* TODO: implement me. */
14106 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_default_originate_route_map_destroy(
14107 struct nb_cb_destroy_args
*args
)
14109 switch (args
->event
) {
14110 case NB_EV_VALIDATE
:
14111 case NB_EV_PREPARE
:
14114 /* TODO: implement me. */
14122 bgp_neighbor_afi_safi_prefix_limit_list_destroy(struct nb_cb_destroy_args
*args
)
14125 const char *peer_str
;
14127 const struct lyd_node
*nbr_dnode
;
14128 const struct lyd_node
*nbr_af_dnode
;
14129 const char *af_name
;
14134 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
14135 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
14136 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
14138 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "neighbor");
14139 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
14140 peer_str
= yang_dnode_get_string(nbr_dnode
, "./remote-address");
14141 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
14144 return NB_ERR_INCONSISTENCY
;
14146 direction
= yang_dnode_get_enum(args
->dnode
, "./direction");
14148 switch (direction
) {
14150 peer_maximum_prefix_unset(peer
, afi
, safi
);
14153 UNSET_FLAG(peer
->af_flags
[afi
][safi
], PEER_FLAG_MAX_PREFIX_OUT
);
14154 peer
->pmax_out
[afi
][safi
] = 0;
14163 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list
14165 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_create(
14166 struct nb_cb_create_args
*args
)
14168 switch (args
->event
) {
14169 case NB_EV_VALIDATE
:
14170 case NB_EV_PREPARE
:
14173 /* TODO: implement me. */
14180 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_destroy(
14181 struct nb_cb_destroy_args
*args
)
14183 switch (args
->event
) {
14184 case NB_EV_VALIDATE
:
14185 case NB_EV_PREPARE
:
14189 return bgp_neighbor_afi_safi_prefix_limit_list_destroy(args
);
14196 bgp_peer_afi_safi_maximum_prefix_set(struct nb_cb_apply_finish_args
*args
,
14197 struct peer
*peer
, afi_t afi
, safi_t safi
)
14201 uint8_t threshold
= MAXIMUM_PREFIX_THRESHOLD_DEFAULT
;
14202 uint16_t restart
= 0;
14203 bool warning
= false;
14206 max
= yang_dnode_get_uint32(args
->dnode
, "./max-prefixes");
14207 direction
= yang_dnode_get_enum(args
->dnode
, "./direction");
14208 switch (direction
) {
14210 force
= yang_dnode_get_bool(args
->dnode
, "./force-check");
14212 if (yang_dnode_exists(args
->dnode
,
14213 "./options/shutdown-threshold-pct"))
14214 threshold
= yang_dnode_get_uint8(
14216 "./options/shutdown-threshold-pct");
14217 if (yang_dnode_exists(args
->dnode
,
14218 "./options/tw-shutdown-threshold-pct"))
14219 threshold
= yang_dnode_get_uint8(
14221 "./options/tw-shutdown-threshold-pct");
14222 if (yang_dnode_exists(args
->dnode
,
14223 "./options/tr-shutdown-threshold-pct"))
14224 threshold
= yang_dnode_get_uint8(
14226 "./options/tr-shutdown-threshold-pct");
14228 if (yang_dnode_exists(args
->dnode
, "./options/warning-only"))
14229 warning
= yang_dnode_get_bool(args
->dnode
,
14230 "./options/warning-only");
14231 if (yang_dnode_exists(args
->dnode
, "./options/tw-warning-only"))
14232 warning
= yang_dnode_get_bool(
14233 args
->dnode
, "./options/tw-warning-only");
14235 if (yang_dnode_exists(args
->dnode
, "./options/restart-timer"))
14236 restart
= yang_dnode_get_uint16(
14237 args
->dnode
, "./options/restart-timer");
14238 if (yang_dnode_exists(args
->dnode
,
14239 "./options/tr-restart-timer"))
14240 restart
= yang_dnode_get_uint16(
14241 args
->dnode
, "./options/tr-restart-timer");
14243 peer_maximum_prefix_set(peer
, afi
, safi
, max
, threshold
,
14244 warning
, restart
, force
);
14248 SET_FLAG(peer
->af_flags
[afi
][safi
], PEER_FLAG_MAX_PREFIX_OUT
);
14249 peer
->pmax_out
[afi
][safi
] = max
;
14255 void bgp_neighbors_neighbor_afi_safi_prefix_limit_apply_finish(
14256 struct nb_cb_apply_finish_args
*args
)
14259 const char *peer_str
;
14261 const struct lyd_node
*nbr_dnode
;
14262 const struct lyd_node
*nbr_af_dnode
;
14263 const char *af_name
;
14267 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
14268 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
14269 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
14271 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "neighbor");
14272 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
14273 peer_str
= yang_dnode_get_string(nbr_dnode
, "./remote-address");
14274 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
14279 bgp_peer_afi_safi_maximum_prefix_set(args
, peer
, afi
, safi
);
14284 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/max-prefixes
14286 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_max_prefixes_modify(
14287 struct nb_cb_modify_args
*args
)
14289 switch (args
->event
) {
14290 case NB_EV_VALIDATE
:
14291 case NB_EV_PREPARE
:
14294 /* TODO: implement me. */
14303 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/force-check
14305 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_force_check_modify(
14306 struct nb_cb_modify_args
*args
)
14308 switch (args
->event
) {
14309 case NB_EV_VALIDATE
:
14310 case NB_EV_PREPARE
:
14313 /* TODO: implement me. */
14322 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/warning-only
14324 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_warning_only_modify(
14325 struct nb_cb_modify_args
*args
)
14327 switch (args
->event
) {
14328 case NB_EV_VALIDATE
:
14329 case NB_EV_PREPARE
:
14332 /* TODO: implement me. */
14339 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_warning_only_destroy(
14340 struct nb_cb_destroy_args
*args
)
14342 switch (args
->event
) {
14343 case NB_EV_VALIDATE
:
14344 case NB_EV_PREPARE
:
14347 /* TODO: implement me. */
14356 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/restart-timer
14358 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_restart_timer_modify(
14359 struct nb_cb_modify_args
*args
)
14361 switch (args
->event
) {
14362 case NB_EV_VALIDATE
:
14363 case NB_EV_PREPARE
:
14366 /* TODO: implement me. */
14373 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
14374 struct nb_cb_destroy_args
*args
)
14376 switch (args
->event
) {
14377 case NB_EV_VALIDATE
:
14378 case NB_EV_PREPARE
:
14381 /* TODO: implement me. */
14390 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
14392 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
14393 struct nb_cb_modify_args
*args
)
14395 switch (args
->event
) {
14396 case NB_EV_VALIDATE
:
14397 case NB_EV_PREPARE
:
14400 /* TODO: implement me. */
14407 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
14408 struct nb_cb_destroy_args
*args
)
14410 switch (args
->event
) {
14411 case NB_EV_VALIDATE
:
14412 case NB_EV_PREPARE
:
14415 /* TODO: implement me. */
14424 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
14426 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
14427 struct nb_cb_modify_args
*args
)
14429 switch (args
->event
) {
14430 case NB_EV_VALIDATE
:
14431 case NB_EV_PREPARE
:
14434 /* TODO: implement me. */
14441 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
14442 struct nb_cb_destroy_args
*args
)
14444 switch (args
->event
) {
14445 case NB_EV_VALIDATE
:
14446 case NB_EV_PREPARE
:
14449 /* TODO: implement me. */
14458 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/tr-restart-timer
14460 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
14461 struct nb_cb_modify_args
*args
)
14463 switch (args
->event
) {
14464 case NB_EV_VALIDATE
:
14465 case NB_EV_PREPARE
:
14468 /* TODO: implement me. */
14475 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
14476 struct nb_cb_destroy_args
*args
)
14478 switch (args
->event
) {
14479 case NB_EV_VALIDATE
:
14480 case NB_EV_PREPARE
:
14483 /* TODO: implement me. */
14492 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
14494 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
14495 struct nb_cb_modify_args
*args
)
14497 switch (args
->event
) {
14498 case NB_EV_VALIDATE
:
14499 case NB_EV_PREPARE
:
14502 /* TODO: implement me. */
14509 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
14510 struct nb_cb_destroy_args
*args
)
14512 switch (args
->event
) {
14513 case NB_EV_VALIDATE
:
14514 case NB_EV_PREPARE
:
14517 /* TODO: implement me. */
14526 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/tw-warning-only
14528 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
14529 struct nb_cb_modify_args
*args
)
14531 switch (args
->event
) {
14532 case NB_EV_VALIDATE
:
14533 case NB_EV_PREPARE
:
14536 /* TODO: implement me. */
14543 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
14544 struct nb_cb_destroy_args
*args
)
14546 switch (args
->event
) {
14547 case NB_EV_VALIDATE
:
14548 case NB_EV_PREPARE
:
14551 /* TODO: implement me. */
14560 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/nexthop-self/next-hop-self
14562 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_nexthop_self_next_hop_self_modify(
14563 struct nb_cb_modify_args
*args
)
14565 switch (args
->event
) {
14566 case NB_EV_VALIDATE
:
14567 case NB_EV_PREPARE
:
14571 return bgp_neighbor_afi_safi_flag_modify(
14572 args
, PEER_FLAG_NEXTHOP_SELF
,
14573 yang_dnode_get_bool(args
->dnode
, NULL
));
14583 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/nexthop-self/next-hop-self-force
14585 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_nexthop_self_next_hop_self_force_modify(
14586 struct nb_cb_modify_args
*args
)
14588 switch (args
->event
) {
14589 case NB_EV_VALIDATE
:
14590 case NB_EV_PREPARE
:
14594 return bgp_neighbor_afi_safi_flag_modify(
14595 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
14596 yang_dnode_get_bool(args
->dnode
, NULL
));
14606 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/private-as/remove-private-as-all
14608 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_private_as_remove_private_as_all_modify(
14609 struct nb_cb_modify_args
*args
)
14611 switch (args
->event
) {
14612 case NB_EV_VALIDATE
:
14613 case NB_EV_PREPARE
:
14617 return bgp_neighbor_afi_safi_flag_modify(
14618 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
14619 yang_dnode_get_bool(args
->dnode
, NULL
));
14629 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/private-as/remove-private-as-all-replace
14631 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_private_as_remove_private_as_all_replace_modify(
14632 struct nb_cb_modify_args
*args
)
14634 switch (args
->event
) {
14635 case NB_EV_VALIDATE
:
14636 case NB_EV_PREPARE
:
14640 return bgp_neighbor_afi_safi_flag_modify(
14641 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
14642 yang_dnode_get_bool(args
->dnode
, NULL
));
14652 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/private-as/remove-private-as
14654 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_private_as_remove_private_as_modify(
14655 struct nb_cb_modify_args
*args
)
14657 switch (args
->event
) {
14658 case NB_EV_VALIDATE
:
14659 case NB_EV_PREPARE
:
14663 return bgp_neighbor_afi_safi_flag_modify(
14664 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
14665 yang_dnode_get_bool(args
->dnode
, NULL
));
14675 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/private-as/remove-private-as-replace
14677 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_private_as_remove_private_as_replace_modify(
14678 struct nb_cb_modify_args
*args
)
14680 switch (args
->event
) {
14681 case NB_EV_VALIDATE
:
14682 case NB_EV_PREPARE
:
14686 return bgp_neighbor_afi_safi_flag_modify(
14687 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
14688 yang_dnode_get_bool(args
->dnode
, NULL
));
14696 static int bgp_neighbor_afi_safi_weight_modify(struct nb_cb_modify_args
*args
)
14699 const char *peer_str
;
14701 const struct lyd_node
*nbr_dnode
;
14702 const struct lyd_node
*nbr_af_dnode
;
14703 const char *af_name
;
14709 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
14710 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
14711 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
14713 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "neighbor");
14714 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
14715 peer_str
= yang_dnode_get_string(nbr_dnode
, "./remote-address");
14716 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
14719 weight
= yang_dnode_get_uint16(args
->dnode
, NULL
);
14721 ret
= peer_weight_set(peer
, afi
, safi
, weight
);
14722 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
) < 0)
14723 return NB_ERR_INCONSISTENCY
;
14728 static int bgp_neighbor_afi_safi_weight_destroy(struct nb_cb_destroy_args
*args
)
14731 const char *peer_str
;
14733 const struct lyd_node
*nbr_dnode
;
14734 const struct lyd_node
*nbr_af_dnode
;
14735 const char *af_name
;
14740 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
14741 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
14742 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
14744 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "neighbor");
14745 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
14746 peer_str
= yang_dnode_get_string(nbr_dnode
, "./remote-address");
14747 peer
= bgp_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
14750 ret
= peer_weight_unset(peer
, afi
, safi
);
14751 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
) < 0)
14752 return NB_ERR_INCONSISTENCY
;
14759 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/weight/weight-attribute
14761 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_weight_weight_attribute_modify(
14762 struct nb_cb_modify_args
*args
)
14764 switch (args
->event
) {
14765 case NB_EV_VALIDATE
:
14766 case NB_EV_PREPARE
:
14770 return bgp_neighbor_afi_safi_weight_modify(args
);
14778 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_weight_weight_attribute_destroy(
14779 struct nb_cb_destroy_args
*args
)
14781 switch (args
->event
) {
14782 case NB_EV_VALIDATE
:
14783 case NB_EV_PREPARE
:
14787 return bgp_neighbor_afi_safi_weight_destroy(args
);
14797 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/route-reflector/route-reflector-client
14799 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_route_reflector_route_reflector_client_modify(
14800 struct nb_cb_modify_args
*args
)
14802 switch (args
->event
) {
14803 case NB_EV_VALIDATE
:
14804 case NB_EV_PREPARE
:
14808 return bgp_neighbor_afi_safi_flag_modify(
14809 args
, PEER_FLAG_REFLECTOR_CLIENT
,
14810 yang_dnode_get_bool(args
->dnode
, NULL
));
14820 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/route-server/route-server-client
14822 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_route_server_route_server_client_modify(
14823 struct nb_cb_modify_args
*args
)
14825 switch (args
->event
) {
14826 case NB_EV_VALIDATE
:
14827 case NB_EV_PREPARE
:
14831 return bgp_neighbor_afi_safi_flag_modify(
14832 args
, PEER_FLAG_RSERVER_CLIENT
,
14833 yang_dnode_get_bool(args
->dnode
, NULL
));
14843 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/send-community/send-community
14845 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_send_community_send_community_modify(
14846 struct nb_cb_modify_args
*args
)
14848 switch (args
->event
) {
14849 case NB_EV_VALIDATE
:
14850 case NB_EV_PREPARE
:
14854 return bgp_neighbor_afi_safi_flag_modify(
14855 args
, PEER_FLAG_SEND_COMMUNITY
,
14856 yang_dnode_get_bool(args
->dnode
, NULL
));
14866 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/send-community/send-ext-community
14868 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_send_community_send_ext_community_modify(
14869 struct nb_cb_modify_args
*args
)
14871 switch (args
->event
) {
14872 case NB_EV_VALIDATE
:
14873 case NB_EV_PREPARE
:
14877 return bgp_neighbor_afi_safi_flag_modify(
14878 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
14879 yang_dnode_get_bool(args
->dnode
, NULL
));
14889 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/send-community/send-large-community
14891 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_send_community_send_large_community_modify(
14892 struct nb_cb_modify_args
*args
)
14894 switch (args
->event
) {
14895 case NB_EV_VALIDATE
:
14896 case NB_EV_PREPARE
:
14900 return bgp_neighbor_afi_safi_flag_modify(
14901 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
14902 yang_dnode_get_bool(args
->dnode
, NULL
));
14912 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/soft-reconfiguration
14914 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_soft_reconfiguration_modify(
14915 struct nb_cb_modify_args
*args
)
14917 switch (args
->event
) {
14918 case NB_EV_VALIDATE
:
14919 case NB_EV_PREPARE
:
14923 return bgp_neighbor_afi_safi_flag_modify(
14924 args
, PEER_FLAG_SOFT_RECONFIG
,
14925 yang_dnode_get_bool(args
->dnode
, NULL
));
14935 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/attr-unchanged/as-path-unchanged
14937 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_attr_unchanged_as_path_unchanged_modify(
14938 struct nb_cb_modify_args
*args
)
14940 switch (args
->event
) {
14941 case NB_EV_VALIDATE
:
14942 case NB_EV_PREPARE
:
14946 return bgp_neighbor_afi_safi_flag_modify(
14947 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
14948 yang_dnode_get_bool(args
->dnode
, NULL
));
14958 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/attr-unchanged/next-hop-unchanged
14960 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_attr_unchanged_next_hop_unchanged_modify(
14961 struct nb_cb_modify_args
*args
)
14963 switch (args
->event
) {
14964 case NB_EV_VALIDATE
:
14965 case NB_EV_PREPARE
:
14969 return bgp_neighbor_afi_safi_flag_modify(
14970 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
14971 yang_dnode_get_bool(args
->dnode
, NULL
));
14981 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/attr-unchanged/med-unchanged
14983 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_attr_unchanged_med_unchanged_modify(
14984 struct nb_cb_modify_args
*args
)
14986 switch (args
->event
) {
14987 case NB_EV_VALIDATE
:
14988 case NB_EV_PREPARE
:
14992 return bgp_neighbor_afi_safi_flag_modify(
14993 args
, PEER_FLAG_MED_UNCHANGED
,
14994 yang_dnode_get_bool(args
->dnode
, NULL
));
15004 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/orf-capability/orf-send
15006 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_send_modify(
15007 struct nb_cb_modify_args
*args
)
15009 switch (args
->event
) {
15010 case NB_EV_VALIDATE
:
15011 case NB_EV_PREPARE
:
15014 /* TODO: implement me. */
15021 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_send_destroy(
15022 struct nb_cb_destroy_args
*args
)
15024 switch (args
->event
) {
15025 case NB_EV_VALIDATE
:
15026 case NB_EV_PREPARE
:
15029 /* TODO: implement me. */
15038 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/orf-capability/orf-receive
15040 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_receive_modify(
15041 struct nb_cb_modify_args
*args
)
15043 switch (args
->event
) {
15044 case NB_EV_VALIDATE
:
15045 case NB_EV_PREPARE
:
15048 /* TODO: implement me. */
15055 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_receive_destroy(
15056 struct nb_cb_destroy_args
*args
)
15058 switch (args
->event
) {
15059 case NB_EV_VALIDATE
:
15060 case NB_EV_PREPARE
:
15063 /* TODO: implement me. */
15072 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/orf-capability/orf-both
15074 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_both_modify(
15075 struct nb_cb_modify_args
*args
)
15077 switch (args
->event
) {
15078 case NB_EV_VALIDATE
:
15079 case NB_EV_PREPARE
:
15082 /* TODO: implement me. */
15089 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_both_destroy(
15090 struct nb_cb_destroy_args
*args
)
15092 switch (args
->event
) {
15093 case NB_EV_VALIDATE
:
15094 case NB_EV_PREPARE
:
15097 /* TODO: implement me. */
15106 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/rmap-import
15108 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_import_modify(
15109 struct nb_cb_modify_args
*args
)
15111 switch (args
->event
) {
15112 case NB_EV_VALIDATE
:
15113 case NB_EV_PREPARE
:
15116 /* TODO: implement me. */
15123 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_import_destroy(
15124 struct nb_cb_destroy_args
*args
)
15126 switch (args
->event
) {
15127 case NB_EV_VALIDATE
:
15128 case NB_EV_PREPARE
:
15131 /* TODO: implement me. */
15140 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/rmap-export
15142 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_export_modify(
15143 struct nb_cb_modify_args
*args
)
15145 switch (args
->event
) {
15146 case NB_EV_VALIDATE
:
15147 case NB_EV_PREPARE
:
15150 /* TODO: implement me. */
15157 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_export_destroy(
15158 struct nb_cb_destroy_args
*args
)
15160 switch (args
->event
) {
15161 case NB_EV_VALIDATE
:
15162 case NB_EV_PREPARE
:
15165 /* TODO: implement me. */
15174 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/plist-import
15176 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_plist_import_modify(
15177 struct nb_cb_modify_args
*args
)
15179 switch (args
->event
) {
15180 case NB_EV_VALIDATE
:
15181 case NB_EV_PREPARE
:
15184 /* TODO: implement me. */
15191 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_plist_import_destroy(
15192 struct nb_cb_destroy_args
*args
)
15194 switch (args
->event
) {
15195 case NB_EV_VALIDATE
:
15196 case NB_EV_PREPARE
:
15199 /* TODO: implement me. */
15208 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/plist-export
15210 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_plist_export_modify(
15211 struct nb_cb_modify_args
*args
)
15213 switch (args
->event
) {
15214 case NB_EV_VALIDATE
:
15215 case NB_EV_PREPARE
:
15218 /* TODO: implement me. */
15225 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_plist_export_destroy(
15226 struct nb_cb_destroy_args
*args
)
15228 switch (args
->event
) {
15229 case NB_EV_VALIDATE
:
15230 case NB_EV_PREPARE
:
15233 /* TODO: implement me. */
15242 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/access-list-import
15244 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_access_list_import_modify(
15245 struct nb_cb_modify_args
*args
)
15247 switch (args
->event
) {
15248 case NB_EV_VALIDATE
:
15249 case NB_EV_PREPARE
:
15252 /* TODO: implement me. */
15259 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_access_list_import_destroy(
15260 struct nb_cb_destroy_args
*args
)
15262 switch (args
->event
) {
15263 case NB_EV_VALIDATE
:
15264 case NB_EV_PREPARE
:
15267 /* TODO: implement me. */
15276 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/access-list-export
15278 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_access_list_export_modify(
15279 struct nb_cb_modify_args
*args
)
15281 switch (args
->event
) {
15282 case NB_EV_VALIDATE
:
15283 case NB_EV_PREPARE
:
15286 /* TODO: implement me. */
15293 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_access_list_export_destroy(
15294 struct nb_cb_destroy_args
*args
)
15296 switch (args
->event
) {
15297 case NB_EV_VALIDATE
:
15298 case NB_EV_PREPARE
:
15301 /* TODO: implement me. */
15310 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/as-path-filter-list-import
15312 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_as_path_filter_list_import_modify(
15313 struct nb_cb_modify_args
*args
)
15315 switch (args
->event
) {
15316 case NB_EV_VALIDATE
:
15317 case NB_EV_PREPARE
:
15320 /* TODO: implement me. */
15327 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_as_path_filter_list_import_destroy(
15328 struct nb_cb_destroy_args
*args
)
15330 switch (args
->event
) {
15331 case NB_EV_VALIDATE
:
15332 case NB_EV_PREPARE
:
15335 /* TODO: implement me. */
15344 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/as-path-filter-list-export
15346 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_as_path_filter_list_export_modify(
15347 struct nb_cb_modify_args
*args
)
15349 switch (args
->event
) {
15350 case NB_EV_VALIDATE
:
15351 case NB_EV_PREPARE
:
15354 /* TODO: implement me. */
15361 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_as_path_filter_list_export_destroy(
15362 struct nb_cb_destroy_args
*args
)
15364 switch (args
->event
) {
15365 case NB_EV_VALIDATE
:
15366 case NB_EV_PREPARE
:
15369 /* TODO: implement me. */
15378 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/unsuppress-map-import
15380 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_unsuppress_map_import_modify(
15381 struct nb_cb_modify_args
*args
)
15383 switch (args
->event
) {
15384 case NB_EV_VALIDATE
:
15385 case NB_EV_PREPARE
:
15388 /* TODO: implement me. */
15395 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_unsuppress_map_import_destroy(
15396 struct nb_cb_destroy_args
*args
)
15398 switch (args
->event
) {
15399 case NB_EV_VALIDATE
:
15400 case NB_EV_PREPARE
:
15403 /* TODO: implement me. */
15412 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/unsuppress-map-export
15414 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_unsuppress_map_export_modify(
15415 struct nb_cb_modify_args
*args
)
15417 switch (args
->event
) {
15418 case NB_EV_VALIDATE
:
15419 case NB_EV_PREPARE
:
15422 /* TODO: implement me. */
15429 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_unsuppress_map_export_destroy(
15430 struct nb_cb_destroy_args
*args
)
15432 switch (args
->event
) {
15433 case NB_EV_VALIDATE
:
15434 case NB_EV_PREPARE
:
15437 /* TODO: implement me. */
15446 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/nexthop-local-unchanged
15448 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_nexthop_local_unchanged_modify(
15449 struct nb_cb_modify_args
*args
)
15451 switch (args
->event
) {
15452 case NB_EV_VALIDATE
:
15453 case NB_EV_PREPARE
:
15456 /* TODO: implement me. */
15465 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/add-paths/path-type
15467 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_add_paths_path_type_modify(
15468 struct nb_cb_modify_args
*args
)
15470 switch (args
->event
) {
15471 case NB_EV_VALIDATE
:
15472 case NB_EV_PREPARE
:
15475 /* TODO: implement me. */
15484 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/as-path-options/allow-own-as
15486 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_as_path_options_allow_own_as_modify(
15487 struct nb_cb_modify_args
*args
)
15489 switch (args
->event
) {
15490 case NB_EV_VALIDATE
:
15491 case NB_EV_PREPARE
:
15494 /* TODO: implement me. */
15501 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_as_path_options_allow_own_as_destroy(
15502 struct nb_cb_destroy_args
*args
)
15504 switch (args
->event
) {
15505 case NB_EV_VALIDATE
:
15506 case NB_EV_PREPARE
:
15509 /* TODO: implement me. */
15518 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/as-path-options/allow-own-origin-as
15520 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_as_path_options_allow_own_origin_as_modify(
15521 struct nb_cb_modify_args
*args
)
15523 switch (args
->event
) {
15524 case NB_EV_VALIDATE
:
15525 case NB_EV_PREPARE
:
15528 /* TODO: implement me. */
15535 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_as_path_options_allow_own_origin_as_destroy(
15536 struct nb_cb_destroy_args
*args
)
15538 switch (args
->event
) {
15539 case NB_EV_VALIDATE
:
15540 case NB_EV_PREPARE
:
15543 /* TODO: implement me. */
15552 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/as-path-options/replace-peer-as
15554 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_as_path_options_replace_peer_as_modify(
15555 struct nb_cb_modify_args
*args
)
15557 switch (args
->event
) {
15558 case NB_EV_VALIDATE
:
15559 case NB_EV_PREPARE
:
15563 return bgp_neighbor_afi_safi_flag_modify(
15564 args
, PEER_FLAG_AS_OVERRIDE
,
15565 yang_dnode_get_bool(args
->dnode
, NULL
));
15575 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/default-originate/originate
15577 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_default_originate_originate_modify(
15578 struct nb_cb_modify_args
*args
)
15580 switch (args
->event
) {
15581 case NB_EV_VALIDATE
:
15582 case NB_EV_PREPARE
:
15585 /* TODO: implement me. */
15594 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/default-originate/route-map
15596 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_default_originate_route_map_modify(
15597 struct nb_cb_modify_args
*args
)
15599 switch (args
->event
) {
15600 case NB_EV_VALIDATE
:
15601 case NB_EV_PREPARE
:
15604 /* TODO: implement me. */
15611 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_default_originate_route_map_destroy(
15612 struct nb_cb_destroy_args
*args
)
15614 switch (args
->event
) {
15615 case NB_EV_VALIDATE
:
15616 case NB_EV_PREPARE
:
15619 /* TODO: implement me. */
15628 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/attr-unchanged/as-path-unchanged
15630 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_attr_unchanged_as_path_unchanged_modify(
15631 struct nb_cb_modify_args
*args
)
15633 switch (args
->event
) {
15634 case NB_EV_VALIDATE
:
15635 case NB_EV_PREPARE
:
15639 return bgp_neighbor_afi_safi_flag_modify(
15640 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
15641 yang_dnode_get_bool(args
->dnode
, NULL
));
15651 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/attr-unchanged/next-hop-unchanged
15653 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_attr_unchanged_next_hop_unchanged_modify(
15654 struct nb_cb_modify_args
*args
)
15656 switch (args
->event
) {
15657 case NB_EV_VALIDATE
:
15658 case NB_EV_PREPARE
:
15662 return bgp_neighbor_afi_safi_flag_modify(
15663 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
15664 yang_dnode_get_bool(args
->dnode
, NULL
));
15674 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/attr-unchanged/med-unchanged
15676 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_attr_unchanged_med_unchanged_modify(
15677 struct nb_cb_modify_args
*args
)
15679 switch (args
->event
) {
15680 case NB_EV_VALIDATE
:
15681 case NB_EV_PREPARE
:
15685 return bgp_neighbor_afi_safi_flag_modify(
15686 args
, PEER_FLAG_MED_UNCHANGED
,
15687 yang_dnode_get_bool(args
->dnode
, NULL
));
15697 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/orf-capability/orf-send
15699 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_send_modify(
15700 struct nb_cb_modify_args
*args
)
15702 switch (args
->event
) {
15703 case NB_EV_VALIDATE
:
15704 case NB_EV_PREPARE
:
15707 /* TODO: implement me. */
15714 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_send_destroy(
15715 struct nb_cb_destroy_args
*args
)
15717 switch (args
->event
) {
15718 case NB_EV_VALIDATE
:
15719 case NB_EV_PREPARE
:
15722 /* TODO: implement me. */
15731 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/orf-capability/orf-receive
15733 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_receive_modify(
15734 struct nb_cb_modify_args
*args
)
15736 switch (args
->event
) {
15737 case NB_EV_VALIDATE
:
15738 case NB_EV_PREPARE
:
15741 /* TODO: implement me. */
15748 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_receive_destroy(
15749 struct nb_cb_destroy_args
*args
)
15751 switch (args
->event
) {
15752 case NB_EV_VALIDATE
:
15753 case NB_EV_PREPARE
:
15756 /* TODO: implement me. */
15765 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/orf-capability/orf-both
15767 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_both_modify(
15768 struct nb_cb_modify_args
*args
)
15770 switch (args
->event
) {
15771 case NB_EV_VALIDATE
:
15772 case NB_EV_PREPARE
:
15775 /* TODO: implement me. */
15782 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_both_destroy(
15783 struct nb_cb_destroy_args
*args
)
15785 switch (args
->event
) {
15786 case NB_EV_VALIDATE
:
15787 case NB_EV_PREPARE
:
15790 /* TODO: implement me. */
15799 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list
15801 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_create(
15802 struct nb_cb_create_args
*args
)
15804 switch (args
->event
) {
15805 case NB_EV_VALIDATE
:
15806 case NB_EV_PREPARE
:
15809 /* TODO: implement me. */
15816 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_destroy(
15817 struct nb_cb_destroy_args
*args
)
15819 switch (args
->event
) {
15820 case NB_EV_VALIDATE
:
15821 case NB_EV_PREPARE
:
15825 return bgp_neighbor_afi_safi_prefix_limit_list_destroy(args
);
15833 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/max-prefixes
15835 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_max_prefixes_modify(
15836 struct nb_cb_modify_args
*args
)
15838 switch (args
->event
) {
15839 case NB_EV_VALIDATE
:
15840 case NB_EV_PREPARE
:
15843 /* TODO: implement me. */
15852 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/force-check
15854 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_force_check_modify(
15855 struct nb_cb_modify_args
*args
)
15857 switch (args
->event
) {
15858 case NB_EV_VALIDATE
:
15859 case NB_EV_PREPARE
:
15862 /* TODO: implement me. */
15871 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/warning-only
15873 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_warning_only_modify(
15874 struct nb_cb_modify_args
*args
)
15876 switch (args
->event
) {
15877 case NB_EV_VALIDATE
:
15878 case NB_EV_PREPARE
:
15881 /* TODO: implement me. */
15888 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_warning_only_destroy(
15889 struct nb_cb_destroy_args
*args
)
15891 switch (args
->event
) {
15892 case NB_EV_VALIDATE
:
15893 case NB_EV_PREPARE
:
15896 /* TODO: implement me. */
15905 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/restart-timer
15907 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_restart_timer_modify(
15908 struct nb_cb_modify_args
*args
)
15910 switch (args
->event
) {
15911 case NB_EV_VALIDATE
:
15912 case NB_EV_PREPARE
:
15915 /* TODO: implement me. */
15922 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
15923 struct nb_cb_destroy_args
*args
)
15925 switch (args
->event
) {
15926 case NB_EV_VALIDATE
:
15927 case NB_EV_PREPARE
:
15930 /* TODO: implement me. */
15939 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
15941 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
15942 struct nb_cb_modify_args
*args
)
15944 switch (args
->event
) {
15945 case NB_EV_VALIDATE
:
15946 case NB_EV_PREPARE
:
15949 /* TODO: implement me. */
15956 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
15957 struct nb_cb_destroy_args
*args
)
15959 switch (args
->event
) {
15960 case NB_EV_VALIDATE
:
15961 case NB_EV_PREPARE
:
15964 /* TODO: implement me. */
15973 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
15975 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
15976 struct nb_cb_modify_args
*args
)
15978 switch (args
->event
) {
15979 case NB_EV_VALIDATE
:
15980 case NB_EV_PREPARE
:
15983 /* TODO: implement me. */
15990 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
15991 struct nb_cb_destroy_args
*args
)
15993 switch (args
->event
) {
15994 case NB_EV_VALIDATE
:
15995 case NB_EV_PREPARE
:
15998 /* TODO: implement me. */
16007 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/tr-restart-timer
16009 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
16010 struct nb_cb_modify_args
*args
)
16012 switch (args
->event
) {
16013 case NB_EV_VALIDATE
:
16014 case NB_EV_PREPARE
:
16017 /* TODO: implement me. */
16024 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
16025 struct nb_cb_destroy_args
*args
)
16027 switch (args
->event
) {
16028 case NB_EV_VALIDATE
:
16029 case NB_EV_PREPARE
:
16032 /* TODO: implement me. */
16041 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
16043 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
16044 struct nb_cb_modify_args
*args
)
16046 switch (args
->event
) {
16047 case NB_EV_VALIDATE
:
16048 case NB_EV_PREPARE
:
16051 /* TODO: implement me. */
16058 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
16059 struct nb_cb_destroy_args
*args
)
16061 switch (args
->event
) {
16062 case NB_EV_VALIDATE
:
16063 case NB_EV_PREPARE
:
16066 /* TODO: implement me. */
16075 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/tw-warning-only
16077 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
16078 struct nb_cb_modify_args
*args
)
16080 switch (args
->event
) {
16081 case NB_EV_VALIDATE
:
16082 case NB_EV_PREPARE
:
16085 /* TODO: implement me. */
16092 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
16093 struct nb_cb_destroy_args
*args
)
16095 switch (args
->event
) {
16096 case NB_EV_VALIDATE
:
16097 case NB_EV_PREPARE
:
16100 /* TODO: implement me. */
16109 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/nexthop-self/next-hop-self
16111 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_nexthop_self_next_hop_self_modify(
16112 struct nb_cb_modify_args
*args
)
16114 switch (args
->event
) {
16115 case NB_EV_VALIDATE
:
16116 case NB_EV_PREPARE
:
16120 return bgp_neighbor_afi_safi_flag_modify(
16121 args
, PEER_FLAG_NEXTHOP_SELF
,
16122 yang_dnode_get_bool(args
->dnode
, NULL
));
16132 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/nexthop-self/next-hop-self-force
16134 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_nexthop_self_next_hop_self_force_modify(
16135 struct nb_cb_modify_args
*args
)
16137 switch (args
->event
) {
16138 case NB_EV_VALIDATE
:
16139 case NB_EV_PREPARE
:
16143 return bgp_neighbor_afi_safi_flag_modify(
16144 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
16145 yang_dnode_get_bool(args
->dnode
, NULL
));
16155 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/private-as/remove-private-as-all
16157 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_private_as_remove_private_as_all_modify(
16158 struct nb_cb_modify_args
*args
)
16160 switch (args
->event
) {
16161 case NB_EV_VALIDATE
:
16162 case NB_EV_PREPARE
:
16166 return bgp_neighbor_afi_safi_flag_modify(
16167 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
16168 yang_dnode_get_bool(args
->dnode
, NULL
));
16178 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/private-as/remove-private-as-all-replace
16180 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_private_as_remove_private_as_all_replace_modify(
16181 struct nb_cb_modify_args
*args
)
16183 switch (args
->event
) {
16184 case NB_EV_VALIDATE
:
16185 case NB_EV_PREPARE
:
16189 return bgp_neighbor_afi_safi_flag_modify(
16190 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
16191 yang_dnode_get_bool(args
->dnode
, NULL
));
16201 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/private-as/remove-private-as
16203 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_private_as_remove_private_as_modify(
16204 struct nb_cb_modify_args
*args
)
16206 switch (args
->event
) {
16207 case NB_EV_VALIDATE
:
16208 case NB_EV_PREPARE
:
16212 return bgp_neighbor_afi_safi_flag_modify(
16213 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
16214 yang_dnode_get_bool(args
->dnode
, NULL
));
16224 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/private-as/remove-private-as-replace
16226 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_private_as_remove_private_as_replace_modify(
16227 struct nb_cb_modify_args
*args
)
16229 switch (args
->event
) {
16230 case NB_EV_VALIDATE
:
16231 case NB_EV_PREPARE
:
16235 return bgp_neighbor_afi_safi_flag_modify(
16236 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
16237 yang_dnode_get_bool(args
->dnode
, NULL
));
16247 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/route-reflector/route-reflector-client
16249 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_route_reflector_route_reflector_client_modify(
16250 struct nb_cb_modify_args
*args
)
16252 switch (args
->event
) {
16253 case NB_EV_VALIDATE
:
16254 case NB_EV_PREPARE
:
16258 return bgp_neighbor_afi_safi_flag_modify(
16259 args
, PEER_FLAG_REFLECTOR_CLIENT
,
16260 yang_dnode_get_bool(args
->dnode
, NULL
));
16270 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/route-server/route-server-client
16272 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_route_server_route_server_client_modify(
16273 struct nb_cb_modify_args
*args
)
16275 switch (args
->event
) {
16276 case NB_EV_VALIDATE
:
16277 case NB_EV_PREPARE
:
16281 return bgp_neighbor_afi_safi_flag_modify(
16282 args
, PEER_FLAG_RSERVER_CLIENT
,
16283 yang_dnode_get_bool(args
->dnode
, NULL
));
16293 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/send-community/send-community
16295 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_send_community_send_community_modify(
16296 struct nb_cb_modify_args
*args
)
16298 switch (args
->event
) {
16299 case NB_EV_VALIDATE
:
16300 case NB_EV_PREPARE
:
16304 return bgp_neighbor_afi_safi_flag_modify(
16305 args
, PEER_FLAG_SEND_COMMUNITY
,
16306 yang_dnode_get_bool(args
->dnode
, NULL
));
16316 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/send-community/send-ext-community
16318 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_send_community_send_ext_community_modify(
16319 struct nb_cb_modify_args
*args
)
16321 switch (args
->event
) {
16322 case NB_EV_VALIDATE
:
16323 case NB_EV_PREPARE
:
16327 return bgp_neighbor_afi_safi_flag_modify(
16328 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
16329 yang_dnode_get_bool(args
->dnode
, NULL
));
16339 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/send-community/send-large-community
16341 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_send_community_send_large_community_modify(
16342 struct nb_cb_modify_args
*args
)
16344 switch (args
->event
) {
16345 case NB_EV_VALIDATE
:
16346 case NB_EV_PREPARE
:
16350 return bgp_neighbor_afi_safi_flag_modify(
16351 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
16352 yang_dnode_get_bool(args
->dnode
, NULL
));
16362 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/soft-reconfiguration
16364 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_soft_reconfiguration_modify(
16365 struct nb_cb_modify_args
*args
)
16367 switch (args
->event
) {
16368 case NB_EV_VALIDATE
:
16369 case NB_EV_PREPARE
:
16373 return bgp_neighbor_afi_safi_flag_modify(
16374 args
, PEER_FLAG_SOFT_RECONFIG
,
16375 yang_dnode_get_bool(args
->dnode
, NULL
));
16385 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-unicast/weight/weight-attribute
16387 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_weight_weight_attribute_modify(
16388 struct nb_cb_modify_args
*args
)
16390 switch (args
->event
) {
16391 case NB_EV_VALIDATE
:
16392 case NB_EV_PREPARE
:
16396 return bgp_neighbor_afi_safi_weight_modify(args
);
16404 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_unicast_weight_weight_attribute_destroy(
16405 struct nb_cb_destroy_args
*args
)
16407 switch (args
->event
) {
16408 case NB_EV_VALIDATE
:
16409 case NB_EV_PREPARE
:
16413 return bgp_neighbor_afi_safi_weight_destroy(args
);
16423 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/add-paths/path-type
16425 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_add_paths_path_type_modify(
16426 struct nb_cb_modify_args
*args
)
16428 switch (args
->event
) {
16429 case NB_EV_VALIDATE
:
16430 case NB_EV_PREPARE
:
16433 /* TODO: implement me. */
16442 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/as-path-options/allow-own-as
16444 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_as_path_options_allow_own_as_modify(
16445 struct nb_cb_modify_args
*args
)
16447 switch (args
->event
) {
16448 case NB_EV_VALIDATE
:
16449 case NB_EV_PREPARE
:
16452 /* TODO: implement me. */
16459 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_as_path_options_allow_own_as_destroy(
16460 struct nb_cb_destroy_args
*args
)
16462 switch (args
->event
) {
16463 case NB_EV_VALIDATE
:
16464 case NB_EV_PREPARE
:
16467 /* TODO: implement me. */
16476 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/as-path-options/allow-own-origin-as
16478 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_as_path_options_allow_own_origin_as_modify(
16479 struct nb_cb_modify_args
*args
)
16481 switch (args
->event
) {
16482 case NB_EV_VALIDATE
:
16483 case NB_EV_PREPARE
:
16486 /* TODO: implement me. */
16493 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_as_path_options_allow_own_origin_as_destroy(
16494 struct nb_cb_destroy_args
*args
)
16496 switch (args
->event
) {
16497 case NB_EV_VALIDATE
:
16498 case NB_EV_PREPARE
:
16501 /* TODO: implement me. */
16510 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/as-path-options/replace-peer-as
16512 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_as_path_options_replace_peer_as_modify(
16513 struct nb_cb_modify_args
*args
)
16515 switch (args
->event
) {
16516 case NB_EV_VALIDATE
:
16517 case NB_EV_PREPARE
:
16521 return bgp_neighbor_afi_safi_flag_modify(
16522 args
, PEER_FLAG_AS_OVERRIDE
,
16523 yang_dnode_get_bool(args
->dnode
, NULL
));
16533 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/default-originate/originate
16535 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_default_originate_originate_modify(
16536 struct nb_cb_modify_args
*args
)
16538 switch (args
->event
) {
16539 case NB_EV_VALIDATE
:
16540 case NB_EV_PREPARE
:
16543 /* TODO: implement me. */
16552 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/default-originate/route-map
16554 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_default_originate_route_map_modify(
16555 struct nb_cb_modify_args
*args
)
16557 switch (args
->event
) {
16558 case NB_EV_VALIDATE
:
16559 case NB_EV_PREPARE
:
16562 /* TODO: implement me. */
16569 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_default_originate_route_map_destroy(
16570 struct nb_cb_destroy_args
*args
)
16572 switch (args
->event
) {
16573 case NB_EV_VALIDATE
:
16574 case NB_EV_PREPARE
:
16577 /* TODO: implement me. */
16586 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/attr-unchanged/as-path-unchanged
16588 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_attr_unchanged_as_path_unchanged_modify(
16589 struct nb_cb_modify_args
*args
)
16591 switch (args
->event
) {
16592 case NB_EV_VALIDATE
:
16593 case NB_EV_PREPARE
:
16597 return bgp_neighbor_afi_safi_flag_modify(
16598 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
16599 yang_dnode_get_bool(args
->dnode
, NULL
));
16609 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/attr-unchanged/next-hop-unchanged
16611 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_attr_unchanged_next_hop_unchanged_modify(
16612 struct nb_cb_modify_args
*args
)
16614 switch (args
->event
) {
16615 case NB_EV_VALIDATE
:
16616 case NB_EV_PREPARE
:
16620 return bgp_neighbor_afi_safi_flag_modify(
16621 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
16622 yang_dnode_get_bool(args
->dnode
, NULL
));
16632 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/attr-unchanged/med-unchanged
16634 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_attr_unchanged_med_unchanged_modify(
16635 struct nb_cb_modify_args
*args
)
16637 switch (args
->event
) {
16638 case NB_EV_VALIDATE
:
16639 case NB_EV_PREPARE
:
16643 return bgp_neighbor_afi_safi_flag_modify(
16644 args
, PEER_FLAG_MED_UNCHANGED
,
16645 yang_dnode_get_bool(args
->dnode
, NULL
));
16655 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/orf-capability/orf-send
16657 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_send_modify(
16658 struct nb_cb_modify_args
*args
)
16660 switch (args
->event
) {
16661 case NB_EV_VALIDATE
:
16662 case NB_EV_PREPARE
:
16665 /* TODO: implement me. */
16672 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_send_destroy(
16673 struct nb_cb_destroy_args
*args
)
16675 switch (args
->event
) {
16676 case NB_EV_VALIDATE
:
16677 case NB_EV_PREPARE
:
16680 /* TODO: implement me. */
16689 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/orf-capability/orf-receive
16691 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_receive_modify(
16692 struct nb_cb_modify_args
*args
)
16694 switch (args
->event
) {
16695 case NB_EV_VALIDATE
:
16696 case NB_EV_PREPARE
:
16699 /* TODO: implement me. */
16706 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_receive_destroy(
16707 struct nb_cb_destroy_args
*args
)
16709 switch (args
->event
) {
16710 case NB_EV_VALIDATE
:
16711 case NB_EV_PREPARE
:
16714 /* TODO: implement me. */
16723 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/orf-capability/orf-both
16725 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_both_modify(
16726 struct nb_cb_modify_args
*args
)
16728 switch (args
->event
) {
16729 case NB_EV_VALIDATE
:
16730 case NB_EV_PREPARE
:
16733 /* TODO: implement me. */
16740 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_both_destroy(
16741 struct nb_cb_destroy_args
*args
)
16743 switch (args
->event
) {
16744 case NB_EV_VALIDATE
:
16745 case NB_EV_PREPARE
:
16748 /* TODO: implement me. */
16757 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list
16759 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_create(
16760 struct nb_cb_create_args
*args
)
16762 switch (args
->event
) {
16763 case NB_EV_VALIDATE
:
16764 case NB_EV_PREPARE
:
16767 /* TODO: implement me. */
16774 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_destroy(
16775 struct nb_cb_destroy_args
*args
)
16777 switch (args
->event
) {
16778 case NB_EV_VALIDATE
:
16779 case NB_EV_PREPARE
:
16783 return bgp_neighbor_afi_safi_prefix_limit_list_destroy(args
);
16791 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/max-prefixes
16793 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_max_prefixes_modify(
16794 struct nb_cb_modify_args
*args
)
16796 switch (args
->event
) {
16797 case NB_EV_VALIDATE
:
16798 case NB_EV_PREPARE
:
16801 /* TODO: implement me. */
16810 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/force-check
16812 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_force_check_modify(
16813 struct nb_cb_modify_args
*args
)
16815 switch (args
->event
) {
16816 case NB_EV_VALIDATE
:
16817 case NB_EV_PREPARE
:
16820 /* TODO: implement me. */
16829 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/warning-only
16831 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_warning_only_modify(
16832 struct nb_cb_modify_args
*args
)
16834 switch (args
->event
) {
16835 case NB_EV_VALIDATE
:
16836 case NB_EV_PREPARE
:
16839 /* TODO: implement me. */
16846 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_warning_only_destroy(
16847 struct nb_cb_destroy_args
*args
)
16849 switch (args
->event
) {
16850 case NB_EV_VALIDATE
:
16851 case NB_EV_PREPARE
:
16854 /* TODO: implement me. */
16863 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/restart-timer
16865 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_restart_timer_modify(
16866 struct nb_cb_modify_args
*args
)
16868 switch (args
->event
) {
16869 case NB_EV_VALIDATE
:
16870 case NB_EV_PREPARE
:
16873 /* TODO: implement me. */
16880 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_restart_timer_destroy(
16881 struct nb_cb_destroy_args
*args
)
16883 switch (args
->event
) {
16884 case NB_EV_VALIDATE
:
16885 case NB_EV_PREPARE
:
16888 /* TODO: implement me. */
16897 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/shutdown-threshold-pct
16899 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
16900 struct nb_cb_modify_args
*args
)
16902 switch (args
->event
) {
16903 case NB_EV_VALIDATE
:
16904 case NB_EV_PREPARE
:
16907 /* TODO: implement me. */
16914 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
16915 struct nb_cb_destroy_args
*args
)
16917 switch (args
->event
) {
16918 case NB_EV_VALIDATE
:
16919 case NB_EV_PREPARE
:
16922 /* TODO: implement me. */
16931 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
16933 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
16934 struct nb_cb_modify_args
*args
)
16936 switch (args
->event
) {
16937 case NB_EV_VALIDATE
:
16938 case NB_EV_PREPARE
:
16941 /* TODO: implement me. */
16948 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
16949 struct nb_cb_destroy_args
*args
)
16951 switch (args
->event
) {
16952 case NB_EV_VALIDATE
:
16953 case NB_EV_PREPARE
:
16956 /* TODO: implement me. */
16965 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/tr-restart-timer
16967 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
16968 struct nb_cb_modify_args
*args
)
16970 switch (args
->event
) {
16971 case NB_EV_VALIDATE
:
16972 case NB_EV_PREPARE
:
16975 /* TODO: implement me. */
16982 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
16983 struct nb_cb_destroy_args
*args
)
16985 switch (args
->event
) {
16986 case NB_EV_VALIDATE
:
16987 case NB_EV_PREPARE
:
16990 /* TODO: implement me. */
16999 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
17001 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
17002 struct nb_cb_modify_args
*args
)
17004 switch (args
->event
) {
17005 case NB_EV_VALIDATE
:
17006 case NB_EV_PREPARE
:
17009 /* TODO: implement me. */
17016 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
17017 struct nb_cb_destroy_args
*args
)
17019 switch (args
->event
) {
17020 case NB_EV_VALIDATE
:
17021 case NB_EV_PREPARE
:
17024 /* TODO: implement me. */
17033 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/tw-warning-only
17035 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tw_warning_only_modify(
17036 struct nb_cb_modify_args
*args
)
17038 switch (args
->event
) {
17039 case NB_EV_VALIDATE
:
17040 case NB_EV_PREPARE
:
17043 /* TODO: implement me. */
17050 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
17051 struct nb_cb_destroy_args
*args
)
17053 switch (args
->event
) {
17054 case NB_EV_VALIDATE
:
17055 case NB_EV_PREPARE
:
17058 /* TODO: implement me. */
17067 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/nexthop-self/next-hop-self
17069 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_nexthop_self_next_hop_self_modify(
17070 struct nb_cb_modify_args
*args
)
17072 switch (args
->event
) {
17073 case NB_EV_VALIDATE
:
17074 case NB_EV_PREPARE
:
17078 return bgp_neighbor_afi_safi_flag_modify(
17079 args
, PEER_FLAG_NEXTHOP_SELF
,
17080 yang_dnode_get_bool(args
->dnode
, NULL
));
17090 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/nexthop-self/next-hop-self-force
17092 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_nexthop_self_next_hop_self_force_modify(
17093 struct nb_cb_modify_args
*args
)
17095 switch (args
->event
) {
17096 case NB_EV_VALIDATE
:
17097 case NB_EV_PREPARE
:
17101 return bgp_neighbor_afi_safi_flag_modify(
17102 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
17103 yang_dnode_get_bool(args
->dnode
, NULL
));
17113 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/private-as/remove-private-as-all
17115 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_private_as_remove_private_as_all_modify(
17116 struct nb_cb_modify_args
*args
)
17118 switch (args
->event
) {
17119 case NB_EV_VALIDATE
:
17120 case NB_EV_PREPARE
:
17124 return bgp_neighbor_afi_safi_flag_modify(
17125 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
17126 yang_dnode_get_bool(args
->dnode
, NULL
));
17136 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/private-as/remove-private-as-all-replace
17138 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_private_as_remove_private_as_all_replace_modify(
17139 struct nb_cb_modify_args
*args
)
17141 switch (args
->event
) {
17142 case NB_EV_VALIDATE
:
17143 case NB_EV_PREPARE
:
17147 return bgp_neighbor_afi_safi_flag_modify(
17148 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
17149 yang_dnode_get_bool(args
->dnode
, NULL
));
17159 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/private-as/remove-private-as
17161 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_private_as_remove_private_as_modify(
17162 struct nb_cb_modify_args
*args
)
17164 switch (args
->event
) {
17165 case NB_EV_VALIDATE
:
17166 case NB_EV_PREPARE
:
17170 return bgp_neighbor_afi_safi_flag_modify(
17171 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
17172 yang_dnode_get_bool(args
->dnode
, NULL
));
17182 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/private-as/remove-private-as-replace
17184 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_private_as_remove_private_as_replace_modify(
17185 struct nb_cb_modify_args
*args
)
17187 switch (args
->event
) {
17188 case NB_EV_VALIDATE
:
17189 case NB_EV_PREPARE
:
17193 return bgp_neighbor_afi_safi_flag_modify(
17194 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
17195 yang_dnode_get_bool(args
->dnode
, NULL
));
17205 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/route-reflector/route-reflector-client
17207 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_route_reflector_route_reflector_client_modify(
17208 struct nb_cb_modify_args
*args
)
17210 switch (args
->event
) {
17211 case NB_EV_VALIDATE
:
17212 case NB_EV_PREPARE
:
17216 return bgp_neighbor_afi_safi_flag_modify(
17217 args
, PEER_FLAG_REFLECTOR_CLIENT
,
17218 yang_dnode_get_bool(args
->dnode
, NULL
));
17228 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/route-server/route-server-client
17230 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_route_server_route_server_client_modify(
17231 struct nb_cb_modify_args
*args
)
17233 switch (args
->event
) {
17234 case NB_EV_VALIDATE
:
17235 case NB_EV_PREPARE
:
17239 return bgp_neighbor_afi_safi_flag_modify(
17240 args
, PEER_FLAG_RSERVER_CLIENT
,
17241 yang_dnode_get_bool(args
->dnode
, NULL
));
17251 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/send-community/send-community
17253 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_send_community_send_community_modify(
17254 struct nb_cb_modify_args
*args
)
17256 switch (args
->event
) {
17257 case NB_EV_VALIDATE
:
17258 case NB_EV_PREPARE
:
17262 return bgp_neighbor_afi_safi_flag_modify(
17263 args
, PEER_FLAG_SEND_COMMUNITY
,
17264 yang_dnode_get_bool(args
->dnode
, NULL
));
17274 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/send-community/send-ext-community
17276 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_send_community_send_ext_community_modify(
17277 struct nb_cb_modify_args
*args
)
17279 switch (args
->event
) {
17280 case NB_EV_VALIDATE
:
17281 case NB_EV_PREPARE
:
17285 return bgp_neighbor_afi_safi_flag_modify(
17286 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
17287 yang_dnode_get_bool(args
->dnode
, NULL
));
17297 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/send-community/send-large-community
17299 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_send_community_send_large_community_modify(
17300 struct nb_cb_modify_args
*args
)
17302 switch (args
->event
) {
17303 case NB_EV_VALIDATE
:
17304 case NB_EV_PREPARE
:
17308 return bgp_neighbor_afi_safi_flag_modify(
17309 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
17310 yang_dnode_get_bool(args
->dnode
, NULL
));
17320 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/soft-reconfiguration
17322 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_soft_reconfiguration_modify(
17323 struct nb_cb_modify_args
*args
)
17325 switch (args
->event
) {
17326 case NB_EV_VALIDATE
:
17327 case NB_EV_PREPARE
:
17331 return bgp_neighbor_afi_safi_flag_modify(
17332 args
, PEER_FLAG_SOFT_RECONFIG
,
17333 yang_dnode_get_bool(args
->dnode
, NULL
));
17343 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-multicast/weight/weight-attribute
17345 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_weight_weight_attribute_modify(
17346 struct nb_cb_modify_args
*args
)
17348 switch (args
->event
) {
17349 case NB_EV_VALIDATE
:
17350 case NB_EV_PREPARE
:
17354 return bgp_neighbor_afi_safi_weight_modify(args
);
17362 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_multicast_weight_weight_attribute_destroy(
17363 struct nb_cb_destroy_args
*args
)
17365 switch (args
->event
) {
17366 case NB_EV_VALIDATE
:
17367 case NB_EV_PREPARE
:
17371 return bgp_neighbor_afi_safi_weight_destroy(args
);
17381 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/add-paths/path-type
17383 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_add_paths_path_type_modify(
17384 struct nb_cb_modify_args
*args
)
17386 switch (args
->event
) {
17387 case NB_EV_VALIDATE
:
17388 case NB_EV_PREPARE
:
17391 /* TODO: implement me. */
17400 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/as-path-options/allow-own-as
17402 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_as_path_options_allow_own_as_modify(
17403 struct nb_cb_modify_args
*args
)
17405 switch (args
->event
) {
17406 case NB_EV_VALIDATE
:
17407 case NB_EV_PREPARE
:
17410 /* TODO: implement me. */
17417 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_as_path_options_allow_own_as_destroy(
17418 struct nb_cb_destroy_args
*args
)
17420 switch (args
->event
) {
17421 case NB_EV_VALIDATE
:
17422 case NB_EV_PREPARE
:
17425 /* TODO: implement me. */
17434 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/as-path-options/allow-own-origin-as
17436 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_as_path_options_allow_own_origin_as_modify(
17437 struct nb_cb_modify_args
*args
)
17439 switch (args
->event
) {
17440 case NB_EV_VALIDATE
:
17441 case NB_EV_PREPARE
:
17444 /* TODO: implement me. */
17451 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_as_path_options_allow_own_origin_as_destroy(
17452 struct nb_cb_destroy_args
*args
)
17454 switch (args
->event
) {
17455 case NB_EV_VALIDATE
:
17456 case NB_EV_PREPARE
:
17459 /* TODO: implement me. */
17468 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/as-path-options/replace-peer-as
17470 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_as_path_options_replace_peer_as_modify(
17471 struct nb_cb_modify_args
*args
)
17473 switch (args
->event
) {
17474 case NB_EV_VALIDATE
:
17475 case NB_EV_PREPARE
:
17479 return bgp_neighbor_afi_safi_flag_modify(
17480 args
, PEER_FLAG_AS_OVERRIDE
,
17481 yang_dnode_get_bool(args
->dnode
, NULL
));
17491 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/default-originate/originate
17493 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_default_originate_originate_modify(
17494 struct nb_cb_modify_args
*args
)
17496 switch (args
->event
) {
17497 case NB_EV_VALIDATE
:
17498 case NB_EV_PREPARE
:
17501 /* TODO: implement me. */
17510 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/default-originate/route-map
17512 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_default_originate_route_map_modify(
17513 struct nb_cb_modify_args
*args
)
17515 switch (args
->event
) {
17516 case NB_EV_VALIDATE
:
17517 case NB_EV_PREPARE
:
17520 /* TODO: implement me. */
17527 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_default_originate_route_map_destroy(
17528 struct nb_cb_destroy_args
*args
)
17530 switch (args
->event
) {
17531 case NB_EV_VALIDATE
:
17532 case NB_EV_PREPARE
:
17535 /* TODO: implement me. */
17544 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/attr-unchanged/as-path-unchanged
17546 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_attr_unchanged_as_path_unchanged_modify(
17547 struct nb_cb_modify_args
*args
)
17549 switch (args
->event
) {
17550 case NB_EV_VALIDATE
:
17551 case NB_EV_PREPARE
:
17555 return bgp_neighbor_afi_safi_flag_modify(
17556 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
17557 yang_dnode_get_bool(args
->dnode
, NULL
));
17567 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/attr-unchanged/next-hop-unchanged
17569 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_attr_unchanged_next_hop_unchanged_modify(
17570 struct nb_cb_modify_args
*args
)
17572 switch (args
->event
) {
17573 case NB_EV_VALIDATE
:
17574 case NB_EV_PREPARE
:
17578 return bgp_neighbor_afi_safi_flag_modify(
17579 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
17580 yang_dnode_get_bool(args
->dnode
, NULL
));
17590 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/attr-unchanged/med-unchanged
17592 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_attr_unchanged_med_unchanged_modify(
17593 struct nb_cb_modify_args
*args
)
17595 switch (args
->event
) {
17596 case NB_EV_VALIDATE
:
17597 case NB_EV_PREPARE
:
17601 return bgp_neighbor_afi_safi_flag_modify(
17602 args
, PEER_FLAG_MED_UNCHANGED
,
17603 yang_dnode_get_bool(args
->dnode
, NULL
));
17613 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/orf-capability/orf-send
17615 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_send_modify(
17616 struct nb_cb_modify_args
*args
)
17618 switch (args
->event
) {
17619 case NB_EV_VALIDATE
:
17620 case NB_EV_PREPARE
:
17623 /* TODO: implement me. */
17630 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_send_destroy(
17631 struct nb_cb_destroy_args
*args
)
17633 switch (args
->event
) {
17634 case NB_EV_VALIDATE
:
17635 case NB_EV_PREPARE
:
17638 /* TODO: implement me. */
17647 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/orf-capability/orf-receive
17649 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_receive_modify(
17650 struct nb_cb_modify_args
*args
)
17652 switch (args
->event
) {
17653 case NB_EV_VALIDATE
:
17654 case NB_EV_PREPARE
:
17657 /* TODO: implement me. */
17664 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_receive_destroy(
17665 struct nb_cb_destroy_args
*args
)
17667 switch (args
->event
) {
17668 case NB_EV_VALIDATE
:
17669 case NB_EV_PREPARE
:
17672 /* TODO: implement me. */
17681 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/orf-capability/orf-both
17683 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_both_modify(
17684 struct nb_cb_modify_args
*args
)
17686 switch (args
->event
) {
17687 case NB_EV_VALIDATE
:
17688 case NB_EV_PREPARE
:
17691 /* TODO: implement me. */
17698 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_both_destroy(
17699 struct nb_cb_destroy_args
*args
)
17701 switch (args
->event
) {
17702 case NB_EV_VALIDATE
:
17703 case NB_EV_PREPARE
:
17706 /* TODO: implement me. */
17715 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list
17717 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_create(
17718 struct nb_cb_create_args
*args
)
17720 switch (args
->event
) {
17721 case NB_EV_VALIDATE
:
17722 case NB_EV_PREPARE
:
17725 /* TODO: implement me. */
17732 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_destroy(
17733 struct nb_cb_destroy_args
*args
)
17735 switch (args
->event
) {
17736 case NB_EV_VALIDATE
:
17737 case NB_EV_PREPARE
:
17741 return bgp_neighbor_afi_safi_prefix_limit_list_destroy(args
);
17749 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/max-prefixes
17751 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_max_prefixes_modify(
17752 struct nb_cb_modify_args
*args
)
17754 switch (args
->event
) {
17755 case NB_EV_VALIDATE
:
17756 case NB_EV_PREPARE
:
17759 /* TODO: implement me. */
17768 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/force-check
17770 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_force_check_modify(
17771 struct nb_cb_modify_args
*args
)
17773 switch (args
->event
) {
17774 case NB_EV_VALIDATE
:
17775 case NB_EV_PREPARE
:
17778 /* TODO: implement me. */
17787 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/warning-only
17789 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_warning_only_modify(
17790 struct nb_cb_modify_args
*args
)
17792 switch (args
->event
) {
17793 case NB_EV_VALIDATE
:
17794 case NB_EV_PREPARE
:
17797 /* TODO: implement me. */
17804 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_warning_only_destroy(
17805 struct nb_cb_destroy_args
*args
)
17807 switch (args
->event
) {
17808 case NB_EV_VALIDATE
:
17809 case NB_EV_PREPARE
:
17812 /* TODO: implement me. */
17821 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/restart-timer
17823 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_restart_timer_modify(
17824 struct nb_cb_modify_args
*args
)
17826 switch (args
->event
) {
17827 case NB_EV_VALIDATE
:
17828 case NB_EV_PREPARE
:
17831 /* TODO: implement me. */
17838 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_restart_timer_destroy(
17839 struct nb_cb_destroy_args
*args
)
17841 switch (args
->event
) {
17842 case NB_EV_VALIDATE
:
17843 case NB_EV_PREPARE
:
17846 /* TODO: implement me. */
17855 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/shutdown-threshold-pct
17857 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
17858 struct nb_cb_modify_args
*args
)
17860 switch (args
->event
) {
17861 case NB_EV_VALIDATE
:
17862 case NB_EV_PREPARE
:
17865 /* TODO: implement me. */
17872 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
17873 struct nb_cb_destroy_args
*args
)
17875 switch (args
->event
) {
17876 case NB_EV_VALIDATE
:
17877 case NB_EV_PREPARE
:
17880 /* TODO: implement me. */
17889 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
17891 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
17892 struct nb_cb_modify_args
*args
)
17894 switch (args
->event
) {
17895 case NB_EV_VALIDATE
:
17896 case NB_EV_PREPARE
:
17899 /* TODO: implement me. */
17906 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
17907 struct nb_cb_destroy_args
*args
)
17909 switch (args
->event
) {
17910 case NB_EV_VALIDATE
:
17911 case NB_EV_PREPARE
:
17914 /* TODO: implement me. */
17923 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/tr-restart-timer
17925 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
17926 struct nb_cb_modify_args
*args
)
17928 switch (args
->event
) {
17929 case NB_EV_VALIDATE
:
17930 case NB_EV_PREPARE
:
17933 /* TODO: implement me. */
17940 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
17941 struct nb_cb_destroy_args
*args
)
17943 switch (args
->event
) {
17944 case NB_EV_VALIDATE
:
17945 case NB_EV_PREPARE
:
17948 /* TODO: implement me. */
17957 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
17959 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
17960 struct nb_cb_modify_args
*args
)
17962 switch (args
->event
) {
17963 case NB_EV_VALIDATE
:
17964 case NB_EV_PREPARE
:
17967 /* TODO: implement me. */
17974 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
17975 struct nb_cb_destroy_args
*args
)
17977 switch (args
->event
) {
17978 case NB_EV_VALIDATE
:
17979 case NB_EV_PREPARE
:
17982 /* TODO: implement me. */
17991 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/tw-warning-only
17993 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tw_warning_only_modify(
17994 struct nb_cb_modify_args
*args
)
17996 switch (args
->event
) {
17997 case NB_EV_VALIDATE
:
17998 case NB_EV_PREPARE
:
18001 /* TODO: implement me. */
18008 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
18009 struct nb_cb_destroy_args
*args
)
18011 switch (args
->event
) {
18012 case NB_EV_VALIDATE
:
18013 case NB_EV_PREPARE
:
18016 /* TODO: implement me. */
18025 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/nexthop-self/next-hop-self
18027 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_nexthop_self_next_hop_self_modify(
18028 struct nb_cb_modify_args
*args
)
18030 switch (args
->event
) {
18031 case NB_EV_VALIDATE
:
18032 case NB_EV_PREPARE
:
18036 return bgp_neighbor_afi_safi_flag_modify(
18037 args
, PEER_FLAG_NEXTHOP_SELF
,
18038 yang_dnode_get_bool(args
->dnode
, NULL
));
18048 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/nexthop-self/next-hop-self-force
18050 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_nexthop_self_next_hop_self_force_modify(
18051 struct nb_cb_modify_args
*args
)
18053 switch (args
->event
) {
18054 case NB_EV_VALIDATE
:
18055 case NB_EV_PREPARE
:
18059 return bgp_neighbor_afi_safi_flag_modify(
18060 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
18061 yang_dnode_get_bool(args
->dnode
, NULL
));
18071 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/private-as/remove-private-as-all
18073 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_private_as_remove_private_as_all_modify(
18074 struct nb_cb_modify_args
*args
)
18076 switch (args
->event
) {
18077 case NB_EV_VALIDATE
:
18078 case NB_EV_PREPARE
:
18082 return bgp_neighbor_afi_safi_flag_modify(
18083 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
18084 yang_dnode_get_bool(args
->dnode
, NULL
));
18094 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/private-as/remove-private-as-all-replace
18096 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_private_as_remove_private_as_all_replace_modify(
18097 struct nb_cb_modify_args
*args
)
18099 switch (args
->event
) {
18100 case NB_EV_VALIDATE
:
18101 case NB_EV_PREPARE
:
18105 return bgp_neighbor_afi_safi_flag_modify(
18106 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
18107 yang_dnode_get_bool(args
->dnode
, NULL
));
18117 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/private-as/remove-private-as
18119 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_private_as_remove_private_as_modify(
18120 struct nb_cb_modify_args
*args
)
18122 switch (args
->event
) {
18123 case NB_EV_VALIDATE
:
18124 case NB_EV_PREPARE
:
18128 return bgp_neighbor_afi_safi_flag_modify(
18129 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
18130 yang_dnode_get_bool(args
->dnode
, NULL
));
18140 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/private-as/remove-private-as-replace
18142 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_private_as_remove_private_as_replace_modify(
18143 struct nb_cb_modify_args
*args
)
18145 switch (args
->event
) {
18146 case NB_EV_VALIDATE
:
18147 case NB_EV_PREPARE
:
18151 return bgp_neighbor_afi_safi_flag_modify(
18152 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
18153 yang_dnode_get_bool(args
->dnode
, NULL
));
18163 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/route-reflector/route-reflector-client
18165 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_route_reflector_route_reflector_client_modify(
18166 struct nb_cb_modify_args
*args
)
18168 switch (args
->event
) {
18169 case NB_EV_VALIDATE
:
18170 case NB_EV_PREPARE
:
18174 return bgp_neighbor_afi_safi_flag_modify(
18175 args
, PEER_FLAG_REFLECTOR_CLIENT
,
18176 yang_dnode_get_bool(args
->dnode
, NULL
));
18186 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/route-server/route-server-client
18188 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_route_server_route_server_client_modify(
18189 struct nb_cb_modify_args
*args
)
18191 switch (args
->event
) {
18192 case NB_EV_VALIDATE
:
18193 case NB_EV_PREPARE
:
18197 return bgp_neighbor_afi_safi_flag_modify(
18198 args
, PEER_FLAG_RSERVER_CLIENT
,
18199 yang_dnode_get_bool(args
->dnode
, NULL
));
18209 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/send-community/send-community
18211 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_send_community_send_community_modify(
18212 struct nb_cb_modify_args
*args
)
18214 switch (args
->event
) {
18215 case NB_EV_VALIDATE
:
18216 case NB_EV_PREPARE
:
18220 return bgp_neighbor_afi_safi_flag_modify(
18221 args
, PEER_FLAG_SEND_COMMUNITY
,
18222 yang_dnode_get_bool(args
->dnode
, NULL
));
18232 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/send-community/send-ext-community
18234 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_send_community_send_ext_community_modify(
18235 struct nb_cb_modify_args
*args
)
18237 switch (args
->event
) {
18238 case NB_EV_VALIDATE
:
18239 case NB_EV_PREPARE
:
18243 return bgp_neighbor_afi_safi_flag_modify(
18244 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
18245 yang_dnode_get_bool(args
->dnode
, NULL
));
18255 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/send-community/send-large-community
18257 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_send_community_send_large_community_modify(
18258 struct nb_cb_modify_args
*args
)
18260 switch (args
->event
) {
18261 case NB_EV_VALIDATE
:
18262 case NB_EV_PREPARE
:
18266 return bgp_neighbor_afi_safi_flag_modify(
18267 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
18268 yang_dnode_get_bool(args
->dnode
, NULL
));
18278 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/soft-reconfiguration
18280 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_soft_reconfiguration_modify(
18281 struct nb_cb_modify_args
*args
)
18283 switch (args
->event
) {
18284 case NB_EV_VALIDATE
:
18285 case NB_EV_PREPARE
:
18289 return bgp_neighbor_afi_safi_flag_modify(
18290 args
, PEER_FLAG_SOFT_RECONFIG
,
18291 yang_dnode_get_bool(args
->dnode
, NULL
));
18301 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-multicast/weight/weight-attribute
18303 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_weight_weight_attribute_modify(
18304 struct nb_cb_modify_args
*args
)
18306 switch (args
->event
) {
18307 case NB_EV_VALIDATE
:
18308 case NB_EV_PREPARE
:
18312 return bgp_neighbor_afi_safi_weight_modify(args
);
18320 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_multicast_weight_weight_attribute_destroy(
18321 struct nb_cb_destroy_args
*args
)
18323 switch (args
->event
) {
18324 case NB_EV_VALIDATE
:
18325 case NB_EV_PREPARE
:
18329 return bgp_neighbor_afi_safi_weight_destroy(args
);
18339 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/add-paths/path-type
18341 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_add_paths_path_type_modify(
18342 struct nb_cb_modify_args
*args
)
18344 switch (args
->event
) {
18345 case NB_EV_VALIDATE
:
18346 case NB_EV_PREPARE
:
18349 /* TODO: implement me. */
18358 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/as-path-options/allow-own-as
18360 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_allow_own_as_modify(
18361 struct nb_cb_modify_args
*args
)
18363 switch (args
->event
) {
18364 case NB_EV_VALIDATE
:
18365 case NB_EV_PREPARE
:
18368 /* TODO: implement me. */
18375 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_allow_own_as_destroy(
18376 struct nb_cb_destroy_args
*args
)
18378 switch (args
->event
) {
18379 case NB_EV_VALIDATE
:
18380 case NB_EV_PREPARE
:
18383 /* TODO: implement me. */
18392 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/as-path-options/allow-own-origin-as
18394 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_allow_own_origin_as_modify(
18395 struct nb_cb_modify_args
*args
)
18397 switch (args
->event
) {
18398 case NB_EV_VALIDATE
:
18399 case NB_EV_PREPARE
:
18402 /* TODO: implement me. */
18409 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_allow_own_origin_as_destroy(
18410 struct nb_cb_destroy_args
*args
)
18412 switch (args
->event
) {
18413 case NB_EV_VALIDATE
:
18414 case NB_EV_PREPARE
:
18417 /* TODO: implement me. */
18426 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/as-path-options/replace-peer-as
18428 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_replace_peer_as_modify(
18429 struct nb_cb_modify_args
*args
)
18431 switch (args
->event
) {
18432 case NB_EV_VALIDATE
:
18433 case NB_EV_PREPARE
:
18437 return bgp_neighbor_afi_safi_flag_modify(
18438 args
, PEER_FLAG_AS_OVERRIDE
,
18439 yang_dnode_get_bool(args
->dnode
, NULL
));
18449 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/default-originate/originate
18451 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_default_originate_originate_modify(
18452 struct nb_cb_modify_args
*args
)
18454 switch (args
->event
) {
18455 case NB_EV_VALIDATE
:
18456 case NB_EV_PREPARE
:
18459 /* TODO: implement me. */
18468 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/default-originate/route-map
18470 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_default_originate_route_map_modify(
18471 struct nb_cb_modify_args
*args
)
18473 switch (args
->event
) {
18474 case NB_EV_VALIDATE
:
18475 case NB_EV_PREPARE
:
18478 /* TODO: implement me. */
18485 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_default_originate_route_map_destroy(
18486 struct nb_cb_destroy_args
*args
)
18488 switch (args
->event
) {
18489 case NB_EV_VALIDATE
:
18490 case NB_EV_PREPARE
:
18493 /* TODO: implement me. */
18502 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/attr-unchanged/as-path-unchanged
18504 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_attr_unchanged_as_path_unchanged_modify(
18505 struct nb_cb_modify_args
*args
)
18507 switch (args
->event
) {
18508 case NB_EV_VALIDATE
:
18509 case NB_EV_PREPARE
:
18513 return bgp_neighbor_afi_safi_flag_modify(
18514 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
18515 yang_dnode_get_bool(args
->dnode
, NULL
));
18525 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/attr-unchanged/next-hop-unchanged
18527 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_attr_unchanged_next_hop_unchanged_modify(
18528 struct nb_cb_modify_args
*args
)
18530 switch (args
->event
) {
18531 case NB_EV_VALIDATE
:
18532 case NB_EV_PREPARE
:
18536 return bgp_neighbor_afi_safi_flag_modify(
18537 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
18538 yang_dnode_get_bool(args
->dnode
, NULL
));
18548 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/attr-unchanged/med-unchanged
18550 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_attr_unchanged_med_unchanged_modify(
18551 struct nb_cb_modify_args
*args
)
18553 switch (args
->event
) {
18554 case NB_EV_VALIDATE
:
18555 case NB_EV_PREPARE
:
18559 return bgp_neighbor_afi_safi_flag_modify(
18560 args
, PEER_FLAG_MED_UNCHANGED
,
18561 yang_dnode_get_bool(args
->dnode
, NULL
));
18571 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/orf-capability/orf-send
18573 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_send_modify(
18574 struct nb_cb_modify_args
*args
)
18576 switch (args
->event
) {
18577 case NB_EV_VALIDATE
:
18578 case NB_EV_PREPARE
:
18581 /* TODO: implement me. */
18588 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_send_destroy(
18589 struct nb_cb_destroy_args
*args
)
18591 switch (args
->event
) {
18592 case NB_EV_VALIDATE
:
18593 case NB_EV_PREPARE
:
18596 /* TODO: implement me. */
18605 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/orf-capability/orf-receive
18607 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_receive_modify(
18608 struct nb_cb_modify_args
*args
)
18610 switch (args
->event
) {
18611 case NB_EV_VALIDATE
:
18612 case NB_EV_PREPARE
:
18615 /* TODO: implement me. */
18622 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_receive_destroy(
18623 struct nb_cb_destroy_args
*args
)
18625 switch (args
->event
) {
18626 case NB_EV_VALIDATE
:
18627 case NB_EV_PREPARE
:
18630 /* TODO: implement me. */
18639 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/orf-capability/orf-both
18641 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_both_modify(
18642 struct nb_cb_modify_args
*args
)
18644 switch (args
->event
) {
18645 case NB_EV_VALIDATE
:
18646 case NB_EV_PREPARE
:
18649 /* TODO: implement me. */
18656 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_both_destroy(
18657 struct nb_cb_destroy_args
*args
)
18659 switch (args
->event
) {
18660 case NB_EV_VALIDATE
:
18661 case NB_EV_PREPARE
:
18664 /* TODO: implement me. */
18673 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list
18675 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_create(
18676 struct nb_cb_create_args
*args
)
18678 switch (args
->event
) {
18679 case NB_EV_VALIDATE
:
18680 case NB_EV_PREPARE
:
18683 /* TODO: implement me. */
18690 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_destroy(
18691 struct nb_cb_destroy_args
*args
)
18693 switch (args
->event
) {
18694 case NB_EV_VALIDATE
:
18695 case NB_EV_PREPARE
:
18699 return bgp_neighbor_afi_safi_prefix_limit_list_destroy(args
);
18707 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/max-prefixes
18709 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_max_prefixes_modify(
18710 struct nb_cb_modify_args
*args
)
18712 switch (args
->event
) {
18713 case NB_EV_VALIDATE
:
18714 case NB_EV_PREPARE
:
18717 /* TODO: implement me. */
18726 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/force-check
18728 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_force_check_modify(
18729 struct nb_cb_modify_args
*args
)
18731 switch (args
->event
) {
18732 case NB_EV_VALIDATE
:
18733 case NB_EV_PREPARE
:
18736 /* TODO: implement me. */
18745 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/warning-only
18747 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_warning_only_modify(
18748 struct nb_cb_modify_args
*args
)
18750 switch (args
->event
) {
18751 case NB_EV_VALIDATE
:
18752 case NB_EV_PREPARE
:
18755 /* TODO: implement me. */
18762 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_warning_only_destroy(
18763 struct nb_cb_destroy_args
*args
)
18765 switch (args
->event
) {
18766 case NB_EV_VALIDATE
:
18767 case NB_EV_PREPARE
:
18770 /* TODO: implement me. */
18779 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/restart-timer
18781 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_restart_timer_modify(
18782 struct nb_cb_modify_args
*args
)
18784 switch (args
->event
) {
18785 case NB_EV_VALIDATE
:
18786 case NB_EV_PREPARE
:
18789 /* TODO: implement me. */
18796 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
18797 struct nb_cb_destroy_args
*args
)
18799 switch (args
->event
) {
18800 case NB_EV_VALIDATE
:
18801 case NB_EV_PREPARE
:
18804 /* TODO: implement me. */
18813 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
18815 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
18816 struct nb_cb_modify_args
*args
)
18818 switch (args
->event
) {
18819 case NB_EV_VALIDATE
:
18820 case NB_EV_PREPARE
:
18823 /* TODO: implement me. */
18830 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
18831 struct nb_cb_destroy_args
*args
)
18833 switch (args
->event
) {
18834 case NB_EV_VALIDATE
:
18835 case NB_EV_PREPARE
:
18838 /* TODO: implement me. */
18847 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
18849 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
18850 struct nb_cb_modify_args
*args
)
18852 switch (args
->event
) {
18853 case NB_EV_VALIDATE
:
18854 case NB_EV_PREPARE
:
18857 /* TODO: implement me. */
18864 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
18865 struct nb_cb_destroy_args
*args
)
18867 switch (args
->event
) {
18868 case NB_EV_VALIDATE
:
18869 case NB_EV_PREPARE
:
18872 /* TODO: implement me. */
18881 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/tr-restart-timer
18883 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
18884 struct nb_cb_modify_args
*args
)
18886 switch (args
->event
) {
18887 case NB_EV_VALIDATE
:
18888 case NB_EV_PREPARE
:
18891 /* TODO: implement me. */
18898 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
18899 struct nb_cb_destroy_args
*args
)
18901 switch (args
->event
) {
18902 case NB_EV_VALIDATE
:
18903 case NB_EV_PREPARE
:
18906 /* TODO: implement me. */
18915 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
18917 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
18918 struct nb_cb_modify_args
*args
)
18920 switch (args
->event
) {
18921 case NB_EV_VALIDATE
:
18922 case NB_EV_PREPARE
:
18925 /* TODO: implement me. */
18932 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
18933 struct nb_cb_destroy_args
*args
)
18935 switch (args
->event
) {
18936 case NB_EV_VALIDATE
:
18937 case NB_EV_PREPARE
:
18940 /* TODO: implement me. */
18949 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/tw-warning-only
18951 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
18952 struct nb_cb_modify_args
*args
)
18954 switch (args
->event
) {
18955 case NB_EV_VALIDATE
:
18956 case NB_EV_PREPARE
:
18959 /* TODO: implement me. */
18966 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
18967 struct nb_cb_destroy_args
*args
)
18969 switch (args
->event
) {
18970 case NB_EV_VALIDATE
:
18971 case NB_EV_PREPARE
:
18974 /* TODO: implement me. */
18983 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/nexthop-self/next-hop-self
18985 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_nexthop_self_next_hop_self_modify(
18986 struct nb_cb_modify_args
*args
)
18988 switch (args
->event
) {
18989 case NB_EV_VALIDATE
:
18990 case NB_EV_PREPARE
:
18994 return bgp_neighbor_afi_safi_flag_modify(
18995 args
, PEER_FLAG_NEXTHOP_SELF
,
18996 yang_dnode_get_bool(args
->dnode
, NULL
));
19006 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/nexthop-self/next-hop-self-force
19008 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_nexthop_self_next_hop_self_force_modify(
19009 struct nb_cb_modify_args
*args
)
19011 switch (args
->event
) {
19012 case NB_EV_VALIDATE
:
19013 case NB_EV_PREPARE
:
19017 return bgp_neighbor_afi_safi_flag_modify(
19018 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
19019 yang_dnode_get_bool(args
->dnode
, NULL
));
19029 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/private-as/remove-private-as-all
19031 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_private_as_remove_private_as_all_modify(
19032 struct nb_cb_modify_args
*args
)
19034 switch (args
->event
) {
19035 case NB_EV_VALIDATE
:
19036 case NB_EV_PREPARE
:
19040 return bgp_neighbor_afi_safi_flag_modify(
19041 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
19042 yang_dnode_get_bool(args
->dnode
, NULL
));
19052 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/private-as/remove-private-as-all-replace
19054 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_private_as_remove_private_as_all_replace_modify(
19055 struct nb_cb_modify_args
*args
)
19057 switch (args
->event
) {
19058 case NB_EV_VALIDATE
:
19059 case NB_EV_PREPARE
:
19063 return bgp_neighbor_afi_safi_flag_modify(
19064 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
19065 yang_dnode_get_bool(args
->dnode
, NULL
));
19075 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/private-as/remove-private-as
19077 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_private_as_remove_private_as_modify(
19078 struct nb_cb_modify_args
*args
)
19080 switch (args
->event
) {
19081 case NB_EV_VALIDATE
:
19082 case NB_EV_PREPARE
:
19086 return bgp_neighbor_afi_safi_flag_modify(
19087 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
19088 yang_dnode_get_bool(args
->dnode
, NULL
));
19098 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/private-as/remove-private-as-replace
19100 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_private_as_remove_private_as_replace_modify(
19101 struct nb_cb_modify_args
*args
)
19103 switch (args
->event
) {
19104 case NB_EV_VALIDATE
:
19105 case NB_EV_PREPARE
:
19109 return bgp_neighbor_afi_safi_flag_modify(
19110 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
19111 yang_dnode_get_bool(args
->dnode
, NULL
));
19121 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/route-reflector/route-reflector-client
19123 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_route_reflector_route_reflector_client_modify(
19124 struct nb_cb_modify_args
*args
)
19126 switch (args
->event
) {
19127 case NB_EV_VALIDATE
:
19128 case NB_EV_PREPARE
:
19132 return bgp_neighbor_afi_safi_flag_modify(
19133 args
, PEER_FLAG_REFLECTOR_CLIENT
,
19134 yang_dnode_get_bool(args
->dnode
, NULL
));
19144 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/route-server/route-server-client
19146 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_route_server_route_server_client_modify(
19147 struct nb_cb_modify_args
*args
)
19149 switch (args
->event
) {
19150 case NB_EV_VALIDATE
:
19151 case NB_EV_PREPARE
:
19155 return bgp_neighbor_afi_safi_flag_modify(
19156 args
, PEER_FLAG_RSERVER_CLIENT
,
19157 yang_dnode_get_bool(args
->dnode
, NULL
));
19167 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/send-community/send-community
19169 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_send_community_send_community_modify(
19170 struct nb_cb_modify_args
*args
)
19172 switch (args
->event
) {
19173 case NB_EV_VALIDATE
:
19174 case NB_EV_PREPARE
:
19178 return bgp_neighbor_afi_safi_flag_modify(
19179 args
, PEER_FLAG_SEND_COMMUNITY
,
19180 yang_dnode_get_bool(args
->dnode
, NULL
));
19190 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/send-community/send-ext-community
19192 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_send_community_send_ext_community_modify(
19193 struct nb_cb_modify_args
*args
)
19195 switch (args
->event
) {
19196 case NB_EV_VALIDATE
:
19197 case NB_EV_PREPARE
:
19201 return bgp_neighbor_afi_safi_flag_modify(
19202 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
19203 yang_dnode_get_bool(args
->dnode
, NULL
));
19213 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/send-community/send-large-community
19215 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_send_community_send_large_community_modify(
19216 struct nb_cb_modify_args
*args
)
19218 switch (args
->event
) {
19219 case NB_EV_VALIDATE
:
19220 case NB_EV_PREPARE
:
19224 return bgp_neighbor_afi_safi_flag_modify(
19225 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
19226 yang_dnode_get_bool(args
->dnode
, NULL
));
19236 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/soft-reconfiguration
19238 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_soft_reconfiguration_modify(
19239 struct nb_cb_modify_args
*args
)
19241 switch (args
->event
) {
19242 case NB_EV_VALIDATE
:
19243 case NB_EV_PREPARE
:
19247 return bgp_neighbor_afi_safi_flag_modify(
19248 args
, PEER_FLAG_SOFT_RECONFIG
,
19249 yang_dnode_get_bool(args
->dnode
, NULL
));
19259 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/weight/weight-attribute
19261 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_weight_weight_attribute_modify(
19262 struct nb_cb_modify_args
*args
)
19264 switch (args
->event
) {
19265 case NB_EV_VALIDATE
:
19266 case NB_EV_PREPARE
:
19270 return bgp_neighbor_afi_safi_weight_modify(args
);
19278 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_weight_weight_attribute_destroy(
19279 struct nb_cb_destroy_args
*args
)
19281 switch (args
->event
) {
19282 case NB_EV_VALIDATE
:
19283 case NB_EV_PREPARE
:
19287 return bgp_neighbor_afi_safi_weight_destroy(args
);
19297 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/add-paths/path-type
19299 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_add_paths_path_type_modify(
19300 struct nb_cb_modify_args
*args
)
19302 switch (args
->event
) {
19303 case NB_EV_VALIDATE
:
19304 case NB_EV_PREPARE
:
19307 /* TODO: implement me. */
19316 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/as-path-options/allow-own-as
19318 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_allow_own_as_modify(
19319 struct nb_cb_modify_args
*args
)
19321 switch (args
->event
) {
19322 case NB_EV_VALIDATE
:
19323 case NB_EV_PREPARE
:
19326 /* TODO: implement me. */
19333 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_allow_own_as_destroy(
19334 struct nb_cb_destroy_args
*args
)
19336 switch (args
->event
) {
19337 case NB_EV_VALIDATE
:
19338 case NB_EV_PREPARE
:
19341 /* TODO: implement me. */
19350 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/as-path-options/allow-own-origin-as
19352 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_allow_own_origin_as_modify(
19353 struct nb_cb_modify_args
*args
)
19355 switch (args
->event
) {
19356 case NB_EV_VALIDATE
:
19357 case NB_EV_PREPARE
:
19360 /* TODO: implement me. */
19367 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_allow_own_origin_as_destroy(
19368 struct nb_cb_destroy_args
*args
)
19370 switch (args
->event
) {
19371 case NB_EV_VALIDATE
:
19372 case NB_EV_PREPARE
:
19375 /* TODO: implement me. */
19384 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/as-path-options/replace-peer-as
19386 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_replace_peer_as_modify(
19387 struct nb_cb_modify_args
*args
)
19389 switch (args
->event
) {
19390 case NB_EV_VALIDATE
:
19391 case NB_EV_PREPARE
:
19395 return bgp_neighbor_afi_safi_flag_modify(
19396 args
, PEER_FLAG_AS_OVERRIDE
,
19397 yang_dnode_get_bool(args
->dnode
, NULL
));
19407 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/default-originate/originate
19409 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_default_originate_originate_modify(
19410 struct nb_cb_modify_args
*args
)
19412 switch (args
->event
) {
19413 case NB_EV_VALIDATE
:
19414 case NB_EV_PREPARE
:
19417 /* TODO: implement me. */
19426 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/default-originate/route-map
19428 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_default_originate_route_map_modify(
19429 struct nb_cb_modify_args
*args
)
19431 switch (args
->event
) {
19432 case NB_EV_VALIDATE
:
19433 case NB_EV_PREPARE
:
19436 /* TODO: implement me. */
19443 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_default_originate_route_map_destroy(
19444 struct nb_cb_destroy_args
*args
)
19446 switch (args
->event
) {
19447 case NB_EV_VALIDATE
:
19448 case NB_EV_PREPARE
:
19451 /* TODO: implement me. */
19460 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/attr-unchanged/as-path-unchanged
19462 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_attr_unchanged_as_path_unchanged_modify(
19463 struct nb_cb_modify_args
*args
)
19465 switch (args
->event
) {
19466 case NB_EV_VALIDATE
:
19467 case NB_EV_PREPARE
:
19471 return bgp_neighbor_afi_safi_flag_modify(
19472 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
19473 yang_dnode_get_bool(args
->dnode
, NULL
));
19483 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/attr-unchanged/next-hop-unchanged
19485 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_attr_unchanged_next_hop_unchanged_modify(
19486 struct nb_cb_modify_args
*args
)
19488 switch (args
->event
) {
19489 case NB_EV_VALIDATE
:
19490 case NB_EV_PREPARE
:
19494 return bgp_neighbor_afi_safi_flag_modify(
19495 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
19496 yang_dnode_get_bool(args
->dnode
, NULL
));
19506 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/attr-unchanged/med-unchanged
19508 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_attr_unchanged_med_unchanged_modify(
19509 struct nb_cb_modify_args
*args
)
19511 switch (args
->event
) {
19512 case NB_EV_VALIDATE
:
19513 case NB_EV_PREPARE
:
19517 return bgp_neighbor_afi_safi_flag_modify(
19518 args
, PEER_FLAG_MED_UNCHANGED
,
19519 yang_dnode_get_bool(args
->dnode
, NULL
));
19529 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/orf-capability/orf-send
19531 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_send_modify(
19532 struct nb_cb_modify_args
*args
)
19534 switch (args
->event
) {
19535 case NB_EV_VALIDATE
:
19536 case NB_EV_PREPARE
:
19539 /* TODO: implement me. */
19546 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_send_destroy(
19547 struct nb_cb_destroy_args
*args
)
19549 switch (args
->event
) {
19550 case NB_EV_VALIDATE
:
19551 case NB_EV_PREPARE
:
19554 /* TODO: implement me. */
19563 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/orf-capability/orf-receive
19565 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_receive_modify(
19566 struct nb_cb_modify_args
*args
)
19568 switch (args
->event
) {
19569 case NB_EV_VALIDATE
:
19570 case NB_EV_PREPARE
:
19573 /* TODO: implement me. */
19580 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_receive_destroy(
19581 struct nb_cb_destroy_args
*args
)
19583 switch (args
->event
) {
19584 case NB_EV_VALIDATE
:
19585 case NB_EV_PREPARE
:
19588 /* TODO: implement me. */
19597 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/orf-capability/orf-both
19599 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_both_modify(
19600 struct nb_cb_modify_args
*args
)
19602 switch (args
->event
) {
19603 case NB_EV_VALIDATE
:
19604 case NB_EV_PREPARE
:
19607 /* TODO: implement me. */
19614 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_both_destroy(
19615 struct nb_cb_destroy_args
*args
)
19617 switch (args
->event
) {
19618 case NB_EV_VALIDATE
:
19619 case NB_EV_PREPARE
:
19622 /* TODO: implement me. */
19631 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list
19633 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_create(
19634 struct nb_cb_create_args
*args
)
19636 switch (args
->event
) {
19637 case NB_EV_VALIDATE
:
19638 case NB_EV_PREPARE
:
19641 /* TODO: implement me. */
19648 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_destroy(
19649 struct nb_cb_destroy_args
*args
)
19651 switch (args
->event
) {
19652 case NB_EV_VALIDATE
:
19653 case NB_EV_PREPARE
:
19657 return bgp_neighbor_afi_safi_prefix_limit_list_destroy(args
);
19665 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/max-prefixes
19667 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_max_prefixes_modify(
19668 struct nb_cb_modify_args
*args
)
19670 switch (args
->event
) {
19671 case NB_EV_VALIDATE
:
19672 case NB_EV_PREPARE
:
19675 /* TODO: implement me. */
19684 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/force-check
19686 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_force_check_modify(
19687 struct nb_cb_modify_args
*args
)
19689 switch (args
->event
) {
19690 case NB_EV_VALIDATE
:
19691 case NB_EV_PREPARE
:
19694 /* TODO: implement me. */
19703 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/warning-only
19705 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_warning_only_modify(
19706 struct nb_cb_modify_args
*args
)
19708 switch (args
->event
) {
19709 case NB_EV_VALIDATE
:
19710 case NB_EV_PREPARE
:
19713 /* TODO: implement me. */
19720 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_warning_only_destroy(
19721 struct nb_cb_destroy_args
*args
)
19723 switch (args
->event
) {
19724 case NB_EV_VALIDATE
:
19725 case NB_EV_PREPARE
:
19728 /* TODO: implement me. */
19737 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/restart-timer
19739 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_restart_timer_modify(
19740 struct nb_cb_modify_args
*args
)
19742 switch (args
->event
) {
19743 case NB_EV_VALIDATE
:
19744 case NB_EV_PREPARE
:
19747 /* TODO: implement me. */
19754 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
19755 struct nb_cb_destroy_args
*args
)
19757 switch (args
->event
) {
19758 case NB_EV_VALIDATE
:
19759 case NB_EV_PREPARE
:
19762 /* TODO: implement me. */
19771 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
19773 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
19774 struct nb_cb_modify_args
*args
)
19776 switch (args
->event
) {
19777 case NB_EV_VALIDATE
:
19778 case NB_EV_PREPARE
:
19781 /* TODO: implement me. */
19788 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
19789 struct nb_cb_destroy_args
*args
)
19791 switch (args
->event
) {
19792 case NB_EV_VALIDATE
:
19793 case NB_EV_PREPARE
:
19796 /* TODO: implement me. */
19805 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
19807 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
19808 struct nb_cb_modify_args
*args
)
19810 switch (args
->event
) {
19811 case NB_EV_VALIDATE
:
19812 case NB_EV_PREPARE
:
19815 /* TODO: implement me. */
19822 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
19823 struct nb_cb_destroy_args
*args
)
19825 switch (args
->event
) {
19826 case NB_EV_VALIDATE
:
19827 case NB_EV_PREPARE
:
19830 /* TODO: implement me. */
19839 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/tr-restart-timer
19841 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
19842 struct nb_cb_modify_args
*args
)
19844 switch (args
->event
) {
19845 case NB_EV_VALIDATE
:
19846 case NB_EV_PREPARE
:
19849 /* TODO: implement me. */
19856 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
19857 struct nb_cb_destroy_args
*args
)
19859 switch (args
->event
) {
19860 case NB_EV_VALIDATE
:
19861 case NB_EV_PREPARE
:
19864 /* TODO: implement me. */
19873 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
19875 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
19876 struct nb_cb_modify_args
*args
)
19878 switch (args
->event
) {
19879 case NB_EV_VALIDATE
:
19880 case NB_EV_PREPARE
:
19883 /* TODO: implement me. */
19890 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
19891 struct nb_cb_destroy_args
*args
)
19893 switch (args
->event
) {
19894 case NB_EV_VALIDATE
:
19895 case NB_EV_PREPARE
:
19898 /* TODO: implement me. */
19907 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/tw-warning-only
19909 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
19910 struct nb_cb_modify_args
*args
)
19912 switch (args
->event
) {
19913 case NB_EV_VALIDATE
:
19914 case NB_EV_PREPARE
:
19917 /* TODO: implement me. */
19924 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
19925 struct nb_cb_destroy_args
*args
)
19927 switch (args
->event
) {
19928 case NB_EV_VALIDATE
:
19929 case NB_EV_PREPARE
:
19932 /* TODO: implement me. */
19941 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/nexthop-self/next-hop-self
19943 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_nexthop_self_next_hop_self_modify(
19944 struct nb_cb_modify_args
*args
)
19946 switch (args
->event
) {
19947 case NB_EV_VALIDATE
:
19948 case NB_EV_PREPARE
:
19952 return bgp_neighbor_afi_safi_flag_modify(
19953 args
, PEER_FLAG_NEXTHOP_SELF
,
19954 yang_dnode_get_bool(args
->dnode
, NULL
));
19964 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/nexthop-self/next-hop-self-force
19966 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_nexthop_self_next_hop_self_force_modify(
19967 struct nb_cb_modify_args
*args
)
19969 switch (args
->event
) {
19970 case NB_EV_VALIDATE
:
19971 case NB_EV_PREPARE
:
19975 return bgp_neighbor_afi_safi_flag_modify(
19976 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
19977 yang_dnode_get_bool(args
->dnode
, NULL
));
19987 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/private-as/remove-private-as-all
19989 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_private_as_remove_private_as_all_modify(
19990 struct nb_cb_modify_args
*args
)
19992 switch (args
->event
) {
19993 case NB_EV_VALIDATE
:
19994 case NB_EV_PREPARE
:
19998 return bgp_neighbor_afi_safi_flag_modify(
19999 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
20000 yang_dnode_get_bool(args
->dnode
, NULL
));
20010 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/private-as/remove-private-as-all-replace
20012 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_private_as_remove_private_as_all_replace_modify(
20013 struct nb_cb_modify_args
*args
)
20015 switch (args
->event
) {
20016 case NB_EV_VALIDATE
:
20017 case NB_EV_PREPARE
:
20021 return bgp_neighbor_afi_safi_flag_modify(
20022 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
20023 yang_dnode_get_bool(args
->dnode
, NULL
));
20033 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/private-as/remove-private-as
20035 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_private_as_remove_private_as_modify(
20036 struct nb_cb_modify_args
*args
)
20038 switch (args
->event
) {
20039 case NB_EV_VALIDATE
:
20040 case NB_EV_PREPARE
:
20044 return bgp_neighbor_afi_safi_flag_modify(
20045 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
20046 yang_dnode_get_bool(args
->dnode
, NULL
));
20056 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/private-as/remove-private-as-replace
20058 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_private_as_remove_private_as_replace_modify(
20059 struct nb_cb_modify_args
*args
)
20061 switch (args
->event
) {
20062 case NB_EV_VALIDATE
:
20063 case NB_EV_PREPARE
:
20067 return bgp_neighbor_afi_safi_flag_modify(
20068 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
20069 yang_dnode_get_bool(args
->dnode
, NULL
));
20079 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/route-reflector/route-reflector-client
20081 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_route_reflector_route_reflector_client_modify(
20082 struct nb_cb_modify_args
*args
)
20084 switch (args
->event
) {
20085 case NB_EV_VALIDATE
:
20086 case NB_EV_PREPARE
:
20090 return bgp_neighbor_afi_safi_flag_modify(
20091 args
, PEER_FLAG_REFLECTOR_CLIENT
,
20092 yang_dnode_get_bool(args
->dnode
, NULL
));
20102 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/route-server/route-server-client
20104 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_route_server_route_server_client_modify(
20105 struct nb_cb_modify_args
*args
)
20107 switch (args
->event
) {
20108 case NB_EV_VALIDATE
:
20109 case NB_EV_PREPARE
:
20113 return bgp_neighbor_afi_safi_flag_modify(
20114 args
, PEER_FLAG_RSERVER_CLIENT
,
20115 yang_dnode_get_bool(args
->dnode
, NULL
));
20125 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/send-community/send-community
20127 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_send_community_send_community_modify(
20128 struct nb_cb_modify_args
*args
)
20130 switch (args
->event
) {
20131 case NB_EV_VALIDATE
:
20132 case NB_EV_PREPARE
:
20136 return bgp_neighbor_afi_safi_flag_modify(
20137 args
, PEER_FLAG_SEND_COMMUNITY
,
20138 yang_dnode_get_bool(args
->dnode
, NULL
));
20148 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/send-community/send-ext-community
20150 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_send_community_send_ext_community_modify(
20151 struct nb_cb_modify_args
*args
)
20153 switch (args
->event
) {
20154 case NB_EV_VALIDATE
:
20155 case NB_EV_PREPARE
:
20159 return bgp_neighbor_afi_safi_flag_modify(
20160 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
20161 yang_dnode_get_bool(args
->dnode
, NULL
));
20171 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/send-community/send-large-community
20173 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_send_community_send_large_community_modify(
20174 struct nb_cb_modify_args
*args
)
20176 switch (args
->event
) {
20177 case NB_EV_VALIDATE
:
20178 case NB_EV_PREPARE
:
20182 return bgp_neighbor_afi_safi_flag_modify(
20183 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
20184 yang_dnode_get_bool(args
->dnode
, NULL
));
20194 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/soft-reconfiguration
20196 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_soft_reconfiguration_modify(
20197 struct nb_cb_modify_args
*args
)
20199 switch (args
->event
) {
20200 case NB_EV_VALIDATE
:
20201 case NB_EV_PREPARE
:
20205 return bgp_neighbor_afi_safi_flag_modify(
20206 args
, PEER_FLAG_SOFT_RECONFIG
,
20207 yang_dnode_get_bool(args
->dnode
, NULL
));
20217 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/weight/weight-attribute
20219 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_weight_weight_attribute_modify(
20220 struct nb_cb_modify_args
*args
)
20222 switch (args
->event
) {
20223 case NB_EV_VALIDATE
:
20224 case NB_EV_PREPARE
:
20228 return bgp_neighbor_afi_safi_weight_modify(args
);
20236 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_weight_weight_attribute_destroy(
20237 struct nb_cb_destroy_args
*args
)
20239 switch (args
->event
) {
20240 case NB_EV_VALIDATE
:
20241 case NB_EV_PREPARE
:
20245 return bgp_neighbor_afi_safi_weight_destroy(args
);
20255 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/add-paths/path-type
20257 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_add_paths_path_type_modify(
20258 struct nb_cb_modify_args
*args
)
20260 switch (args
->event
) {
20261 case NB_EV_VALIDATE
:
20262 case NB_EV_PREPARE
:
20265 /* TODO: implement me. */
20274 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/as-path-options/allow-own-as
20276 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_allow_own_as_modify(
20277 struct nb_cb_modify_args
*args
)
20279 switch (args
->event
) {
20280 case NB_EV_VALIDATE
:
20281 case NB_EV_PREPARE
:
20284 /* TODO: implement me. */
20291 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_allow_own_as_destroy(
20292 struct nb_cb_destroy_args
*args
)
20294 switch (args
->event
) {
20295 case NB_EV_VALIDATE
:
20296 case NB_EV_PREPARE
:
20299 /* TODO: implement me. */
20308 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/as-path-options/allow-own-origin-as
20310 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_allow_own_origin_as_modify(
20311 struct nb_cb_modify_args
*args
)
20313 switch (args
->event
) {
20314 case NB_EV_VALIDATE
:
20315 case NB_EV_PREPARE
:
20318 /* TODO: implement me. */
20325 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_allow_own_origin_as_destroy(
20326 struct nb_cb_destroy_args
*args
)
20328 switch (args
->event
) {
20329 case NB_EV_VALIDATE
:
20330 case NB_EV_PREPARE
:
20333 /* TODO: implement me. */
20342 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/as-path-options/replace-peer-as
20344 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_replace_peer_as_modify(
20345 struct nb_cb_modify_args
*args
)
20347 switch (args
->event
) {
20348 case NB_EV_VALIDATE
:
20349 case NB_EV_PREPARE
:
20353 return bgp_neighbor_afi_safi_flag_modify(
20354 args
, PEER_FLAG_AS_OVERRIDE
,
20355 yang_dnode_get_bool(args
->dnode
, NULL
));
20365 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/attr-unchanged/as-path-unchanged
20367 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_attr_unchanged_as_path_unchanged_modify(
20368 struct nb_cb_modify_args
*args
)
20370 switch (args
->event
) {
20371 case NB_EV_VALIDATE
:
20372 case NB_EV_PREPARE
:
20376 return bgp_neighbor_afi_safi_flag_modify(
20377 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
20378 yang_dnode_get_bool(args
->dnode
, NULL
));
20388 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/attr-unchanged/next-hop-unchanged
20390 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_attr_unchanged_next_hop_unchanged_modify(
20391 struct nb_cb_modify_args
*args
)
20393 switch (args
->event
) {
20394 case NB_EV_VALIDATE
:
20395 case NB_EV_PREPARE
:
20399 return bgp_neighbor_afi_safi_flag_modify(
20400 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
20401 yang_dnode_get_bool(args
->dnode
, NULL
));
20411 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/attr-unchanged/med-unchanged
20413 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_attr_unchanged_med_unchanged_modify(
20414 struct nb_cb_modify_args
*args
)
20416 switch (args
->event
) {
20417 case NB_EV_VALIDATE
:
20418 case NB_EV_PREPARE
:
20422 return bgp_neighbor_afi_safi_flag_modify(
20423 args
, PEER_FLAG_MED_UNCHANGED
,
20424 yang_dnode_get_bool(args
->dnode
, NULL
));
20434 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list
20436 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_create(
20437 struct nb_cb_create_args
*args
)
20439 switch (args
->event
) {
20440 case NB_EV_VALIDATE
:
20441 case NB_EV_PREPARE
:
20444 /* TODO: implement me. */
20451 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_destroy(
20452 struct nb_cb_destroy_args
*args
)
20454 switch (args
->event
) {
20455 case NB_EV_VALIDATE
:
20456 case NB_EV_PREPARE
:
20460 return bgp_neighbor_afi_safi_prefix_limit_list_destroy(args
);
20468 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/max-prefixes
20470 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_max_prefixes_modify(
20471 struct nb_cb_modify_args
*args
)
20473 switch (args
->event
) {
20474 case NB_EV_VALIDATE
:
20475 case NB_EV_PREPARE
:
20478 /* TODO: implement me. */
20487 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/force-check
20489 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_force_check_modify(
20490 struct nb_cb_modify_args
*args
)
20492 switch (args
->event
) {
20493 case NB_EV_VALIDATE
:
20494 case NB_EV_PREPARE
:
20497 /* TODO: implement me. */
20506 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/warning-only
20508 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_warning_only_modify(
20509 struct nb_cb_modify_args
*args
)
20511 switch (args
->event
) {
20512 case NB_EV_VALIDATE
:
20513 case NB_EV_PREPARE
:
20516 /* TODO: implement me. */
20523 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_warning_only_destroy(
20524 struct nb_cb_destroy_args
*args
)
20526 switch (args
->event
) {
20527 case NB_EV_VALIDATE
:
20528 case NB_EV_PREPARE
:
20531 /* TODO: implement me. */
20540 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/restart-timer
20542 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_restart_timer_modify(
20543 struct nb_cb_modify_args
*args
)
20545 switch (args
->event
) {
20546 case NB_EV_VALIDATE
:
20547 case NB_EV_PREPARE
:
20550 /* TODO: implement me. */
20557 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
20558 struct nb_cb_destroy_args
*args
)
20560 switch (args
->event
) {
20561 case NB_EV_VALIDATE
:
20562 case NB_EV_PREPARE
:
20565 /* TODO: implement me. */
20574 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
20576 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
20577 struct nb_cb_modify_args
*args
)
20579 switch (args
->event
) {
20580 case NB_EV_VALIDATE
:
20581 case NB_EV_PREPARE
:
20584 /* TODO: implement me. */
20591 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
20592 struct nb_cb_destroy_args
*args
)
20594 switch (args
->event
) {
20595 case NB_EV_VALIDATE
:
20596 case NB_EV_PREPARE
:
20599 /* TODO: implement me. */
20608 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
20610 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
20611 struct nb_cb_modify_args
*args
)
20613 switch (args
->event
) {
20614 case NB_EV_VALIDATE
:
20615 case NB_EV_PREPARE
:
20618 /* TODO: implement me. */
20625 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
20626 struct nb_cb_destroy_args
*args
)
20628 switch (args
->event
) {
20629 case NB_EV_VALIDATE
:
20630 case NB_EV_PREPARE
:
20633 /* TODO: implement me. */
20642 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/tr-restart-timer
20644 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
20645 struct nb_cb_modify_args
*args
)
20647 switch (args
->event
) {
20648 case NB_EV_VALIDATE
:
20649 case NB_EV_PREPARE
:
20652 /* TODO: implement me. */
20659 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
20660 struct nb_cb_destroy_args
*args
)
20662 switch (args
->event
) {
20663 case NB_EV_VALIDATE
:
20664 case NB_EV_PREPARE
:
20667 /* TODO: implement me. */
20676 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
20678 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
20679 struct nb_cb_modify_args
*args
)
20681 switch (args
->event
) {
20682 case NB_EV_VALIDATE
:
20683 case NB_EV_PREPARE
:
20686 /* TODO: implement me. */
20693 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
20694 struct nb_cb_destroy_args
*args
)
20696 switch (args
->event
) {
20697 case NB_EV_VALIDATE
:
20698 case NB_EV_PREPARE
:
20701 /* TODO: implement me. */
20710 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/tw-warning-only
20712 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
20713 struct nb_cb_modify_args
*args
)
20715 switch (args
->event
) {
20716 case NB_EV_VALIDATE
:
20717 case NB_EV_PREPARE
:
20720 /* TODO: implement me. */
20727 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
20728 struct nb_cb_destroy_args
*args
)
20730 switch (args
->event
) {
20731 case NB_EV_VALIDATE
:
20732 case NB_EV_PREPARE
:
20735 /* TODO: implement me. */
20744 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/nexthop-self/next-hop-self
20746 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_nexthop_self_next_hop_self_modify(
20747 struct nb_cb_modify_args
*args
)
20749 switch (args
->event
) {
20750 case NB_EV_VALIDATE
:
20751 case NB_EV_PREPARE
:
20755 return bgp_neighbor_afi_safi_flag_modify(
20756 args
, PEER_FLAG_NEXTHOP_SELF
,
20757 yang_dnode_get_bool(args
->dnode
, NULL
));
20767 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/nexthop-self/next-hop-self-force
20769 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_nexthop_self_next_hop_self_force_modify(
20770 struct nb_cb_modify_args
*args
)
20772 switch (args
->event
) {
20773 case NB_EV_VALIDATE
:
20774 case NB_EV_PREPARE
:
20778 return bgp_neighbor_afi_safi_flag_modify(
20779 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
20780 yang_dnode_get_bool(args
->dnode
, NULL
));
20790 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/private-as/remove-private-as-all
20792 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_private_as_remove_private_as_all_modify(
20793 struct nb_cb_modify_args
*args
)
20795 switch (args
->event
) {
20796 case NB_EV_VALIDATE
:
20797 case NB_EV_PREPARE
:
20801 return bgp_neighbor_afi_safi_flag_modify(
20802 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
20803 yang_dnode_get_bool(args
->dnode
, NULL
));
20813 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/private-as/remove-private-as-all-replace
20815 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_private_as_remove_private_as_all_replace_modify(
20816 struct nb_cb_modify_args
*args
)
20818 switch (args
->event
) {
20819 case NB_EV_VALIDATE
:
20820 case NB_EV_PREPARE
:
20824 return bgp_neighbor_afi_safi_flag_modify(
20825 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
20826 yang_dnode_get_bool(args
->dnode
, NULL
));
20836 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/private-as/remove-private-as
20838 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_private_as_remove_private_as_modify(
20839 struct nb_cb_modify_args
*args
)
20841 switch (args
->event
) {
20842 case NB_EV_VALIDATE
:
20843 case NB_EV_PREPARE
:
20847 return bgp_neighbor_afi_safi_flag_modify(
20848 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
20849 yang_dnode_get_bool(args
->dnode
, NULL
));
20859 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/private-as/remove-private-as-replace
20861 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_private_as_remove_private_as_replace_modify(
20862 struct nb_cb_modify_args
*args
)
20864 switch (args
->event
) {
20865 case NB_EV_VALIDATE
:
20866 case NB_EV_PREPARE
:
20870 return bgp_neighbor_afi_safi_flag_modify(
20871 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
20872 yang_dnode_get_bool(args
->dnode
, NULL
));
20882 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/route-reflector/route-reflector-client
20884 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_route_reflector_route_reflector_client_modify(
20885 struct nb_cb_modify_args
*args
)
20887 switch (args
->event
) {
20888 case NB_EV_VALIDATE
:
20889 case NB_EV_PREPARE
:
20893 return bgp_neighbor_afi_safi_flag_modify(
20894 args
, PEER_FLAG_REFLECTOR_CLIENT
,
20895 yang_dnode_get_bool(args
->dnode
, NULL
));
20905 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/route-server/route-server-client
20907 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_route_server_route_server_client_modify(
20908 struct nb_cb_modify_args
*args
)
20910 switch (args
->event
) {
20911 case NB_EV_VALIDATE
:
20912 case NB_EV_PREPARE
:
20916 return bgp_neighbor_afi_safi_flag_modify(
20917 args
, PEER_FLAG_RSERVER_CLIENT
,
20918 yang_dnode_get_bool(args
->dnode
, NULL
));
20928 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/send-community/send-community
20930 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_send_community_send_community_modify(
20931 struct nb_cb_modify_args
*args
)
20933 switch (args
->event
) {
20934 case NB_EV_VALIDATE
:
20935 case NB_EV_PREPARE
:
20939 return bgp_neighbor_afi_safi_flag_modify(
20940 args
, PEER_FLAG_SEND_COMMUNITY
,
20941 yang_dnode_get_bool(args
->dnode
, NULL
));
20951 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/send-community/send-ext-community
20953 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_send_community_send_ext_community_modify(
20954 struct nb_cb_modify_args
*args
)
20956 switch (args
->event
) {
20957 case NB_EV_VALIDATE
:
20958 case NB_EV_PREPARE
:
20962 return bgp_neighbor_afi_safi_flag_modify(
20963 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
20964 yang_dnode_get_bool(args
->dnode
, NULL
));
20974 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/send-community/send-large-community
20976 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_send_community_send_large_community_modify(
20977 struct nb_cb_modify_args
*args
)
20979 switch (args
->event
) {
20980 case NB_EV_VALIDATE
:
20981 case NB_EV_PREPARE
:
20985 return bgp_neighbor_afi_safi_flag_modify(
20986 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
20987 yang_dnode_get_bool(args
->dnode
, NULL
));
20997 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/soft-reconfiguration
20999 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_soft_reconfiguration_modify(
21000 struct nb_cb_modify_args
*args
)
21002 switch (args
->event
) {
21003 case NB_EV_VALIDATE
:
21004 case NB_EV_PREPARE
:
21008 return bgp_neighbor_afi_safi_flag_modify(
21009 args
, PEER_FLAG_SOFT_RECONFIG
,
21010 yang_dnode_get_bool(args
->dnode
, NULL
));
21020 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/weight/weight-attribute
21022 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_weight_weight_attribute_modify(
21023 struct nb_cb_modify_args
*args
)
21025 switch (args
->event
) {
21026 case NB_EV_VALIDATE
:
21027 case NB_EV_PREPARE
:
21031 return bgp_neighbor_afi_safi_weight_modify(args
);
21039 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_weight_weight_attribute_destroy(
21040 struct nb_cb_destroy_args
*args
)
21042 switch (args
->event
) {
21043 case NB_EV_VALIDATE
:
21044 case NB_EV_PREPARE
:
21048 return bgp_neighbor_afi_safi_weight_destroy(args
);
21058 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/add-paths/path-type
21060 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_add_paths_path_type_modify(
21061 struct nb_cb_modify_args
*args
)
21063 switch (args
->event
) {
21064 case NB_EV_VALIDATE
:
21065 case NB_EV_PREPARE
:
21068 /* TODO: implement me. */
21077 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/as-path-options/allow-own-as
21079 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_allow_own_as_modify(
21080 struct nb_cb_modify_args
*args
)
21082 switch (args
->event
) {
21083 case NB_EV_VALIDATE
:
21084 case NB_EV_PREPARE
:
21087 /* TODO: implement me. */
21094 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_allow_own_as_destroy(
21095 struct nb_cb_destroy_args
*args
)
21097 switch (args
->event
) {
21098 case NB_EV_VALIDATE
:
21099 case NB_EV_PREPARE
:
21102 /* TODO: implement me. */
21111 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/as-path-options/allow-own-origin-as
21113 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_allow_own_origin_as_modify(
21114 struct nb_cb_modify_args
*args
)
21116 switch (args
->event
) {
21117 case NB_EV_VALIDATE
:
21118 case NB_EV_PREPARE
:
21121 /* TODO: implement me. */
21128 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_allow_own_origin_as_destroy(
21129 struct nb_cb_destroy_args
*args
)
21131 switch (args
->event
) {
21132 case NB_EV_VALIDATE
:
21133 case NB_EV_PREPARE
:
21136 /* TODO: implement me. */
21145 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/as-path-options/replace-peer-as
21147 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_replace_peer_as_modify(
21148 struct nb_cb_modify_args
*args
)
21150 switch (args
->event
) {
21151 case NB_EV_VALIDATE
:
21152 case NB_EV_PREPARE
:
21156 return bgp_neighbor_afi_safi_flag_modify(
21157 args
, PEER_FLAG_AS_OVERRIDE
,
21158 yang_dnode_get_bool(args
->dnode
, NULL
));
21168 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/attr-unchanged/as-path-unchanged
21170 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_attr_unchanged_as_path_unchanged_modify(
21171 struct nb_cb_modify_args
*args
)
21173 switch (args
->event
) {
21174 case NB_EV_VALIDATE
:
21175 case NB_EV_PREPARE
:
21179 return bgp_neighbor_afi_safi_flag_modify(
21180 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
21181 yang_dnode_get_bool(args
->dnode
, NULL
));
21191 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/attr-unchanged/next-hop-unchanged
21193 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_attr_unchanged_next_hop_unchanged_modify(
21194 struct nb_cb_modify_args
*args
)
21196 switch (args
->event
) {
21197 case NB_EV_VALIDATE
:
21198 case NB_EV_PREPARE
:
21202 return bgp_neighbor_afi_safi_flag_modify(
21203 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
21204 yang_dnode_get_bool(args
->dnode
, NULL
));
21214 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/attr-unchanged/med-unchanged
21216 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_attr_unchanged_med_unchanged_modify(
21217 struct nb_cb_modify_args
*args
)
21219 switch (args
->event
) {
21220 case NB_EV_VALIDATE
:
21221 case NB_EV_PREPARE
:
21225 return bgp_neighbor_afi_safi_flag_modify(
21226 args
, PEER_FLAG_MED_UNCHANGED
,
21227 yang_dnode_get_bool(args
->dnode
, NULL
));
21237 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list
21239 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_create(
21240 struct nb_cb_create_args
*args
)
21242 switch (args
->event
) {
21243 case NB_EV_VALIDATE
:
21244 case NB_EV_PREPARE
:
21247 /* TODO: implement me. */
21254 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_destroy(
21255 struct nb_cb_destroy_args
*args
)
21257 switch (args
->event
) {
21258 case NB_EV_VALIDATE
:
21259 case NB_EV_PREPARE
:
21263 return bgp_neighbor_afi_safi_prefix_limit_list_destroy(args
);
21271 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/max-prefixes
21273 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_max_prefixes_modify(
21274 struct nb_cb_modify_args
*args
)
21276 switch (args
->event
) {
21277 case NB_EV_VALIDATE
:
21278 case NB_EV_PREPARE
:
21281 /* TODO: implement me. */
21290 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/force-check
21292 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_force_check_modify(
21293 struct nb_cb_modify_args
*args
)
21295 switch (args
->event
) {
21296 case NB_EV_VALIDATE
:
21297 case NB_EV_PREPARE
:
21300 /* TODO: implement me. */
21309 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/warning-only
21311 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_warning_only_modify(
21312 struct nb_cb_modify_args
*args
)
21314 switch (args
->event
) {
21315 case NB_EV_VALIDATE
:
21316 case NB_EV_PREPARE
:
21319 /* TODO: implement me. */
21326 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_warning_only_destroy(
21327 struct nb_cb_destroy_args
*args
)
21329 switch (args
->event
) {
21330 case NB_EV_VALIDATE
:
21331 case NB_EV_PREPARE
:
21334 /* TODO: implement me. */
21343 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/restart-timer
21345 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_restart_timer_modify(
21346 struct nb_cb_modify_args
*args
)
21348 switch (args
->event
) {
21349 case NB_EV_VALIDATE
:
21350 case NB_EV_PREPARE
:
21353 /* TODO: implement me. */
21360 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
21361 struct nb_cb_destroy_args
*args
)
21363 switch (args
->event
) {
21364 case NB_EV_VALIDATE
:
21365 case NB_EV_PREPARE
:
21368 /* TODO: implement me. */
21377 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
21379 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
21380 struct nb_cb_modify_args
*args
)
21382 switch (args
->event
) {
21383 case NB_EV_VALIDATE
:
21384 case NB_EV_PREPARE
:
21387 /* TODO: implement me. */
21394 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
21395 struct nb_cb_destroy_args
*args
)
21397 switch (args
->event
) {
21398 case NB_EV_VALIDATE
:
21399 case NB_EV_PREPARE
:
21402 /* TODO: implement me. */
21411 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
21413 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
21414 struct nb_cb_modify_args
*args
)
21416 switch (args
->event
) {
21417 case NB_EV_VALIDATE
:
21418 case NB_EV_PREPARE
:
21421 /* TODO: implement me. */
21428 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
21429 struct nb_cb_destroy_args
*args
)
21431 switch (args
->event
) {
21432 case NB_EV_VALIDATE
:
21433 case NB_EV_PREPARE
:
21436 /* TODO: implement me. */
21445 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/tr-restart-timer
21447 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
21448 struct nb_cb_modify_args
*args
)
21450 switch (args
->event
) {
21451 case NB_EV_VALIDATE
:
21452 case NB_EV_PREPARE
:
21455 /* TODO: implement me. */
21462 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
21463 struct nb_cb_destroy_args
*args
)
21465 switch (args
->event
) {
21466 case NB_EV_VALIDATE
:
21467 case NB_EV_PREPARE
:
21470 /* TODO: implement me. */
21479 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
21481 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
21482 struct nb_cb_modify_args
*args
)
21484 switch (args
->event
) {
21485 case NB_EV_VALIDATE
:
21486 case NB_EV_PREPARE
:
21489 /* TODO: implement me. */
21496 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
21497 struct nb_cb_destroy_args
*args
)
21499 switch (args
->event
) {
21500 case NB_EV_VALIDATE
:
21501 case NB_EV_PREPARE
:
21504 /* TODO: implement me. */
21513 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/tw-warning-only
21515 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
21516 struct nb_cb_modify_args
*args
)
21518 switch (args
->event
) {
21519 case NB_EV_VALIDATE
:
21520 case NB_EV_PREPARE
:
21523 /* TODO: implement me. */
21530 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
21531 struct nb_cb_destroy_args
*args
)
21533 switch (args
->event
) {
21534 case NB_EV_VALIDATE
:
21535 case NB_EV_PREPARE
:
21538 /* TODO: implement me. */
21547 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/nexthop-self/next-hop-self
21549 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_nexthop_self_next_hop_self_modify(
21550 struct nb_cb_modify_args
*args
)
21552 switch (args
->event
) {
21553 case NB_EV_VALIDATE
:
21554 case NB_EV_PREPARE
:
21558 return bgp_neighbor_afi_safi_flag_modify(
21559 args
, PEER_FLAG_NEXTHOP_SELF
,
21560 yang_dnode_get_bool(args
->dnode
, NULL
));
21570 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/nexthop-self/next-hop-self-force
21572 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_nexthop_self_next_hop_self_force_modify(
21573 struct nb_cb_modify_args
*args
)
21575 switch (args
->event
) {
21576 case NB_EV_VALIDATE
:
21577 case NB_EV_PREPARE
:
21581 return bgp_neighbor_afi_safi_flag_modify(
21582 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
21583 yang_dnode_get_bool(args
->dnode
, NULL
));
21593 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/private-as/remove-private-as-all
21595 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_private_as_remove_private_as_all_modify(
21596 struct nb_cb_modify_args
*args
)
21598 switch (args
->event
) {
21599 case NB_EV_VALIDATE
:
21600 case NB_EV_PREPARE
:
21604 return bgp_neighbor_afi_safi_flag_modify(
21605 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
21606 yang_dnode_get_bool(args
->dnode
, NULL
));
21616 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/private-as/remove-private-as-all-replace
21618 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_private_as_remove_private_as_all_replace_modify(
21619 struct nb_cb_modify_args
*args
)
21621 switch (args
->event
) {
21622 case NB_EV_VALIDATE
:
21623 case NB_EV_PREPARE
:
21627 return bgp_neighbor_afi_safi_flag_modify(
21628 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
21629 yang_dnode_get_bool(args
->dnode
, NULL
));
21639 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/private-as/remove-private-as
21641 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_private_as_remove_private_as_modify(
21642 struct nb_cb_modify_args
*args
)
21644 switch (args
->event
) {
21645 case NB_EV_VALIDATE
:
21646 case NB_EV_PREPARE
:
21650 return bgp_neighbor_afi_safi_flag_modify(
21651 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
21652 yang_dnode_get_bool(args
->dnode
, NULL
));
21662 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/private-as/remove-private-as-replace
21664 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_private_as_remove_private_as_replace_modify(
21665 struct nb_cb_modify_args
*args
)
21667 switch (args
->event
) {
21668 case NB_EV_VALIDATE
:
21669 case NB_EV_PREPARE
:
21673 return bgp_neighbor_afi_safi_flag_modify(
21674 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
21675 yang_dnode_get_bool(args
->dnode
, NULL
));
21685 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/route-reflector/route-reflector-client
21687 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_route_reflector_route_reflector_client_modify(
21688 struct nb_cb_modify_args
*args
)
21690 switch (args
->event
) {
21691 case NB_EV_VALIDATE
:
21692 case NB_EV_PREPARE
:
21696 return bgp_neighbor_afi_safi_flag_modify(
21697 args
, PEER_FLAG_REFLECTOR_CLIENT
,
21698 yang_dnode_get_bool(args
->dnode
, NULL
));
21708 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/route-server/route-server-client
21710 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_route_server_route_server_client_modify(
21711 struct nb_cb_modify_args
*args
)
21713 switch (args
->event
) {
21714 case NB_EV_VALIDATE
:
21715 case NB_EV_PREPARE
:
21719 return bgp_neighbor_afi_safi_flag_modify(
21720 args
, PEER_FLAG_RSERVER_CLIENT
,
21721 yang_dnode_get_bool(args
->dnode
, NULL
));
21731 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/send-community/send-community
21733 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_send_community_send_community_modify(
21734 struct nb_cb_modify_args
*args
)
21736 switch (args
->event
) {
21737 case NB_EV_VALIDATE
:
21738 case NB_EV_PREPARE
:
21742 return bgp_neighbor_afi_safi_flag_modify(
21743 args
, PEER_FLAG_SEND_COMMUNITY
,
21744 yang_dnode_get_bool(args
->dnode
, NULL
));
21754 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/send-community/send-ext-community
21756 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_send_community_send_ext_community_modify(
21757 struct nb_cb_modify_args
*args
)
21759 switch (args
->event
) {
21760 case NB_EV_VALIDATE
:
21761 case NB_EV_PREPARE
:
21765 return bgp_neighbor_afi_safi_flag_modify(
21766 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
21767 yang_dnode_get_bool(args
->dnode
, NULL
));
21777 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/send-community/send-large-community
21779 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_send_community_send_large_community_modify(
21780 struct nb_cb_modify_args
*args
)
21782 switch (args
->event
) {
21783 case NB_EV_VALIDATE
:
21784 case NB_EV_PREPARE
:
21788 return bgp_neighbor_afi_safi_flag_modify(
21789 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
21790 yang_dnode_get_bool(args
->dnode
, NULL
));
21800 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/soft-reconfiguration
21802 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_soft_reconfiguration_modify(
21803 struct nb_cb_modify_args
*args
)
21805 switch (args
->event
) {
21806 case NB_EV_VALIDATE
:
21807 case NB_EV_PREPARE
:
21811 return bgp_neighbor_afi_safi_flag_modify(
21812 args
, PEER_FLAG_SOFT_RECONFIG
,
21813 yang_dnode_get_bool(args
->dnode
, NULL
));
21823 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/weight/weight-attribute
21825 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_weight_weight_attribute_modify(
21826 struct nb_cb_modify_args
*args
)
21828 switch (args
->event
) {
21829 case NB_EV_VALIDATE
:
21830 case NB_EV_PREPARE
:
21834 return bgp_neighbor_afi_safi_weight_modify(args
);
21842 int bgp_neighbors_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_weight_weight_attribute_destroy(
21843 struct nb_cb_destroy_args
*args
)
21845 switch (args
->event
) {
21846 case NB_EV_VALIDATE
:
21847 case NB_EV_PREPARE
:
21851 return bgp_neighbor_afi_safi_weight_destroy(args
);
21861 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l2vpn-evpn/as-path-options/allow-own-as
21863 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_as_path_options_allow_own_as_modify(
21864 struct nb_cb_modify_args
*args
)
21866 switch (args
->event
) {
21867 case NB_EV_VALIDATE
:
21868 case NB_EV_PREPARE
:
21871 /* TODO: implement me. */
21878 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_as_path_options_allow_own_as_destroy(
21879 struct nb_cb_destroy_args
*args
)
21881 switch (args
->event
) {
21882 case NB_EV_VALIDATE
:
21883 case NB_EV_PREPARE
:
21886 /* TODO: implement me. */
21895 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l2vpn-evpn/as-path-options/allow-own-origin-as
21897 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_as_path_options_allow_own_origin_as_modify(
21898 struct nb_cb_modify_args
*args
)
21900 switch (args
->event
) {
21901 case NB_EV_VALIDATE
:
21902 case NB_EV_PREPARE
:
21905 /* TODO: implement me. */
21912 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_as_path_options_allow_own_origin_as_destroy(
21913 struct nb_cb_destroy_args
*args
)
21915 switch (args
->event
) {
21916 case NB_EV_VALIDATE
:
21917 case NB_EV_PREPARE
:
21920 /* TODO: implement me. */
21929 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l2vpn-evpn/as-path-options/replace-peer-as
21931 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_as_path_options_replace_peer_as_modify(
21932 struct nb_cb_modify_args
*args
)
21934 switch (args
->event
) {
21935 case NB_EV_VALIDATE
:
21936 case NB_EV_PREPARE
:
21940 return bgp_neighbor_afi_safi_flag_modify(
21941 args
, PEER_FLAG_AS_OVERRIDE
,
21942 yang_dnode_get_bool(args
->dnode
, NULL
));
21952 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l2vpn-evpn/attr-unchanged/as-path-unchanged
21954 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_attr_unchanged_as_path_unchanged_modify(
21955 struct nb_cb_modify_args
*args
)
21957 switch (args
->event
) {
21958 case NB_EV_VALIDATE
:
21959 case NB_EV_PREPARE
:
21963 return bgp_neighbor_afi_safi_flag_modify(
21964 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
21965 yang_dnode_get_bool(args
->dnode
, NULL
));
21975 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l2vpn-evpn/attr-unchanged/next-hop-unchanged
21977 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_attr_unchanged_next_hop_unchanged_modify(
21978 struct nb_cb_modify_args
*args
)
21980 switch (args
->event
) {
21981 case NB_EV_VALIDATE
:
21982 case NB_EV_PREPARE
:
21986 return bgp_neighbor_afi_safi_flag_modify(
21987 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
21988 yang_dnode_get_bool(args
->dnode
, NULL
));
21998 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l2vpn-evpn/attr-unchanged/med-unchanged
22000 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_attr_unchanged_med_unchanged_modify(
22001 struct nb_cb_modify_args
*args
)
22003 switch (args
->event
) {
22004 case NB_EV_VALIDATE
:
22005 case NB_EV_PREPARE
:
22009 return bgp_neighbor_afi_safi_flag_modify(
22010 args
, PEER_FLAG_MED_UNCHANGED
,
22011 yang_dnode_get_bool(args
->dnode
, NULL
));
22021 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l2vpn-evpn/nexthop-self/next-hop-self
22023 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_nexthop_self_next_hop_self_modify(
22024 struct nb_cb_modify_args
*args
)
22026 switch (args
->event
) {
22027 case NB_EV_VALIDATE
:
22028 case NB_EV_PREPARE
:
22032 return bgp_neighbor_afi_safi_flag_modify(
22033 args
, PEER_FLAG_NEXTHOP_SELF
,
22034 yang_dnode_get_bool(args
->dnode
, NULL
));
22044 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l2vpn-evpn/nexthop-self/next-hop-self-force
22046 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_nexthop_self_next_hop_self_force_modify(
22047 struct nb_cb_modify_args
*args
)
22049 switch (args
->event
) {
22050 case NB_EV_VALIDATE
:
22051 case NB_EV_PREPARE
:
22055 return bgp_neighbor_afi_safi_flag_modify(
22056 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
22057 yang_dnode_get_bool(args
->dnode
, NULL
));
22067 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l2vpn-evpn/route-reflector/route-reflector-client
22069 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_route_reflector_route_reflector_client_modify(
22070 struct nb_cb_modify_args
*args
)
22072 switch (args
->event
) {
22073 case NB_EV_VALIDATE
:
22074 case NB_EV_PREPARE
:
22078 return bgp_neighbor_afi_safi_flag_modify(
22079 args
, PEER_FLAG_REFLECTOR_CLIENT
,
22080 yang_dnode_get_bool(args
->dnode
, NULL
));
22090 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l2vpn-evpn/route-server/route-server-client
22092 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_route_server_route_server_client_modify(
22093 struct nb_cb_modify_args
*args
)
22095 switch (args
->event
) {
22096 case NB_EV_VALIDATE
:
22097 case NB_EV_PREPARE
:
22101 return bgp_neighbor_afi_safi_flag_modify(
22102 args
, PEER_FLAG_RSERVER_CLIENT
,
22103 yang_dnode_get_bool(args
->dnode
, NULL
));
22113 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/l2vpn-evpn/soft-reconfiguration
22115 int bgp_neighbors_neighbor_afi_safis_afi_safi_l2vpn_evpn_soft_reconfiguration_modify(
22116 struct nb_cb_modify_args
*args
)
22118 switch (args
->event
) {
22119 case NB_EV_VALIDATE
:
22120 case NB_EV_PREPARE
:
22124 return bgp_neighbor_afi_safi_flag_modify(
22125 args
, PEER_FLAG_SOFT_RECONFIG
,
22126 yang_dnode_get_bool(args
->dnode
, NULL
));
22136 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-flowspec/route-reflector/route-reflector-client
22138 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_flowspec_route_reflector_route_reflector_client_modify(
22139 struct nb_cb_modify_args
*args
)
22141 switch (args
->event
) {
22142 case NB_EV_VALIDATE
:
22143 case NB_EV_PREPARE
:
22147 return bgp_neighbor_afi_safi_flag_modify(
22148 args
, PEER_FLAG_REFLECTOR_CLIENT
,
22149 yang_dnode_get_bool(args
->dnode
, NULL
));
22159 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-flowspec/route-server/route-server-client
22161 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_flowspec_route_server_route_server_client_modify(
22162 struct nb_cb_modify_args
*args
)
22164 switch (args
->event
) {
22165 case NB_EV_VALIDATE
:
22166 case NB_EV_PREPARE
:
22170 return bgp_neighbor_afi_safi_flag_modify(
22171 args
, PEER_FLAG_RSERVER_CLIENT
,
22172 yang_dnode_get_bool(args
->dnode
, NULL
));
22182 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv4-flowspec/soft-reconfiguration
22184 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv4_flowspec_soft_reconfiguration_modify(
22185 struct nb_cb_modify_args
*args
)
22187 switch (args
->event
) {
22188 case NB_EV_VALIDATE
:
22189 case NB_EV_PREPARE
:
22193 return bgp_neighbor_afi_safi_flag_modify(
22194 args
, PEER_FLAG_SOFT_RECONFIG
,
22195 yang_dnode_get_bool(args
->dnode
, NULL
));
22205 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-flowspec/route-reflector/route-reflector-client
22207 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_flowspec_route_reflector_route_reflector_client_modify(
22208 struct nb_cb_modify_args
*args
)
22210 switch (args
->event
) {
22211 case NB_EV_VALIDATE
:
22212 case NB_EV_PREPARE
:
22216 return bgp_neighbor_afi_safi_flag_modify(
22217 args
, PEER_FLAG_REFLECTOR_CLIENT
,
22218 yang_dnode_get_bool(args
->dnode
, NULL
));
22228 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-flowspec/route-server/route-server-client
22230 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_flowspec_route_server_route_server_client_modify(
22231 struct nb_cb_modify_args
*args
)
22233 switch (args
->event
) {
22234 case NB_EV_VALIDATE
:
22235 case NB_EV_PREPARE
:
22239 return bgp_neighbor_afi_safi_flag_modify(
22240 args
, PEER_FLAG_RSERVER_CLIENT
,
22241 yang_dnode_get_bool(args
->dnode
, NULL
));
22251 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/afi-safis/afi-safi/ipv6-flowspec/soft-reconfiguration
22253 int bgp_neighbors_neighbor_afi_safis_afi_safi_ipv6_flowspec_soft_reconfiguration_modify(
22254 struct nb_cb_modify_args
*args
)
22256 switch (args
->event
) {
22257 case NB_EV_VALIDATE
:
22258 case NB_EV_PREPARE
:
22262 return bgp_neighbor_afi_safi_flag_modify(
22263 args
, PEER_FLAG_SOFT_RECONFIG
,
22264 yang_dnode_get_bool(args
->dnode
, NULL
));
22273 bgp_unnumbered_neighbor_afi_safi_flag_modify(struct nb_cb_modify_args
*args
,
22274 uint32_t flags
, bool set
)
22277 const char *peer_str
;
22279 const struct lyd_node
*nbr_dnode
;
22280 const struct lyd_node
*nbr_af_dnode
;
22281 const char *af_name
;
22285 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
22286 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
22287 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
22289 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "unnumbered-neighbor");
22290 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
22291 peer_str
= yang_dnode_get_string(nbr_dnode
, "./interface");
22292 peer
= bgp_unnumbered_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
22295 if (peer_af_flag_modify_nb(peer
, afi
, safi
, flags
, set
, args
->errmsg
,
22298 return NB_ERR_INCONSISTENCY
;
22305 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/add-paths/path-type
22307 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_add_paths_path_type_modify(
22308 struct nb_cb_modify_args
*args
)
22310 switch (args
->event
) {
22311 case NB_EV_VALIDATE
:
22312 case NB_EV_PREPARE
:
22315 /* TODO: implement me. */
22324 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/as-path-options/allow-own-as
22326 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_as_path_options_allow_own_as_modify(
22327 struct nb_cb_modify_args
*args
)
22329 switch (args
->event
) {
22330 case NB_EV_VALIDATE
:
22331 case NB_EV_PREPARE
:
22334 /* TODO: implement me. */
22341 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_as_path_options_allow_own_as_destroy(
22342 struct nb_cb_destroy_args
*args
)
22344 switch (args
->event
) {
22345 case NB_EV_VALIDATE
:
22346 case NB_EV_PREPARE
:
22349 /* TODO: implement me. */
22358 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/as-path-options/allow-own-origin-as
22360 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_as_path_options_allow_own_origin_as_modify(
22361 struct nb_cb_modify_args
*args
)
22363 switch (args
->event
) {
22364 case NB_EV_VALIDATE
:
22365 case NB_EV_PREPARE
:
22368 /* TODO: implement me. */
22375 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_as_path_options_allow_own_origin_as_destroy(
22376 struct nb_cb_destroy_args
*args
)
22378 switch (args
->event
) {
22379 case NB_EV_VALIDATE
:
22380 case NB_EV_PREPARE
:
22383 /* TODO: implement me. */
22392 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/as-path-options/replace-peer-as
22394 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_as_path_options_replace_peer_as_modify(
22395 struct nb_cb_modify_args
*args
)
22397 switch (args
->event
) {
22398 case NB_EV_VALIDATE
:
22399 case NB_EV_PREPARE
:
22403 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
22404 args
, PEER_FLAG_AS_OVERRIDE
,
22405 yang_dnode_get_bool(args
->dnode
, NULL
));
22415 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/default-originate
22417 void bgp_unnumbered_neighbor_afi_safi_default_originate_apply_finish(
22418 struct nb_cb_apply_finish_args
*args
)
22421 const char *peer_str
;
22423 const struct lyd_node
*nbr_dnode
;
22424 const struct lyd_node
*nbr_af_dnode
;
22425 const char *af_name
;
22429 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
22430 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
22431 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
22433 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "unnumbered-neighbor");
22434 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
22435 peer_str
= yang_dnode_get_string(nbr_dnode
, "./interface");
22436 peer
= bgp_unnumbered_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
22441 bgp_peer_afi_safi_default_originate_apply(args
, peer
, afi
, safi
);
22446 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/default-originate/originate
22448 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_default_originate_originate_modify(
22449 struct nb_cb_modify_args
*args
)
22451 switch (args
->event
) {
22452 case NB_EV_VALIDATE
:
22453 case NB_EV_PREPARE
:
22456 /* TODO: implement me. */
22465 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/default-originate/route-map
22467 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_default_originate_route_map_modify(
22468 struct nb_cb_modify_args
*args
)
22470 switch (args
->event
) {
22471 case NB_EV_VALIDATE
:
22472 case NB_EV_PREPARE
:
22475 /* TODO: implement me. */
22482 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_default_originate_route_map_destroy(
22483 struct nb_cb_destroy_args
*args
)
22485 switch (args
->event
) {
22486 case NB_EV_VALIDATE
:
22487 case NB_EV_PREPARE
:
22490 /* TODO: implement me. */
22497 static int bgp_unnumbered_neighbor_afi_safi_prefix_limit_list_destroy(
22498 struct nb_cb_destroy_args
*args
)
22501 const char *peer_str
;
22503 const struct lyd_node
*nbr_dnode
;
22504 const struct lyd_node
*nbr_af_dnode
;
22505 const char *af_name
;
22510 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
22511 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
22512 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
22514 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "unnumbered-neighbor");
22515 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
22516 peer_str
= yang_dnode_get_string(nbr_dnode
, "./interface");
22517 peer
= bgp_unnumbered_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
22520 return NB_ERR_INCONSISTENCY
;
22522 direction
= yang_dnode_get_enum(args
->dnode
, "./direction");
22524 switch (direction
) {
22526 peer_maximum_prefix_unset(peer
, afi
, safi
);
22529 UNSET_FLAG(peer
->af_flags
[afi
][safi
], PEER_FLAG_MAX_PREFIX_OUT
);
22530 peer
->pmax_out
[afi
][safi
] = 0;
22539 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list
22541 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_create(
22542 struct nb_cb_create_args
*args
)
22544 switch (args
->event
) {
22545 case NB_EV_VALIDATE
:
22546 case NB_EV_PREPARE
:
22549 /* TODO: implement me. */
22556 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_destroy(
22557 struct nb_cb_destroy_args
*args
)
22559 switch (args
->event
) {
22560 case NB_EV_VALIDATE
:
22561 case NB_EV_PREPARE
:
22565 return bgp_unnumbered_neighbor_afi_safi_prefix_limit_list_destroy(
22572 void bgp_unnumbered_neighbor_afi_safi_prefix_limit_apply_finish(
22573 struct nb_cb_apply_finish_args
*args
)
22576 const char *peer_str
;
22578 const struct lyd_node
*nbr_dnode
;
22579 const struct lyd_node
*nbr_af_dnode
;
22580 const char *af_name
;
22584 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
22585 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
22586 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
22588 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "unnumbered-neighbor");
22589 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
22590 peer_str
= yang_dnode_get_string(nbr_dnode
, "./interface");
22591 peer
= bgp_unnumbered_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
22596 bgp_peer_afi_safi_maximum_prefix_set(args
, peer
, afi
, safi
);
22601 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/max-prefixes
22603 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_max_prefixes_modify(
22604 struct nb_cb_modify_args
*args
)
22606 switch (args
->event
) {
22607 case NB_EV_VALIDATE
:
22608 case NB_EV_PREPARE
:
22611 /* TODO: implement me. */
22620 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/force-check
22622 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_force_check_modify(
22623 struct nb_cb_modify_args
*args
)
22625 switch (args
->event
) {
22626 case NB_EV_VALIDATE
:
22627 case NB_EV_PREPARE
:
22630 /* TODO: implement me. */
22639 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/warning-only
22641 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_warning_only_modify(
22642 struct nb_cb_modify_args
*args
)
22644 switch (args
->event
) {
22645 case NB_EV_VALIDATE
:
22646 case NB_EV_PREPARE
:
22649 /* TODO: implement me. */
22656 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_warning_only_destroy(
22657 struct nb_cb_destroy_args
*args
)
22659 switch (args
->event
) {
22660 case NB_EV_VALIDATE
:
22661 case NB_EV_PREPARE
:
22664 /* TODO: implement me. */
22673 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/restart-timer
22675 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_restart_timer_modify(
22676 struct nb_cb_modify_args
*args
)
22678 switch (args
->event
) {
22679 case NB_EV_VALIDATE
:
22680 case NB_EV_PREPARE
:
22683 /* TODO: implement me. */
22690 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
22691 struct nb_cb_destroy_args
*args
)
22693 switch (args
->event
) {
22694 case NB_EV_VALIDATE
:
22695 case NB_EV_PREPARE
:
22698 /* TODO: implement me. */
22707 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
22709 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
22710 struct nb_cb_modify_args
*args
)
22712 switch (args
->event
) {
22713 case NB_EV_VALIDATE
:
22714 case NB_EV_PREPARE
:
22717 /* TODO: implement me. */
22724 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
22725 struct nb_cb_destroy_args
*args
)
22727 switch (args
->event
) {
22728 case NB_EV_VALIDATE
:
22729 case NB_EV_PREPARE
:
22732 /* TODO: implement me. */
22741 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
22743 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
22744 struct nb_cb_modify_args
*args
)
22746 switch (args
->event
) {
22747 case NB_EV_VALIDATE
:
22748 case NB_EV_PREPARE
:
22751 /* TODO: implement me. */
22758 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
22759 struct nb_cb_destroy_args
*args
)
22761 switch (args
->event
) {
22762 case NB_EV_VALIDATE
:
22763 case NB_EV_PREPARE
:
22766 /* TODO: implement me. */
22775 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/tr-restart-timer
22777 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
22778 struct nb_cb_modify_args
*args
)
22780 switch (args
->event
) {
22781 case NB_EV_VALIDATE
:
22782 case NB_EV_PREPARE
:
22785 /* TODO: implement me. */
22792 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
22793 struct nb_cb_destroy_args
*args
)
22795 switch (args
->event
) {
22796 case NB_EV_VALIDATE
:
22797 case NB_EV_PREPARE
:
22800 /* TODO: implement me. */
22809 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
22811 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
22812 struct nb_cb_modify_args
*args
)
22814 switch (args
->event
) {
22815 case NB_EV_VALIDATE
:
22816 case NB_EV_PREPARE
:
22819 /* TODO: implement me. */
22826 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
22827 struct nb_cb_destroy_args
*args
)
22829 switch (args
->event
) {
22830 case NB_EV_VALIDATE
:
22831 case NB_EV_PREPARE
:
22834 /* TODO: implement me. */
22843 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/tw-warning-only
22845 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
22846 struct nb_cb_modify_args
*args
)
22848 switch (args
->event
) {
22849 case NB_EV_VALIDATE
:
22850 case NB_EV_PREPARE
:
22853 /* TODO: implement me. */
22860 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
22861 struct nb_cb_destroy_args
*args
)
22863 switch (args
->event
) {
22864 case NB_EV_VALIDATE
:
22865 case NB_EV_PREPARE
:
22868 /* TODO: implement me. */
22877 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/nexthop-self/next-hop-self
22879 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_nexthop_self_next_hop_self_modify(
22880 struct nb_cb_modify_args
*args
)
22882 switch (args
->event
) {
22883 case NB_EV_VALIDATE
:
22884 case NB_EV_PREPARE
:
22888 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
22889 args
, PEER_FLAG_NEXTHOP_SELF
,
22890 yang_dnode_get_bool(args
->dnode
, NULL
));
22900 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/nexthop-self/next-hop-self-force
22902 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_nexthop_self_next_hop_self_force_modify(
22903 struct nb_cb_modify_args
*args
)
22905 switch (args
->event
) {
22906 case NB_EV_VALIDATE
:
22907 case NB_EV_PREPARE
:
22911 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
22912 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
22913 yang_dnode_get_bool(args
->dnode
, NULL
));
22923 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/private-as/remove-private-as-all
22925 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_private_as_remove_private_as_all_modify(
22926 struct nb_cb_modify_args
*args
)
22928 switch (args
->event
) {
22929 case NB_EV_VALIDATE
:
22930 case NB_EV_PREPARE
:
22934 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
22935 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
22936 yang_dnode_get_bool(args
->dnode
, NULL
));
22946 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/private-as/remove-private-as-all-replace
22948 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_private_as_remove_private_as_all_replace_modify(
22949 struct nb_cb_modify_args
*args
)
22951 switch (args
->event
) {
22952 case NB_EV_VALIDATE
:
22953 case NB_EV_PREPARE
:
22957 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
22958 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
22959 yang_dnode_get_bool(args
->dnode
, NULL
));
22969 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/private-as/remove-private-as
22971 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_private_as_remove_private_as_modify(
22972 struct nb_cb_modify_args
*args
)
22974 switch (args
->event
) {
22975 case NB_EV_VALIDATE
:
22976 case NB_EV_PREPARE
:
22980 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
22981 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
22982 yang_dnode_get_bool(args
->dnode
, NULL
));
22992 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/private-as/remove-private-as-replace
22994 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_private_as_remove_private_as_replace_modify(
22995 struct nb_cb_modify_args
*args
)
22997 switch (args
->event
) {
22998 case NB_EV_VALIDATE
:
22999 case NB_EV_PREPARE
:
23003 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23004 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
23005 yang_dnode_get_bool(args
->dnode
, NULL
));
23014 bgp_unnumbered_neighbor_afi_safi_weight_modify(struct nb_cb_modify_args
*args
)
23017 const char *peer_str
;
23019 const struct lyd_node
*nbr_dnode
;
23020 const char *af_name
;
23024 const struct lyd_node
*nbr_af_dnode
;
23027 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
23028 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
23029 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
23031 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "unnumbered-neighbor");
23032 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
23033 peer_str
= yang_dnode_get_string(nbr_dnode
, "./interface");
23034 peer
= bgp_unnumbered_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
23037 weight
= yang_dnode_get_uint16(args
->dnode
, NULL
);
23039 ret
= peer_weight_set(peer
, afi
, safi
, weight
);
23040 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
) < 0)
23041 return NB_ERR_INCONSISTENCY
;
23047 bgp_unnumbered_neighbor_afi_safi_weight_destroy(struct nb_cb_destroy_args
*args
)
23050 const char *peer_str
;
23052 const struct lyd_node
*nbr_dnode
;
23053 const struct lyd_node
*nbr_af_dnode
;
23054 const char *af_name
;
23059 bgp
= nb_running_get_entry(args
->dnode
, NULL
, true);
23060 nbr_dnode
= yang_dnode_get_parent(args
->dnode
, "unnumbered-neighbor");
23061 peer_str
= yang_dnode_get_string(nbr_dnode
, "./interface");
23062 peer
= bgp_unnumbered_neighbor_peer_lookup(bgp
, peer_str
, args
->errmsg
,
23064 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
23065 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
23066 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
23068 ret
= peer_weight_unset(peer
, afi
, safi
);
23069 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
) < 0)
23070 return NB_ERR_INCONSISTENCY
;
23077 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/weight/weight-attribute
23079 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_weight_weight_attribute_modify(
23080 struct nb_cb_modify_args
*args
)
23082 switch (args
->event
) {
23083 case NB_EV_VALIDATE
:
23084 case NB_EV_PREPARE
:
23088 return bgp_unnumbered_neighbor_afi_safi_weight_modify(args
);
23096 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_weight_weight_attribute_destroy(
23097 struct nb_cb_destroy_args
*args
)
23099 switch (args
->event
) {
23100 case NB_EV_VALIDATE
:
23101 case NB_EV_PREPARE
:
23105 return bgp_unnumbered_neighbor_afi_safi_weight_destroy(args
);
23115 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/route-reflector/route-reflector-client
23117 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_route_reflector_route_reflector_client_modify(
23118 struct nb_cb_modify_args
*args
)
23120 switch (args
->event
) {
23121 case NB_EV_VALIDATE
:
23122 case NB_EV_PREPARE
:
23126 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23127 args
, PEER_FLAG_REFLECTOR_CLIENT
,
23128 yang_dnode_get_bool(args
->dnode
, NULL
));
23138 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/route-server/route-server-client
23140 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_route_server_route_server_client_modify(
23141 struct nb_cb_modify_args
*args
)
23143 switch (args
->event
) {
23144 case NB_EV_VALIDATE
:
23145 case NB_EV_PREPARE
:
23149 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23150 args
, PEER_FLAG_RSERVER_CLIENT
,
23151 yang_dnode_get_bool(args
->dnode
, NULL
));
23161 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/send-community/send-community
23163 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_send_community_send_community_modify(
23164 struct nb_cb_modify_args
*args
)
23166 switch (args
->event
) {
23167 case NB_EV_VALIDATE
:
23168 case NB_EV_PREPARE
:
23172 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23173 args
, PEER_FLAG_SEND_COMMUNITY
,
23174 yang_dnode_get_bool(args
->dnode
, NULL
));
23184 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/send-community/send-ext-community
23186 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_send_community_send_ext_community_modify(
23187 struct nb_cb_modify_args
*args
)
23189 switch (args
->event
) {
23190 case NB_EV_VALIDATE
:
23191 case NB_EV_PREPARE
:
23195 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23196 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
23197 yang_dnode_get_bool(args
->dnode
, NULL
));
23207 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/send-community/send-large-community
23209 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_send_community_send_large_community_modify(
23210 struct nb_cb_modify_args
*args
)
23212 switch (args
->event
) {
23213 case NB_EV_VALIDATE
:
23214 case NB_EV_PREPARE
:
23218 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23219 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
23220 yang_dnode_get_bool(args
->dnode
, NULL
));
23230 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/soft-reconfiguration
23232 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_soft_reconfiguration_modify(
23233 struct nb_cb_modify_args
*args
)
23235 switch (args
->event
) {
23236 case NB_EV_VALIDATE
:
23237 case NB_EV_PREPARE
:
23241 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23242 args
, PEER_FLAG_SOFT_RECONFIG
,
23243 yang_dnode_get_bool(args
->dnode
, NULL
));
23253 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/attr-unchanged/as-path-unchanged
23255 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_attr_unchanged_as_path_unchanged_modify(
23256 struct nb_cb_modify_args
*args
)
23258 switch (args
->event
) {
23259 case NB_EV_VALIDATE
:
23260 case NB_EV_PREPARE
:
23264 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23265 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
23266 yang_dnode_get_bool(args
->dnode
, NULL
));
23276 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/attr-unchanged/next-hop-unchanged
23278 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_attr_unchanged_next_hop_unchanged_modify(
23279 struct nb_cb_modify_args
*args
)
23281 switch (args
->event
) {
23282 case NB_EV_VALIDATE
:
23283 case NB_EV_PREPARE
:
23287 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23288 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
23289 yang_dnode_get_bool(args
->dnode
, NULL
));
23299 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/attr-unchanged/med-unchanged
23301 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_attr_unchanged_med_unchanged_modify(
23302 struct nb_cb_modify_args
*args
)
23304 switch (args
->event
) {
23305 case NB_EV_VALIDATE
:
23306 case NB_EV_PREPARE
:
23310 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23311 args
, PEER_FLAG_MED_UNCHANGED
,
23312 yang_dnode_get_bool(args
->dnode
, NULL
));
23322 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/orf-capability/orf-send
23324 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_send_modify(
23325 struct nb_cb_modify_args
*args
)
23327 switch (args
->event
) {
23328 case NB_EV_VALIDATE
:
23329 case NB_EV_PREPARE
:
23332 /* TODO: implement me. */
23339 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_send_destroy(
23340 struct nb_cb_destroy_args
*args
)
23342 switch (args
->event
) {
23343 case NB_EV_VALIDATE
:
23344 case NB_EV_PREPARE
:
23347 /* TODO: implement me. */
23356 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/orf-capability/orf-receive
23358 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_receive_modify(
23359 struct nb_cb_modify_args
*args
)
23361 switch (args
->event
) {
23362 case NB_EV_VALIDATE
:
23363 case NB_EV_PREPARE
:
23366 /* TODO: implement me. */
23373 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_receive_destroy(
23374 struct nb_cb_destroy_args
*args
)
23376 switch (args
->event
) {
23377 case NB_EV_VALIDATE
:
23378 case NB_EV_PREPARE
:
23381 /* TODO: implement me. */
23390 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/orf-capability/orf-both
23392 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_both_modify(
23393 struct nb_cb_modify_args
*args
)
23395 switch (args
->event
) {
23396 case NB_EV_VALIDATE
:
23397 case NB_EV_PREPARE
:
23400 /* TODO: implement me. */
23407 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_both_destroy(
23408 struct nb_cb_destroy_args
*args
)
23410 switch (args
->event
) {
23411 case NB_EV_VALIDATE
:
23412 case NB_EV_PREPARE
:
23415 /* TODO: implement me. */
23424 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/rmap-import
23426 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_import_modify(
23427 struct nb_cb_modify_args
*args
)
23429 switch (args
->event
) {
23430 case NB_EV_VALIDATE
:
23431 case NB_EV_PREPARE
:
23434 /* TODO: implement me. */
23441 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_import_destroy(
23442 struct nb_cb_destroy_args
*args
)
23444 switch (args
->event
) {
23445 case NB_EV_VALIDATE
:
23446 case NB_EV_PREPARE
:
23449 /* TODO: implement me. */
23458 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/rmap-export
23460 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_export_modify(
23461 struct nb_cb_modify_args
*args
)
23463 switch (args
->event
) {
23464 case NB_EV_VALIDATE
:
23465 case NB_EV_PREPARE
:
23468 /* TODO: implement me. */
23475 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_export_destroy(
23476 struct nb_cb_destroy_args
*args
)
23478 switch (args
->event
) {
23479 case NB_EV_VALIDATE
:
23480 case NB_EV_PREPARE
:
23483 /* TODO: implement me. */
23492 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/plist-import
23494 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_plist_import_modify(
23495 struct nb_cb_modify_args
*args
)
23497 switch (args
->event
) {
23498 case NB_EV_VALIDATE
:
23499 case NB_EV_PREPARE
:
23502 /* TODO: implement me. */
23509 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_plist_import_destroy(
23510 struct nb_cb_destroy_args
*args
)
23512 switch (args
->event
) {
23513 case NB_EV_VALIDATE
:
23514 case NB_EV_PREPARE
:
23517 /* TODO: implement me. */
23526 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/plist-export
23528 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_plist_export_modify(
23529 struct nb_cb_modify_args
*args
)
23531 switch (args
->event
) {
23532 case NB_EV_VALIDATE
:
23533 case NB_EV_PREPARE
:
23536 /* TODO: implement me. */
23543 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_plist_export_destroy(
23544 struct nb_cb_destroy_args
*args
)
23546 switch (args
->event
) {
23547 case NB_EV_VALIDATE
:
23548 case NB_EV_PREPARE
:
23551 /* TODO: implement me. */
23560 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/access-list-import
23562 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_access_list_import_modify(
23563 struct nb_cb_modify_args
*args
)
23565 switch (args
->event
) {
23566 case NB_EV_VALIDATE
:
23567 case NB_EV_PREPARE
:
23570 /* TODO: implement me. */
23577 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_access_list_import_destroy(
23578 struct nb_cb_destroy_args
*args
)
23580 switch (args
->event
) {
23581 case NB_EV_VALIDATE
:
23582 case NB_EV_PREPARE
:
23585 /* TODO: implement me. */
23594 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/access-list-export
23596 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_access_list_export_modify(
23597 struct nb_cb_modify_args
*args
)
23599 switch (args
->event
) {
23600 case NB_EV_VALIDATE
:
23601 case NB_EV_PREPARE
:
23604 /* TODO: implement me. */
23611 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_access_list_export_destroy(
23612 struct nb_cb_destroy_args
*args
)
23614 switch (args
->event
) {
23615 case NB_EV_VALIDATE
:
23616 case NB_EV_PREPARE
:
23619 /* TODO: implement me. */
23628 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/as-path-filter-list-import
23630 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_as_path_filter_list_import_modify(
23631 struct nb_cb_modify_args
*args
)
23633 switch (args
->event
) {
23634 case NB_EV_VALIDATE
:
23635 case NB_EV_PREPARE
:
23638 /* TODO: implement me. */
23645 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_as_path_filter_list_import_destroy(
23646 struct nb_cb_destroy_args
*args
)
23648 switch (args
->event
) {
23649 case NB_EV_VALIDATE
:
23650 case NB_EV_PREPARE
:
23653 /* TODO: implement me. */
23662 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/as-path-filter-list-export
23664 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_as_path_filter_list_export_modify(
23665 struct nb_cb_modify_args
*args
)
23667 switch (args
->event
) {
23668 case NB_EV_VALIDATE
:
23669 case NB_EV_PREPARE
:
23672 /* TODO: implement me. */
23679 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_as_path_filter_list_export_destroy(
23680 struct nb_cb_destroy_args
*args
)
23682 switch (args
->event
) {
23683 case NB_EV_VALIDATE
:
23684 case NB_EV_PREPARE
:
23687 /* TODO: implement me. */
23696 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/unsuppress-map-import
23698 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_unsuppress_map_import_modify(
23699 struct nb_cb_modify_args
*args
)
23701 switch (args
->event
) {
23702 case NB_EV_VALIDATE
:
23703 case NB_EV_PREPARE
:
23706 /* TODO: implement me. */
23713 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_unsuppress_map_import_destroy(
23714 struct nb_cb_destroy_args
*args
)
23716 switch (args
->event
) {
23717 case NB_EV_VALIDATE
:
23718 case NB_EV_PREPARE
:
23721 /* TODO: implement me. */
23730 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/filter-config/unsuppress-map-export
23732 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_unsuppress_map_export_modify(
23733 struct nb_cb_modify_args
*args
)
23735 switch (args
->event
) {
23736 case NB_EV_VALIDATE
:
23737 case NB_EV_PREPARE
:
23740 /* TODO: implement me. */
23747 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_unicast_filter_config_unsuppress_map_export_destroy(
23748 struct nb_cb_destroy_args
*args
)
23750 switch (args
->event
) {
23751 case NB_EV_VALIDATE
:
23752 case NB_EV_PREPARE
:
23755 /* TODO: implement me. */
23764 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/nexthop-local-unchanged
23766 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_nexthop_local_unchanged_modify(
23767 struct nb_cb_modify_args
*args
)
23769 switch (args
->event
) {
23770 case NB_EV_VALIDATE
:
23771 case NB_EV_PREPARE
:
23774 /* TODO: implement me. */
23783 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/add-paths/path-type
23785 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_add_paths_path_type_modify(
23786 struct nb_cb_modify_args
*args
)
23788 switch (args
->event
) {
23789 case NB_EV_VALIDATE
:
23790 case NB_EV_PREPARE
:
23793 /* TODO: implement me. */
23802 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/as-path-options/allow-own-as
23804 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_as_path_options_allow_own_as_modify(
23805 struct nb_cb_modify_args
*args
)
23807 switch (args
->event
) {
23808 case NB_EV_VALIDATE
:
23809 case NB_EV_PREPARE
:
23812 /* TODO: implement me. */
23819 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_as_path_options_allow_own_as_destroy(
23820 struct nb_cb_destroy_args
*args
)
23822 switch (args
->event
) {
23823 case NB_EV_VALIDATE
:
23824 case NB_EV_PREPARE
:
23827 /* TODO: implement me. */
23836 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/as-path-options/allow-own-origin-as
23838 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_as_path_options_allow_own_origin_as_modify(
23839 struct nb_cb_modify_args
*args
)
23841 switch (args
->event
) {
23842 case NB_EV_VALIDATE
:
23843 case NB_EV_PREPARE
:
23846 /* TODO: implement me. */
23853 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_as_path_options_allow_own_origin_as_destroy(
23854 struct nb_cb_destroy_args
*args
)
23856 switch (args
->event
) {
23857 case NB_EV_VALIDATE
:
23858 case NB_EV_PREPARE
:
23861 /* TODO: implement me. */
23870 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/as-path-options/replace-peer-as
23872 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_as_path_options_replace_peer_as_modify(
23873 struct nb_cb_modify_args
*args
)
23875 switch (args
->event
) {
23876 case NB_EV_VALIDATE
:
23877 case NB_EV_PREPARE
:
23881 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23882 args
, PEER_FLAG_AS_OVERRIDE
,
23883 yang_dnode_get_bool(args
->dnode
, NULL
));
23893 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/default-originate/originate
23895 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_default_originate_originate_modify(
23896 struct nb_cb_modify_args
*args
)
23898 switch (args
->event
) {
23899 case NB_EV_VALIDATE
:
23900 case NB_EV_PREPARE
:
23903 /* TODO: implement me. */
23912 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/default-originate/route-map
23914 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_default_originate_route_map_modify(
23915 struct nb_cb_modify_args
*args
)
23917 switch (args
->event
) {
23918 case NB_EV_VALIDATE
:
23919 case NB_EV_PREPARE
:
23922 /* TODO: implement me. */
23929 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_default_originate_route_map_destroy(
23930 struct nb_cb_destroy_args
*args
)
23932 switch (args
->event
) {
23933 case NB_EV_VALIDATE
:
23934 case NB_EV_PREPARE
:
23937 /* TODO: implement me. */
23946 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/attr-unchanged/as-path-unchanged
23948 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_attr_unchanged_as_path_unchanged_modify(
23949 struct nb_cb_modify_args
*args
)
23951 switch (args
->event
) {
23952 case NB_EV_VALIDATE
:
23953 case NB_EV_PREPARE
:
23957 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23958 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
23959 yang_dnode_get_bool(args
->dnode
, NULL
));
23969 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/attr-unchanged/next-hop-unchanged
23971 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_attr_unchanged_next_hop_unchanged_modify(
23972 struct nb_cb_modify_args
*args
)
23974 switch (args
->event
) {
23975 case NB_EV_VALIDATE
:
23976 case NB_EV_PREPARE
:
23980 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
23981 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
23982 yang_dnode_get_bool(args
->dnode
, NULL
));
23992 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/attr-unchanged/med-unchanged
23994 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_attr_unchanged_med_unchanged_modify(
23995 struct nb_cb_modify_args
*args
)
23997 switch (args
->event
) {
23998 case NB_EV_VALIDATE
:
23999 case NB_EV_PREPARE
:
24003 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24004 args
, PEER_FLAG_MED_UNCHANGED
,
24005 yang_dnode_get_bool(args
->dnode
, NULL
));
24015 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/orf-capability/orf-send
24017 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_send_modify(
24018 struct nb_cb_modify_args
*args
)
24020 switch (args
->event
) {
24021 case NB_EV_VALIDATE
:
24022 case NB_EV_PREPARE
:
24025 /* TODO: implement me. */
24032 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_send_destroy(
24033 struct nb_cb_destroy_args
*args
)
24035 switch (args
->event
) {
24036 case NB_EV_VALIDATE
:
24037 case NB_EV_PREPARE
:
24040 /* TODO: implement me. */
24049 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/orf-capability/orf-receive
24051 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_receive_modify(
24052 struct nb_cb_modify_args
*args
)
24054 switch (args
->event
) {
24055 case NB_EV_VALIDATE
:
24056 case NB_EV_PREPARE
:
24059 /* TODO: implement me. */
24066 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_receive_destroy(
24067 struct nb_cb_destroy_args
*args
)
24069 switch (args
->event
) {
24070 case NB_EV_VALIDATE
:
24071 case NB_EV_PREPARE
:
24074 /* TODO: implement me. */
24083 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/orf-capability/orf-both
24085 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_both_modify(
24086 struct nb_cb_modify_args
*args
)
24088 switch (args
->event
) {
24089 case NB_EV_VALIDATE
:
24090 case NB_EV_PREPARE
:
24093 /* TODO: implement me. */
24100 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_both_destroy(
24101 struct nb_cb_destroy_args
*args
)
24103 switch (args
->event
) {
24104 case NB_EV_VALIDATE
:
24105 case NB_EV_PREPARE
:
24108 /* TODO: implement me. */
24117 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list
24119 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_create(
24120 struct nb_cb_create_args
*args
)
24122 switch (args
->event
) {
24123 case NB_EV_VALIDATE
:
24124 case NB_EV_PREPARE
:
24127 /* TODO: implement me. */
24134 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_destroy(
24135 struct nb_cb_destroy_args
*args
)
24137 switch (args
->event
) {
24138 case NB_EV_VALIDATE
:
24139 case NB_EV_PREPARE
:
24143 return bgp_unnumbered_neighbor_afi_safi_prefix_limit_list_destroy(
24152 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/max-prefixes
24154 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_max_prefixes_modify(
24155 struct nb_cb_modify_args
*args
)
24157 switch (args
->event
) {
24158 case NB_EV_VALIDATE
:
24159 case NB_EV_PREPARE
:
24162 /* TODO: implement me. */
24171 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/force-check
24173 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_force_check_modify(
24174 struct nb_cb_modify_args
*args
)
24176 switch (args
->event
) {
24177 case NB_EV_VALIDATE
:
24178 case NB_EV_PREPARE
:
24181 /* TODO: implement me. */
24190 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/warning-only
24192 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_warning_only_modify(
24193 struct nb_cb_modify_args
*args
)
24195 switch (args
->event
) {
24196 case NB_EV_VALIDATE
:
24197 case NB_EV_PREPARE
:
24200 /* TODO: implement me. */
24207 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_warning_only_destroy(
24208 struct nb_cb_destroy_args
*args
)
24210 switch (args
->event
) {
24211 case NB_EV_VALIDATE
:
24212 case NB_EV_PREPARE
:
24215 /* TODO: implement me. */
24224 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/restart-timer
24226 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_restart_timer_modify(
24227 struct nb_cb_modify_args
*args
)
24229 switch (args
->event
) {
24230 case NB_EV_VALIDATE
:
24231 case NB_EV_PREPARE
:
24234 /* TODO: implement me. */
24241 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
24242 struct nb_cb_destroy_args
*args
)
24244 switch (args
->event
) {
24245 case NB_EV_VALIDATE
:
24246 case NB_EV_PREPARE
:
24249 /* TODO: implement me. */
24258 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
24260 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
24261 struct nb_cb_modify_args
*args
)
24263 switch (args
->event
) {
24264 case NB_EV_VALIDATE
:
24265 case NB_EV_PREPARE
:
24268 /* TODO: implement me. */
24275 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
24276 struct nb_cb_destroy_args
*args
)
24278 switch (args
->event
) {
24279 case NB_EV_VALIDATE
:
24280 case NB_EV_PREPARE
:
24283 /* TODO: implement me. */
24292 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
24294 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
24295 struct nb_cb_modify_args
*args
)
24297 switch (args
->event
) {
24298 case NB_EV_VALIDATE
:
24299 case NB_EV_PREPARE
:
24302 /* TODO: implement me. */
24309 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
24310 struct nb_cb_destroy_args
*args
)
24312 switch (args
->event
) {
24313 case NB_EV_VALIDATE
:
24314 case NB_EV_PREPARE
:
24317 /* TODO: implement me. */
24326 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/tr-restart-timer
24328 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
24329 struct nb_cb_modify_args
*args
)
24331 switch (args
->event
) {
24332 case NB_EV_VALIDATE
:
24333 case NB_EV_PREPARE
:
24336 /* TODO: implement me. */
24343 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
24344 struct nb_cb_destroy_args
*args
)
24346 switch (args
->event
) {
24347 case NB_EV_VALIDATE
:
24348 case NB_EV_PREPARE
:
24351 /* TODO: implement me. */
24360 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
24362 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
24363 struct nb_cb_modify_args
*args
)
24365 switch (args
->event
) {
24366 case NB_EV_VALIDATE
:
24367 case NB_EV_PREPARE
:
24370 /* TODO: implement me. */
24377 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
24378 struct nb_cb_destroy_args
*args
)
24380 switch (args
->event
) {
24381 case NB_EV_VALIDATE
:
24382 case NB_EV_PREPARE
:
24385 /* TODO: implement me. */
24394 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/tw-warning-only
24396 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
24397 struct nb_cb_modify_args
*args
)
24399 switch (args
->event
) {
24400 case NB_EV_VALIDATE
:
24401 case NB_EV_PREPARE
:
24404 /* TODO: implement me. */
24411 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
24412 struct nb_cb_destroy_args
*args
)
24414 switch (args
->event
) {
24415 case NB_EV_VALIDATE
:
24416 case NB_EV_PREPARE
:
24419 /* TODO: implement me. */
24428 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/nexthop-self/next-hop-self
24430 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_nexthop_self_next_hop_self_modify(
24431 struct nb_cb_modify_args
*args
)
24433 switch (args
->event
) {
24434 case NB_EV_VALIDATE
:
24435 case NB_EV_PREPARE
:
24439 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24440 args
, PEER_FLAG_NEXTHOP_SELF
,
24441 yang_dnode_get_bool(args
->dnode
, NULL
));
24451 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/nexthop-self/next-hop-self-force
24453 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_nexthop_self_next_hop_self_force_modify(
24454 struct nb_cb_modify_args
*args
)
24456 switch (args
->event
) {
24457 case NB_EV_VALIDATE
:
24458 case NB_EV_PREPARE
:
24462 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24463 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
24464 yang_dnode_get_bool(args
->dnode
, NULL
));
24474 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/private-as/remove-private-as-all
24476 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_private_as_remove_private_as_all_modify(
24477 struct nb_cb_modify_args
*args
)
24479 switch (args
->event
) {
24480 case NB_EV_VALIDATE
:
24481 case NB_EV_PREPARE
:
24485 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24486 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
24487 yang_dnode_get_bool(args
->dnode
, NULL
));
24497 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/private-as/remove-private-as-all-replace
24499 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_private_as_remove_private_as_all_replace_modify(
24500 struct nb_cb_modify_args
*args
)
24502 switch (args
->event
) {
24503 case NB_EV_VALIDATE
:
24504 case NB_EV_PREPARE
:
24508 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24509 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
24510 yang_dnode_get_bool(args
->dnode
, NULL
));
24520 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/private-as/remove-private-as
24522 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_private_as_remove_private_as_modify(
24523 struct nb_cb_modify_args
*args
)
24525 switch (args
->event
) {
24526 case NB_EV_VALIDATE
:
24527 case NB_EV_PREPARE
:
24531 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24532 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
24533 yang_dnode_get_bool(args
->dnode
, NULL
));
24543 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/private-as/remove-private-as-replace
24545 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_private_as_remove_private_as_replace_modify(
24546 struct nb_cb_modify_args
*args
)
24548 switch (args
->event
) {
24549 case NB_EV_VALIDATE
:
24550 case NB_EV_PREPARE
:
24554 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24555 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
24556 yang_dnode_get_bool(args
->dnode
, NULL
));
24566 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/route-reflector/route-reflector-client
24568 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_route_reflector_route_reflector_client_modify(
24569 struct nb_cb_modify_args
*args
)
24571 switch (args
->event
) {
24572 case NB_EV_VALIDATE
:
24573 case NB_EV_PREPARE
:
24577 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24578 args
, PEER_FLAG_REFLECTOR_CLIENT
,
24579 yang_dnode_get_bool(args
->dnode
, NULL
));
24589 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/route-server/route-server-client
24591 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_route_server_route_server_client_modify(
24592 struct nb_cb_modify_args
*args
)
24594 switch (args
->event
) {
24595 case NB_EV_VALIDATE
:
24596 case NB_EV_PREPARE
:
24600 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24601 args
, PEER_FLAG_RSERVER_CLIENT
,
24602 yang_dnode_get_bool(args
->dnode
, NULL
));
24612 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/send-community/send-community
24614 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_send_community_send_community_modify(
24615 struct nb_cb_modify_args
*args
)
24617 switch (args
->event
) {
24618 case NB_EV_VALIDATE
:
24619 case NB_EV_PREPARE
:
24623 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24624 args
, PEER_FLAG_SEND_COMMUNITY
,
24625 yang_dnode_get_bool(args
->dnode
, NULL
));
24635 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/send-community/send-ext-community
24637 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_send_community_send_ext_community_modify(
24638 struct nb_cb_modify_args
*args
)
24640 switch (args
->event
) {
24641 case NB_EV_VALIDATE
:
24642 case NB_EV_PREPARE
:
24646 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24647 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
24648 yang_dnode_get_bool(args
->dnode
, NULL
));
24658 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/send-community/send-large-community
24660 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_send_community_send_large_community_modify(
24661 struct nb_cb_modify_args
*args
)
24663 switch (args
->event
) {
24664 case NB_EV_VALIDATE
:
24665 case NB_EV_PREPARE
:
24669 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24670 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
24671 yang_dnode_get_bool(args
->dnode
, NULL
));
24681 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/soft-reconfiguration
24683 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_soft_reconfiguration_modify(
24684 struct nb_cb_modify_args
*args
)
24686 switch (args
->event
) {
24687 case NB_EV_VALIDATE
:
24688 case NB_EV_PREPARE
:
24692 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24693 args
, PEER_FLAG_SOFT_RECONFIG
,
24694 yang_dnode_get_bool(args
->dnode
, NULL
));
24704 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-unicast/weight/weight-attribute
24706 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_weight_weight_attribute_modify(
24707 struct nb_cb_modify_args
*args
)
24709 switch (args
->event
) {
24710 case NB_EV_VALIDATE
:
24711 case NB_EV_PREPARE
:
24715 return bgp_unnumbered_neighbor_afi_safi_weight_modify(args
);
24723 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_unicast_weight_weight_attribute_destroy(
24724 struct nb_cb_destroy_args
*args
)
24726 switch (args
->event
) {
24727 case NB_EV_VALIDATE
:
24728 case NB_EV_PREPARE
:
24732 return bgp_unnumbered_neighbor_afi_safi_weight_destroy(args
);
24742 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/add-paths/path-type
24744 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_add_paths_path_type_modify(
24745 struct nb_cb_modify_args
*args
)
24747 switch (args
->event
) {
24748 case NB_EV_VALIDATE
:
24749 case NB_EV_PREPARE
:
24752 /* TODO: implement me. */
24761 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/as-path-options/allow-own-as
24763 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_as_path_options_allow_own_as_modify(
24764 struct nb_cb_modify_args
*args
)
24766 switch (args
->event
) {
24767 case NB_EV_VALIDATE
:
24768 case NB_EV_PREPARE
:
24771 /* TODO: implement me. */
24778 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_as_path_options_allow_own_as_destroy(
24779 struct nb_cb_destroy_args
*args
)
24781 switch (args
->event
) {
24782 case NB_EV_VALIDATE
:
24783 case NB_EV_PREPARE
:
24786 /* TODO: implement me. */
24795 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/as-path-options/allow-own-origin-as
24797 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_as_path_options_allow_own_origin_as_modify(
24798 struct nb_cb_modify_args
*args
)
24800 switch (args
->event
) {
24801 case NB_EV_VALIDATE
:
24802 case NB_EV_PREPARE
:
24805 /* TODO: implement me. */
24812 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_as_path_options_allow_own_origin_as_destroy(
24813 struct nb_cb_destroy_args
*args
)
24815 switch (args
->event
) {
24816 case NB_EV_VALIDATE
:
24817 case NB_EV_PREPARE
:
24820 /* TODO: implement me. */
24829 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/as-path-options/replace-peer-as
24831 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_as_path_options_replace_peer_as_modify(
24832 struct nb_cb_modify_args
*args
)
24834 switch (args
->event
) {
24835 case NB_EV_VALIDATE
:
24836 case NB_EV_PREPARE
:
24840 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24841 args
, PEER_FLAG_AS_OVERRIDE
,
24842 yang_dnode_get_bool(args
->dnode
, NULL
));
24852 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/default-originate/originate
24854 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_default_originate_originate_modify(
24855 struct nb_cb_modify_args
*args
)
24857 switch (args
->event
) {
24858 case NB_EV_VALIDATE
:
24859 case NB_EV_PREPARE
:
24862 /* TODO: implement me. */
24871 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/default-originate/route-map
24873 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_default_originate_route_map_modify(
24874 struct nb_cb_modify_args
*args
)
24876 switch (args
->event
) {
24877 case NB_EV_VALIDATE
:
24878 case NB_EV_PREPARE
:
24881 /* TODO: implement me. */
24888 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_default_originate_route_map_destroy(
24889 struct nb_cb_destroy_args
*args
)
24891 switch (args
->event
) {
24892 case NB_EV_VALIDATE
:
24893 case NB_EV_PREPARE
:
24896 /* TODO: implement me. */
24905 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/attr-unchanged/as-path-unchanged
24907 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_attr_unchanged_as_path_unchanged_modify(
24908 struct nb_cb_modify_args
*args
)
24910 switch (args
->event
) {
24911 case NB_EV_VALIDATE
:
24912 case NB_EV_PREPARE
:
24916 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24917 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
24918 yang_dnode_get_bool(args
->dnode
, NULL
));
24928 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/attr-unchanged/next-hop-unchanged
24930 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_attr_unchanged_next_hop_unchanged_modify(
24931 struct nb_cb_modify_args
*args
)
24933 switch (args
->event
) {
24934 case NB_EV_VALIDATE
:
24935 case NB_EV_PREPARE
:
24939 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24940 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
24941 yang_dnode_get_bool(args
->dnode
, NULL
));
24951 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/attr-unchanged/med-unchanged
24953 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_attr_unchanged_med_unchanged_modify(
24954 struct nb_cb_modify_args
*args
)
24956 switch (args
->event
) {
24957 case NB_EV_VALIDATE
:
24958 case NB_EV_PREPARE
:
24962 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
24963 args
, PEER_FLAG_MED_UNCHANGED
,
24964 yang_dnode_get_bool(args
->dnode
, NULL
));
24974 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/orf-capability/orf-send
24976 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_send_modify(
24977 struct nb_cb_modify_args
*args
)
24979 switch (args
->event
) {
24980 case NB_EV_VALIDATE
:
24981 case NB_EV_PREPARE
:
24984 /* TODO: implement me. */
24991 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_send_destroy(
24992 struct nb_cb_destroy_args
*args
)
24994 switch (args
->event
) {
24995 case NB_EV_VALIDATE
:
24996 case NB_EV_PREPARE
:
24999 /* TODO: implement me. */
25008 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/orf-capability/orf-receive
25010 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_receive_modify(
25011 struct nb_cb_modify_args
*args
)
25013 switch (args
->event
) {
25014 case NB_EV_VALIDATE
:
25015 case NB_EV_PREPARE
:
25018 /* TODO: implement me. */
25025 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_receive_destroy(
25026 struct nb_cb_destroy_args
*args
)
25028 switch (args
->event
) {
25029 case NB_EV_VALIDATE
:
25030 case NB_EV_PREPARE
:
25033 /* TODO: implement me. */
25042 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/orf-capability/orf-both
25044 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_both_modify(
25045 struct nb_cb_modify_args
*args
)
25047 switch (args
->event
) {
25048 case NB_EV_VALIDATE
:
25049 case NB_EV_PREPARE
:
25052 /* TODO: implement me. */
25059 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_both_destroy(
25060 struct nb_cb_destroy_args
*args
)
25062 switch (args
->event
) {
25063 case NB_EV_VALIDATE
:
25064 case NB_EV_PREPARE
:
25067 /* TODO: implement me. */
25076 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list
25078 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_create(
25079 struct nb_cb_create_args
*args
)
25081 switch (args
->event
) {
25082 case NB_EV_VALIDATE
:
25083 case NB_EV_PREPARE
:
25086 /* TODO: implement me. */
25093 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_destroy(
25094 struct nb_cb_destroy_args
*args
)
25096 switch (args
->event
) {
25097 case NB_EV_VALIDATE
:
25098 case NB_EV_PREPARE
:
25102 return bgp_unnumbered_neighbor_afi_safi_prefix_limit_list_destroy(
25111 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/max-prefixes
25113 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_max_prefixes_modify(
25114 struct nb_cb_modify_args
*args
)
25116 switch (args
->event
) {
25117 case NB_EV_VALIDATE
:
25118 case NB_EV_PREPARE
:
25121 /* TODO: implement me. */
25130 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/force-check
25132 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_force_check_modify(
25133 struct nb_cb_modify_args
*args
)
25135 switch (args
->event
) {
25136 case NB_EV_VALIDATE
:
25137 case NB_EV_PREPARE
:
25140 /* TODO: implement me. */
25149 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/warning-only
25151 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_warning_only_modify(
25152 struct nb_cb_modify_args
*args
)
25154 switch (args
->event
) {
25155 case NB_EV_VALIDATE
:
25156 case NB_EV_PREPARE
:
25159 /* TODO: implement me. */
25166 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_warning_only_destroy(
25167 struct nb_cb_destroy_args
*args
)
25169 switch (args
->event
) {
25170 case NB_EV_VALIDATE
:
25171 case NB_EV_PREPARE
:
25174 /* TODO: implement me. */
25183 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/restart-timer
25185 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_restart_timer_modify(
25186 struct nb_cb_modify_args
*args
)
25188 switch (args
->event
) {
25189 case NB_EV_VALIDATE
:
25190 case NB_EV_PREPARE
:
25193 /* TODO: implement me. */
25200 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_restart_timer_destroy(
25201 struct nb_cb_destroy_args
*args
)
25203 switch (args
->event
) {
25204 case NB_EV_VALIDATE
:
25205 case NB_EV_PREPARE
:
25208 /* TODO: implement me. */
25217 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/shutdown-threshold-pct
25219 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
25220 struct nb_cb_modify_args
*args
)
25222 switch (args
->event
) {
25223 case NB_EV_VALIDATE
:
25224 case NB_EV_PREPARE
:
25227 /* TODO: implement me. */
25234 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
25235 struct nb_cb_destroy_args
*args
)
25237 switch (args
->event
) {
25238 case NB_EV_VALIDATE
:
25239 case NB_EV_PREPARE
:
25242 /* TODO: implement me. */
25251 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
25253 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
25254 struct nb_cb_modify_args
*args
)
25256 switch (args
->event
) {
25257 case NB_EV_VALIDATE
:
25258 case NB_EV_PREPARE
:
25261 /* TODO: implement me. */
25268 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
25269 struct nb_cb_destroy_args
*args
)
25271 switch (args
->event
) {
25272 case NB_EV_VALIDATE
:
25273 case NB_EV_PREPARE
:
25276 /* TODO: implement me. */
25285 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/tr-restart-timer
25287 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
25288 struct nb_cb_modify_args
*args
)
25290 switch (args
->event
) {
25291 case NB_EV_VALIDATE
:
25292 case NB_EV_PREPARE
:
25295 /* TODO: implement me. */
25302 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
25303 struct nb_cb_destroy_args
*args
)
25305 switch (args
->event
) {
25306 case NB_EV_VALIDATE
:
25307 case NB_EV_PREPARE
:
25310 /* TODO: implement me. */
25319 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
25321 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
25322 struct nb_cb_modify_args
*args
)
25324 switch (args
->event
) {
25325 case NB_EV_VALIDATE
:
25326 case NB_EV_PREPARE
:
25329 /* TODO: implement me. */
25336 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
25337 struct nb_cb_destroy_args
*args
)
25339 switch (args
->event
) {
25340 case NB_EV_VALIDATE
:
25341 case NB_EV_PREPARE
:
25344 /* TODO: implement me. */
25353 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/tw-warning-only
25355 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tw_warning_only_modify(
25356 struct nb_cb_modify_args
*args
)
25358 switch (args
->event
) {
25359 case NB_EV_VALIDATE
:
25360 case NB_EV_PREPARE
:
25363 /* TODO: implement me. */
25370 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
25371 struct nb_cb_destroy_args
*args
)
25373 switch (args
->event
) {
25374 case NB_EV_VALIDATE
:
25375 case NB_EV_PREPARE
:
25378 /* TODO: implement me. */
25387 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/nexthop-self/next-hop-self
25389 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_nexthop_self_next_hop_self_modify(
25390 struct nb_cb_modify_args
*args
)
25392 switch (args
->event
) {
25393 case NB_EV_VALIDATE
:
25394 case NB_EV_PREPARE
:
25398 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25399 args
, PEER_FLAG_NEXTHOP_SELF
,
25400 yang_dnode_get_bool(args
->dnode
, NULL
));
25410 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/nexthop-self/next-hop-self-force
25412 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_nexthop_self_next_hop_self_force_modify(
25413 struct nb_cb_modify_args
*args
)
25415 switch (args
->event
) {
25416 case NB_EV_VALIDATE
:
25417 case NB_EV_PREPARE
:
25421 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25422 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
25423 yang_dnode_get_bool(args
->dnode
, NULL
));
25433 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/private-as/remove-private-as-all
25435 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_private_as_remove_private_as_all_modify(
25436 struct nb_cb_modify_args
*args
)
25438 switch (args
->event
) {
25439 case NB_EV_VALIDATE
:
25440 case NB_EV_PREPARE
:
25444 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25445 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
25446 yang_dnode_get_bool(args
->dnode
, NULL
));
25456 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/private-as/remove-private-as-all-replace
25458 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_private_as_remove_private_as_all_replace_modify(
25459 struct nb_cb_modify_args
*args
)
25461 switch (args
->event
) {
25462 case NB_EV_VALIDATE
:
25463 case NB_EV_PREPARE
:
25467 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25468 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
25469 yang_dnode_get_bool(args
->dnode
, NULL
));
25479 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/private-as/remove-private-as
25481 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_private_as_remove_private_as_modify(
25482 struct nb_cb_modify_args
*args
)
25484 switch (args
->event
) {
25485 case NB_EV_VALIDATE
:
25486 case NB_EV_PREPARE
:
25490 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25491 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
25492 yang_dnode_get_bool(args
->dnode
, NULL
));
25502 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/private-as/remove-private-as-replace
25504 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_private_as_remove_private_as_replace_modify(
25505 struct nb_cb_modify_args
*args
)
25507 switch (args
->event
) {
25508 case NB_EV_VALIDATE
:
25509 case NB_EV_PREPARE
:
25513 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25514 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
25515 yang_dnode_get_bool(args
->dnode
, NULL
));
25525 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/route-reflector/route-reflector-client
25527 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_route_reflector_route_reflector_client_modify(
25528 struct nb_cb_modify_args
*args
)
25530 switch (args
->event
) {
25531 case NB_EV_VALIDATE
:
25532 case NB_EV_PREPARE
:
25536 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25537 args
, PEER_FLAG_REFLECTOR_CLIENT
,
25538 yang_dnode_get_bool(args
->dnode
, NULL
));
25548 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/route-server/route-server-client
25550 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_route_server_route_server_client_modify(
25551 struct nb_cb_modify_args
*args
)
25553 switch (args
->event
) {
25554 case NB_EV_VALIDATE
:
25555 case NB_EV_PREPARE
:
25559 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25560 args
, PEER_FLAG_RSERVER_CLIENT
,
25561 yang_dnode_get_bool(args
->dnode
, NULL
));
25571 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/send-community/send-community
25573 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_send_community_send_community_modify(
25574 struct nb_cb_modify_args
*args
)
25576 switch (args
->event
) {
25577 case NB_EV_VALIDATE
:
25578 case NB_EV_PREPARE
:
25582 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25583 args
, PEER_FLAG_SEND_COMMUNITY
,
25584 yang_dnode_get_bool(args
->dnode
, NULL
));
25594 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/send-community/send-ext-community
25596 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_send_community_send_ext_community_modify(
25597 struct nb_cb_modify_args
*args
)
25599 switch (args
->event
) {
25600 case NB_EV_VALIDATE
:
25601 case NB_EV_PREPARE
:
25605 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25606 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
25607 yang_dnode_get_bool(args
->dnode
, NULL
));
25617 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/send-community/send-large-community
25619 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_send_community_send_large_community_modify(
25620 struct nb_cb_modify_args
*args
)
25622 switch (args
->event
) {
25623 case NB_EV_VALIDATE
:
25624 case NB_EV_PREPARE
:
25628 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25629 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
25630 yang_dnode_get_bool(args
->dnode
, NULL
));
25640 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/soft-reconfiguration
25642 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_soft_reconfiguration_modify(
25643 struct nb_cb_modify_args
*args
)
25645 switch (args
->event
) {
25646 case NB_EV_VALIDATE
:
25647 case NB_EV_PREPARE
:
25651 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25652 args
, PEER_FLAG_SOFT_RECONFIG
,
25653 yang_dnode_get_bool(args
->dnode
, NULL
));
25663 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-multicast/weight/weight-attribute
25665 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_weight_weight_attribute_modify(
25666 struct nb_cb_modify_args
*args
)
25668 switch (args
->event
) {
25669 case NB_EV_VALIDATE
:
25670 case NB_EV_PREPARE
:
25674 return bgp_unnumbered_neighbor_afi_safi_weight_modify(args
);
25682 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_multicast_weight_weight_attribute_destroy(
25683 struct nb_cb_destroy_args
*args
)
25685 switch (args
->event
) {
25686 case NB_EV_VALIDATE
:
25687 case NB_EV_PREPARE
:
25691 return bgp_unnumbered_neighbor_afi_safi_weight_destroy(args
);
25701 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/add-paths/path-type
25703 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_add_paths_path_type_modify(
25704 struct nb_cb_modify_args
*args
)
25706 switch (args
->event
) {
25707 case NB_EV_VALIDATE
:
25708 case NB_EV_PREPARE
:
25711 /* TODO: implement me. */
25720 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/as-path-options/allow-own-as
25722 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_as_path_options_allow_own_as_modify(
25723 struct nb_cb_modify_args
*args
)
25725 switch (args
->event
) {
25726 case NB_EV_VALIDATE
:
25727 case NB_EV_PREPARE
:
25730 /* TODO: implement me. */
25737 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_as_path_options_allow_own_as_destroy(
25738 struct nb_cb_destroy_args
*args
)
25740 switch (args
->event
) {
25741 case NB_EV_VALIDATE
:
25742 case NB_EV_PREPARE
:
25745 /* TODO: implement me. */
25754 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/as-path-options/allow-own-origin-as
25756 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_as_path_options_allow_own_origin_as_modify(
25757 struct nb_cb_modify_args
*args
)
25759 switch (args
->event
) {
25760 case NB_EV_VALIDATE
:
25761 case NB_EV_PREPARE
:
25764 /* TODO: implement me. */
25771 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_as_path_options_allow_own_origin_as_destroy(
25772 struct nb_cb_destroy_args
*args
)
25774 switch (args
->event
) {
25775 case NB_EV_VALIDATE
:
25776 case NB_EV_PREPARE
:
25779 /* TODO: implement me. */
25788 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/as-path-options/replace-peer-as
25790 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_as_path_options_replace_peer_as_modify(
25791 struct nb_cb_modify_args
*args
)
25793 switch (args
->event
) {
25794 case NB_EV_VALIDATE
:
25795 case NB_EV_PREPARE
:
25799 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25800 args
, PEER_FLAG_AS_OVERRIDE
,
25801 yang_dnode_get_bool(args
->dnode
, NULL
));
25811 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/default-originate/originate
25813 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_default_originate_originate_modify(
25814 struct nb_cb_modify_args
*args
)
25816 switch (args
->event
) {
25817 case NB_EV_VALIDATE
:
25818 case NB_EV_PREPARE
:
25821 /* TODO: implement me. */
25830 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/default-originate/route-map
25832 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_default_originate_route_map_modify(
25833 struct nb_cb_modify_args
*args
)
25835 switch (args
->event
) {
25836 case NB_EV_VALIDATE
:
25837 case NB_EV_PREPARE
:
25840 /* TODO: implement me. */
25847 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_default_originate_route_map_destroy(
25848 struct nb_cb_destroy_args
*args
)
25850 switch (args
->event
) {
25851 case NB_EV_VALIDATE
:
25852 case NB_EV_PREPARE
:
25855 /* TODO: implement me. */
25864 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/attr-unchanged/as-path-unchanged
25866 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_attr_unchanged_as_path_unchanged_modify(
25867 struct nb_cb_modify_args
*args
)
25869 switch (args
->event
) {
25870 case NB_EV_VALIDATE
:
25871 case NB_EV_PREPARE
:
25875 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25876 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
25877 yang_dnode_get_bool(args
->dnode
, NULL
));
25887 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/attr-unchanged/next-hop-unchanged
25889 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_attr_unchanged_next_hop_unchanged_modify(
25890 struct nb_cb_modify_args
*args
)
25892 switch (args
->event
) {
25893 case NB_EV_VALIDATE
:
25894 case NB_EV_PREPARE
:
25898 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25899 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
25900 yang_dnode_get_bool(args
->dnode
, NULL
));
25910 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/attr-unchanged/med-unchanged
25912 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_attr_unchanged_med_unchanged_modify(
25913 struct nb_cb_modify_args
*args
)
25915 switch (args
->event
) {
25916 case NB_EV_VALIDATE
:
25917 case NB_EV_PREPARE
:
25921 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
25922 args
, PEER_FLAG_MED_UNCHANGED
,
25923 yang_dnode_get_bool(args
->dnode
, NULL
));
25933 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/orf-capability/orf-send
25935 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_send_modify(
25936 struct nb_cb_modify_args
*args
)
25938 switch (args
->event
) {
25939 case NB_EV_VALIDATE
:
25940 case NB_EV_PREPARE
:
25943 /* TODO: implement me. */
25950 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_send_destroy(
25951 struct nb_cb_destroy_args
*args
)
25953 switch (args
->event
) {
25954 case NB_EV_VALIDATE
:
25955 case NB_EV_PREPARE
:
25958 /* TODO: implement me. */
25967 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/orf-capability/orf-receive
25969 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_receive_modify(
25970 struct nb_cb_modify_args
*args
)
25972 switch (args
->event
) {
25973 case NB_EV_VALIDATE
:
25974 case NB_EV_PREPARE
:
25977 /* TODO: implement me. */
25984 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_receive_destroy(
25985 struct nb_cb_destroy_args
*args
)
25987 switch (args
->event
) {
25988 case NB_EV_VALIDATE
:
25989 case NB_EV_PREPARE
:
25992 /* TODO: implement me. */
26001 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/orf-capability/orf-both
26003 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_both_modify(
26004 struct nb_cb_modify_args
*args
)
26006 switch (args
->event
) {
26007 case NB_EV_VALIDATE
:
26008 case NB_EV_PREPARE
:
26011 /* TODO: implement me. */
26018 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_both_destroy(
26019 struct nb_cb_destroy_args
*args
)
26021 switch (args
->event
) {
26022 case NB_EV_VALIDATE
:
26023 case NB_EV_PREPARE
:
26026 /* TODO: implement me. */
26035 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list
26037 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_create(
26038 struct nb_cb_create_args
*args
)
26040 switch (args
->event
) {
26041 case NB_EV_VALIDATE
:
26042 case NB_EV_PREPARE
:
26045 /* TODO: implement me. */
26052 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_destroy(
26053 struct nb_cb_destroy_args
*args
)
26055 switch (args
->event
) {
26056 case NB_EV_VALIDATE
:
26057 case NB_EV_PREPARE
:
26061 return bgp_unnumbered_neighbor_afi_safi_prefix_limit_list_destroy(
26070 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/max-prefixes
26072 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_max_prefixes_modify(
26073 struct nb_cb_modify_args
*args
)
26075 switch (args
->event
) {
26076 case NB_EV_VALIDATE
:
26077 case NB_EV_PREPARE
:
26080 /* TODO: implement me. */
26089 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/force-check
26091 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_force_check_modify(
26092 struct nb_cb_modify_args
*args
)
26094 switch (args
->event
) {
26095 case NB_EV_VALIDATE
:
26096 case NB_EV_PREPARE
:
26099 /* TODO: implement me. */
26108 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/warning-only
26110 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_warning_only_modify(
26111 struct nb_cb_modify_args
*args
)
26113 switch (args
->event
) {
26114 case NB_EV_VALIDATE
:
26115 case NB_EV_PREPARE
:
26118 /* TODO: implement me. */
26125 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_warning_only_destroy(
26126 struct nb_cb_destroy_args
*args
)
26128 switch (args
->event
) {
26129 case NB_EV_VALIDATE
:
26130 case NB_EV_PREPARE
:
26133 /* TODO: implement me. */
26142 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/restart-timer
26144 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_restart_timer_modify(
26145 struct nb_cb_modify_args
*args
)
26147 switch (args
->event
) {
26148 case NB_EV_VALIDATE
:
26149 case NB_EV_PREPARE
:
26152 /* TODO: implement me. */
26159 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_restart_timer_destroy(
26160 struct nb_cb_destroy_args
*args
)
26162 switch (args
->event
) {
26163 case NB_EV_VALIDATE
:
26164 case NB_EV_PREPARE
:
26167 /* TODO: implement me. */
26176 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/shutdown-threshold-pct
26178 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
26179 struct nb_cb_modify_args
*args
)
26181 switch (args
->event
) {
26182 case NB_EV_VALIDATE
:
26183 case NB_EV_PREPARE
:
26186 /* TODO: implement me. */
26193 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
26194 struct nb_cb_destroy_args
*args
)
26196 switch (args
->event
) {
26197 case NB_EV_VALIDATE
:
26198 case NB_EV_PREPARE
:
26201 /* TODO: implement me. */
26210 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
26212 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
26213 struct nb_cb_modify_args
*args
)
26215 switch (args
->event
) {
26216 case NB_EV_VALIDATE
:
26217 case NB_EV_PREPARE
:
26220 /* TODO: implement me. */
26227 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
26228 struct nb_cb_destroy_args
*args
)
26230 switch (args
->event
) {
26231 case NB_EV_VALIDATE
:
26232 case NB_EV_PREPARE
:
26235 /* TODO: implement me. */
26244 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/tr-restart-timer
26246 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
26247 struct nb_cb_modify_args
*args
)
26249 switch (args
->event
) {
26250 case NB_EV_VALIDATE
:
26251 case NB_EV_PREPARE
:
26254 /* TODO: implement me. */
26261 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
26262 struct nb_cb_destroy_args
*args
)
26264 switch (args
->event
) {
26265 case NB_EV_VALIDATE
:
26266 case NB_EV_PREPARE
:
26269 /* TODO: implement me. */
26278 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
26280 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
26281 struct nb_cb_modify_args
*args
)
26283 switch (args
->event
) {
26284 case NB_EV_VALIDATE
:
26285 case NB_EV_PREPARE
:
26288 /* TODO: implement me. */
26295 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
26296 struct nb_cb_destroy_args
*args
)
26298 switch (args
->event
) {
26299 case NB_EV_VALIDATE
:
26300 case NB_EV_PREPARE
:
26303 /* TODO: implement me. */
26312 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/tw-warning-only
26314 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tw_warning_only_modify(
26315 struct nb_cb_modify_args
*args
)
26317 switch (args
->event
) {
26318 case NB_EV_VALIDATE
:
26319 case NB_EV_PREPARE
:
26322 /* TODO: implement me. */
26329 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
26330 struct nb_cb_destroy_args
*args
)
26332 switch (args
->event
) {
26333 case NB_EV_VALIDATE
:
26334 case NB_EV_PREPARE
:
26337 /* TODO: implement me. */
26346 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/nexthop-self/next-hop-self
26348 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_nexthop_self_next_hop_self_modify(
26349 struct nb_cb_modify_args
*args
)
26351 switch (args
->event
) {
26352 case NB_EV_VALIDATE
:
26353 case NB_EV_PREPARE
:
26357 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26358 args
, PEER_FLAG_NEXTHOP_SELF
,
26359 yang_dnode_get_bool(args
->dnode
, NULL
));
26369 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/nexthop-self/next-hop-self-force
26371 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_nexthop_self_next_hop_self_force_modify(
26372 struct nb_cb_modify_args
*args
)
26374 switch (args
->event
) {
26375 case NB_EV_VALIDATE
:
26376 case NB_EV_PREPARE
:
26380 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26381 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
26382 yang_dnode_get_bool(args
->dnode
, NULL
));
26392 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/private-as/remove-private-as-all
26394 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_private_as_remove_private_as_all_modify(
26395 struct nb_cb_modify_args
*args
)
26397 switch (args
->event
) {
26398 case NB_EV_VALIDATE
:
26399 case NB_EV_PREPARE
:
26403 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26404 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
26405 yang_dnode_get_bool(args
->dnode
, NULL
));
26415 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/private-as/remove-private-as-all-replace
26417 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_private_as_remove_private_as_all_replace_modify(
26418 struct nb_cb_modify_args
*args
)
26420 switch (args
->event
) {
26421 case NB_EV_VALIDATE
:
26422 case NB_EV_PREPARE
:
26426 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26427 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
26428 yang_dnode_get_bool(args
->dnode
, NULL
));
26438 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/private-as/remove-private-as
26440 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_private_as_remove_private_as_modify(
26441 struct nb_cb_modify_args
*args
)
26443 switch (args
->event
) {
26444 case NB_EV_VALIDATE
:
26445 case NB_EV_PREPARE
:
26449 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26450 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
26451 yang_dnode_get_bool(args
->dnode
, NULL
));
26461 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/private-as/remove-private-as-replace
26463 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_private_as_remove_private_as_replace_modify(
26464 struct nb_cb_modify_args
*args
)
26466 switch (args
->event
) {
26467 case NB_EV_VALIDATE
:
26468 case NB_EV_PREPARE
:
26472 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26473 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
26474 yang_dnode_get_bool(args
->dnode
, NULL
));
26484 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/route-reflector/route-reflector-client
26486 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_route_reflector_route_reflector_client_modify(
26487 struct nb_cb_modify_args
*args
)
26489 switch (args
->event
) {
26490 case NB_EV_VALIDATE
:
26491 case NB_EV_PREPARE
:
26495 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26496 args
, PEER_FLAG_REFLECTOR_CLIENT
,
26497 yang_dnode_get_bool(args
->dnode
, NULL
));
26507 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/route-server/route-server-client
26509 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_route_server_route_server_client_modify(
26510 struct nb_cb_modify_args
*args
)
26512 switch (args
->event
) {
26513 case NB_EV_VALIDATE
:
26514 case NB_EV_PREPARE
:
26518 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26519 args
, PEER_FLAG_RSERVER_CLIENT
,
26520 yang_dnode_get_bool(args
->dnode
, NULL
));
26530 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/send-community/send-community
26532 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_send_community_send_community_modify(
26533 struct nb_cb_modify_args
*args
)
26535 switch (args
->event
) {
26536 case NB_EV_VALIDATE
:
26537 case NB_EV_PREPARE
:
26541 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26542 args
, PEER_FLAG_SEND_COMMUNITY
,
26543 yang_dnode_get_bool(args
->dnode
, NULL
));
26553 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/send-community/send-ext-community
26555 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_send_community_send_ext_community_modify(
26556 struct nb_cb_modify_args
*args
)
26558 switch (args
->event
) {
26559 case NB_EV_VALIDATE
:
26560 case NB_EV_PREPARE
:
26564 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26565 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
26566 yang_dnode_get_bool(args
->dnode
, NULL
));
26576 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/send-community/send-large-community
26578 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_send_community_send_large_community_modify(
26579 struct nb_cb_modify_args
*args
)
26581 switch (args
->event
) {
26582 case NB_EV_VALIDATE
:
26583 case NB_EV_PREPARE
:
26587 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26588 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
26589 yang_dnode_get_bool(args
->dnode
, NULL
));
26599 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/soft-reconfiguration
26601 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_soft_reconfiguration_modify(
26602 struct nb_cb_modify_args
*args
)
26604 switch (args
->event
) {
26605 case NB_EV_VALIDATE
:
26606 case NB_EV_PREPARE
:
26610 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26611 args
, PEER_FLAG_SOFT_RECONFIG
,
26612 yang_dnode_get_bool(args
->dnode
, NULL
));
26622 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-multicast/weight/weight-attribute
26624 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_weight_weight_attribute_modify(
26625 struct nb_cb_modify_args
*args
)
26627 switch (args
->event
) {
26628 case NB_EV_VALIDATE
:
26629 case NB_EV_PREPARE
:
26633 return bgp_unnumbered_neighbor_afi_safi_weight_modify(args
);
26641 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_multicast_weight_weight_attribute_destroy(
26642 struct nb_cb_destroy_args
*args
)
26644 switch (args
->event
) {
26645 case NB_EV_VALIDATE
:
26646 case NB_EV_PREPARE
:
26650 return bgp_unnumbered_neighbor_afi_safi_weight_destroy(args
);
26660 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/add-paths/path-type
26662 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_add_paths_path_type_modify(
26663 struct nb_cb_modify_args
*args
)
26665 switch (args
->event
) {
26666 case NB_EV_VALIDATE
:
26667 case NB_EV_PREPARE
:
26670 /* TODO: implement me. */
26679 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/as-path-options/allow-own-as
26681 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_allow_own_as_modify(
26682 struct nb_cb_modify_args
*args
)
26684 switch (args
->event
) {
26685 case NB_EV_VALIDATE
:
26686 case NB_EV_PREPARE
:
26689 /* TODO: implement me. */
26696 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_allow_own_as_destroy(
26697 struct nb_cb_destroy_args
*args
)
26699 switch (args
->event
) {
26700 case NB_EV_VALIDATE
:
26701 case NB_EV_PREPARE
:
26704 /* TODO: implement me. */
26713 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/as-path-options/allow-own-origin-as
26715 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_allow_own_origin_as_modify(
26716 struct nb_cb_modify_args
*args
)
26718 switch (args
->event
) {
26719 case NB_EV_VALIDATE
:
26720 case NB_EV_PREPARE
:
26723 /* TODO: implement me. */
26730 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_allow_own_origin_as_destroy(
26731 struct nb_cb_destroy_args
*args
)
26733 switch (args
->event
) {
26734 case NB_EV_VALIDATE
:
26735 case NB_EV_PREPARE
:
26738 /* TODO: implement me. */
26747 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/as-path-options/replace-peer-as
26749 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_replace_peer_as_modify(
26750 struct nb_cb_modify_args
*args
)
26752 switch (args
->event
) {
26753 case NB_EV_VALIDATE
:
26754 case NB_EV_PREPARE
:
26758 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26759 args
, PEER_FLAG_AS_OVERRIDE
,
26760 yang_dnode_get_bool(args
->dnode
, NULL
));
26770 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/default-originate/originate
26772 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_default_originate_originate_modify(
26773 struct nb_cb_modify_args
*args
)
26775 switch (args
->event
) {
26776 case NB_EV_VALIDATE
:
26777 case NB_EV_PREPARE
:
26780 /* TODO: implement me. */
26789 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/default-originate/route-map
26791 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_default_originate_route_map_modify(
26792 struct nb_cb_modify_args
*args
)
26794 switch (args
->event
) {
26795 case NB_EV_VALIDATE
:
26796 case NB_EV_PREPARE
:
26799 /* TODO: implement me. */
26806 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_default_originate_route_map_destroy(
26807 struct nb_cb_destroy_args
*args
)
26809 switch (args
->event
) {
26810 case NB_EV_VALIDATE
:
26811 case NB_EV_PREPARE
:
26814 /* TODO: implement me. */
26823 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/attr-unchanged/as-path-unchanged
26825 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_attr_unchanged_as_path_unchanged_modify(
26826 struct nb_cb_modify_args
*args
)
26828 switch (args
->event
) {
26829 case NB_EV_VALIDATE
:
26830 case NB_EV_PREPARE
:
26834 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26835 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
26836 yang_dnode_get_bool(args
->dnode
, NULL
));
26846 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/attr-unchanged/next-hop-unchanged
26848 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_attr_unchanged_next_hop_unchanged_modify(
26849 struct nb_cb_modify_args
*args
)
26851 switch (args
->event
) {
26852 case NB_EV_VALIDATE
:
26853 case NB_EV_PREPARE
:
26857 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26858 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
26859 yang_dnode_get_bool(args
->dnode
, NULL
));
26869 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/attr-unchanged/med-unchanged
26871 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_attr_unchanged_med_unchanged_modify(
26872 struct nb_cb_modify_args
*args
)
26874 switch (args
->event
) {
26875 case NB_EV_VALIDATE
:
26876 case NB_EV_PREPARE
:
26880 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
26881 args
, PEER_FLAG_MED_UNCHANGED
,
26882 yang_dnode_get_bool(args
->dnode
, NULL
));
26892 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/orf-capability/orf-send
26894 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_send_modify(
26895 struct nb_cb_modify_args
*args
)
26897 switch (args
->event
) {
26898 case NB_EV_VALIDATE
:
26899 case NB_EV_PREPARE
:
26902 /* TODO: implement me. */
26909 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_send_destroy(
26910 struct nb_cb_destroy_args
*args
)
26912 switch (args
->event
) {
26913 case NB_EV_VALIDATE
:
26914 case NB_EV_PREPARE
:
26917 /* TODO: implement me. */
26926 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/orf-capability/orf-receive
26928 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_receive_modify(
26929 struct nb_cb_modify_args
*args
)
26931 switch (args
->event
) {
26932 case NB_EV_VALIDATE
:
26933 case NB_EV_PREPARE
:
26936 /* TODO: implement me. */
26943 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_receive_destroy(
26944 struct nb_cb_destroy_args
*args
)
26946 switch (args
->event
) {
26947 case NB_EV_VALIDATE
:
26948 case NB_EV_PREPARE
:
26951 /* TODO: implement me. */
26960 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/orf-capability/orf-both
26962 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_both_modify(
26963 struct nb_cb_modify_args
*args
)
26965 switch (args
->event
) {
26966 case NB_EV_VALIDATE
:
26967 case NB_EV_PREPARE
:
26970 /* TODO: implement me. */
26977 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_both_destroy(
26978 struct nb_cb_destroy_args
*args
)
26980 switch (args
->event
) {
26981 case NB_EV_VALIDATE
:
26982 case NB_EV_PREPARE
:
26985 /* TODO: implement me. */
26994 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list
26996 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_create(
26997 struct nb_cb_create_args
*args
)
26999 switch (args
->event
) {
27000 case NB_EV_VALIDATE
:
27001 case NB_EV_PREPARE
:
27004 /* TODO: implement me. */
27011 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_destroy(
27012 struct nb_cb_destroy_args
*args
)
27014 switch (args
->event
) {
27015 case NB_EV_VALIDATE
:
27016 case NB_EV_PREPARE
:
27020 return bgp_unnumbered_neighbor_afi_safi_prefix_limit_list_destroy(
27029 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/max-prefixes
27031 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_max_prefixes_modify(
27032 struct nb_cb_modify_args
*args
)
27034 switch (args
->event
) {
27035 case NB_EV_VALIDATE
:
27036 case NB_EV_PREPARE
:
27039 /* TODO: implement me. */
27048 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/force-check
27050 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_force_check_modify(
27051 struct nb_cb_modify_args
*args
)
27053 switch (args
->event
) {
27054 case NB_EV_VALIDATE
:
27055 case NB_EV_PREPARE
:
27058 /* TODO: implement me. */
27067 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/warning-only
27069 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_warning_only_modify(
27070 struct nb_cb_modify_args
*args
)
27072 switch (args
->event
) {
27073 case NB_EV_VALIDATE
:
27074 case NB_EV_PREPARE
:
27077 /* TODO: implement me. */
27084 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_warning_only_destroy(
27085 struct nb_cb_destroy_args
*args
)
27087 switch (args
->event
) {
27088 case NB_EV_VALIDATE
:
27089 case NB_EV_PREPARE
:
27092 /* TODO: implement me. */
27101 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/restart-timer
27103 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_restart_timer_modify(
27104 struct nb_cb_modify_args
*args
)
27106 switch (args
->event
) {
27107 case NB_EV_VALIDATE
:
27108 case NB_EV_PREPARE
:
27111 /* TODO: implement me. */
27118 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
27119 struct nb_cb_destroy_args
*args
)
27121 switch (args
->event
) {
27122 case NB_EV_VALIDATE
:
27123 case NB_EV_PREPARE
:
27126 /* TODO: implement me. */
27135 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
27137 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
27138 struct nb_cb_modify_args
*args
)
27140 switch (args
->event
) {
27141 case NB_EV_VALIDATE
:
27142 case NB_EV_PREPARE
:
27145 /* TODO: implement me. */
27152 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
27153 struct nb_cb_destroy_args
*args
)
27155 switch (args
->event
) {
27156 case NB_EV_VALIDATE
:
27157 case NB_EV_PREPARE
:
27160 /* TODO: implement me. */
27169 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
27171 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
27172 struct nb_cb_modify_args
*args
)
27174 switch (args
->event
) {
27175 case NB_EV_VALIDATE
:
27176 case NB_EV_PREPARE
:
27179 /* TODO: implement me. */
27186 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
27187 struct nb_cb_destroy_args
*args
)
27189 switch (args
->event
) {
27190 case NB_EV_VALIDATE
:
27191 case NB_EV_PREPARE
:
27194 /* TODO: implement me. */
27203 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/tr-restart-timer
27205 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
27206 struct nb_cb_modify_args
*args
)
27208 switch (args
->event
) {
27209 case NB_EV_VALIDATE
:
27210 case NB_EV_PREPARE
:
27213 /* TODO: implement me. */
27220 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
27221 struct nb_cb_destroy_args
*args
)
27223 switch (args
->event
) {
27224 case NB_EV_VALIDATE
:
27225 case NB_EV_PREPARE
:
27228 /* TODO: implement me. */
27237 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
27239 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
27240 struct nb_cb_modify_args
*args
)
27242 switch (args
->event
) {
27243 case NB_EV_VALIDATE
:
27244 case NB_EV_PREPARE
:
27247 /* TODO: implement me. */
27254 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
27255 struct nb_cb_destroy_args
*args
)
27257 switch (args
->event
) {
27258 case NB_EV_VALIDATE
:
27259 case NB_EV_PREPARE
:
27262 /* TODO: implement me. */
27271 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/tw-warning-only
27273 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
27274 struct nb_cb_modify_args
*args
)
27276 switch (args
->event
) {
27277 case NB_EV_VALIDATE
:
27278 case NB_EV_PREPARE
:
27281 /* TODO: implement me. */
27288 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
27289 struct nb_cb_destroy_args
*args
)
27291 switch (args
->event
) {
27292 case NB_EV_VALIDATE
:
27293 case NB_EV_PREPARE
:
27296 /* TODO: implement me. */
27305 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/nexthop-self/next-hop-self
27307 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_nexthop_self_next_hop_self_modify(
27308 struct nb_cb_modify_args
*args
)
27310 switch (args
->event
) {
27311 case NB_EV_VALIDATE
:
27312 case NB_EV_PREPARE
:
27316 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27317 args
, PEER_FLAG_NEXTHOP_SELF
,
27318 yang_dnode_get_bool(args
->dnode
, NULL
));
27328 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/nexthop-self/next-hop-self-force
27330 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_nexthop_self_next_hop_self_force_modify(
27331 struct nb_cb_modify_args
*args
)
27333 switch (args
->event
) {
27334 case NB_EV_VALIDATE
:
27335 case NB_EV_PREPARE
:
27339 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27340 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
27341 yang_dnode_get_bool(args
->dnode
, NULL
));
27351 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/private-as/remove-private-as-all
27353 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_private_as_remove_private_as_all_modify(
27354 struct nb_cb_modify_args
*args
)
27356 switch (args
->event
) {
27357 case NB_EV_VALIDATE
:
27358 case NB_EV_PREPARE
:
27362 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27363 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
27364 yang_dnode_get_bool(args
->dnode
, NULL
));
27374 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/private-as/remove-private-as-all-replace
27376 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_private_as_remove_private_as_all_replace_modify(
27377 struct nb_cb_modify_args
*args
)
27379 switch (args
->event
) {
27380 case NB_EV_VALIDATE
:
27381 case NB_EV_PREPARE
:
27385 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27386 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
27387 yang_dnode_get_bool(args
->dnode
, NULL
));
27397 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/private-as/remove-private-as
27399 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_private_as_remove_private_as_modify(
27400 struct nb_cb_modify_args
*args
)
27402 switch (args
->event
) {
27403 case NB_EV_VALIDATE
:
27404 case NB_EV_PREPARE
:
27408 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27409 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
27410 yang_dnode_get_bool(args
->dnode
, NULL
));
27420 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/private-as/remove-private-as-replace
27422 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_private_as_remove_private_as_replace_modify(
27423 struct nb_cb_modify_args
*args
)
27425 switch (args
->event
) {
27426 case NB_EV_VALIDATE
:
27427 case NB_EV_PREPARE
:
27431 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27432 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
27433 yang_dnode_get_bool(args
->dnode
, NULL
));
27443 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/route-reflector/route-reflector-client
27445 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_route_reflector_route_reflector_client_modify(
27446 struct nb_cb_modify_args
*args
)
27448 switch (args
->event
) {
27449 case NB_EV_VALIDATE
:
27450 case NB_EV_PREPARE
:
27454 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27455 args
, PEER_FLAG_REFLECTOR_CLIENT
,
27456 yang_dnode_get_bool(args
->dnode
, NULL
));
27466 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/route-server/route-server-client
27468 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_route_server_route_server_client_modify(
27469 struct nb_cb_modify_args
*args
)
27471 switch (args
->event
) {
27472 case NB_EV_VALIDATE
:
27473 case NB_EV_PREPARE
:
27477 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27478 args
, PEER_FLAG_RSERVER_CLIENT
,
27479 yang_dnode_get_bool(args
->dnode
, NULL
));
27489 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/send-community/send-community
27491 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_send_community_send_community_modify(
27492 struct nb_cb_modify_args
*args
)
27494 switch (args
->event
) {
27495 case NB_EV_VALIDATE
:
27496 case NB_EV_PREPARE
:
27500 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27501 args
, PEER_FLAG_SEND_COMMUNITY
,
27502 yang_dnode_get_bool(args
->dnode
, NULL
));
27512 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/send-community/send-ext-community
27514 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_send_community_send_ext_community_modify(
27515 struct nb_cb_modify_args
*args
)
27517 switch (args
->event
) {
27518 case NB_EV_VALIDATE
:
27519 case NB_EV_PREPARE
:
27523 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27524 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
27525 yang_dnode_get_bool(args
->dnode
, NULL
));
27535 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/send-community/send-large-community
27537 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_send_community_send_large_community_modify(
27538 struct nb_cb_modify_args
*args
)
27540 switch (args
->event
) {
27541 case NB_EV_VALIDATE
:
27542 case NB_EV_PREPARE
:
27546 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27547 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
27548 yang_dnode_get_bool(args
->dnode
, NULL
));
27558 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/soft-reconfiguration
27560 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_soft_reconfiguration_modify(
27561 struct nb_cb_modify_args
*args
)
27563 switch (args
->event
) {
27564 case NB_EV_VALIDATE
:
27565 case NB_EV_PREPARE
:
27569 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27570 args
, PEER_FLAG_SOFT_RECONFIG
,
27571 yang_dnode_get_bool(args
->dnode
, NULL
));
27581 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-labeled-unicast/weight/weight-attribute
27583 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_weight_weight_attribute_modify(
27584 struct nb_cb_modify_args
*args
)
27586 switch (args
->event
) {
27587 case NB_EV_VALIDATE
:
27588 case NB_EV_PREPARE
:
27592 return bgp_unnumbered_neighbor_afi_safi_weight_modify(args
);
27600 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_labeled_unicast_weight_weight_attribute_destroy(
27601 struct nb_cb_destroy_args
*args
)
27603 switch (args
->event
) {
27604 case NB_EV_VALIDATE
:
27605 case NB_EV_PREPARE
:
27609 return bgp_unnumbered_neighbor_afi_safi_weight_destroy(args
);
27619 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/add-paths/path-type
27621 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_add_paths_path_type_modify(
27622 struct nb_cb_modify_args
*args
)
27624 switch (args
->event
) {
27625 case NB_EV_VALIDATE
:
27626 case NB_EV_PREPARE
:
27629 /* TODO: implement me. */
27638 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/as-path-options/allow-own-as
27640 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_allow_own_as_modify(
27641 struct nb_cb_modify_args
*args
)
27643 switch (args
->event
) {
27644 case NB_EV_VALIDATE
:
27645 case NB_EV_PREPARE
:
27648 /* TODO: implement me. */
27655 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_allow_own_as_destroy(
27656 struct nb_cb_destroy_args
*args
)
27658 switch (args
->event
) {
27659 case NB_EV_VALIDATE
:
27660 case NB_EV_PREPARE
:
27663 /* TODO: implement me. */
27672 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/as-path-options/allow-own-origin-as
27674 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_allow_own_origin_as_modify(
27675 struct nb_cb_modify_args
*args
)
27677 switch (args
->event
) {
27678 case NB_EV_VALIDATE
:
27679 case NB_EV_PREPARE
:
27682 /* TODO: implement me. */
27689 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_allow_own_origin_as_destroy(
27690 struct nb_cb_destroy_args
*args
)
27692 switch (args
->event
) {
27693 case NB_EV_VALIDATE
:
27694 case NB_EV_PREPARE
:
27697 /* TODO: implement me. */
27706 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/as-path-options/replace-peer-as
27708 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_replace_peer_as_modify(
27709 struct nb_cb_modify_args
*args
)
27711 switch (args
->event
) {
27712 case NB_EV_VALIDATE
:
27713 case NB_EV_PREPARE
:
27717 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27718 args
, PEER_FLAG_AS_OVERRIDE
,
27719 yang_dnode_get_bool(args
->dnode
, NULL
));
27729 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/default-originate/originate
27731 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_default_originate_originate_modify(
27732 struct nb_cb_modify_args
*args
)
27734 switch (args
->event
) {
27735 case NB_EV_VALIDATE
:
27736 case NB_EV_PREPARE
:
27739 /* TODO: implement me. */
27748 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/default-originate/route-map
27750 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_default_originate_route_map_modify(
27751 struct nb_cb_modify_args
*args
)
27753 switch (args
->event
) {
27754 case NB_EV_VALIDATE
:
27755 case NB_EV_PREPARE
:
27758 /* TODO: implement me. */
27765 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_default_originate_route_map_destroy(
27766 struct nb_cb_destroy_args
*args
)
27768 switch (args
->event
) {
27769 case NB_EV_VALIDATE
:
27770 case NB_EV_PREPARE
:
27773 /* TODO: implement me. */
27782 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/attr-unchanged/as-path-unchanged
27784 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_attr_unchanged_as_path_unchanged_modify(
27785 struct nb_cb_modify_args
*args
)
27787 switch (args
->event
) {
27788 case NB_EV_VALIDATE
:
27789 case NB_EV_PREPARE
:
27793 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27794 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
27795 yang_dnode_get_bool(args
->dnode
, NULL
));
27805 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/attr-unchanged/next-hop-unchanged
27807 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_attr_unchanged_next_hop_unchanged_modify(
27808 struct nb_cb_modify_args
*args
)
27810 switch (args
->event
) {
27811 case NB_EV_VALIDATE
:
27812 case NB_EV_PREPARE
:
27816 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27817 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
27818 yang_dnode_get_bool(args
->dnode
, NULL
));
27828 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/attr-unchanged/med-unchanged
27830 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_attr_unchanged_med_unchanged_modify(
27831 struct nb_cb_modify_args
*args
)
27833 switch (args
->event
) {
27834 case NB_EV_VALIDATE
:
27835 case NB_EV_PREPARE
:
27839 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
27840 args
, PEER_FLAG_MED_UNCHANGED
,
27841 yang_dnode_get_bool(args
->dnode
, NULL
));
27851 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/orf-capability/orf-send
27853 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_send_modify(
27854 struct nb_cb_modify_args
*args
)
27856 switch (args
->event
) {
27857 case NB_EV_VALIDATE
:
27858 case NB_EV_PREPARE
:
27861 /* TODO: implement me. */
27868 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_send_destroy(
27869 struct nb_cb_destroy_args
*args
)
27871 switch (args
->event
) {
27872 case NB_EV_VALIDATE
:
27873 case NB_EV_PREPARE
:
27876 /* TODO: implement me. */
27885 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/orf-capability/orf-receive
27887 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_receive_modify(
27888 struct nb_cb_modify_args
*args
)
27890 switch (args
->event
) {
27891 case NB_EV_VALIDATE
:
27892 case NB_EV_PREPARE
:
27895 /* TODO: implement me. */
27902 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_receive_destroy(
27903 struct nb_cb_destroy_args
*args
)
27905 switch (args
->event
) {
27906 case NB_EV_VALIDATE
:
27907 case NB_EV_PREPARE
:
27910 /* TODO: implement me. */
27919 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/orf-capability/orf-both
27921 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_both_modify(
27922 struct nb_cb_modify_args
*args
)
27924 switch (args
->event
) {
27925 case NB_EV_VALIDATE
:
27926 case NB_EV_PREPARE
:
27929 /* TODO: implement me. */
27936 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_both_destroy(
27937 struct nb_cb_destroy_args
*args
)
27939 switch (args
->event
) {
27940 case NB_EV_VALIDATE
:
27941 case NB_EV_PREPARE
:
27944 /* TODO: implement me. */
27953 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list
27955 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_create(
27956 struct nb_cb_create_args
*args
)
27958 switch (args
->event
) {
27959 case NB_EV_VALIDATE
:
27960 case NB_EV_PREPARE
:
27963 /* TODO: implement me. */
27970 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_destroy(
27971 struct nb_cb_destroy_args
*args
)
27973 switch (args
->event
) {
27974 case NB_EV_VALIDATE
:
27975 case NB_EV_PREPARE
:
27979 return bgp_unnumbered_neighbor_afi_safi_prefix_limit_list_destroy(
27988 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/max-prefixes
27990 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_max_prefixes_modify(
27991 struct nb_cb_modify_args
*args
)
27993 switch (args
->event
) {
27994 case NB_EV_VALIDATE
:
27995 case NB_EV_PREPARE
:
27998 /* TODO: implement me. */
28007 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/force-check
28009 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_force_check_modify(
28010 struct nb_cb_modify_args
*args
)
28012 switch (args
->event
) {
28013 case NB_EV_VALIDATE
:
28014 case NB_EV_PREPARE
:
28017 /* TODO: implement me. */
28026 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/warning-only
28028 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_warning_only_modify(
28029 struct nb_cb_modify_args
*args
)
28031 switch (args
->event
) {
28032 case NB_EV_VALIDATE
:
28033 case NB_EV_PREPARE
:
28036 /* TODO: implement me. */
28043 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_warning_only_destroy(
28044 struct nb_cb_destroy_args
*args
)
28046 switch (args
->event
) {
28047 case NB_EV_VALIDATE
:
28048 case NB_EV_PREPARE
:
28051 /* TODO: implement me. */
28060 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/restart-timer
28062 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_restart_timer_modify(
28063 struct nb_cb_modify_args
*args
)
28065 switch (args
->event
) {
28066 case NB_EV_VALIDATE
:
28067 case NB_EV_PREPARE
:
28070 /* TODO: implement me. */
28077 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
28078 struct nb_cb_destroy_args
*args
)
28080 switch (args
->event
) {
28081 case NB_EV_VALIDATE
:
28082 case NB_EV_PREPARE
:
28085 /* TODO: implement me. */
28094 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
28096 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
28097 struct nb_cb_modify_args
*args
)
28099 switch (args
->event
) {
28100 case NB_EV_VALIDATE
:
28101 case NB_EV_PREPARE
:
28104 /* TODO: implement me. */
28111 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
28112 struct nb_cb_destroy_args
*args
)
28114 switch (args
->event
) {
28115 case NB_EV_VALIDATE
:
28116 case NB_EV_PREPARE
:
28119 /* TODO: implement me. */
28128 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
28130 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
28131 struct nb_cb_modify_args
*args
)
28133 switch (args
->event
) {
28134 case NB_EV_VALIDATE
:
28135 case NB_EV_PREPARE
:
28138 /* TODO: implement me. */
28145 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
28146 struct nb_cb_destroy_args
*args
)
28148 switch (args
->event
) {
28149 case NB_EV_VALIDATE
:
28150 case NB_EV_PREPARE
:
28153 /* TODO: implement me. */
28162 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/tr-restart-timer
28164 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
28165 struct nb_cb_modify_args
*args
)
28167 switch (args
->event
) {
28168 case NB_EV_VALIDATE
:
28169 case NB_EV_PREPARE
:
28172 /* TODO: implement me. */
28179 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
28180 struct nb_cb_destroy_args
*args
)
28182 switch (args
->event
) {
28183 case NB_EV_VALIDATE
:
28184 case NB_EV_PREPARE
:
28187 /* TODO: implement me. */
28196 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
28198 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
28199 struct nb_cb_modify_args
*args
)
28201 switch (args
->event
) {
28202 case NB_EV_VALIDATE
:
28203 case NB_EV_PREPARE
:
28206 /* TODO: implement me. */
28213 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
28214 struct nb_cb_destroy_args
*args
)
28216 switch (args
->event
) {
28217 case NB_EV_VALIDATE
:
28218 case NB_EV_PREPARE
:
28221 /* TODO: implement me. */
28230 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/tw-warning-only
28232 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
28233 struct nb_cb_modify_args
*args
)
28235 switch (args
->event
) {
28236 case NB_EV_VALIDATE
:
28237 case NB_EV_PREPARE
:
28240 /* TODO: implement me. */
28247 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
28248 struct nb_cb_destroy_args
*args
)
28250 switch (args
->event
) {
28251 case NB_EV_VALIDATE
:
28252 case NB_EV_PREPARE
:
28255 /* TODO: implement me. */
28264 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/nexthop-self/next-hop-self
28266 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_nexthop_self_next_hop_self_modify(
28267 struct nb_cb_modify_args
*args
)
28269 switch (args
->event
) {
28270 case NB_EV_VALIDATE
:
28271 case NB_EV_PREPARE
:
28275 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28276 args
, PEER_FLAG_NEXTHOP_SELF
,
28277 yang_dnode_get_bool(args
->dnode
, NULL
));
28287 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/nexthop-self/next-hop-self-force
28289 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_nexthop_self_next_hop_self_force_modify(
28290 struct nb_cb_modify_args
*args
)
28292 switch (args
->event
) {
28293 case NB_EV_VALIDATE
:
28294 case NB_EV_PREPARE
:
28298 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28299 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
28300 yang_dnode_get_bool(args
->dnode
, NULL
));
28310 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/private-as/remove-private-as-all
28312 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_private_as_remove_private_as_all_modify(
28313 struct nb_cb_modify_args
*args
)
28315 switch (args
->event
) {
28316 case NB_EV_VALIDATE
:
28317 case NB_EV_PREPARE
:
28321 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28322 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
28323 yang_dnode_get_bool(args
->dnode
, NULL
));
28333 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/private-as/remove-private-as-all-replace
28335 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_private_as_remove_private_as_all_replace_modify(
28336 struct nb_cb_modify_args
*args
)
28338 switch (args
->event
) {
28339 case NB_EV_VALIDATE
:
28340 case NB_EV_PREPARE
:
28344 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28345 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
28346 yang_dnode_get_bool(args
->dnode
, NULL
));
28356 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/private-as/remove-private-as
28358 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_private_as_remove_private_as_modify(
28359 struct nb_cb_modify_args
*args
)
28361 switch (args
->event
) {
28362 case NB_EV_VALIDATE
:
28363 case NB_EV_PREPARE
:
28367 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28368 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
28369 yang_dnode_get_bool(args
->dnode
, NULL
));
28379 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/private-as/remove-private-as-replace
28381 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_private_as_remove_private_as_replace_modify(
28382 struct nb_cb_modify_args
*args
)
28384 switch (args
->event
) {
28385 case NB_EV_VALIDATE
:
28386 case NB_EV_PREPARE
:
28390 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28391 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
28392 yang_dnode_get_bool(args
->dnode
, NULL
));
28402 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/route-reflector/route-reflector-client
28404 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_route_reflector_route_reflector_client_modify(
28405 struct nb_cb_modify_args
*args
)
28407 switch (args
->event
) {
28408 case NB_EV_VALIDATE
:
28409 case NB_EV_PREPARE
:
28413 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28414 args
, PEER_FLAG_REFLECTOR_CLIENT
,
28415 yang_dnode_get_bool(args
->dnode
, NULL
));
28425 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/route-server/route-server-client
28427 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_route_server_route_server_client_modify(
28428 struct nb_cb_modify_args
*args
)
28430 switch (args
->event
) {
28431 case NB_EV_VALIDATE
:
28432 case NB_EV_PREPARE
:
28436 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28437 args
, PEER_FLAG_RSERVER_CLIENT
,
28438 yang_dnode_get_bool(args
->dnode
, NULL
));
28448 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/send-community/send-community
28450 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_send_community_send_community_modify(
28451 struct nb_cb_modify_args
*args
)
28453 switch (args
->event
) {
28454 case NB_EV_VALIDATE
:
28455 case NB_EV_PREPARE
:
28459 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28460 args
, PEER_FLAG_SEND_COMMUNITY
,
28461 yang_dnode_get_bool(args
->dnode
, NULL
));
28471 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/send-community/send-ext-community
28473 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_send_community_send_ext_community_modify(
28474 struct nb_cb_modify_args
*args
)
28476 switch (args
->event
) {
28477 case NB_EV_VALIDATE
:
28478 case NB_EV_PREPARE
:
28482 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28483 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
28484 yang_dnode_get_bool(args
->dnode
, NULL
));
28494 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/send-community/send-large-community
28496 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_send_community_send_large_community_modify(
28497 struct nb_cb_modify_args
*args
)
28499 switch (args
->event
) {
28500 case NB_EV_VALIDATE
:
28501 case NB_EV_PREPARE
:
28505 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28506 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
28507 yang_dnode_get_bool(args
->dnode
, NULL
));
28517 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/soft-reconfiguration
28519 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_soft_reconfiguration_modify(
28520 struct nb_cb_modify_args
*args
)
28522 switch (args
->event
) {
28523 case NB_EV_VALIDATE
:
28524 case NB_EV_PREPARE
:
28528 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28529 args
, PEER_FLAG_SOFT_RECONFIG
,
28530 yang_dnode_get_bool(args
->dnode
, NULL
));
28540 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-labeled-unicast/weight/weight-attribute
28542 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_weight_weight_attribute_modify(
28543 struct nb_cb_modify_args
*args
)
28545 switch (args
->event
) {
28546 case NB_EV_VALIDATE
:
28547 case NB_EV_PREPARE
:
28551 return bgp_unnumbered_neighbor_afi_safi_weight_modify(args
);
28559 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_labeled_unicast_weight_weight_attribute_destroy(
28560 struct nb_cb_destroy_args
*args
)
28562 switch (args
->event
) {
28563 case NB_EV_VALIDATE
:
28564 case NB_EV_PREPARE
:
28568 return bgp_unnumbered_neighbor_afi_safi_weight_destroy(args
);
28578 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/add-paths/path-type
28580 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_add_paths_path_type_modify(
28581 struct nb_cb_modify_args
*args
)
28583 switch (args
->event
) {
28584 case NB_EV_VALIDATE
:
28585 case NB_EV_PREPARE
:
28588 /* TODO: implement me. */
28597 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/as-path-options/allow-own-as
28599 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_allow_own_as_modify(
28600 struct nb_cb_modify_args
*args
)
28602 switch (args
->event
) {
28603 case NB_EV_VALIDATE
:
28604 case NB_EV_PREPARE
:
28607 /* TODO: implement me. */
28614 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_allow_own_as_destroy(
28615 struct nb_cb_destroy_args
*args
)
28617 switch (args
->event
) {
28618 case NB_EV_VALIDATE
:
28619 case NB_EV_PREPARE
:
28622 /* TODO: implement me. */
28631 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/as-path-options/allow-own-origin-as
28633 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_allow_own_origin_as_modify(
28634 struct nb_cb_modify_args
*args
)
28636 switch (args
->event
) {
28637 case NB_EV_VALIDATE
:
28638 case NB_EV_PREPARE
:
28641 /* TODO: implement me. */
28648 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_allow_own_origin_as_destroy(
28649 struct nb_cb_destroy_args
*args
)
28651 switch (args
->event
) {
28652 case NB_EV_VALIDATE
:
28653 case NB_EV_PREPARE
:
28656 /* TODO: implement me. */
28665 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/as-path-options/replace-peer-as
28667 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_replace_peer_as_modify(
28668 struct nb_cb_modify_args
*args
)
28670 switch (args
->event
) {
28671 case NB_EV_VALIDATE
:
28672 case NB_EV_PREPARE
:
28676 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28677 args
, PEER_FLAG_AS_OVERRIDE
,
28678 yang_dnode_get_bool(args
->dnode
, NULL
));
28688 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/attr-unchanged/as-path-unchanged
28690 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_attr_unchanged_as_path_unchanged_modify(
28691 struct nb_cb_modify_args
*args
)
28693 switch (args
->event
) {
28694 case NB_EV_VALIDATE
:
28695 case NB_EV_PREPARE
:
28699 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28700 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
28701 yang_dnode_get_bool(args
->dnode
, NULL
));
28711 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/attr-unchanged/next-hop-unchanged
28713 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_attr_unchanged_next_hop_unchanged_modify(
28714 struct nb_cb_modify_args
*args
)
28716 switch (args
->event
) {
28717 case NB_EV_VALIDATE
:
28718 case NB_EV_PREPARE
:
28722 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28723 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
28724 yang_dnode_get_bool(args
->dnode
, NULL
));
28734 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/attr-unchanged/med-unchanged
28736 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_attr_unchanged_med_unchanged_modify(
28737 struct nb_cb_modify_args
*args
)
28739 switch (args
->event
) {
28740 case NB_EV_VALIDATE
:
28741 case NB_EV_PREPARE
:
28745 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
28746 args
, PEER_FLAG_MED_UNCHANGED
,
28747 yang_dnode_get_bool(args
->dnode
, NULL
));
28757 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list
28759 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_create(
28760 struct nb_cb_create_args
*args
)
28762 switch (args
->event
) {
28763 case NB_EV_VALIDATE
:
28764 case NB_EV_PREPARE
:
28767 /* TODO: implement me. */
28774 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_destroy(
28775 struct nb_cb_destroy_args
*args
)
28777 switch (args
->event
) {
28778 case NB_EV_VALIDATE
:
28779 case NB_EV_PREPARE
:
28783 return bgp_unnumbered_neighbor_afi_safi_prefix_limit_list_destroy(
28792 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/max-prefixes
28794 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_max_prefixes_modify(
28795 struct nb_cb_modify_args
*args
)
28797 switch (args
->event
) {
28798 case NB_EV_VALIDATE
:
28799 case NB_EV_PREPARE
:
28802 /* TODO: implement me. */
28811 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/force-check
28813 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_force_check_modify(
28814 struct nb_cb_modify_args
*args
)
28816 switch (args
->event
) {
28817 case NB_EV_VALIDATE
:
28818 case NB_EV_PREPARE
:
28821 /* TODO: implement me. */
28830 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/warning-only
28832 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_warning_only_modify(
28833 struct nb_cb_modify_args
*args
)
28835 switch (args
->event
) {
28836 case NB_EV_VALIDATE
:
28837 case NB_EV_PREPARE
:
28840 /* TODO: implement me. */
28847 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_warning_only_destroy(
28848 struct nb_cb_destroy_args
*args
)
28850 switch (args
->event
) {
28851 case NB_EV_VALIDATE
:
28852 case NB_EV_PREPARE
:
28855 /* TODO: implement me. */
28864 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/restart-timer
28866 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_restart_timer_modify(
28867 struct nb_cb_modify_args
*args
)
28869 switch (args
->event
) {
28870 case NB_EV_VALIDATE
:
28871 case NB_EV_PREPARE
:
28874 /* TODO: implement me. */
28881 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
28882 struct nb_cb_destroy_args
*args
)
28884 switch (args
->event
) {
28885 case NB_EV_VALIDATE
:
28886 case NB_EV_PREPARE
:
28889 /* TODO: implement me. */
28898 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
28900 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
28901 struct nb_cb_modify_args
*args
)
28903 switch (args
->event
) {
28904 case NB_EV_VALIDATE
:
28905 case NB_EV_PREPARE
:
28908 /* TODO: implement me. */
28915 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
28916 struct nb_cb_destroy_args
*args
)
28918 switch (args
->event
) {
28919 case NB_EV_VALIDATE
:
28920 case NB_EV_PREPARE
:
28923 /* TODO: implement me. */
28932 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
28934 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
28935 struct nb_cb_modify_args
*args
)
28937 switch (args
->event
) {
28938 case NB_EV_VALIDATE
:
28939 case NB_EV_PREPARE
:
28942 /* TODO: implement me. */
28949 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
28950 struct nb_cb_destroy_args
*args
)
28952 switch (args
->event
) {
28953 case NB_EV_VALIDATE
:
28954 case NB_EV_PREPARE
:
28957 /* TODO: implement me. */
28966 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/tr-restart-timer
28968 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
28969 struct nb_cb_modify_args
*args
)
28971 switch (args
->event
) {
28972 case NB_EV_VALIDATE
:
28973 case NB_EV_PREPARE
:
28976 /* TODO: implement me. */
28983 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
28984 struct nb_cb_destroy_args
*args
)
28986 switch (args
->event
) {
28987 case NB_EV_VALIDATE
:
28988 case NB_EV_PREPARE
:
28991 /* TODO: implement me. */
29000 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
29002 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
29003 struct nb_cb_modify_args
*args
)
29005 switch (args
->event
) {
29006 case NB_EV_VALIDATE
:
29007 case NB_EV_PREPARE
:
29010 /* TODO: implement me. */
29017 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
29018 struct nb_cb_destroy_args
*args
)
29020 switch (args
->event
) {
29021 case NB_EV_VALIDATE
:
29022 case NB_EV_PREPARE
:
29025 /* TODO: implement me. */
29034 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/tw-warning-only
29036 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
29037 struct nb_cb_modify_args
*args
)
29039 switch (args
->event
) {
29040 case NB_EV_VALIDATE
:
29041 case NB_EV_PREPARE
:
29044 /* TODO: implement me. */
29051 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
29052 struct nb_cb_destroy_args
*args
)
29054 switch (args
->event
) {
29055 case NB_EV_VALIDATE
:
29056 case NB_EV_PREPARE
:
29059 /* TODO: implement me. */
29068 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/nexthop-self/next-hop-self
29070 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_nexthop_self_next_hop_self_modify(
29071 struct nb_cb_modify_args
*args
)
29073 switch (args
->event
) {
29074 case NB_EV_VALIDATE
:
29075 case NB_EV_PREPARE
:
29079 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29080 args
, PEER_FLAG_NEXTHOP_SELF
,
29081 yang_dnode_get_bool(args
->dnode
, NULL
));
29091 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/nexthop-self/next-hop-self-force
29093 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_nexthop_self_next_hop_self_force_modify(
29094 struct nb_cb_modify_args
*args
)
29096 switch (args
->event
) {
29097 case NB_EV_VALIDATE
:
29098 case NB_EV_PREPARE
:
29102 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29103 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
29104 yang_dnode_get_bool(args
->dnode
, NULL
));
29114 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/private-as/remove-private-as-all
29116 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_private_as_remove_private_as_all_modify(
29117 struct nb_cb_modify_args
*args
)
29119 switch (args
->event
) {
29120 case NB_EV_VALIDATE
:
29121 case NB_EV_PREPARE
:
29125 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29126 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
29127 yang_dnode_get_bool(args
->dnode
, NULL
));
29137 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/private-as/remove-private-as-all-replace
29139 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_private_as_remove_private_as_all_replace_modify(
29140 struct nb_cb_modify_args
*args
)
29142 switch (args
->event
) {
29143 case NB_EV_VALIDATE
:
29144 case NB_EV_PREPARE
:
29148 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29149 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
29150 yang_dnode_get_bool(args
->dnode
, NULL
));
29160 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/private-as/remove-private-as
29162 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_private_as_remove_private_as_modify(
29163 struct nb_cb_modify_args
*args
)
29165 switch (args
->event
) {
29166 case NB_EV_VALIDATE
:
29167 case NB_EV_PREPARE
:
29171 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29172 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
29173 yang_dnode_get_bool(args
->dnode
, NULL
));
29183 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/private-as/remove-private-as-replace
29185 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_private_as_remove_private_as_replace_modify(
29186 struct nb_cb_modify_args
*args
)
29188 switch (args
->event
) {
29189 case NB_EV_VALIDATE
:
29190 case NB_EV_PREPARE
:
29194 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29195 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
29196 yang_dnode_get_bool(args
->dnode
, NULL
));
29206 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/route-reflector/route-reflector-client
29208 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_route_reflector_route_reflector_client_modify(
29209 struct nb_cb_modify_args
*args
)
29211 switch (args
->event
) {
29212 case NB_EV_VALIDATE
:
29213 case NB_EV_PREPARE
:
29217 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29218 args
, PEER_FLAG_REFLECTOR_CLIENT
,
29219 yang_dnode_get_bool(args
->dnode
, NULL
));
29229 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/route-server/route-server-client
29231 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_route_server_route_server_client_modify(
29232 struct nb_cb_modify_args
*args
)
29234 switch (args
->event
) {
29235 case NB_EV_VALIDATE
:
29236 case NB_EV_PREPARE
:
29240 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29241 args
, PEER_FLAG_RSERVER_CLIENT
,
29242 yang_dnode_get_bool(args
->dnode
, NULL
));
29252 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/send-community/send-community
29254 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_send_community_send_community_modify(
29255 struct nb_cb_modify_args
*args
)
29257 switch (args
->event
) {
29258 case NB_EV_VALIDATE
:
29259 case NB_EV_PREPARE
:
29263 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29264 args
, PEER_FLAG_SEND_COMMUNITY
,
29265 yang_dnode_get_bool(args
->dnode
, NULL
));
29275 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/send-community/send-ext-community
29277 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_send_community_send_ext_community_modify(
29278 struct nb_cb_modify_args
*args
)
29280 switch (args
->event
) {
29281 case NB_EV_VALIDATE
:
29282 case NB_EV_PREPARE
:
29286 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29287 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
29288 yang_dnode_get_bool(args
->dnode
, NULL
));
29298 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/send-community/send-large-community
29300 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_send_community_send_large_community_modify(
29301 struct nb_cb_modify_args
*args
)
29303 switch (args
->event
) {
29304 case NB_EV_VALIDATE
:
29305 case NB_EV_PREPARE
:
29309 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29310 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
29311 yang_dnode_get_bool(args
->dnode
, NULL
));
29321 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/soft-reconfiguration
29323 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_soft_reconfiguration_modify(
29324 struct nb_cb_modify_args
*args
)
29326 switch (args
->event
) {
29327 case NB_EV_VALIDATE
:
29328 case NB_EV_PREPARE
:
29332 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29333 args
, PEER_FLAG_SOFT_RECONFIG
,
29334 yang_dnode_get_bool(args
->dnode
, NULL
));
29344 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv4-unicast/weight/weight-attribute
29346 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_weight_weight_attribute_modify(
29347 struct nb_cb_modify_args
*args
)
29349 switch (args
->event
) {
29350 case NB_EV_VALIDATE
:
29351 case NB_EV_PREPARE
:
29355 return bgp_unnumbered_neighbor_afi_safi_weight_modify(args
);
29363 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv4_unicast_weight_weight_attribute_destroy(
29364 struct nb_cb_destroy_args
*args
)
29366 switch (args
->event
) {
29367 case NB_EV_VALIDATE
:
29368 case NB_EV_PREPARE
:
29372 return bgp_unnumbered_neighbor_afi_safi_weight_destroy(args
);
29382 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/add-paths/path-type
29384 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_add_paths_path_type_modify(
29385 struct nb_cb_modify_args
*args
)
29387 switch (args
->event
) {
29388 case NB_EV_VALIDATE
:
29389 case NB_EV_PREPARE
:
29392 /* TODO: implement me. */
29401 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/as-path-options/allow-own-as
29403 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_allow_own_as_modify(
29404 struct nb_cb_modify_args
*args
)
29406 switch (args
->event
) {
29407 case NB_EV_VALIDATE
:
29408 case NB_EV_PREPARE
:
29411 /* TODO: implement me. */
29418 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_allow_own_as_destroy(
29419 struct nb_cb_destroy_args
*args
)
29421 switch (args
->event
) {
29422 case NB_EV_VALIDATE
:
29423 case NB_EV_PREPARE
:
29426 /* TODO: implement me. */
29435 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/as-path-options/allow-own-origin-as
29437 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_allow_own_origin_as_modify(
29438 struct nb_cb_modify_args
*args
)
29440 switch (args
->event
) {
29441 case NB_EV_VALIDATE
:
29442 case NB_EV_PREPARE
:
29445 /* TODO: implement me. */
29452 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_allow_own_origin_as_destroy(
29453 struct nb_cb_destroy_args
*args
)
29455 switch (args
->event
) {
29456 case NB_EV_VALIDATE
:
29457 case NB_EV_PREPARE
:
29460 /* TODO: implement me. */
29469 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/as-path-options/replace-peer-as
29471 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_replace_peer_as_modify(
29472 struct nb_cb_modify_args
*args
)
29474 switch (args
->event
) {
29475 case NB_EV_VALIDATE
:
29476 case NB_EV_PREPARE
:
29480 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29481 args
, PEER_FLAG_AS_OVERRIDE
,
29482 yang_dnode_get_bool(args
->dnode
, NULL
));
29492 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/attr-unchanged/as-path-unchanged
29494 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_attr_unchanged_as_path_unchanged_modify(
29495 struct nb_cb_modify_args
*args
)
29497 switch (args
->event
) {
29498 case NB_EV_VALIDATE
:
29499 case NB_EV_PREPARE
:
29503 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29504 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
29505 yang_dnode_get_bool(args
->dnode
, NULL
));
29515 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/attr-unchanged/next-hop-unchanged
29517 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_attr_unchanged_next_hop_unchanged_modify(
29518 struct nb_cb_modify_args
*args
)
29520 switch (args
->event
) {
29521 case NB_EV_VALIDATE
:
29522 case NB_EV_PREPARE
:
29526 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29527 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
29528 yang_dnode_get_bool(args
->dnode
, NULL
));
29538 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/attr-unchanged/med-unchanged
29540 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_attr_unchanged_med_unchanged_modify(
29541 struct nb_cb_modify_args
*args
)
29543 switch (args
->event
) {
29544 case NB_EV_VALIDATE
:
29545 case NB_EV_PREPARE
:
29549 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29550 args
, PEER_FLAG_MED_UNCHANGED
,
29551 yang_dnode_get_bool(args
->dnode
, NULL
));
29561 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list
29563 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_create(
29564 struct nb_cb_create_args
*args
)
29566 switch (args
->event
) {
29567 case NB_EV_VALIDATE
:
29568 case NB_EV_PREPARE
:
29571 /* TODO: implement me. */
29578 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_destroy(
29579 struct nb_cb_destroy_args
*args
)
29581 switch (args
->event
) {
29582 case NB_EV_VALIDATE
:
29583 case NB_EV_PREPARE
:
29587 return bgp_unnumbered_neighbor_afi_safi_prefix_limit_list_destroy(
29596 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/max-prefixes
29598 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_max_prefixes_modify(
29599 struct nb_cb_modify_args
*args
)
29601 switch (args
->event
) {
29602 case NB_EV_VALIDATE
:
29603 case NB_EV_PREPARE
:
29606 /* TODO: implement me. */
29615 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/force-check
29617 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_force_check_modify(
29618 struct nb_cb_modify_args
*args
)
29620 switch (args
->event
) {
29621 case NB_EV_VALIDATE
:
29622 case NB_EV_PREPARE
:
29625 /* TODO: implement me. */
29634 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/warning-only
29636 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_warning_only_modify(
29637 struct nb_cb_modify_args
*args
)
29639 switch (args
->event
) {
29640 case NB_EV_VALIDATE
:
29641 case NB_EV_PREPARE
:
29644 /* TODO: implement me. */
29651 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_warning_only_destroy(
29652 struct nb_cb_destroy_args
*args
)
29654 switch (args
->event
) {
29655 case NB_EV_VALIDATE
:
29656 case NB_EV_PREPARE
:
29659 /* TODO: implement me. */
29668 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/restart-timer
29670 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_restart_timer_modify(
29671 struct nb_cb_modify_args
*args
)
29673 switch (args
->event
) {
29674 case NB_EV_VALIDATE
:
29675 case NB_EV_PREPARE
:
29678 /* TODO: implement me. */
29685 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
29686 struct nb_cb_destroy_args
*args
)
29688 switch (args
->event
) {
29689 case NB_EV_VALIDATE
:
29690 case NB_EV_PREPARE
:
29693 /* TODO: implement me. */
29702 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
29704 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
29705 struct nb_cb_modify_args
*args
)
29707 switch (args
->event
) {
29708 case NB_EV_VALIDATE
:
29709 case NB_EV_PREPARE
:
29712 /* TODO: implement me. */
29719 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
29720 struct nb_cb_destroy_args
*args
)
29722 switch (args
->event
) {
29723 case NB_EV_VALIDATE
:
29724 case NB_EV_PREPARE
:
29727 /* TODO: implement me. */
29736 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
29738 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
29739 struct nb_cb_modify_args
*args
)
29741 switch (args
->event
) {
29742 case NB_EV_VALIDATE
:
29743 case NB_EV_PREPARE
:
29746 /* TODO: implement me. */
29753 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
29754 struct nb_cb_destroy_args
*args
)
29756 switch (args
->event
) {
29757 case NB_EV_VALIDATE
:
29758 case NB_EV_PREPARE
:
29761 /* TODO: implement me. */
29770 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/tr-restart-timer
29772 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
29773 struct nb_cb_modify_args
*args
)
29775 switch (args
->event
) {
29776 case NB_EV_VALIDATE
:
29777 case NB_EV_PREPARE
:
29780 /* TODO: implement me. */
29787 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
29788 struct nb_cb_destroy_args
*args
)
29790 switch (args
->event
) {
29791 case NB_EV_VALIDATE
:
29792 case NB_EV_PREPARE
:
29795 /* TODO: implement me. */
29804 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
29806 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
29807 struct nb_cb_modify_args
*args
)
29809 switch (args
->event
) {
29810 case NB_EV_VALIDATE
:
29811 case NB_EV_PREPARE
:
29814 /* TODO: implement me. */
29821 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
29822 struct nb_cb_destroy_args
*args
)
29824 switch (args
->event
) {
29825 case NB_EV_VALIDATE
:
29826 case NB_EV_PREPARE
:
29829 /* TODO: implement me. */
29838 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/tw-warning-only
29840 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
29841 struct nb_cb_modify_args
*args
)
29843 switch (args
->event
) {
29844 case NB_EV_VALIDATE
:
29845 case NB_EV_PREPARE
:
29848 /* TODO: implement me. */
29855 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
29856 struct nb_cb_destroy_args
*args
)
29858 switch (args
->event
) {
29859 case NB_EV_VALIDATE
:
29860 case NB_EV_PREPARE
:
29863 /* TODO: implement me. */
29872 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/nexthop-self/next-hop-self
29874 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_nexthop_self_next_hop_self_modify(
29875 struct nb_cb_modify_args
*args
)
29877 switch (args
->event
) {
29878 case NB_EV_VALIDATE
:
29879 case NB_EV_PREPARE
:
29883 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29884 args
, PEER_FLAG_NEXTHOP_SELF
,
29885 yang_dnode_get_bool(args
->dnode
, NULL
));
29895 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/nexthop-self/next-hop-self-force
29897 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_nexthop_self_next_hop_self_force_modify(
29898 struct nb_cb_modify_args
*args
)
29900 switch (args
->event
) {
29901 case NB_EV_VALIDATE
:
29902 case NB_EV_PREPARE
:
29906 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29907 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
29908 yang_dnode_get_bool(args
->dnode
, NULL
));
29918 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/private-as/remove-private-as-all
29920 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_private_as_remove_private_as_all_modify(
29921 struct nb_cb_modify_args
*args
)
29923 switch (args
->event
) {
29924 case NB_EV_VALIDATE
:
29925 case NB_EV_PREPARE
:
29929 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29930 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
29931 yang_dnode_get_bool(args
->dnode
, NULL
));
29941 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/private-as/remove-private-as-all-replace
29943 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_private_as_remove_private_as_all_replace_modify(
29944 struct nb_cb_modify_args
*args
)
29946 switch (args
->event
) {
29947 case NB_EV_VALIDATE
:
29948 case NB_EV_PREPARE
:
29952 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29953 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
29954 yang_dnode_get_bool(args
->dnode
, NULL
));
29964 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/private-as/remove-private-as
29966 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_private_as_remove_private_as_modify(
29967 struct nb_cb_modify_args
*args
)
29969 switch (args
->event
) {
29970 case NB_EV_VALIDATE
:
29971 case NB_EV_PREPARE
:
29975 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29976 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
29977 yang_dnode_get_bool(args
->dnode
, NULL
));
29987 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/private-as/remove-private-as-replace
29989 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_private_as_remove_private_as_replace_modify(
29990 struct nb_cb_modify_args
*args
)
29992 switch (args
->event
) {
29993 case NB_EV_VALIDATE
:
29994 case NB_EV_PREPARE
:
29998 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
29999 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
30000 yang_dnode_get_bool(args
->dnode
, NULL
));
30010 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/route-reflector/route-reflector-client
30012 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_route_reflector_route_reflector_client_modify(
30013 struct nb_cb_modify_args
*args
)
30015 switch (args
->event
) {
30016 case NB_EV_VALIDATE
:
30017 case NB_EV_PREPARE
:
30021 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30022 args
, PEER_FLAG_REFLECTOR_CLIENT
,
30023 yang_dnode_get_bool(args
->dnode
, NULL
));
30033 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/route-server/route-server-client
30035 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_route_server_route_server_client_modify(
30036 struct nb_cb_modify_args
*args
)
30038 switch (args
->event
) {
30039 case NB_EV_VALIDATE
:
30040 case NB_EV_PREPARE
:
30044 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30045 args
, PEER_FLAG_RSERVER_CLIENT
,
30046 yang_dnode_get_bool(args
->dnode
, NULL
));
30056 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/send-community/send-community
30058 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_send_community_send_community_modify(
30059 struct nb_cb_modify_args
*args
)
30061 switch (args
->event
) {
30062 case NB_EV_VALIDATE
:
30063 case NB_EV_PREPARE
:
30067 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30068 args
, PEER_FLAG_SEND_COMMUNITY
,
30069 yang_dnode_get_bool(args
->dnode
, NULL
));
30079 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/send-community/send-ext-community
30081 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_send_community_send_ext_community_modify(
30082 struct nb_cb_modify_args
*args
)
30084 switch (args
->event
) {
30085 case NB_EV_VALIDATE
:
30086 case NB_EV_PREPARE
:
30090 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30091 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
30092 yang_dnode_get_bool(args
->dnode
, NULL
));
30102 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/send-community/send-large-community
30104 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_send_community_send_large_community_modify(
30105 struct nb_cb_modify_args
*args
)
30107 switch (args
->event
) {
30108 case NB_EV_VALIDATE
:
30109 case NB_EV_PREPARE
:
30113 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30114 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
30115 yang_dnode_get_bool(args
->dnode
, NULL
));
30125 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/soft-reconfiguration
30127 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_soft_reconfiguration_modify(
30128 struct nb_cb_modify_args
*args
)
30130 switch (args
->event
) {
30131 case NB_EV_VALIDATE
:
30132 case NB_EV_PREPARE
:
30136 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30137 args
, PEER_FLAG_SOFT_RECONFIG
,
30138 yang_dnode_get_bool(args
->dnode
, NULL
));
30148 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l3vpn-ipv6-unicast/weight/weight-attribute
30150 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_weight_weight_attribute_modify(
30151 struct nb_cb_modify_args
*args
)
30153 switch (args
->event
) {
30154 case NB_EV_VALIDATE
:
30155 case NB_EV_PREPARE
:
30159 return bgp_unnumbered_neighbor_afi_safi_weight_modify(args
);
30167 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l3vpn_ipv6_unicast_weight_weight_attribute_destroy(
30168 struct nb_cb_destroy_args
*args
)
30170 switch (args
->event
) {
30171 case NB_EV_VALIDATE
:
30172 case NB_EV_PREPARE
:
30176 return bgp_unnumbered_neighbor_afi_safi_weight_destroy(args
);
30186 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l2vpn-evpn/as-path-options/allow-own-as
30188 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_as_path_options_allow_own_as_modify(
30189 struct nb_cb_modify_args
*args
)
30191 switch (args
->event
) {
30192 case NB_EV_VALIDATE
:
30193 case NB_EV_PREPARE
:
30196 /* TODO: implement me. */
30203 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_as_path_options_allow_own_as_destroy(
30204 struct nb_cb_destroy_args
*args
)
30206 switch (args
->event
) {
30207 case NB_EV_VALIDATE
:
30208 case NB_EV_PREPARE
:
30211 /* TODO: implement me. */
30220 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l2vpn-evpn/as-path-options/allow-own-origin-as
30222 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_as_path_options_allow_own_origin_as_modify(
30223 struct nb_cb_modify_args
*args
)
30225 switch (args
->event
) {
30226 case NB_EV_VALIDATE
:
30227 case NB_EV_PREPARE
:
30230 /* TODO: implement me. */
30237 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_as_path_options_allow_own_origin_as_destroy(
30238 struct nb_cb_destroy_args
*args
)
30240 switch (args
->event
) {
30241 case NB_EV_VALIDATE
:
30242 case NB_EV_PREPARE
:
30245 /* TODO: implement me. */
30254 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l2vpn-evpn/as-path-options/replace-peer-as
30256 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_as_path_options_replace_peer_as_modify(
30257 struct nb_cb_modify_args
*args
)
30259 switch (args
->event
) {
30260 case NB_EV_VALIDATE
:
30261 case NB_EV_PREPARE
:
30265 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30266 args
, PEER_FLAG_AS_OVERRIDE
,
30267 yang_dnode_get_bool(args
->dnode
, NULL
));
30277 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l2vpn-evpn/attr-unchanged/as-path-unchanged
30279 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_attr_unchanged_as_path_unchanged_modify(
30280 struct nb_cb_modify_args
*args
)
30282 switch (args
->event
) {
30283 case NB_EV_VALIDATE
:
30284 case NB_EV_PREPARE
:
30288 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30289 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
30290 yang_dnode_get_bool(args
->dnode
, NULL
));
30300 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l2vpn-evpn/attr-unchanged/next-hop-unchanged
30302 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_attr_unchanged_next_hop_unchanged_modify(
30303 struct nb_cb_modify_args
*args
)
30305 switch (args
->event
) {
30306 case NB_EV_VALIDATE
:
30307 case NB_EV_PREPARE
:
30311 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30312 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
30313 yang_dnode_get_bool(args
->dnode
, NULL
));
30323 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l2vpn-evpn/attr-unchanged/med-unchanged
30325 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_attr_unchanged_med_unchanged_modify(
30326 struct nb_cb_modify_args
*args
)
30328 switch (args
->event
) {
30329 case NB_EV_VALIDATE
:
30330 case NB_EV_PREPARE
:
30334 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30335 args
, PEER_FLAG_MED_UNCHANGED
,
30336 yang_dnode_get_bool(args
->dnode
, NULL
));
30346 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l2vpn-evpn/nexthop-self/next-hop-self
30348 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_nexthop_self_next_hop_self_modify(
30349 struct nb_cb_modify_args
*args
)
30351 switch (args
->event
) {
30352 case NB_EV_VALIDATE
:
30353 case NB_EV_PREPARE
:
30357 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30358 args
, PEER_FLAG_NEXTHOP_SELF
,
30359 yang_dnode_get_bool(args
->dnode
, NULL
));
30369 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l2vpn-evpn/nexthop-self/next-hop-self-force
30371 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_nexthop_self_next_hop_self_force_modify(
30372 struct nb_cb_modify_args
*args
)
30374 switch (args
->event
) {
30375 case NB_EV_VALIDATE
:
30376 case NB_EV_PREPARE
:
30380 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30381 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
30382 yang_dnode_get_bool(args
->dnode
, NULL
));
30392 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l2vpn-evpn/route-reflector/route-reflector-client
30394 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_route_reflector_route_reflector_client_modify(
30395 struct nb_cb_modify_args
*args
)
30397 switch (args
->event
) {
30398 case NB_EV_VALIDATE
:
30399 case NB_EV_PREPARE
:
30403 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30404 args
, PEER_FLAG_REFLECTOR_CLIENT
,
30405 yang_dnode_get_bool(args
->dnode
, NULL
));
30415 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l2vpn-evpn/route-server/route-server-client
30417 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_route_server_route_server_client_modify(
30418 struct nb_cb_modify_args
*args
)
30420 switch (args
->event
) {
30421 case NB_EV_VALIDATE
:
30422 case NB_EV_PREPARE
:
30426 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30427 args
, PEER_FLAG_RSERVER_CLIENT
,
30428 yang_dnode_get_bool(args
->dnode
, NULL
));
30438 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/l2vpn-evpn/soft-reconfiguration
30440 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_l2vpn_evpn_soft_reconfiguration_modify(
30441 struct nb_cb_modify_args
*args
)
30443 switch (args
->event
) {
30444 case NB_EV_VALIDATE
:
30445 case NB_EV_PREPARE
:
30449 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30450 args
, PEER_FLAG_SOFT_RECONFIG
,
30451 yang_dnode_get_bool(args
->dnode
, NULL
));
30461 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-flowspec/route-reflector/route-reflector-client
30463 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_flowspec_route_reflector_route_reflector_client_modify(
30464 struct nb_cb_modify_args
*args
)
30466 switch (args
->event
) {
30467 case NB_EV_VALIDATE
:
30468 case NB_EV_PREPARE
:
30472 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30473 args
, PEER_FLAG_REFLECTOR_CLIENT
,
30474 yang_dnode_get_bool(args
->dnode
, NULL
));
30484 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-flowspec/route-server/route-server-client
30486 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_flowspec_route_server_route_server_client_modify(
30487 struct nb_cb_modify_args
*args
)
30489 switch (args
->event
) {
30490 case NB_EV_VALIDATE
:
30491 case NB_EV_PREPARE
:
30495 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30496 args
, PEER_FLAG_RSERVER_CLIENT
,
30497 yang_dnode_get_bool(args
->dnode
, NULL
));
30507 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-flowspec/soft-reconfiguration
30509 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv4_flowspec_soft_reconfiguration_modify(
30510 struct nb_cb_modify_args
*args
)
30512 switch (args
->event
) {
30513 case NB_EV_VALIDATE
:
30514 case NB_EV_PREPARE
:
30518 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30519 args
, PEER_FLAG_SOFT_RECONFIG
,
30520 yang_dnode_get_bool(args
->dnode
, NULL
));
30530 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-flowspec/route-reflector/route-reflector-client
30532 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_flowspec_route_reflector_route_reflector_client_modify(
30533 struct nb_cb_modify_args
*args
)
30535 switch (args
->event
) {
30536 case NB_EV_VALIDATE
:
30537 case NB_EV_PREPARE
:
30541 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30542 args
, PEER_FLAG_REFLECTOR_CLIENT
,
30543 yang_dnode_get_bool(args
->dnode
, NULL
));
30553 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-flowspec/route-server/route-server-client
30555 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_flowspec_route_server_route_server_client_modify(
30556 struct nb_cb_modify_args
*args
)
30558 switch (args
->event
) {
30559 case NB_EV_VALIDATE
:
30560 case NB_EV_PREPARE
:
30564 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30565 args
, PEER_FLAG_RSERVER_CLIENT
,
30566 yang_dnode_get_bool(args
->dnode
, NULL
));
30576 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv6-flowspec/soft-reconfiguration
30578 int bgp_neighbors_unnumbered_neighbor_afi_safis_afi_safi_ipv6_flowspec_soft_reconfiguration_modify(
30579 struct nb_cb_modify_args
*args
)
30581 switch (args
->event
) {
30582 case NB_EV_VALIDATE
:
30583 case NB_EV_PREPARE
:
30587 return bgp_unnumbered_neighbor_afi_safi_flag_modify(
30588 args
, PEER_FLAG_SOFT_RECONFIG
,
30589 yang_dnode_get_bool(args
->dnode
, NULL
));
30597 static int bgp_peer_group_afi_safi_flag_modify(struct nb_cb_modify_args
*args
,
30598 uint32_t flags
, bool set
)
30601 const char *peer_str
;
30603 const struct lyd_node
*nbr_dnode
;
30604 const struct lyd_node
*nbr_af_dnode
;
30605 const char *af_name
;
30609 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
30610 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
30611 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
30612 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "peer-group");
30613 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
30614 peer_str
= yang_dnode_get_string(nbr_dnode
, "./peer-group-name");
30615 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
30617 if (peer_af_flag_modify_nb(peer
, afi
, safi
, flags
, set
, args
->errmsg
,
30620 return NB_ERR_INCONSISTENCY
;
30627 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/add-paths/path-type
30629 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_add_paths_path_type_modify(
30630 struct nb_cb_modify_args
*args
)
30632 switch (args
->event
) {
30633 case NB_EV_VALIDATE
:
30634 case NB_EV_PREPARE
:
30637 /* TODO: implement me. */
30646 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/as-path-options/allow-own-as
30648 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_as_path_options_allow_own_as_modify(
30649 struct nb_cb_modify_args
*args
)
30651 switch (args
->event
) {
30652 case NB_EV_VALIDATE
:
30653 case NB_EV_PREPARE
:
30656 /* TODO: implement me. */
30663 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_as_path_options_allow_own_as_destroy(
30664 struct nb_cb_destroy_args
*args
)
30666 switch (args
->event
) {
30667 case NB_EV_VALIDATE
:
30668 case NB_EV_PREPARE
:
30671 /* TODO: implement me. */
30680 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/as-path-options/allow-own-origin-as
30682 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_as_path_options_allow_own_origin_as_modify(
30683 struct nb_cb_modify_args
*args
)
30685 switch (args
->event
) {
30686 case NB_EV_VALIDATE
:
30687 case NB_EV_PREPARE
:
30690 /* TODO: implement me. */
30697 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_as_path_options_allow_own_origin_as_destroy(
30698 struct nb_cb_destroy_args
*args
)
30700 switch (args
->event
) {
30701 case NB_EV_VALIDATE
:
30702 case NB_EV_PREPARE
:
30705 /* TODO: implement me. */
30714 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/as-path-options/replace-peer-as
30716 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_as_path_options_replace_peer_as_modify(
30717 struct nb_cb_modify_args
*args
)
30719 switch (args
->event
) {
30720 case NB_EV_VALIDATE
:
30721 case NB_EV_PREPARE
:
30725 return bgp_peer_group_afi_safi_flag_modify(
30726 args
, PEER_FLAG_AS_OVERRIDE
,
30727 yang_dnode_get_bool(args
->dnode
, NULL
));
30737 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/afi-safis/afi-safi/ipv4-unicast/default-originate
30739 void bgp_peer_group_afi_safi_default_originate_apply_finish(
30740 struct nb_cb_apply_finish_args
*args
)
30743 const char *peer_str
;
30745 const struct lyd_node
*nbr_dnode
;
30746 const struct lyd_node
*nbr_af_dnode
;
30747 const char *af_name
;
30751 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
30752 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
30753 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
30755 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "peer-group");
30756 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
30757 peer_str
= yang_dnode_get_string(nbr_dnode
, "./peer-group-name");
30758 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
30762 bgp_peer_afi_safi_default_originate_apply(args
, peer
, afi
, safi
);
30767 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/default-originate/originate
30769 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_default_originate_originate_modify(
30770 struct nb_cb_modify_args
*args
)
30772 switch (args
->event
) {
30773 case NB_EV_VALIDATE
:
30774 case NB_EV_PREPARE
:
30777 /* TODO: implement me. */
30786 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/default-originate/route-map
30788 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_default_originate_route_map_modify(
30789 struct nb_cb_modify_args
*args
)
30791 switch (args
->event
) {
30792 case NB_EV_VALIDATE
:
30793 case NB_EV_PREPARE
:
30796 /* TODO: implement me. */
30803 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_default_originate_route_map_destroy(
30804 struct nb_cb_destroy_args
*args
)
30806 switch (args
->event
) {
30807 case NB_EV_VALIDATE
:
30808 case NB_EV_PREPARE
:
30811 /* TODO: implement me. */
30818 static int bgp_peer_group_afi_safi_prefix_limit_list_destroy(
30819 struct nb_cb_destroy_args
*args
)
30822 const char *peer_str
;
30824 const struct lyd_node
*nbr_dnode
;
30825 const struct lyd_node
*nbr_af_dnode
;
30826 const char *af_name
;
30831 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
30832 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
30833 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
30835 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "peer-group");
30836 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
30837 peer_str
= yang_dnode_get_string(nbr_dnode
, "./peer-group-name");
30838 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
30840 return NB_ERR_INCONSISTENCY
;
30842 direction
= yang_dnode_get_enum(args
->dnode
, "./direction");
30844 switch (direction
) {
30846 peer_maximum_prefix_unset(peer
, afi
, safi
);
30849 UNSET_FLAG(peer
->af_flags
[afi
][safi
], PEER_FLAG_MAX_PREFIX_OUT
);
30850 peer
->pmax_out
[afi
][safi
] = 0;
30858 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list
30860 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_create(
30861 struct nb_cb_create_args
*args
)
30863 switch (args
->event
) {
30864 case NB_EV_VALIDATE
:
30865 case NB_EV_PREPARE
:
30868 /* TODO: implement me. */
30875 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_destroy(
30876 struct nb_cb_destroy_args
*args
)
30878 switch (args
->event
) {
30879 case NB_EV_VALIDATE
:
30880 case NB_EV_PREPARE
:
30884 return bgp_peer_group_afi_safi_prefix_limit_list_destroy(args
);
30890 void bgp_peer_group_afi_safi_prefix_limit_apply_finish(
30891 struct nb_cb_apply_finish_args
*args
)
30894 const char *peer_str
;
30896 const struct lyd_node
*nbr_dnode
;
30897 const struct lyd_node
*nbr_af_dnode
;
30898 const char *af_name
;
30902 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
30903 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
30904 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
30906 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "peer-group");
30907 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
30908 peer_str
= yang_dnode_get_string(nbr_dnode
, "./peer-group-name");
30909 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
30913 bgp_peer_afi_safi_maximum_prefix_set(args
, peer
, afi
, safi
);
30917 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/max-prefixes
30919 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_max_prefixes_modify(
30920 struct nb_cb_modify_args
*args
)
30922 switch (args
->event
) {
30923 case NB_EV_VALIDATE
:
30924 case NB_EV_PREPARE
:
30927 /* TODO: implement me. */
30936 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/force-check
30938 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_force_check_modify(
30939 struct nb_cb_modify_args
*args
)
30941 switch (args
->event
) {
30942 case NB_EV_VALIDATE
:
30943 case NB_EV_PREPARE
:
30946 /* TODO: implement me. */
30955 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/warning-only
30957 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_warning_only_modify(
30958 struct nb_cb_modify_args
*args
)
30960 switch (args
->event
) {
30961 case NB_EV_VALIDATE
:
30962 case NB_EV_PREPARE
:
30965 /* TODO: implement me. */
30972 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_warning_only_destroy(
30973 struct nb_cb_destroy_args
*args
)
30975 switch (args
->event
) {
30976 case NB_EV_VALIDATE
:
30977 case NB_EV_PREPARE
:
30980 /* TODO: implement me. */
30989 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/restart-timer
30991 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_restart_timer_modify(
30992 struct nb_cb_modify_args
*args
)
30994 switch (args
->event
) {
30995 case NB_EV_VALIDATE
:
30996 case NB_EV_PREPARE
:
30999 /* TODO: implement me. */
31006 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
31007 struct nb_cb_destroy_args
*args
)
31009 switch (args
->event
) {
31010 case NB_EV_VALIDATE
:
31011 case NB_EV_PREPARE
:
31014 /* TODO: implement me. */
31023 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
31025 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
31026 struct nb_cb_modify_args
*args
)
31028 switch (args
->event
) {
31029 case NB_EV_VALIDATE
:
31030 case NB_EV_PREPARE
:
31033 /* TODO: implement me. */
31040 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
31041 struct nb_cb_destroy_args
*args
)
31043 switch (args
->event
) {
31044 case NB_EV_VALIDATE
:
31045 case NB_EV_PREPARE
:
31048 /* TODO: implement me. */
31057 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
31059 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
31060 struct nb_cb_modify_args
*args
)
31062 switch (args
->event
) {
31063 case NB_EV_VALIDATE
:
31064 case NB_EV_PREPARE
:
31067 /* TODO: implement me. */
31074 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
31075 struct nb_cb_destroy_args
*args
)
31077 switch (args
->event
) {
31078 case NB_EV_VALIDATE
:
31079 case NB_EV_PREPARE
:
31082 /* TODO: implement me. */
31091 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/tr-restart-timer
31093 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
31094 struct nb_cb_modify_args
*args
)
31096 switch (args
->event
) {
31097 case NB_EV_VALIDATE
:
31098 case NB_EV_PREPARE
:
31101 /* TODO: implement me. */
31108 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
31109 struct nb_cb_destroy_args
*args
)
31111 switch (args
->event
) {
31112 case NB_EV_VALIDATE
:
31113 case NB_EV_PREPARE
:
31116 /* TODO: implement me. */
31125 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
31127 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
31128 struct nb_cb_modify_args
*args
)
31130 switch (args
->event
) {
31131 case NB_EV_VALIDATE
:
31132 case NB_EV_PREPARE
:
31135 /* TODO: implement me. */
31142 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
31143 struct nb_cb_destroy_args
*args
)
31145 switch (args
->event
) {
31146 case NB_EV_VALIDATE
:
31147 case NB_EV_PREPARE
:
31150 /* TODO: implement me. */
31159 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/prefix-limit/direction-list/options/tw-warning-only
31161 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
31162 struct nb_cb_modify_args
*args
)
31164 switch (args
->event
) {
31165 case NB_EV_VALIDATE
:
31166 case NB_EV_PREPARE
:
31169 /* TODO: implement me. */
31176 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
31177 struct nb_cb_destroy_args
*args
)
31179 switch (args
->event
) {
31180 case NB_EV_VALIDATE
:
31181 case NB_EV_PREPARE
:
31184 /* TODO: implement me. */
31193 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/nexthop-self/next-hop-self
31195 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_nexthop_self_next_hop_self_modify(
31196 struct nb_cb_modify_args
*args
)
31198 switch (args
->event
) {
31199 case NB_EV_VALIDATE
:
31200 case NB_EV_PREPARE
:
31204 return bgp_peer_group_afi_safi_flag_modify(
31205 args
, PEER_FLAG_NEXTHOP_SELF
,
31206 yang_dnode_get_bool(args
->dnode
, NULL
));
31216 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/nexthop-self/next-hop-self-force
31218 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_nexthop_self_next_hop_self_force_modify(
31219 struct nb_cb_modify_args
*args
)
31221 switch (args
->event
) {
31222 case NB_EV_VALIDATE
:
31223 case NB_EV_PREPARE
:
31227 return bgp_peer_group_afi_safi_flag_modify(
31228 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
31229 yang_dnode_get_bool(args
->dnode
, NULL
));
31239 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/private-as/remove-private-as-all
31241 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_private_as_remove_private_as_all_modify(
31242 struct nb_cb_modify_args
*args
)
31244 switch (args
->event
) {
31245 case NB_EV_VALIDATE
:
31246 case NB_EV_PREPARE
:
31250 return bgp_peer_group_afi_safi_flag_modify(
31251 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
31252 yang_dnode_get_bool(args
->dnode
, NULL
));
31262 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/private-as/remove-private-as-all-replace
31264 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_private_as_remove_private_as_all_replace_modify(
31265 struct nb_cb_modify_args
*args
)
31267 switch (args
->event
) {
31268 case NB_EV_VALIDATE
:
31269 case NB_EV_PREPARE
:
31273 return bgp_peer_group_afi_safi_flag_modify(
31274 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
31275 yang_dnode_get_bool(args
->dnode
, NULL
));
31285 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/private-as/remove-private-as
31287 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_private_as_remove_private_as_modify(
31288 struct nb_cb_modify_args
*args
)
31290 switch (args
->event
) {
31291 case NB_EV_VALIDATE
:
31292 case NB_EV_PREPARE
:
31296 return bgp_peer_group_afi_safi_flag_modify(
31297 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
31298 yang_dnode_get_bool(args
->dnode
, NULL
));
31308 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/private-as/remove-private-as-replace
31310 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_private_as_remove_private_as_replace_modify(
31311 struct nb_cb_modify_args
*args
)
31313 switch (args
->event
) {
31314 case NB_EV_VALIDATE
:
31315 case NB_EV_PREPARE
:
31319 return bgp_peer_group_afi_safi_flag_modify(
31320 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
31321 yang_dnode_get_bool(args
->dnode
, NULL
));
31329 static int bgp_peer_group_afi_safi_weight_modify(struct nb_cb_modify_args
*args
)
31332 const char *peer_str
;
31334 const struct lyd_node
*nbr_dnode
;
31335 const struct lyd_node
*nbr_af_dnode
;
31336 const char *af_name
;
31342 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
31343 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
31344 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
31346 nbr_dnode
= yang_dnode_get_parent(args
->dnode
, "peer-group");
31347 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
31348 peer_str
= yang_dnode_get_string(nbr_dnode
, "./peer-group-name");
31349 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
31351 weight
= yang_dnode_get_uint16(args
->dnode
, NULL
);
31353 ret
= peer_weight_set(peer
, afi
, safi
, weight
);
31354 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
) < 0)
31355 return NB_ERR_INCONSISTENCY
;
31361 bgp_peer_group_afi_safi_weight_destroy(struct nb_cb_destroy_args
*args
)
31364 const char *peer_str
;
31366 const struct lyd_node
*nbr_dnode
;
31367 const struct lyd_node
*nbr_af_dnode
;
31368 const char *af_name
;
31373 nbr_af_dnode
= yang_dnode_get_parent(args
->dnode
, "afi-safi");
31374 af_name
= yang_dnode_get_string(nbr_af_dnode
, "./afi-safi-name");
31375 yang_afi_safi_identity2value(af_name
, &afi
, &safi
);
31376 nbr_dnode
= yang_dnode_get_parent(nbr_af_dnode
, "peer-group");
31377 bgp
= nb_running_get_entry(nbr_dnode
, NULL
, true);
31378 peer_str
= yang_dnode_get_string(nbr_dnode
, "./peer-group-name");
31379 peer
= bgp_peer_group_peer_lookup(bgp
, peer_str
);
31381 ret
= peer_weight_unset(peer
, afi
, safi
);
31382 if (bgp_nb_errmsg_return(args
->errmsg
, args
->errmsg_len
, ret
) < 0)
31383 return NB_ERR_INCONSISTENCY
;
31390 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/weight/weight-attribute
31392 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_weight_weight_attribute_modify(
31393 struct nb_cb_modify_args
*args
)
31395 switch (args
->event
) {
31396 case NB_EV_VALIDATE
:
31397 case NB_EV_PREPARE
:
31401 return bgp_peer_group_afi_safi_weight_modify(args
);
31409 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_weight_weight_attribute_destroy(
31410 struct nb_cb_destroy_args
*args
)
31412 switch (args
->event
) {
31413 case NB_EV_VALIDATE
:
31414 case NB_EV_PREPARE
:
31418 return bgp_peer_group_afi_safi_weight_destroy(args
);
31428 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/route-reflector/route-reflector-client
31430 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_route_reflector_route_reflector_client_modify(
31431 struct nb_cb_modify_args
*args
)
31433 switch (args
->event
) {
31434 case NB_EV_VALIDATE
:
31435 case NB_EV_PREPARE
:
31439 return bgp_peer_group_afi_safi_flag_modify(
31440 args
, PEER_FLAG_REFLECTOR_CLIENT
,
31441 yang_dnode_get_bool(args
->dnode
, NULL
));
31451 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/route-server/route-server-client
31453 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_route_server_route_server_client_modify(
31454 struct nb_cb_modify_args
*args
)
31456 switch (args
->event
) {
31457 case NB_EV_VALIDATE
:
31458 case NB_EV_PREPARE
:
31462 return bgp_peer_group_afi_safi_flag_modify(
31463 args
, PEER_FLAG_RSERVER_CLIENT
,
31464 yang_dnode_get_bool(args
->dnode
, NULL
));
31474 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/send-community/send-community
31476 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_send_community_send_community_modify(
31477 struct nb_cb_modify_args
*args
)
31479 switch (args
->event
) {
31480 case NB_EV_VALIDATE
:
31481 case NB_EV_PREPARE
:
31485 return bgp_peer_group_afi_safi_flag_modify(
31486 args
, PEER_FLAG_SEND_COMMUNITY
,
31487 yang_dnode_get_bool(args
->dnode
, NULL
));
31497 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/send-community/send-ext-community
31499 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_send_community_send_ext_community_modify(
31500 struct nb_cb_modify_args
*args
)
31502 switch (args
->event
) {
31503 case NB_EV_VALIDATE
:
31504 case NB_EV_PREPARE
:
31508 return bgp_peer_group_afi_safi_flag_modify(
31509 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
31510 yang_dnode_get_bool(args
->dnode
, NULL
));
31520 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/send-community/send-large-community
31522 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_send_community_send_large_community_modify(
31523 struct nb_cb_modify_args
*args
)
31525 switch (args
->event
) {
31526 case NB_EV_VALIDATE
:
31527 case NB_EV_PREPARE
:
31531 return bgp_peer_group_afi_safi_flag_modify(
31532 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
31533 yang_dnode_get_bool(args
->dnode
, NULL
));
31543 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/soft-reconfiguration
31545 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_soft_reconfiguration_modify(
31546 struct nb_cb_modify_args
*args
)
31548 switch (args
->event
) {
31549 case NB_EV_VALIDATE
:
31550 case NB_EV_PREPARE
:
31554 return bgp_peer_group_afi_safi_flag_modify(
31555 args
, PEER_FLAG_SOFT_RECONFIG
,
31556 yang_dnode_get_bool(args
->dnode
, NULL
));
31566 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/attr-unchanged/as-path-unchanged
31568 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_attr_unchanged_as_path_unchanged_modify(
31569 struct nb_cb_modify_args
*args
)
31571 switch (args
->event
) {
31572 case NB_EV_VALIDATE
:
31573 case NB_EV_PREPARE
:
31577 return bgp_peer_group_afi_safi_flag_modify(
31578 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
31579 yang_dnode_get_bool(args
->dnode
, NULL
));
31589 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/attr-unchanged/next-hop-unchanged
31591 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_attr_unchanged_next_hop_unchanged_modify(
31592 struct nb_cb_modify_args
*args
)
31594 switch (args
->event
) {
31595 case NB_EV_VALIDATE
:
31596 case NB_EV_PREPARE
:
31600 return bgp_peer_group_afi_safi_flag_modify(
31601 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
31602 yang_dnode_get_bool(args
->dnode
, NULL
));
31612 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/attr-unchanged/med-unchanged
31614 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_attr_unchanged_med_unchanged_modify(
31615 struct nb_cb_modify_args
*args
)
31617 switch (args
->event
) {
31618 case NB_EV_VALIDATE
:
31619 case NB_EV_PREPARE
:
31623 return bgp_peer_group_afi_safi_flag_modify(
31624 args
, PEER_FLAG_MED_UNCHANGED
,
31625 yang_dnode_get_bool(args
->dnode
, NULL
));
31635 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/orf-capability/orf-send
31637 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_send_modify(
31638 struct nb_cb_modify_args
*args
)
31640 switch (args
->event
) {
31641 case NB_EV_VALIDATE
:
31642 case NB_EV_PREPARE
:
31645 /* TODO: implement me. */
31652 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_send_destroy(
31653 struct nb_cb_destroy_args
*args
)
31655 switch (args
->event
) {
31656 case NB_EV_VALIDATE
:
31657 case NB_EV_PREPARE
:
31660 /* TODO: implement me. */
31669 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/orf-capability/orf-receive
31671 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_receive_modify(
31672 struct nb_cb_modify_args
*args
)
31674 switch (args
->event
) {
31675 case NB_EV_VALIDATE
:
31676 case NB_EV_PREPARE
:
31679 /* TODO: implement me. */
31686 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_receive_destroy(
31687 struct nb_cb_destroy_args
*args
)
31689 switch (args
->event
) {
31690 case NB_EV_VALIDATE
:
31691 case NB_EV_PREPARE
:
31694 /* TODO: implement me. */
31703 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/orf-capability/orf-both
31705 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_both_modify(
31706 struct nb_cb_modify_args
*args
)
31708 switch (args
->event
) {
31709 case NB_EV_VALIDATE
:
31710 case NB_EV_PREPARE
:
31713 /* TODO: implement me. */
31720 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_orf_capability_orf_both_destroy(
31721 struct nb_cb_destroy_args
*args
)
31723 switch (args
->event
) {
31724 case NB_EV_VALIDATE
:
31725 case NB_EV_PREPARE
:
31728 /* TODO: implement me. */
31737 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/filter-config/rmap-import
31739 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_import_modify(
31740 struct nb_cb_modify_args
*args
)
31742 switch (args
->event
) {
31743 case NB_EV_VALIDATE
:
31744 case NB_EV_PREPARE
:
31747 /* TODO: implement me. */
31754 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_import_destroy(
31755 struct nb_cb_destroy_args
*args
)
31757 switch (args
->event
) {
31758 case NB_EV_VALIDATE
:
31759 case NB_EV_PREPARE
:
31762 /* TODO: implement me. */
31771 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/filter-config/rmap-export
31773 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_export_modify(
31774 struct nb_cb_modify_args
*args
)
31776 switch (args
->event
) {
31777 case NB_EV_VALIDATE
:
31778 case NB_EV_PREPARE
:
31781 /* TODO: implement me. */
31788 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_rmap_export_destroy(
31789 struct nb_cb_destroy_args
*args
)
31791 switch (args
->event
) {
31792 case NB_EV_VALIDATE
:
31793 case NB_EV_PREPARE
:
31796 /* TODO: implement me. */
31805 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/filter-config/plist-import
31807 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_plist_import_modify(
31808 struct nb_cb_modify_args
*args
)
31810 switch (args
->event
) {
31811 case NB_EV_VALIDATE
:
31812 case NB_EV_PREPARE
:
31815 /* TODO: implement me. */
31822 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_plist_import_destroy(
31823 struct nb_cb_destroy_args
*args
)
31825 switch (args
->event
) {
31826 case NB_EV_VALIDATE
:
31827 case NB_EV_PREPARE
:
31830 /* TODO: implement me. */
31839 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/filter-config/plist-export
31841 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_plist_export_modify(
31842 struct nb_cb_modify_args
*args
)
31844 switch (args
->event
) {
31845 case NB_EV_VALIDATE
:
31846 case NB_EV_PREPARE
:
31849 /* TODO: implement me. */
31856 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_plist_export_destroy(
31857 struct nb_cb_destroy_args
*args
)
31859 switch (args
->event
) {
31860 case NB_EV_VALIDATE
:
31861 case NB_EV_PREPARE
:
31864 /* TODO: implement me. */
31873 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/filter-config/access-list-import
31875 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_access_list_import_modify(
31876 struct nb_cb_modify_args
*args
)
31878 switch (args
->event
) {
31879 case NB_EV_VALIDATE
:
31880 case NB_EV_PREPARE
:
31883 /* TODO: implement me. */
31890 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_access_list_import_destroy(
31891 struct nb_cb_destroy_args
*args
)
31893 switch (args
->event
) {
31894 case NB_EV_VALIDATE
:
31895 case NB_EV_PREPARE
:
31898 /* TODO: implement me. */
31907 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/filter-config/access-list-export
31909 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_access_list_export_modify(
31910 struct nb_cb_modify_args
*args
)
31912 switch (args
->event
) {
31913 case NB_EV_VALIDATE
:
31914 case NB_EV_PREPARE
:
31917 /* TODO: implement me. */
31924 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_access_list_export_destroy(
31925 struct nb_cb_destroy_args
*args
)
31927 switch (args
->event
) {
31928 case NB_EV_VALIDATE
:
31929 case NB_EV_PREPARE
:
31932 /* TODO: implement me. */
31941 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/filter-config/as-path-filter-list-import
31943 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_as_path_filter_list_import_modify(
31944 struct nb_cb_modify_args
*args
)
31946 switch (args
->event
) {
31947 case NB_EV_VALIDATE
:
31948 case NB_EV_PREPARE
:
31951 /* TODO: implement me. */
31958 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_as_path_filter_list_import_destroy(
31959 struct nb_cb_destroy_args
*args
)
31961 switch (args
->event
) {
31962 case NB_EV_VALIDATE
:
31963 case NB_EV_PREPARE
:
31966 /* TODO: implement me. */
31975 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/filter-config/as-path-filter-list-export
31977 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_as_path_filter_list_export_modify(
31978 struct nb_cb_modify_args
*args
)
31980 switch (args
->event
) {
31981 case NB_EV_VALIDATE
:
31982 case NB_EV_PREPARE
:
31985 /* TODO: implement me. */
31992 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_as_path_filter_list_export_destroy(
31993 struct nb_cb_destroy_args
*args
)
31995 switch (args
->event
) {
31996 case NB_EV_VALIDATE
:
31997 case NB_EV_PREPARE
:
32000 /* TODO: implement me. */
32009 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/filter-config/unsuppress-map-import
32011 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_unsuppress_map_import_modify(
32012 struct nb_cb_modify_args
*args
)
32014 switch (args
->event
) {
32015 case NB_EV_VALIDATE
:
32016 case NB_EV_PREPARE
:
32019 /* TODO: implement me. */
32026 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_unsuppress_map_import_destroy(
32027 struct nb_cb_destroy_args
*args
)
32029 switch (args
->event
) {
32030 case NB_EV_VALIDATE
:
32031 case NB_EV_PREPARE
:
32034 /* TODO: implement me. */
32043 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-unicast/filter-config/unsuppress-map-export
32045 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_unsuppress_map_export_modify(
32046 struct nb_cb_modify_args
*args
)
32048 switch (args
->event
) {
32049 case NB_EV_VALIDATE
:
32050 case NB_EV_PREPARE
:
32053 /* TODO: implement me. */
32060 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_unicast_filter_config_unsuppress_map_export_destroy(
32061 struct nb_cb_destroy_args
*args
)
32063 switch (args
->event
) {
32064 case NB_EV_VALIDATE
:
32065 case NB_EV_PREPARE
:
32068 /* TODO: implement me. */
32077 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/nexthop-local-unchanged
32079 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_nexthop_local_unchanged_modify(
32080 struct nb_cb_modify_args
*args
)
32082 switch (args
->event
) {
32083 case NB_EV_VALIDATE
:
32084 case NB_EV_PREPARE
:
32087 /* TODO: implement me. */
32096 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/add-paths/path-type
32098 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_add_paths_path_type_modify(
32099 struct nb_cb_modify_args
*args
)
32101 switch (args
->event
) {
32102 case NB_EV_VALIDATE
:
32103 case NB_EV_PREPARE
:
32106 /* TODO: implement me. */
32115 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/as-path-options/allow-own-as
32117 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_as_path_options_allow_own_as_modify(
32118 struct nb_cb_modify_args
*args
)
32120 switch (args
->event
) {
32121 case NB_EV_VALIDATE
:
32122 case NB_EV_PREPARE
:
32125 /* TODO: implement me. */
32132 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_as_path_options_allow_own_as_destroy(
32133 struct nb_cb_destroy_args
*args
)
32135 switch (args
->event
) {
32136 case NB_EV_VALIDATE
:
32137 case NB_EV_PREPARE
:
32140 /* TODO: implement me. */
32149 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/as-path-options/allow-own-origin-as
32151 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_as_path_options_allow_own_origin_as_modify(
32152 struct nb_cb_modify_args
*args
)
32154 switch (args
->event
) {
32155 case NB_EV_VALIDATE
:
32156 case NB_EV_PREPARE
:
32159 /* TODO: implement me. */
32166 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_as_path_options_allow_own_origin_as_destroy(
32167 struct nb_cb_destroy_args
*args
)
32169 switch (args
->event
) {
32170 case NB_EV_VALIDATE
:
32171 case NB_EV_PREPARE
:
32174 /* TODO: implement me. */
32183 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/as-path-options/replace-peer-as
32185 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_as_path_options_replace_peer_as_modify(
32186 struct nb_cb_modify_args
*args
)
32188 switch (args
->event
) {
32189 case NB_EV_VALIDATE
:
32190 case NB_EV_PREPARE
:
32194 return bgp_peer_group_afi_safi_flag_modify(
32195 args
, PEER_FLAG_AS_OVERRIDE
,
32196 yang_dnode_get_bool(args
->dnode
, NULL
));
32206 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/default-originate/originate
32208 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_default_originate_originate_modify(
32209 struct nb_cb_modify_args
*args
)
32211 switch (args
->event
) {
32212 case NB_EV_VALIDATE
:
32213 case NB_EV_PREPARE
:
32216 /* TODO: implement me. */
32225 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/default-originate/route-map
32227 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_default_originate_route_map_modify(
32228 struct nb_cb_modify_args
*args
)
32230 switch (args
->event
) {
32231 case NB_EV_VALIDATE
:
32232 case NB_EV_PREPARE
:
32235 /* TODO: implement me. */
32242 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_default_originate_route_map_destroy(
32243 struct nb_cb_destroy_args
*args
)
32245 switch (args
->event
) {
32246 case NB_EV_VALIDATE
:
32247 case NB_EV_PREPARE
:
32250 /* TODO: implement me. */
32259 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/attr-unchanged/as-path-unchanged
32261 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_attr_unchanged_as_path_unchanged_modify(
32262 struct nb_cb_modify_args
*args
)
32264 switch (args
->event
) {
32265 case NB_EV_VALIDATE
:
32266 case NB_EV_PREPARE
:
32270 return bgp_peer_group_afi_safi_flag_modify(
32271 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
32272 yang_dnode_get_bool(args
->dnode
, NULL
));
32282 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/attr-unchanged/next-hop-unchanged
32284 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_attr_unchanged_next_hop_unchanged_modify(
32285 struct nb_cb_modify_args
*args
)
32287 switch (args
->event
) {
32288 case NB_EV_VALIDATE
:
32289 case NB_EV_PREPARE
:
32293 return bgp_peer_group_afi_safi_flag_modify(
32294 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
32295 yang_dnode_get_bool(args
->dnode
, NULL
));
32305 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/attr-unchanged/med-unchanged
32307 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_attr_unchanged_med_unchanged_modify(
32308 struct nb_cb_modify_args
*args
)
32310 switch (args
->event
) {
32311 case NB_EV_VALIDATE
:
32312 case NB_EV_PREPARE
:
32316 return bgp_peer_group_afi_safi_flag_modify(
32317 args
, PEER_FLAG_MED_UNCHANGED
,
32318 yang_dnode_get_bool(args
->dnode
, NULL
));
32328 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/orf-capability/orf-send
32330 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_send_modify(
32331 struct nb_cb_modify_args
*args
)
32333 switch (args
->event
) {
32334 case NB_EV_VALIDATE
:
32335 case NB_EV_PREPARE
:
32338 /* TODO: implement me. */
32345 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_send_destroy(
32346 struct nb_cb_destroy_args
*args
)
32348 switch (args
->event
) {
32349 case NB_EV_VALIDATE
:
32350 case NB_EV_PREPARE
:
32353 /* TODO: implement me. */
32362 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/orf-capability/orf-receive
32364 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_receive_modify(
32365 struct nb_cb_modify_args
*args
)
32367 switch (args
->event
) {
32368 case NB_EV_VALIDATE
:
32369 case NB_EV_PREPARE
:
32372 /* TODO: implement me. */
32379 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_receive_destroy(
32380 struct nb_cb_destroy_args
*args
)
32382 switch (args
->event
) {
32383 case NB_EV_VALIDATE
:
32384 case NB_EV_PREPARE
:
32387 /* TODO: implement me. */
32396 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/orf-capability/orf-both
32398 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_both_modify(
32399 struct nb_cb_modify_args
*args
)
32401 switch (args
->event
) {
32402 case NB_EV_VALIDATE
:
32403 case NB_EV_PREPARE
:
32406 /* TODO: implement me. */
32413 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_orf_capability_orf_both_destroy(
32414 struct nb_cb_destroy_args
*args
)
32416 switch (args
->event
) {
32417 case NB_EV_VALIDATE
:
32418 case NB_EV_PREPARE
:
32421 /* TODO: implement me. */
32430 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list
32432 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_create(
32433 struct nb_cb_create_args
*args
)
32435 switch (args
->event
) {
32436 case NB_EV_VALIDATE
:
32437 case NB_EV_PREPARE
:
32440 /* TODO: implement me. */
32447 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_destroy(
32448 struct nb_cb_destroy_args
*args
)
32450 switch (args
->event
) {
32451 case NB_EV_VALIDATE
:
32452 case NB_EV_PREPARE
:
32456 return bgp_peer_group_afi_safi_prefix_limit_list_destroy(args
);
32464 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/max-prefixes
32466 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_max_prefixes_modify(
32467 struct nb_cb_modify_args
*args
)
32469 switch (args
->event
) {
32470 case NB_EV_VALIDATE
:
32471 case NB_EV_PREPARE
:
32474 /* TODO: implement me. */
32483 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/force-check
32485 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_force_check_modify(
32486 struct nb_cb_modify_args
*args
)
32488 switch (args
->event
) {
32489 case NB_EV_VALIDATE
:
32490 case NB_EV_PREPARE
:
32493 /* TODO: implement me. */
32502 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/warning-only
32504 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_warning_only_modify(
32505 struct nb_cb_modify_args
*args
)
32507 switch (args
->event
) {
32508 case NB_EV_VALIDATE
:
32509 case NB_EV_PREPARE
:
32512 /* TODO: implement me. */
32519 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_warning_only_destroy(
32520 struct nb_cb_destroy_args
*args
)
32522 switch (args
->event
) {
32523 case NB_EV_VALIDATE
:
32524 case NB_EV_PREPARE
:
32527 /* TODO: implement me. */
32536 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/restart-timer
32538 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_restart_timer_modify(
32539 struct nb_cb_modify_args
*args
)
32541 switch (args
->event
) {
32542 case NB_EV_VALIDATE
:
32543 case NB_EV_PREPARE
:
32546 /* TODO: implement me. */
32553 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
32554 struct nb_cb_destroy_args
*args
)
32556 switch (args
->event
) {
32557 case NB_EV_VALIDATE
:
32558 case NB_EV_PREPARE
:
32561 /* TODO: implement me. */
32570 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
32572 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
32573 struct nb_cb_modify_args
*args
)
32575 switch (args
->event
) {
32576 case NB_EV_VALIDATE
:
32577 case NB_EV_PREPARE
:
32580 /* TODO: implement me. */
32587 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
32588 struct nb_cb_destroy_args
*args
)
32590 switch (args
->event
) {
32591 case NB_EV_VALIDATE
:
32592 case NB_EV_PREPARE
:
32595 /* TODO: implement me. */
32604 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
32606 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
32607 struct nb_cb_modify_args
*args
)
32609 switch (args
->event
) {
32610 case NB_EV_VALIDATE
:
32611 case NB_EV_PREPARE
:
32614 /* TODO: implement me. */
32621 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
32622 struct nb_cb_destroy_args
*args
)
32624 switch (args
->event
) {
32625 case NB_EV_VALIDATE
:
32626 case NB_EV_PREPARE
:
32629 /* TODO: implement me. */
32638 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/tr-restart-timer
32640 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
32641 struct nb_cb_modify_args
*args
)
32643 switch (args
->event
) {
32644 case NB_EV_VALIDATE
:
32645 case NB_EV_PREPARE
:
32648 /* TODO: implement me. */
32655 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
32656 struct nb_cb_destroy_args
*args
)
32658 switch (args
->event
) {
32659 case NB_EV_VALIDATE
:
32660 case NB_EV_PREPARE
:
32663 /* TODO: implement me. */
32672 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
32674 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
32675 struct nb_cb_modify_args
*args
)
32677 switch (args
->event
) {
32678 case NB_EV_VALIDATE
:
32679 case NB_EV_PREPARE
:
32682 /* TODO: implement me. */
32689 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
32690 struct nb_cb_destroy_args
*args
)
32692 switch (args
->event
) {
32693 case NB_EV_VALIDATE
:
32694 case NB_EV_PREPARE
:
32697 /* TODO: implement me. */
32706 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/prefix-limit/direction-list/options/tw-warning-only
32708 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
32709 struct nb_cb_modify_args
*args
)
32711 switch (args
->event
) {
32712 case NB_EV_VALIDATE
:
32713 case NB_EV_PREPARE
:
32716 /* TODO: implement me. */
32723 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
32724 struct nb_cb_destroy_args
*args
)
32726 switch (args
->event
) {
32727 case NB_EV_VALIDATE
:
32728 case NB_EV_PREPARE
:
32731 /* TODO: implement me. */
32740 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/nexthop-self/next-hop-self
32742 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_nexthop_self_next_hop_self_modify(
32743 struct nb_cb_modify_args
*args
)
32745 switch (args
->event
) {
32746 case NB_EV_VALIDATE
:
32747 case NB_EV_PREPARE
:
32751 return bgp_peer_group_afi_safi_flag_modify(
32752 args
, PEER_FLAG_NEXTHOP_SELF
,
32753 yang_dnode_get_bool(args
->dnode
, NULL
));
32763 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/nexthop-self/next-hop-self-force
32765 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_nexthop_self_next_hop_self_force_modify(
32766 struct nb_cb_modify_args
*args
)
32768 switch (args
->event
) {
32769 case NB_EV_VALIDATE
:
32770 case NB_EV_PREPARE
:
32774 return bgp_peer_group_afi_safi_flag_modify(
32775 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
32776 yang_dnode_get_bool(args
->dnode
, NULL
));
32786 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/private-as/remove-private-as-all
32788 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_private_as_remove_private_as_all_modify(
32789 struct nb_cb_modify_args
*args
)
32791 switch (args
->event
) {
32792 case NB_EV_VALIDATE
:
32793 case NB_EV_PREPARE
:
32797 return bgp_peer_group_afi_safi_flag_modify(
32798 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
32799 yang_dnode_get_bool(args
->dnode
, NULL
));
32809 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/private-as/remove-private-as-all-replace
32811 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_private_as_remove_private_as_all_replace_modify(
32812 struct nb_cb_modify_args
*args
)
32814 switch (args
->event
) {
32815 case NB_EV_VALIDATE
:
32816 case NB_EV_PREPARE
:
32820 return bgp_peer_group_afi_safi_flag_modify(
32821 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
32822 yang_dnode_get_bool(args
->dnode
, NULL
));
32832 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/private-as/remove-private-as
32834 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_private_as_remove_private_as_modify(
32835 struct nb_cb_modify_args
*args
)
32837 switch (args
->event
) {
32838 case NB_EV_VALIDATE
:
32839 case NB_EV_PREPARE
:
32843 return bgp_peer_group_afi_safi_flag_modify(
32844 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
32845 yang_dnode_get_bool(args
->dnode
, NULL
));
32855 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/private-as/remove-private-as-replace
32857 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_private_as_remove_private_as_replace_modify(
32858 struct nb_cb_modify_args
*args
)
32860 switch (args
->event
) {
32861 case NB_EV_VALIDATE
:
32862 case NB_EV_PREPARE
:
32866 return bgp_peer_group_afi_safi_flag_modify(
32867 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
32868 yang_dnode_get_bool(args
->dnode
, NULL
));
32878 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/route-reflector/route-reflector-client
32880 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_route_reflector_route_reflector_client_modify(
32881 struct nb_cb_modify_args
*args
)
32883 switch (args
->event
) {
32884 case NB_EV_VALIDATE
:
32885 case NB_EV_PREPARE
:
32889 return bgp_peer_group_afi_safi_flag_modify(
32890 args
, PEER_FLAG_REFLECTOR_CLIENT
,
32891 yang_dnode_get_bool(args
->dnode
, NULL
));
32901 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/route-server/route-server-client
32903 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_route_server_route_server_client_modify(
32904 struct nb_cb_modify_args
*args
)
32906 switch (args
->event
) {
32907 case NB_EV_VALIDATE
:
32908 case NB_EV_PREPARE
:
32912 return bgp_peer_group_afi_safi_flag_modify(
32913 args
, PEER_FLAG_RSERVER_CLIENT
,
32914 yang_dnode_get_bool(args
->dnode
, NULL
));
32924 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/send-community/send-community
32926 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_send_community_send_community_modify(
32927 struct nb_cb_modify_args
*args
)
32929 switch (args
->event
) {
32930 case NB_EV_VALIDATE
:
32931 case NB_EV_PREPARE
:
32935 return bgp_peer_group_afi_safi_flag_modify(
32936 args
, PEER_FLAG_SEND_COMMUNITY
,
32937 yang_dnode_get_bool(args
->dnode
, NULL
));
32947 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/send-community/send-ext-community
32949 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_send_community_send_ext_community_modify(
32950 struct nb_cb_modify_args
*args
)
32952 switch (args
->event
) {
32953 case NB_EV_VALIDATE
:
32954 case NB_EV_PREPARE
:
32958 return bgp_peer_group_afi_safi_flag_modify(
32959 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
32960 yang_dnode_get_bool(args
->dnode
, NULL
));
32970 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/send-community/send-large-community
32972 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_send_community_send_large_community_modify(
32973 struct nb_cb_modify_args
*args
)
32975 switch (args
->event
) {
32976 case NB_EV_VALIDATE
:
32977 case NB_EV_PREPARE
:
32981 return bgp_peer_group_afi_safi_flag_modify(
32982 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
32983 yang_dnode_get_bool(args
->dnode
, NULL
));
32993 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/soft-reconfiguration
32995 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_soft_reconfiguration_modify(
32996 struct nb_cb_modify_args
*args
)
32998 switch (args
->event
) {
32999 case NB_EV_VALIDATE
:
33000 case NB_EV_PREPARE
:
33004 return bgp_peer_group_afi_safi_flag_modify(
33005 args
, PEER_FLAG_SOFT_RECONFIG
,
33006 yang_dnode_get_bool(args
->dnode
, NULL
));
33016 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-unicast/weight/weight-attribute
33018 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_weight_weight_attribute_modify(
33019 struct nb_cb_modify_args
*args
)
33021 switch (args
->event
) {
33022 case NB_EV_VALIDATE
:
33023 case NB_EV_PREPARE
:
33027 return bgp_peer_group_afi_safi_weight_modify(args
);
33035 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_unicast_weight_weight_attribute_destroy(
33036 struct nb_cb_destroy_args
*args
)
33038 switch (args
->event
) {
33039 case NB_EV_VALIDATE
:
33040 case NB_EV_PREPARE
:
33044 return bgp_peer_group_afi_safi_weight_destroy(args
);
33054 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/add-paths/path-type
33056 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_add_paths_path_type_modify(
33057 struct nb_cb_modify_args
*args
)
33059 switch (args
->event
) {
33060 case NB_EV_VALIDATE
:
33061 case NB_EV_PREPARE
:
33064 /* TODO: implement me. */
33073 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/as-path-options/allow-own-as
33075 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_as_path_options_allow_own_as_modify(
33076 struct nb_cb_modify_args
*args
)
33078 switch (args
->event
) {
33079 case NB_EV_VALIDATE
:
33080 case NB_EV_PREPARE
:
33083 /* TODO: implement me. */
33090 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_as_path_options_allow_own_as_destroy(
33091 struct nb_cb_destroy_args
*args
)
33093 switch (args
->event
) {
33094 case NB_EV_VALIDATE
:
33095 case NB_EV_PREPARE
:
33098 /* TODO: implement me. */
33107 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/as-path-options/allow-own-origin-as
33109 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_as_path_options_allow_own_origin_as_modify(
33110 struct nb_cb_modify_args
*args
)
33112 switch (args
->event
) {
33113 case NB_EV_VALIDATE
:
33114 case NB_EV_PREPARE
:
33117 /* TODO: implement me. */
33124 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_as_path_options_allow_own_origin_as_destroy(
33125 struct nb_cb_destroy_args
*args
)
33127 switch (args
->event
) {
33128 case NB_EV_VALIDATE
:
33129 case NB_EV_PREPARE
:
33132 /* TODO: implement me. */
33141 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/as-path-options/replace-peer-as
33143 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_as_path_options_replace_peer_as_modify(
33144 struct nb_cb_modify_args
*args
)
33146 switch (args
->event
) {
33147 case NB_EV_VALIDATE
:
33148 case NB_EV_PREPARE
:
33152 return bgp_peer_group_afi_safi_flag_modify(
33153 args
, PEER_FLAG_AS_OVERRIDE
,
33154 yang_dnode_get_bool(args
->dnode
, NULL
));
33164 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/default-originate/originate
33166 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_default_originate_originate_modify(
33167 struct nb_cb_modify_args
*args
)
33169 switch (args
->event
) {
33170 case NB_EV_VALIDATE
:
33171 case NB_EV_PREPARE
:
33174 /* TODO: implement me. */
33183 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/default-originate/route-map
33185 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_default_originate_route_map_modify(
33186 struct nb_cb_modify_args
*args
)
33188 switch (args
->event
) {
33189 case NB_EV_VALIDATE
:
33190 case NB_EV_PREPARE
:
33193 /* TODO: implement me. */
33200 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_default_originate_route_map_destroy(
33201 struct nb_cb_destroy_args
*args
)
33203 switch (args
->event
) {
33204 case NB_EV_VALIDATE
:
33205 case NB_EV_PREPARE
:
33208 /* TODO: implement me. */
33217 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/attr-unchanged/as-path-unchanged
33219 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_attr_unchanged_as_path_unchanged_modify(
33220 struct nb_cb_modify_args
*args
)
33222 switch (args
->event
) {
33223 case NB_EV_VALIDATE
:
33224 case NB_EV_PREPARE
:
33228 return bgp_peer_group_afi_safi_flag_modify(
33229 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
33230 yang_dnode_get_bool(args
->dnode
, NULL
));
33240 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/attr-unchanged/next-hop-unchanged
33242 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_attr_unchanged_next_hop_unchanged_modify(
33243 struct nb_cb_modify_args
*args
)
33245 switch (args
->event
) {
33246 case NB_EV_VALIDATE
:
33247 case NB_EV_PREPARE
:
33251 return bgp_peer_group_afi_safi_flag_modify(
33252 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
33253 yang_dnode_get_bool(args
->dnode
, NULL
));
33263 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/attr-unchanged/med-unchanged
33265 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_attr_unchanged_med_unchanged_modify(
33266 struct nb_cb_modify_args
*args
)
33268 switch (args
->event
) {
33269 case NB_EV_VALIDATE
:
33270 case NB_EV_PREPARE
:
33274 return bgp_peer_group_afi_safi_flag_modify(
33275 args
, PEER_FLAG_MED_UNCHANGED
,
33276 yang_dnode_get_bool(args
->dnode
, NULL
));
33286 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/orf-capability/orf-send
33288 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_send_modify(
33289 struct nb_cb_modify_args
*args
)
33291 switch (args
->event
) {
33292 case NB_EV_VALIDATE
:
33293 case NB_EV_PREPARE
:
33296 /* TODO: implement me. */
33303 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_send_destroy(
33304 struct nb_cb_destroy_args
*args
)
33306 switch (args
->event
) {
33307 case NB_EV_VALIDATE
:
33308 case NB_EV_PREPARE
:
33311 /* TODO: implement me. */
33320 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/orf-capability/orf-receive
33322 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_receive_modify(
33323 struct nb_cb_modify_args
*args
)
33325 switch (args
->event
) {
33326 case NB_EV_VALIDATE
:
33327 case NB_EV_PREPARE
:
33330 /* TODO: implement me. */
33337 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_receive_destroy(
33338 struct nb_cb_destroy_args
*args
)
33340 switch (args
->event
) {
33341 case NB_EV_VALIDATE
:
33342 case NB_EV_PREPARE
:
33345 /* TODO: implement me. */
33354 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/orf-capability/orf-both
33356 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_both_modify(
33357 struct nb_cb_modify_args
*args
)
33359 switch (args
->event
) {
33360 case NB_EV_VALIDATE
:
33361 case NB_EV_PREPARE
:
33364 /* TODO: implement me. */
33371 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_orf_capability_orf_both_destroy(
33372 struct nb_cb_destroy_args
*args
)
33374 switch (args
->event
) {
33375 case NB_EV_VALIDATE
:
33376 case NB_EV_PREPARE
:
33379 /* TODO: implement me. */
33388 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list
33390 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_create(
33391 struct nb_cb_create_args
*args
)
33393 switch (args
->event
) {
33394 case NB_EV_VALIDATE
:
33395 case NB_EV_PREPARE
:
33398 /* TODO: implement me. */
33405 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_destroy(
33406 struct nb_cb_destroy_args
*args
)
33408 switch (args
->event
) {
33409 case NB_EV_VALIDATE
:
33410 case NB_EV_PREPARE
:
33414 return bgp_peer_group_afi_safi_prefix_limit_list_destroy(args
);
33422 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/max-prefixes
33424 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_max_prefixes_modify(
33425 struct nb_cb_modify_args
*args
)
33427 switch (args
->event
) {
33428 case NB_EV_VALIDATE
:
33429 case NB_EV_PREPARE
:
33432 /* TODO: implement me. */
33441 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/force-check
33443 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_force_check_modify(
33444 struct nb_cb_modify_args
*args
)
33446 switch (args
->event
) {
33447 case NB_EV_VALIDATE
:
33448 case NB_EV_PREPARE
:
33451 /* TODO: implement me. */
33460 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/warning-only
33462 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_warning_only_modify(
33463 struct nb_cb_modify_args
*args
)
33465 switch (args
->event
) {
33466 case NB_EV_VALIDATE
:
33467 case NB_EV_PREPARE
:
33470 /* TODO: implement me. */
33477 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_warning_only_destroy(
33478 struct nb_cb_destroy_args
*args
)
33480 switch (args
->event
) {
33481 case NB_EV_VALIDATE
:
33482 case NB_EV_PREPARE
:
33485 /* TODO: implement me. */
33494 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/restart-timer
33496 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_restart_timer_modify(
33497 struct nb_cb_modify_args
*args
)
33499 switch (args
->event
) {
33500 case NB_EV_VALIDATE
:
33501 case NB_EV_PREPARE
:
33504 /* TODO: implement me. */
33511 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_restart_timer_destroy(
33512 struct nb_cb_destroy_args
*args
)
33514 switch (args
->event
) {
33515 case NB_EV_VALIDATE
:
33516 case NB_EV_PREPARE
:
33519 /* TODO: implement me. */
33528 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/shutdown-threshold-pct
33530 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
33531 struct nb_cb_modify_args
*args
)
33533 switch (args
->event
) {
33534 case NB_EV_VALIDATE
:
33535 case NB_EV_PREPARE
:
33538 /* TODO: implement me. */
33545 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
33546 struct nb_cb_destroy_args
*args
)
33548 switch (args
->event
) {
33549 case NB_EV_VALIDATE
:
33550 case NB_EV_PREPARE
:
33553 /* TODO: implement me. */
33562 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
33564 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
33565 struct nb_cb_modify_args
*args
)
33567 switch (args
->event
) {
33568 case NB_EV_VALIDATE
:
33569 case NB_EV_PREPARE
:
33572 /* TODO: implement me. */
33579 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
33580 struct nb_cb_destroy_args
*args
)
33582 switch (args
->event
) {
33583 case NB_EV_VALIDATE
:
33584 case NB_EV_PREPARE
:
33587 /* TODO: implement me. */
33596 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/tr-restart-timer
33598 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
33599 struct nb_cb_modify_args
*args
)
33601 switch (args
->event
) {
33602 case NB_EV_VALIDATE
:
33603 case NB_EV_PREPARE
:
33606 /* TODO: implement me. */
33613 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
33614 struct nb_cb_destroy_args
*args
)
33616 switch (args
->event
) {
33617 case NB_EV_VALIDATE
:
33618 case NB_EV_PREPARE
:
33621 /* TODO: implement me. */
33630 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
33632 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
33633 struct nb_cb_modify_args
*args
)
33635 switch (args
->event
) {
33636 case NB_EV_VALIDATE
:
33637 case NB_EV_PREPARE
:
33640 /* TODO: implement me. */
33647 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
33648 struct nb_cb_destroy_args
*args
)
33650 switch (args
->event
) {
33651 case NB_EV_VALIDATE
:
33652 case NB_EV_PREPARE
:
33655 /* TODO: implement me. */
33664 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/prefix-limit/direction-list/options/tw-warning-only
33666 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tw_warning_only_modify(
33667 struct nb_cb_modify_args
*args
)
33669 switch (args
->event
) {
33670 case NB_EV_VALIDATE
:
33671 case NB_EV_PREPARE
:
33674 /* TODO: implement me. */
33681 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
33682 struct nb_cb_destroy_args
*args
)
33684 switch (args
->event
) {
33685 case NB_EV_VALIDATE
:
33686 case NB_EV_PREPARE
:
33689 /* TODO: implement me. */
33698 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/nexthop-self/next-hop-self
33700 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_nexthop_self_next_hop_self_modify(
33701 struct nb_cb_modify_args
*args
)
33703 switch (args
->event
) {
33704 case NB_EV_VALIDATE
:
33705 case NB_EV_PREPARE
:
33709 return bgp_peer_group_afi_safi_flag_modify(
33710 args
, PEER_FLAG_NEXTHOP_SELF
,
33711 yang_dnode_get_bool(args
->dnode
, NULL
));
33721 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/nexthop-self/next-hop-self-force
33723 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_nexthop_self_next_hop_self_force_modify(
33724 struct nb_cb_modify_args
*args
)
33726 switch (args
->event
) {
33727 case NB_EV_VALIDATE
:
33728 case NB_EV_PREPARE
:
33732 return bgp_peer_group_afi_safi_flag_modify(
33733 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
33734 yang_dnode_get_bool(args
->dnode
, NULL
));
33744 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/private-as/remove-private-as-all
33746 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_private_as_remove_private_as_all_modify(
33747 struct nb_cb_modify_args
*args
)
33749 switch (args
->event
) {
33750 case NB_EV_VALIDATE
:
33751 case NB_EV_PREPARE
:
33755 return bgp_peer_group_afi_safi_flag_modify(
33756 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
33757 yang_dnode_get_bool(args
->dnode
, NULL
));
33767 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/private-as/remove-private-as-all-replace
33769 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_private_as_remove_private_as_all_replace_modify(
33770 struct nb_cb_modify_args
*args
)
33772 switch (args
->event
) {
33773 case NB_EV_VALIDATE
:
33774 case NB_EV_PREPARE
:
33778 return bgp_peer_group_afi_safi_flag_modify(
33779 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
33780 yang_dnode_get_bool(args
->dnode
, NULL
));
33790 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/private-as/remove-private-as
33792 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_private_as_remove_private_as_modify(
33793 struct nb_cb_modify_args
*args
)
33795 switch (args
->event
) {
33796 case NB_EV_VALIDATE
:
33797 case NB_EV_PREPARE
:
33801 return bgp_peer_group_afi_safi_flag_modify(
33802 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
33803 yang_dnode_get_bool(args
->dnode
, NULL
));
33813 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/private-as/remove-private-as-replace
33815 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_private_as_remove_private_as_replace_modify(
33816 struct nb_cb_modify_args
*args
)
33818 switch (args
->event
) {
33819 case NB_EV_VALIDATE
:
33820 case NB_EV_PREPARE
:
33824 return bgp_peer_group_afi_safi_flag_modify(
33825 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
33826 yang_dnode_get_bool(args
->dnode
, NULL
));
33836 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/route-reflector/route-reflector-client
33838 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_route_reflector_route_reflector_client_modify(
33839 struct nb_cb_modify_args
*args
)
33841 switch (args
->event
) {
33842 case NB_EV_VALIDATE
:
33843 case NB_EV_PREPARE
:
33847 return bgp_peer_group_afi_safi_flag_modify(
33848 args
, PEER_FLAG_REFLECTOR_CLIENT
,
33849 yang_dnode_get_bool(args
->dnode
, NULL
));
33859 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/route-server/route-server-client
33861 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_route_server_route_server_client_modify(
33862 struct nb_cb_modify_args
*args
)
33864 switch (args
->event
) {
33865 case NB_EV_VALIDATE
:
33866 case NB_EV_PREPARE
:
33870 return bgp_peer_group_afi_safi_flag_modify(
33871 args
, PEER_FLAG_RSERVER_CLIENT
,
33872 yang_dnode_get_bool(args
->dnode
, NULL
));
33882 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/send-community/send-community
33884 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_send_community_send_community_modify(
33885 struct nb_cb_modify_args
*args
)
33887 switch (args
->event
) {
33888 case NB_EV_VALIDATE
:
33889 case NB_EV_PREPARE
:
33893 return bgp_peer_group_afi_safi_flag_modify(
33894 args
, PEER_FLAG_SEND_COMMUNITY
,
33895 yang_dnode_get_bool(args
->dnode
, NULL
));
33905 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/send-community/send-ext-community
33907 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_send_community_send_ext_community_modify(
33908 struct nb_cb_modify_args
*args
)
33910 switch (args
->event
) {
33911 case NB_EV_VALIDATE
:
33912 case NB_EV_PREPARE
:
33916 return bgp_peer_group_afi_safi_flag_modify(
33917 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
33918 yang_dnode_get_bool(args
->dnode
, NULL
));
33928 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/send-community/send-large-community
33930 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_send_community_send_large_community_modify(
33931 struct nb_cb_modify_args
*args
)
33933 switch (args
->event
) {
33934 case NB_EV_VALIDATE
:
33935 case NB_EV_PREPARE
:
33939 return bgp_peer_group_afi_safi_flag_modify(
33940 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
33941 yang_dnode_get_bool(args
->dnode
, NULL
));
33951 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/soft-reconfiguration
33953 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_soft_reconfiguration_modify(
33954 struct nb_cb_modify_args
*args
)
33956 switch (args
->event
) {
33957 case NB_EV_VALIDATE
:
33958 case NB_EV_PREPARE
:
33962 return bgp_peer_group_afi_safi_flag_modify(
33963 args
, PEER_FLAG_SOFT_RECONFIG
,
33964 yang_dnode_get_bool(args
->dnode
, NULL
));
33974 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-multicast/weight/weight-attribute
33976 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_weight_weight_attribute_modify(
33977 struct nb_cb_modify_args
*args
)
33979 switch (args
->event
) {
33980 case NB_EV_VALIDATE
:
33981 case NB_EV_PREPARE
:
33985 return bgp_peer_group_afi_safi_weight_modify(args
);
33993 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_multicast_weight_weight_attribute_destroy(
33994 struct nb_cb_destroy_args
*args
)
33996 switch (args
->event
) {
33997 case NB_EV_VALIDATE
:
33998 case NB_EV_PREPARE
:
34002 return bgp_peer_group_afi_safi_weight_destroy(args
);
34012 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/add-paths/path-type
34014 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_add_paths_path_type_modify(
34015 struct nb_cb_modify_args
*args
)
34017 switch (args
->event
) {
34018 case NB_EV_VALIDATE
:
34019 case NB_EV_PREPARE
:
34022 /* TODO: implement me. */
34031 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/as-path-options/allow-own-as
34033 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_as_path_options_allow_own_as_modify(
34034 struct nb_cb_modify_args
*args
)
34036 switch (args
->event
) {
34037 case NB_EV_VALIDATE
:
34038 case NB_EV_PREPARE
:
34041 /* TODO: implement me. */
34048 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_as_path_options_allow_own_as_destroy(
34049 struct nb_cb_destroy_args
*args
)
34051 switch (args
->event
) {
34052 case NB_EV_VALIDATE
:
34053 case NB_EV_PREPARE
:
34056 /* TODO: implement me. */
34065 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/as-path-options/allow-own-origin-as
34067 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_as_path_options_allow_own_origin_as_modify(
34068 struct nb_cb_modify_args
*args
)
34070 switch (args
->event
) {
34071 case NB_EV_VALIDATE
:
34072 case NB_EV_PREPARE
:
34075 /* TODO: implement me. */
34082 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_as_path_options_allow_own_origin_as_destroy(
34083 struct nb_cb_destroy_args
*args
)
34085 switch (args
->event
) {
34086 case NB_EV_VALIDATE
:
34087 case NB_EV_PREPARE
:
34090 /* TODO: implement me. */
34099 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/as-path-options/replace-peer-as
34101 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_as_path_options_replace_peer_as_modify(
34102 struct nb_cb_modify_args
*args
)
34104 switch (args
->event
) {
34105 case NB_EV_VALIDATE
:
34106 case NB_EV_PREPARE
:
34110 return bgp_peer_group_afi_safi_flag_modify(
34111 args
, PEER_FLAG_AS_OVERRIDE
,
34112 yang_dnode_get_bool(args
->dnode
, NULL
));
34122 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/default-originate/originate
34124 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_default_originate_originate_modify(
34125 struct nb_cb_modify_args
*args
)
34127 switch (args
->event
) {
34128 case NB_EV_VALIDATE
:
34129 case NB_EV_PREPARE
:
34132 /* TODO: implement me. */
34141 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/default-originate/route-map
34143 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_default_originate_route_map_modify(
34144 struct nb_cb_modify_args
*args
)
34146 switch (args
->event
) {
34147 case NB_EV_VALIDATE
:
34148 case NB_EV_PREPARE
:
34151 /* TODO: implement me. */
34158 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_default_originate_route_map_destroy(
34159 struct nb_cb_destroy_args
*args
)
34161 switch (args
->event
) {
34162 case NB_EV_VALIDATE
:
34163 case NB_EV_PREPARE
:
34166 /* TODO: implement me. */
34175 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/attr-unchanged/as-path-unchanged
34177 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_attr_unchanged_as_path_unchanged_modify(
34178 struct nb_cb_modify_args
*args
)
34180 switch (args
->event
) {
34181 case NB_EV_VALIDATE
:
34182 case NB_EV_PREPARE
:
34186 return bgp_peer_group_afi_safi_flag_modify(
34187 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
34188 yang_dnode_get_bool(args
->dnode
, NULL
));
34198 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/attr-unchanged/next-hop-unchanged
34200 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_attr_unchanged_next_hop_unchanged_modify(
34201 struct nb_cb_modify_args
*args
)
34203 switch (args
->event
) {
34204 case NB_EV_VALIDATE
:
34205 case NB_EV_PREPARE
:
34209 return bgp_peer_group_afi_safi_flag_modify(
34210 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
34211 yang_dnode_get_bool(args
->dnode
, NULL
));
34221 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/attr-unchanged/med-unchanged
34223 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_attr_unchanged_med_unchanged_modify(
34224 struct nb_cb_modify_args
*args
)
34226 switch (args
->event
) {
34227 case NB_EV_VALIDATE
:
34228 case NB_EV_PREPARE
:
34232 return bgp_peer_group_afi_safi_flag_modify(
34233 args
, PEER_FLAG_MED_UNCHANGED
,
34234 yang_dnode_get_bool(args
->dnode
, NULL
));
34244 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/orf-capability/orf-send
34246 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_send_modify(
34247 struct nb_cb_modify_args
*args
)
34249 switch (args
->event
) {
34250 case NB_EV_VALIDATE
:
34251 case NB_EV_PREPARE
:
34254 /* TODO: implement me. */
34261 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_send_destroy(
34262 struct nb_cb_destroy_args
*args
)
34264 switch (args
->event
) {
34265 case NB_EV_VALIDATE
:
34266 case NB_EV_PREPARE
:
34269 /* TODO: implement me. */
34278 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/orf-capability/orf-receive
34280 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_receive_modify(
34281 struct nb_cb_modify_args
*args
)
34283 switch (args
->event
) {
34284 case NB_EV_VALIDATE
:
34285 case NB_EV_PREPARE
:
34288 /* TODO: implement me. */
34295 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_receive_destroy(
34296 struct nb_cb_destroy_args
*args
)
34298 switch (args
->event
) {
34299 case NB_EV_VALIDATE
:
34300 case NB_EV_PREPARE
:
34303 /* TODO: implement me. */
34312 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/orf-capability/orf-both
34314 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_both_modify(
34315 struct nb_cb_modify_args
*args
)
34317 switch (args
->event
) {
34318 case NB_EV_VALIDATE
:
34319 case NB_EV_PREPARE
:
34322 /* TODO: implement me. */
34329 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_orf_capability_orf_both_destroy(
34330 struct nb_cb_destroy_args
*args
)
34332 switch (args
->event
) {
34333 case NB_EV_VALIDATE
:
34334 case NB_EV_PREPARE
:
34337 /* TODO: implement me. */
34346 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list
34348 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_create(
34349 struct nb_cb_create_args
*args
)
34351 switch (args
->event
) {
34352 case NB_EV_VALIDATE
:
34353 case NB_EV_PREPARE
:
34356 /* TODO: implement me. */
34363 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_destroy(
34364 struct nb_cb_destroy_args
*args
)
34366 switch (args
->event
) {
34367 case NB_EV_VALIDATE
:
34368 case NB_EV_PREPARE
:
34372 return bgp_peer_group_afi_safi_prefix_limit_list_destroy(args
);
34380 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/max-prefixes
34382 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_max_prefixes_modify(
34383 struct nb_cb_modify_args
*args
)
34385 switch (args
->event
) {
34386 case NB_EV_VALIDATE
:
34387 case NB_EV_PREPARE
:
34390 /* TODO: implement me. */
34399 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/force-check
34401 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_force_check_modify(
34402 struct nb_cb_modify_args
*args
)
34404 switch (args
->event
) {
34405 case NB_EV_VALIDATE
:
34406 case NB_EV_PREPARE
:
34409 /* TODO: implement me. */
34418 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/warning-only
34420 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_warning_only_modify(
34421 struct nb_cb_modify_args
*args
)
34423 switch (args
->event
) {
34424 case NB_EV_VALIDATE
:
34425 case NB_EV_PREPARE
:
34428 /* TODO: implement me. */
34435 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_warning_only_destroy(
34436 struct nb_cb_destroy_args
*args
)
34438 switch (args
->event
) {
34439 case NB_EV_VALIDATE
:
34440 case NB_EV_PREPARE
:
34443 /* TODO: implement me. */
34452 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/restart-timer
34454 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_restart_timer_modify(
34455 struct nb_cb_modify_args
*args
)
34457 switch (args
->event
) {
34458 case NB_EV_VALIDATE
:
34459 case NB_EV_PREPARE
:
34462 /* TODO: implement me. */
34469 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_restart_timer_destroy(
34470 struct nb_cb_destroy_args
*args
)
34472 switch (args
->event
) {
34473 case NB_EV_VALIDATE
:
34474 case NB_EV_PREPARE
:
34477 /* TODO: implement me. */
34486 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/shutdown-threshold-pct
34488 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
34489 struct nb_cb_modify_args
*args
)
34491 switch (args
->event
) {
34492 case NB_EV_VALIDATE
:
34493 case NB_EV_PREPARE
:
34496 /* TODO: implement me. */
34503 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
34504 struct nb_cb_destroy_args
*args
)
34506 switch (args
->event
) {
34507 case NB_EV_VALIDATE
:
34508 case NB_EV_PREPARE
:
34511 /* TODO: implement me. */
34520 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
34522 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
34523 struct nb_cb_modify_args
*args
)
34525 switch (args
->event
) {
34526 case NB_EV_VALIDATE
:
34527 case NB_EV_PREPARE
:
34530 /* TODO: implement me. */
34537 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
34538 struct nb_cb_destroy_args
*args
)
34540 switch (args
->event
) {
34541 case NB_EV_VALIDATE
:
34542 case NB_EV_PREPARE
:
34545 /* TODO: implement me. */
34554 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/tr-restart-timer
34556 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
34557 struct nb_cb_modify_args
*args
)
34559 switch (args
->event
) {
34560 case NB_EV_VALIDATE
:
34561 case NB_EV_PREPARE
:
34564 /* TODO: implement me. */
34571 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
34572 struct nb_cb_destroy_args
*args
)
34574 switch (args
->event
) {
34575 case NB_EV_VALIDATE
:
34576 case NB_EV_PREPARE
:
34579 /* TODO: implement me. */
34588 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
34590 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
34591 struct nb_cb_modify_args
*args
)
34593 switch (args
->event
) {
34594 case NB_EV_VALIDATE
:
34595 case NB_EV_PREPARE
:
34598 /* TODO: implement me. */
34605 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
34606 struct nb_cb_destroy_args
*args
)
34608 switch (args
->event
) {
34609 case NB_EV_VALIDATE
:
34610 case NB_EV_PREPARE
:
34613 /* TODO: implement me. */
34622 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/prefix-limit/direction-list/options/tw-warning-only
34624 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tw_warning_only_modify(
34625 struct nb_cb_modify_args
*args
)
34627 switch (args
->event
) {
34628 case NB_EV_VALIDATE
:
34629 case NB_EV_PREPARE
:
34632 /* TODO: implement me. */
34639 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
34640 struct nb_cb_destroy_args
*args
)
34642 switch (args
->event
) {
34643 case NB_EV_VALIDATE
:
34644 case NB_EV_PREPARE
:
34647 /* TODO: implement me. */
34656 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/nexthop-self/next-hop-self
34658 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_nexthop_self_next_hop_self_modify(
34659 struct nb_cb_modify_args
*args
)
34661 switch (args
->event
) {
34662 case NB_EV_VALIDATE
:
34663 case NB_EV_PREPARE
:
34667 return bgp_peer_group_afi_safi_flag_modify(
34668 args
, PEER_FLAG_NEXTHOP_SELF
,
34669 yang_dnode_get_bool(args
->dnode
, NULL
));
34679 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/nexthop-self/next-hop-self-force
34681 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_nexthop_self_next_hop_self_force_modify(
34682 struct nb_cb_modify_args
*args
)
34684 switch (args
->event
) {
34685 case NB_EV_VALIDATE
:
34686 case NB_EV_PREPARE
:
34690 return bgp_peer_group_afi_safi_flag_modify(
34691 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
34692 yang_dnode_get_bool(args
->dnode
, NULL
));
34702 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/private-as/remove-private-as-all
34704 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_private_as_remove_private_as_all_modify(
34705 struct nb_cb_modify_args
*args
)
34707 switch (args
->event
) {
34708 case NB_EV_VALIDATE
:
34709 case NB_EV_PREPARE
:
34713 return bgp_peer_group_afi_safi_flag_modify(
34714 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
34715 yang_dnode_get_bool(args
->dnode
, NULL
));
34725 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/private-as/remove-private-as-all-replace
34727 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_private_as_remove_private_as_all_replace_modify(
34728 struct nb_cb_modify_args
*args
)
34730 switch (args
->event
) {
34731 case NB_EV_VALIDATE
:
34732 case NB_EV_PREPARE
:
34736 return bgp_peer_group_afi_safi_flag_modify(
34737 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
34738 yang_dnode_get_bool(args
->dnode
, NULL
));
34748 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/private-as/remove-private-as
34750 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_private_as_remove_private_as_modify(
34751 struct nb_cb_modify_args
*args
)
34753 switch (args
->event
) {
34754 case NB_EV_VALIDATE
:
34755 case NB_EV_PREPARE
:
34759 return bgp_peer_group_afi_safi_flag_modify(
34760 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
34761 yang_dnode_get_bool(args
->dnode
, NULL
));
34771 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/private-as/remove-private-as-replace
34773 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_private_as_remove_private_as_replace_modify(
34774 struct nb_cb_modify_args
*args
)
34776 switch (args
->event
) {
34777 case NB_EV_VALIDATE
:
34778 case NB_EV_PREPARE
:
34782 return bgp_peer_group_afi_safi_flag_modify(
34783 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
34784 yang_dnode_get_bool(args
->dnode
, NULL
));
34794 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/route-reflector/route-reflector-client
34796 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_route_reflector_route_reflector_client_modify(
34797 struct nb_cb_modify_args
*args
)
34799 switch (args
->event
) {
34800 case NB_EV_VALIDATE
:
34801 case NB_EV_PREPARE
:
34805 return bgp_peer_group_afi_safi_flag_modify(
34806 args
, PEER_FLAG_REFLECTOR_CLIENT
,
34807 yang_dnode_get_bool(args
->dnode
, NULL
));
34817 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/route-server/route-server-client
34819 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_route_server_route_server_client_modify(
34820 struct nb_cb_modify_args
*args
)
34822 switch (args
->event
) {
34823 case NB_EV_VALIDATE
:
34824 case NB_EV_PREPARE
:
34828 return bgp_peer_group_afi_safi_flag_modify(
34829 args
, PEER_FLAG_RSERVER_CLIENT
,
34830 yang_dnode_get_bool(args
->dnode
, NULL
));
34840 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/send-community/send-community
34842 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_send_community_send_community_modify(
34843 struct nb_cb_modify_args
*args
)
34845 switch (args
->event
) {
34846 case NB_EV_VALIDATE
:
34847 case NB_EV_PREPARE
:
34851 return bgp_peer_group_afi_safi_flag_modify(
34852 args
, PEER_FLAG_SEND_COMMUNITY
,
34853 yang_dnode_get_bool(args
->dnode
, NULL
));
34863 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/send-community/send-ext-community
34865 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_send_community_send_ext_community_modify(
34866 struct nb_cb_modify_args
*args
)
34868 switch (args
->event
) {
34869 case NB_EV_VALIDATE
:
34870 case NB_EV_PREPARE
:
34874 return bgp_peer_group_afi_safi_flag_modify(
34875 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
34876 yang_dnode_get_bool(args
->dnode
, NULL
));
34886 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/send-community/send-large-community
34888 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_send_community_send_large_community_modify(
34889 struct nb_cb_modify_args
*args
)
34891 switch (args
->event
) {
34892 case NB_EV_VALIDATE
:
34893 case NB_EV_PREPARE
:
34897 return bgp_peer_group_afi_safi_flag_modify(
34898 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
34899 yang_dnode_get_bool(args
->dnode
, NULL
));
34909 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/soft-reconfiguration
34911 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_soft_reconfiguration_modify(
34912 struct nb_cb_modify_args
*args
)
34914 switch (args
->event
) {
34915 case NB_EV_VALIDATE
:
34916 case NB_EV_PREPARE
:
34920 return bgp_peer_group_afi_safi_flag_modify(
34921 args
, PEER_FLAG_SOFT_RECONFIG
,
34922 yang_dnode_get_bool(args
->dnode
, NULL
));
34932 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-multicast/weight/weight-attribute
34934 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_weight_weight_attribute_modify(
34935 struct nb_cb_modify_args
*args
)
34937 switch (args
->event
) {
34938 case NB_EV_VALIDATE
:
34939 case NB_EV_PREPARE
:
34943 return bgp_peer_group_afi_safi_weight_modify(args
);
34951 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_multicast_weight_weight_attribute_destroy(
34952 struct nb_cb_destroy_args
*args
)
34954 switch (args
->event
) {
34955 case NB_EV_VALIDATE
:
34956 case NB_EV_PREPARE
:
34960 return bgp_peer_group_afi_safi_weight_destroy(args
);
34970 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/add-paths/path-type
34972 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_add_paths_path_type_modify(
34973 struct nb_cb_modify_args
*args
)
34975 switch (args
->event
) {
34976 case NB_EV_VALIDATE
:
34977 case NB_EV_PREPARE
:
34980 /* TODO: implement me. */
34989 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/as-path-options/allow-own-as
34991 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_allow_own_as_modify(
34992 struct nb_cb_modify_args
*args
)
34994 switch (args
->event
) {
34995 case NB_EV_VALIDATE
:
34996 case NB_EV_PREPARE
:
34999 /* TODO: implement me. */
35006 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_allow_own_as_destroy(
35007 struct nb_cb_destroy_args
*args
)
35009 switch (args
->event
) {
35010 case NB_EV_VALIDATE
:
35011 case NB_EV_PREPARE
:
35014 /* TODO: implement me. */
35023 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/as-path-options/allow-own-origin-as
35025 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_allow_own_origin_as_modify(
35026 struct nb_cb_modify_args
*args
)
35028 switch (args
->event
) {
35029 case NB_EV_VALIDATE
:
35030 case NB_EV_PREPARE
:
35033 /* TODO: implement me. */
35040 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_allow_own_origin_as_destroy(
35041 struct nb_cb_destroy_args
*args
)
35043 switch (args
->event
) {
35044 case NB_EV_VALIDATE
:
35045 case NB_EV_PREPARE
:
35048 /* TODO: implement me. */
35057 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/as-path-options/replace-peer-as
35059 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_as_path_options_replace_peer_as_modify(
35060 struct nb_cb_modify_args
*args
)
35062 switch (args
->event
) {
35063 case NB_EV_VALIDATE
:
35064 case NB_EV_PREPARE
:
35068 return bgp_peer_group_afi_safi_flag_modify(
35069 args
, PEER_FLAG_AS_OVERRIDE
,
35070 yang_dnode_get_bool(args
->dnode
, NULL
));
35080 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/default-originate/originate
35082 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_default_originate_originate_modify(
35083 struct nb_cb_modify_args
*args
)
35085 switch (args
->event
) {
35086 case NB_EV_VALIDATE
:
35087 case NB_EV_PREPARE
:
35090 /* TODO: implement me. */
35099 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/default-originate/route-map
35101 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_default_originate_route_map_modify(
35102 struct nb_cb_modify_args
*args
)
35104 switch (args
->event
) {
35105 case NB_EV_VALIDATE
:
35106 case NB_EV_PREPARE
:
35109 /* TODO: implement me. */
35116 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_default_originate_route_map_destroy(
35117 struct nb_cb_destroy_args
*args
)
35119 switch (args
->event
) {
35120 case NB_EV_VALIDATE
:
35121 case NB_EV_PREPARE
:
35124 /* TODO: implement me. */
35133 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/attr-unchanged/as-path-unchanged
35135 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_attr_unchanged_as_path_unchanged_modify(
35136 struct nb_cb_modify_args
*args
)
35138 switch (args
->event
) {
35139 case NB_EV_VALIDATE
:
35140 case NB_EV_PREPARE
:
35144 return bgp_peer_group_afi_safi_flag_modify(
35145 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
35146 yang_dnode_get_bool(args
->dnode
, NULL
));
35156 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/attr-unchanged/next-hop-unchanged
35158 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_attr_unchanged_next_hop_unchanged_modify(
35159 struct nb_cb_modify_args
*args
)
35161 switch (args
->event
) {
35162 case NB_EV_VALIDATE
:
35163 case NB_EV_PREPARE
:
35167 return bgp_peer_group_afi_safi_flag_modify(
35168 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
35169 yang_dnode_get_bool(args
->dnode
, NULL
));
35179 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/attr-unchanged/med-unchanged
35181 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_attr_unchanged_med_unchanged_modify(
35182 struct nb_cb_modify_args
*args
)
35184 switch (args
->event
) {
35185 case NB_EV_VALIDATE
:
35186 case NB_EV_PREPARE
:
35190 return bgp_peer_group_afi_safi_flag_modify(
35191 args
, PEER_FLAG_MED_UNCHANGED
,
35192 yang_dnode_get_bool(args
->dnode
, NULL
));
35202 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/orf-capability/orf-send
35204 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_send_modify(
35205 struct nb_cb_modify_args
*args
)
35207 switch (args
->event
) {
35208 case NB_EV_VALIDATE
:
35209 case NB_EV_PREPARE
:
35212 /* TODO: implement me. */
35219 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_send_destroy(
35220 struct nb_cb_destroy_args
*args
)
35222 switch (args
->event
) {
35223 case NB_EV_VALIDATE
:
35224 case NB_EV_PREPARE
:
35227 /* TODO: implement me. */
35236 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/orf-capability/orf-receive
35238 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_receive_modify(
35239 struct nb_cb_modify_args
*args
)
35241 switch (args
->event
) {
35242 case NB_EV_VALIDATE
:
35243 case NB_EV_PREPARE
:
35246 /* TODO: implement me. */
35253 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_receive_destroy(
35254 struct nb_cb_destroy_args
*args
)
35256 switch (args
->event
) {
35257 case NB_EV_VALIDATE
:
35258 case NB_EV_PREPARE
:
35261 /* TODO: implement me. */
35270 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/orf-capability/orf-both
35272 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_both_modify(
35273 struct nb_cb_modify_args
*args
)
35275 switch (args
->event
) {
35276 case NB_EV_VALIDATE
:
35277 case NB_EV_PREPARE
:
35280 /* TODO: implement me. */
35287 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_orf_capability_orf_both_destroy(
35288 struct nb_cb_destroy_args
*args
)
35290 switch (args
->event
) {
35291 case NB_EV_VALIDATE
:
35292 case NB_EV_PREPARE
:
35295 /* TODO: implement me. */
35304 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list
35306 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_create(
35307 struct nb_cb_create_args
*args
)
35309 switch (args
->event
) {
35310 case NB_EV_VALIDATE
:
35311 case NB_EV_PREPARE
:
35314 /* TODO: implement me. */
35321 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_destroy(
35322 struct nb_cb_destroy_args
*args
)
35324 switch (args
->event
) {
35325 case NB_EV_VALIDATE
:
35326 case NB_EV_PREPARE
:
35330 return bgp_peer_group_afi_safi_prefix_limit_list_destroy(args
);
35338 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/max-prefixes
35340 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_max_prefixes_modify(
35341 struct nb_cb_modify_args
*args
)
35343 switch (args
->event
) {
35344 case NB_EV_VALIDATE
:
35345 case NB_EV_PREPARE
:
35348 /* TODO: implement me. */
35357 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/force-check
35359 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_force_check_modify(
35360 struct nb_cb_modify_args
*args
)
35362 switch (args
->event
) {
35363 case NB_EV_VALIDATE
:
35364 case NB_EV_PREPARE
:
35367 /* TODO: implement me. */
35376 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/warning-only
35378 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_warning_only_modify(
35379 struct nb_cb_modify_args
*args
)
35381 switch (args
->event
) {
35382 case NB_EV_VALIDATE
:
35383 case NB_EV_PREPARE
:
35386 /* TODO: implement me. */
35393 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_warning_only_destroy(
35394 struct nb_cb_destroy_args
*args
)
35396 switch (args
->event
) {
35397 case NB_EV_VALIDATE
:
35398 case NB_EV_PREPARE
:
35401 /* TODO: implement me. */
35410 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/restart-timer
35412 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_restart_timer_modify(
35413 struct nb_cb_modify_args
*args
)
35415 switch (args
->event
) {
35416 case NB_EV_VALIDATE
:
35417 case NB_EV_PREPARE
:
35420 /* TODO: implement me. */
35427 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
35428 struct nb_cb_destroy_args
*args
)
35430 switch (args
->event
) {
35431 case NB_EV_VALIDATE
:
35432 case NB_EV_PREPARE
:
35435 /* TODO: implement me. */
35444 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
35446 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
35447 struct nb_cb_modify_args
*args
)
35449 switch (args
->event
) {
35450 case NB_EV_VALIDATE
:
35451 case NB_EV_PREPARE
:
35454 /* TODO: implement me. */
35461 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
35462 struct nb_cb_destroy_args
*args
)
35464 switch (args
->event
) {
35465 case NB_EV_VALIDATE
:
35466 case NB_EV_PREPARE
:
35469 /* TODO: implement me. */
35478 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
35480 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
35481 struct nb_cb_modify_args
*args
)
35483 switch (args
->event
) {
35484 case NB_EV_VALIDATE
:
35485 case NB_EV_PREPARE
:
35488 /* TODO: implement me. */
35495 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
35496 struct nb_cb_destroy_args
*args
)
35498 switch (args
->event
) {
35499 case NB_EV_VALIDATE
:
35500 case NB_EV_PREPARE
:
35503 /* TODO: implement me. */
35512 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/tr-restart-timer
35514 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
35515 struct nb_cb_modify_args
*args
)
35517 switch (args
->event
) {
35518 case NB_EV_VALIDATE
:
35519 case NB_EV_PREPARE
:
35522 /* TODO: implement me. */
35529 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
35530 struct nb_cb_destroy_args
*args
)
35532 switch (args
->event
) {
35533 case NB_EV_VALIDATE
:
35534 case NB_EV_PREPARE
:
35537 /* TODO: implement me. */
35546 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
35548 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
35549 struct nb_cb_modify_args
*args
)
35551 switch (args
->event
) {
35552 case NB_EV_VALIDATE
:
35553 case NB_EV_PREPARE
:
35556 /* TODO: implement me. */
35563 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
35564 struct nb_cb_destroy_args
*args
)
35566 switch (args
->event
) {
35567 case NB_EV_VALIDATE
:
35568 case NB_EV_PREPARE
:
35571 /* TODO: implement me. */
35580 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/prefix-limit/direction-list/options/tw-warning-only
35582 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
35583 struct nb_cb_modify_args
*args
)
35585 switch (args
->event
) {
35586 case NB_EV_VALIDATE
:
35587 case NB_EV_PREPARE
:
35590 /* TODO: implement me. */
35597 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
35598 struct nb_cb_destroy_args
*args
)
35600 switch (args
->event
) {
35601 case NB_EV_VALIDATE
:
35602 case NB_EV_PREPARE
:
35605 /* TODO: implement me. */
35614 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/nexthop-self/next-hop-self
35616 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_nexthop_self_next_hop_self_modify(
35617 struct nb_cb_modify_args
*args
)
35619 switch (args
->event
) {
35620 case NB_EV_VALIDATE
:
35621 case NB_EV_PREPARE
:
35625 return bgp_peer_group_afi_safi_flag_modify(
35626 args
, PEER_FLAG_NEXTHOP_SELF
,
35627 yang_dnode_get_bool(args
->dnode
, NULL
));
35637 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/nexthop-self/next-hop-self-force
35639 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_nexthop_self_next_hop_self_force_modify(
35640 struct nb_cb_modify_args
*args
)
35642 switch (args
->event
) {
35643 case NB_EV_VALIDATE
:
35644 case NB_EV_PREPARE
:
35648 return bgp_peer_group_afi_safi_flag_modify(
35649 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
35650 yang_dnode_get_bool(args
->dnode
, NULL
));
35660 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/private-as/remove-private-as-all
35662 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_private_as_remove_private_as_all_modify(
35663 struct nb_cb_modify_args
*args
)
35665 switch (args
->event
) {
35666 case NB_EV_VALIDATE
:
35667 case NB_EV_PREPARE
:
35671 return bgp_peer_group_afi_safi_flag_modify(
35672 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
35673 yang_dnode_get_bool(args
->dnode
, NULL
));
35683 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/private-as/remove-private-as-all-replace
35685 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_private_as_remove_private_as_all_replace_modify(
35686 struct nb_cb_modify_args
*args
)
35688 switch (args
->event
) {
35689 case NB_EV_VALIDATE
:
35690 case NB_EV_PREPARE
:
35694 return bgp_peer_group_afi_safi_flag_modify(
35695 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
35696 yang_dnode_get_bool(args
->dnode
, NULL
));
35706 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/private-as/remove-private-as
35708 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_private_as_remove_private_as_modify(
35709 struct nb_cb_modify_args
*args
)
35711 switch (args
->event
) {
35712 case NB_EV_VALIDATE
:
35713 case NB_EV_PREPARE
:
35717 return bgp_peer_group_afi_safi_flag_modify(
35718 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
35719 yang_dnode_get_bool(args
->dnode
, NULL
));
35729 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/private-as/remove-private-as-replace
35731 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_private_as_remove_private_as_replace_modify(
35732 struct nb_cb_modify_args
*args
)
35734 switch (args
->event
) {
35735 case NB_EV_VALIDATE
:
35736 case NB_EV_PREPARE
:
35740 return bgp_peer_group_afi_safi_flag_modify(
35741 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
35742 yang_dnode_get_bool(args
->dnode
, NULL
));
35752 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/route-reflector/route-reflector-client
35754 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_route_reflector_route_reflector_client_modify(
35755 struct nb_cb_modify_args
*args
)
35757 switch (args
->event
) {
35758 case NB_EV_VALIDATE
:
35759 case NB_EV_PREPARE
:
35763 return bgp_peer_group_afi_safi_flag_modify(
35764 args
, PEER_FLAG_REFLECTOR_CLIENT
,
35765 yang_dnode_get_bool(args
->dnode
, NULL
));
35775 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/route-server/route-server-client
35777 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_route_server_route_server_client_modify(
35778 struct nb_cb_modify_args
*args
)
35780 switch (args
->event
) {
35781 case NB_EV_VALIDATE
:
35782 case NB_EV_PREPARE
:
35786 return bgp_peer_group_afi_safi_flag_modify(
35787 args
, PEER_FLAG_RSERVER_CLIENT
,
35788 yang_dnode_get_bool(args
->dnode
, NULL
));
35798 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/send-community/send-community
35800 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_send_community_send_community_modify(
35801 struct nb_cb_modify_args
*args
)
35803 switch (args
->event
) {
35804 case NB_EV_VALIDATE
:
35805 case NB_EV_PREPARE
:
35809 return bgp_peer_group_afi_safi_flag_modify(
35810 args
, PEER_FLAG_SEND_COMMUNITY
,
35811 yang_dnode_get_bool(args
->dnode
, NULL
));
35821 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/send-community/send-ext-community
35823 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_send_community_send_ext_community_modify(
35824 struct nb_cb_modify_args
*args
)
35826 switch (args
->event
) {
35827 case NB_EV_VALIDATE
:
35828 case NB_EV_PREPARE
:
35832 return bgp_peer_group_afi_safi_flag_modify(
35833 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
35834 yang_dnode_get_bool(args
->dnode
, NULL
));
35844 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/send-community/send-large-community
35846 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_send_community_send_large_community_modify(
35847 struct nb_cb_modify_args
*args
)
35849 switch (args
->event
) {
35850 case NB_EV_VALIDATE
:
35851 case NB_EV_PREPARE
:
35855 return bgp_peer_group_afi_safi_flag_modify(
35856 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
35857 yang_dnode_get_bool(args
->dnode
, NULL
));
35867 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/soft-reconfiguration
35869 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_soft_reconfiguration_modify(
35870 struct nb_cb_modify_args
*args
)
35872 switch (args
->event
) {
35873 case NB_EV_VALIDATE
:
35874 case NB_EV_PREPARE
:
35878 return bgp_peer_group_afi_safi_flag_modify(
35879 args
, PEER_FLAG_SOFT_RECONFIG
,
35880 yang_dnode_get_bool(args
->dnode
, NULL
));
35890 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-labeled-unicast/weight/weight-attribute
35892 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_weight_weight_attribute_modify(
35893 struct nb_cb_modify_args
*args
)
35895 switch (args
->event
) {
35896 case NB_EV_VALIDATE
:
35897 case NB_EV_PREPARE
:
35901 return bgp_peer_group_afi_safi_weight_modify(args
);
35909 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_labeled_unicast_weight_weight_attribute_destroy(
35910 struct nb_cb_destroy_args
*args
)
35912 switch (args
->event
) {
35913 case NB_EV_VALIDATE
:
35914 case NB_EV_PREPARE
:
35918 return bgp_peer_group_afi_safi_weight_destroy(args
);
35928 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/add-paths/path-type
35930 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_add_paths_path_type_modify(
35931 struct nb_cb_modify_args
*args
)
35933 switch (args
->event
) {
35934 case NB_EV_VALIDATE
:
35935 case NB_EV_PREPARE
:
35938 /* TODO: implement me. */
35947 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/as-path-options/allow-own-as
35949 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_allow_own_as_modify(
35950 struct nb_cb_modify_args
*args
)
35952 switch (args
->event
) {
35953 case NB_EV_VALIDATE
:
35954 case NB_EV_PREPARE
:
35957 /* TODO: implement me. */
35964 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_allow_own_as_destroy(
35965 struct nb_cb_destroy_args
*args
)
35967 switch (args
->event
) {
35968 case NB_EV_VALIDATE
:
35969 case NB_EV_PREPARE
:
35972 /* TODO: implement me. */
35981 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/as-path-options/allow-own-origin-as
35983 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_allow_own_origin_as_modify(
35984 struct nb_cb_modify_args
*args
)
35986 switch (args
->event
) {
35987 case NB_EV_VALIDATE
:
35988 case NB_EV_PREPARE
:
35991 /* TODO: implement me. */
35998 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_allow_own_origin_as_destroy(
35999 struct nb_cb_destroy_args
*args
)
36001 switch (args
->event
) {
36002 case NB_EV_VALIDATE
:
36003 case NB_EV_PREPARE
:
36006 /* TODO: implement me. */
36015 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/as-path-options/replace-peer-as
36017 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_as_path_options_replace_peer_as_modify(
36018 struct nb_cb_modify_args
*args
)
36020 switch (args
->event
) {
36021 case NB_EV_VALIDATE
:
36022 case NB_EV_PREPARE
:
36026 return bgp_peer_group_afi_safi_flag_modify(
36027 args
, PEER_FLAG_AS_OVERRIDE
,
36028 yang_dnode_get_bool(args
->dnode
, NULL
));
36038 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/default-originate/originate
36040 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_default_originate_originate_modify(
36041 struct nb_cb_modify_args
*args
)
36043 switch (args
->event
) {
36044 case NB_EV_VALIDATE
:
36045 case NB_EV_PREPARE
:
36048 /* TODO: implement me. */
36057 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/default-originate/route-map
36059 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_default_originate_route_map_modify(
36060 struct nb_cb_modify_args
*args
)
36062 switch (args
->event
) {
36063 case NB_EV_VALIDATE
:
36064 case NB_EV_PREPARE
:
36067 /* TODO: implement me. */
36074 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_default_originate_route_map_destroy(
36075 struct nb_cb_destroy_args
*args
)
36077 switch (args
->event
) {
36078 case NB_EV_VALIDATE
:
36079 case NB_EV_PREPARE
:
36082 /* TODO: implement me. */
36091 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/attr-unchanged/as-path-unchanged
36093 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_attr_unchanged_as_path_unchanged_modify(
36094 struct nb_cb_modify_args
*args
)
36096 switch (args
->event
) {
36097 case NB_EV_VALIDATE
:
36098 case NB_EV_PREPARE
:
36102 return bgp_peer_group_afi_safi_flag_modify(
36103 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
36104 yang_dnode_get_bool(args
->dnode
, NULL
));
36114 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/attr-unchanged/next-hop-unchanged
36116 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_attr_unchanged_next_hop_unchanged_modify(
36117 struct nb_cb_modify_args
*args
)
36119 switch (args
->event
) {
36120 case NB_EV_VALIDATE
:
36121 case NB_EV_PREPARE
:
36125 return bgp_peer_group_afi_safi_flag_modify(
36126 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
36127 yang_dnode_get_bool(args
->dnode
, NULL
));
36137 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/attr-unchanged/med-unchanged
36139 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_attr_unchanged_med_unchanged_modify(
36140 struct nb_cb_modify_args
*args
)
36142 switch (args
->event
) {
36143 case NB_EV_VALIDATE
:
36144 case NB_EV_PREPARE
:
36148 return bgp_peer_group_afi_safi_flag_modify(
36149 args
, PEER_FLAG_MED_UNCHANGED
,
36150 yang_dnode_get_bool(args
->dnode
, NULL
));
36160 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/orf-capability/orf-send
36162 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_send_modify(
36163 struct nb_cb_modify_args
*args
)
36165 switch (args
->event
) {
36166 case NB_EV_VALIDATE
:
36167 case NB_EV_PREPARE
:
36170 /* TODO: implement me. */
36177 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_send_destroy(
36178 struct nb_cb_destroy_args
*args
)
36180 switch (args
->event
) {
36181 case NB_EV_VALIDATE
:
36182 case NB_EV_PREPARE
:
36185 /* TODO: implement me. */
36194 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/orf-capability/orf-receive
36196 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_receive_modify(
36197 struct nb_cb_modify_args
*args
)
36199 switch (args
->event
) {
36200 case NB_EV_VALIDATE
:
36201 case NB_EV_PREPARE
:
36204 /* TODO: implement me. */
36211 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_receive_destroy(
36212 struct nb_cb_destroy_args
*args
)
36214 switch (args
->event
) {
36215 case NB_EV_VALIDATE
:
36216 case NB_EV_PREPARE
:
36219 /* TODO: implement me. */
36228 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/orf-capability/orf-both
36230 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_both_modify(
36231 struct nb_cb_modify_args
*args
)
36233 switch (args
->event
) {
36234 case NB_EV_VALIDATE
:
36235 case NB_EV_PREPARE
:
36238 /* TODO: implement me. */
36245 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_orf_capability_orf_both_destroy(
36246 struct nb_cb_destroy_args
*args
)
36248 switch (args
->event
) {
36249 case NB_EV_VALIDATE
:
36250 case NB_EV_PREPARE
:
36253 /* TODO: implement me. */
36262 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list
36264 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_create(
36265 struct nb_cb_create_args
*args
)
36267 switch (args
->event
) {
36268 case NB_EV_VALIDATE
:
36269 case NB_EV_PREPARE
:
36272 /* TODO: implement me. */
36279 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_destroy(
36280 struct nb_cb_destroy_args
*args
)
36282 switch (args
->event
) {
36283 case NB_EV_VALIDATE
:
36284 case NB_EV_PREPARE
:
36288 return bgp_peer_group_afi_safi_prefix_limit_list_destroy(args
);
36296 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/max-prefixes
36298 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_max_prefixes_modify(
36299 struct nb_cb_modify_args
*args
)
36301 switch (args
->event
) {
36302 case NB_EV_VALIDATE
:
36303 case NB_EV_PREPARE
:
36306 /* TODO: implement me. */
36315 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/force-check
36317 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_force_check_modify(
36318 struct nb_cb_modify_args
*args
)
36320 switch (args
->event
) {
36321 case NB_EV_VALIDATE
:
36322 case NB_EV_PREPARE
:
36325 /* TODO: implement me. */
36334 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/warning-only
36336 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_warning_only_modify(
36337 struct nb_cb_modify_args
*args
)
36339 switch (args
->event
) {
36340 case NB_EV_VALIDATE
:
36341 case NB_EV_PREPARE
:
36344 /* TODO: implement me. */
36351 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_warning_only_destroy(
36352 struct nb_cb_destroy_args
*args
)
36354 switch (args
->event
) {
36355 case NB_EV_VALIDATE
:
36356 case NB_EV_PREPARE
:
36359 /* TODO: implement me. */
36368 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/restart-timer
36370 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_restart_timer_modify(
36371 struct nb_cb_modify_args
*args
)
36373 switch (args
->event
) {
36374 case NB_EV_VALIDATE
:
36375 case NB_EV_PREPARE
:
36378 /* TODO: implement me. */
36385 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
36386 struct nb_cb_destroy_args
*args
)
36388 switch (args
->event
) {
36389 case NB_EV_VALIDATE
:
36390 case NB_EV_PREPARE
:
36393 /* TODO: implement me. */
36402 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
36404 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
36405 struct nb_cb_modify_args
*args
)
36407 switch (args
->event
) {
36408 case NB_EV_VALIDATE
:
36409 case NB_EV_PREPARE
:
36412 /* TODO: implement me. */
36419 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
36420 struct nb_cb_destroy_args
*args
)
36422 switch (args
->event
) {
36423 case NB_EV_VALIDATE
:
36424 case NB_EV_PREPARE
:
36427 /* TODO: implement me. */
36436 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
36438 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
36439 struct nb_cb_modify_args
*args
)
36441 switch (args
->event
) {
36442 case NB_EV_VALIDATE
:
36443 case NB_EV_PREPARE
:
36446 /* TODO: implement me. */
36453 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
36454 struct nb_cb_destroy_args
*args
)
36456 switch (args
->event
) {
36457 case NB_EV_VALIDATE
:
36458 case NB_EV_PREPARE
:
36461 /* TODO: implement me. */
36470 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/tr-restart-timer
36472 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
36473 struct nb_cb_modify_args
*args
)
36475 switch (args
->event
) {
36476 case NB_EV_VALIDATE
:
36477 case NB_EV_PREPARE
:
36480 /* TODO: implement me. */
36487 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
36488 struct nb_cb_destroy_args
*args
)
36490 switch (args
->event
) {
36491 case NB_EV_VALIDATE
:
36492 case NB_EV_PREPARE
:
36495 /* TODO: implement me. */
36504 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
36506 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
36507 struct nb_cb_modify_args
*args
)
36509 switch (args
->event
) {
36510 case NB_EV_VALIDATE
:
36511 case NB_EV_PREPARE
:
36514 /* TODO: implement me. */
36521 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
36522 struct nb_cb_destroy_args
*args
)
36524 switch (args
->event
) {
36525 case NB_EV_VALIDATE
:
36526 case NB_EV_PREPARE
:
36529 /* TODO: implement me. */
36538 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/prefix-limit/direction-list/options/tw-warning-only
36540 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
36541 struct nb_cb_modify_args
*args
)
36543 switch (args
->event
) {
36544 case NB_EV_VALIDATE
:
36545 case NB_EV_PREPARE
:
36548 /* TODO: implement me. */
36555 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
36556 struct nb_cb_destroy_args
*args
)
36558 switch (args
->event
) {
36559 case NB_EV_VALIDATE
:
36560 case NB_EV_PREPARE
:
36563 /* TODO: implement me. */
36572 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/nexthop-self/next-hop-self
36574 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_nexthop_self_next_hop_self_modify(
36575 struct nb_cb_modify_args
*args
)
36577 switch (args
->event
) {
36578 case NB_EV_VALIDATE
:
36579 case NB_EV_PREPARE
:
36583 return bgp_peer_group_afi_safi_flag_modify(
36584 args
, PEER_FLAG_NEXTHOP_SELF
,
36585 yang_dnode_get_bool(args
->dnode
, NULL
));
36595 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/nexthop-self/next-hop-self-force
36597 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_nexthop_self_next_hop_self_force_modify(
36598 struct nb_cb_modify_args
*args
)
36600 switch (args
->event
) {
36601 case NB_EV_VALIDATE
:
36602 case NB_EV_PREPARE
:
36606 return bgp_peer_group_afi_safi_flag_modify(
36607 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
36608 yang_dnode_get_bool(args
->dnode
, NULL
));
36618 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/private-as/remove-private-as-all
36620 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_private_as_remove_private_as_all_modify(
36621 struct nb_cb_modify_args
*args
)
36623 switch (args
->event
) {
36624 case NB_EV_VALIDATE
:
36625 case NB_EV_PREPARE
:
36629 return bgp_peer_group_afi_safi_flag_modify(
36630 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
36631 yang_dnode_get_bool(args
->dnode
, NULL
));
36641 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/private-as/remove-private-as-all-replace
36643 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_private_as_remove_private_as_all_replace_modify(
36644 struct nb_cb_modify_args
*args
)
36646 switch (args
->event
) {
36647 case NB_EV_VALIDATE
:
36648 case NB_EV_PREPARE
:
36652 return bgp_peer_group_afi_safi_flag_modify(
36653 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
36654 yang_dnode_get_bool(args
->dnode
, NULL
));
36664 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/private-as/remove-private-as
36666 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_private_as_remove_private_as_modify(
36667 struct nb_cb_modify_args
*args
)
36669 switch (args
->event
) {
36670 case NB_EV_VALIDATE
:
36671 case NB_EV_PREPARE
:
36675 return bgp_peer_group_afi_safi_flag_modify(
36676 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
36677 yang_dnode_get_bool(args
->dnode
, NULL
));
36687 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/private-as/remove-private-as-replace
36689 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_private_as_remove_private_as_replace_modify(
36690 struct nb_cb_modify_args
*args
)
36692 switch (args
->event
) {
36693 case NB_EV_VALIDATE
:
36694 case NB_EV_PREPARE
:
36698 return bgp_peer_group_afi_safi_flag_modify(
36699 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
36700 yang_dnode_get_bool(args
->dnode
, NULL
));
36710 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/route-reflector/route-reflector-client
36712 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_route_reflector_route_reflector_client_modify(
36713 struct nb_cb_modify_args
*args
)
36715 switch (args
->event
) {
36716 case NB_EV_VALIDATE
:
36717 case NB_EV_PREPARE
:
36721 return bgp_peer_group_afi_safi_flag_modify(
36722 args
, PEER_FLAG_REFLECTOR_CLIENT
,
36723 yang_dnode_get_bool(args
->dnode
, NULL
));
36733 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/route-server/route-server-client
36735 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_route_server_route_server_client_modify(
36736 struct nb_cb_modify_args
*args
)
36738 switch (args
->event
) {
36739 case NB_EV_VALIDATE
:
36740 case NB_EV_PREPARE
:
36744 return bgp_peer_group_afi_safi_flag_modify(
36745 args
, PEER_FLAG_RSERVER_CLIENT
,
36746 yang_dnode_get_bool(args
->dnode
, NULL
));
36756 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/send-community/send-community
36758 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_send_community_send_community_modify(
36759 struct nb_cb_modify_args
*args
)
36761 switch (args
->event
) {
36762 case NB_EV_VALIDATE
:
36763 case NB_EV_PREPARE
:
36767 return bgp_peer_group_afi_safi_flag_modify(
36768 args
, PEER_FLAG_SEND_COMMUNITY
,
36769 yang_dnode_get_bool(args
->dnode
, NULL
));
36779 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/send-community/send-ext-community
36781 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_send_community_send_ext_community_modify(
36782 struct nb_cb_modify_args
*args
)
36784 switch (args
->event
) {
36785 case NB_EV_VALIDATE
:
36786 case NB_EV_PREPARE
:
36790 return bgp_peer_group_afi_safi_flag_modify(
36791 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
36792 yang_dnode_get_bool(args
->dnode
, NULL
));
36802 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/send-community/send-large-community
36804 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_send_community_send_large_community_modify(
36805 struct nb_cb_modify_args
*args
)
36807 switch (args
->event
) {
36808 case NB_EV_VALIDATE
:
36809 case NB_EV_PREPARE
:
36813 return bgp_peer_group_afi_safi_flag_modify(
36814 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
36815 yang_dnode_get_bool(args
->dnode
, NULL
));
36825 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/soft-reconfiguration
36827 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_soft_reconfiguration_modify(
36828 struct nb_cb_modify_args
*args
)
36830 switch (args
->event
) {
36831 case NB_EV_VALIDATE
:
36832 case NB_EV_PREPARE
:
36836 return bgp_peer_group_afi_safi_flag_modify(
36837 args
, PEER_FLAG_SOFT_RECONFIG
,
36838 yang_dnode_get_bool(args
->dnode
, NULL
));
36848 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-labeled-unicast/weight/weight-attribute
36850 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_weight_weight_attribute_modify(
36851 struct nb_cb_modify_args
*args
)
36853 switch (args
->event
) {
36854 case NB_EV_VALIDATE
:
36855 case NB_EV_PREPARE
:
36859 return bgp_peer_group_afi_safi_weight_modify(args
);
36867 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_labeled_unicast_weight_weight_attribute_destroy(
36868 struct nb_cb_destroy_args
*args
)
36870 switch (args
->event
) {
36871 case NB_EV_VALIDATE
:
36872 case NB_EV_PREPARE
:
36876 return bgp_peer_group_afi_safi_weight_destroy(args
);
36886 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/add-paths/path-type
36888 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_add_paths_path_type_modify(
36889 struct nb_cb_modify_args
*args
)
36891 switch (args
->event
) {
36892 case NB_EV_VALIDATE
:
36893 case NB_EV_PREPARE
:
36896 /* TODO: implement me. */
36905 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/as-path-options/allow-own-as
36907 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_allow_own_as_modify(
36908 struct nb_cb_modify_args
*args
)
36910 switch (args
->event
) {
36911 case NB_EV_VALIDATE
:
36912 case NB_EV_PREPARE
:
36915 /* TODO: implement me. */
36922 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_allow_own_as_destroy(
36923 struct nb_cb_destroy_args
*args
)
36925 switch (args
->event
) {
36926 case NB_EV_VALIDATE
:
36927 case NB_EV_PREPARE
:
36930 /* TODO: implement me. */
36939 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/as-path-options/allow-own-origin-as
36941 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_allow_own_origin_as_modify(
36942 struct nb_cb_modify_args
*args
)
36944 switch (args
->event
) {
36945 case NB_EV_VALIDATE
:
36946 case NB_EV_PREPARE
:
36949 /* TODO: implement me. */
36956 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_allow_own_origin_as_destroy(
36957 struct nb_cb_destroy_args
*args
)
36959 switch (args
->event
) {
36960 case NB_EV_VALIDATE
:
36961 case NB_EV_PREPARE
:
36964 /* TODO: implement me. */
36973 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/as-path-options/replace-peer-as
36975 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_as_path_options_replace_peer_as_modify(
36976 struct nb_cb_modify_args
*args
)
36978 switch (args
->event
) {
36979 case NB_EV_VALIDATE
:
36980 case NB_EV_PREPARE
:
36984 return bgp_peer_group_afi_safi_flag_modify(
36985 args
, PEER_FLAG_AS_OVERRIDE
,
36986 yang_dnode_get_bool(args
->dnode
, NULL
));
36996 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/attr-unchanged/as-path-unchanged
36998 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_attr_unchanged_as_path_unchanged_modify(
36999 struct nb_cb_modify_args
*args
)
37001 switch (args
->event
) {
37002 case NB_EV_VALIDATE
:
37003 case NB_EV_PREPARE
:
37007 return bgp_peer_group_afi_safi_flag_modify(
37008 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
37009 yang_dnode_get_bool(args
->dnode
, NULL
));
37019 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/attr-unchanged/next-hop-unchanged
37021 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_attr_unchanged_next_hop_unchanged_modify(
37022 struct nb_cb_modify_args
*args
)
37024 switch (args
->event
) {
37025 case NB_EV_VALIDATE
:
37026 case NB_EV_PREPARE
:
37030 return bgp_peer_group_afi_safi_flag_modify(
37031 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
37032 yang_dnode_get_bool(args
->dnode
, NULL
));
37042 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/attr-unchanged/med-unchanged
37044 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_attr_unchanged_med_unchanged_modify(
37045 struct nb_cb_modify_args
*args
)
37047 switch (args
->event
) {
37048 case NB_EV_VALIDATE
:
37049 case NB_EV_PREPARE
:
37053 return bgp_peer_group_afi_safi_flag_modify(
37054 args
, PEER_FLAG_MED_UNCHANGED
,
37055 yang_dnode_get_bool(args
->dnode
, NULL
));
37065 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list
37067 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_create(
37068 struct nb_cb_create_args
*args
)
37070 switch (args
->event
) {
37071 case NB_EV_VALIDATE
:
37072 case NB_EV_PREPARE
:
37075 /* TODO: implement me. */
37082 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_destroy(
37083 struct nb_cb_destroy_args
*args
)
37085 switch (args
->event
) {
37086 case NB_EV_VALIDATE
:
37087 case NB_EV_PREPARE
:
37091 return bgp_peer_group_afi_safi_prefix_limit_list_destroy(args
);
37099 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/max-prefixes
37101 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_max_prefixes_modify(
37102 struct nb_cb_modify_args
*args
)
37104 switch (args
->event
) {
37105 case NB_EV_VALIDATE
:
37106 case NB_EV_PREPARE
:
37109 /* TODO: implement me. */
37118 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/force-check
37120 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_force_check_modify(
37121 struct nb_cb_modify_args
*args
)
37123 switch (args
->event
) {
37124 case NB_EV_VALIDATE
:
37125 case NB_EV_PREPARE
:
37128 /* TODO: implement me. */
37137 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/warning-only
37139 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_warning_only_modify(
37140 struct nb_cb_modify_args
*args
)
37142 switch (args
->event
) {
37143 case NB_EV_VALIDATE
:
37144 case NB_EV_PREPARE
:
37147 /* TODO: implement me. */
37154 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_warning_only_destroy(
37155 struct nb_cb_destroy_args
*args
)
37157 switch (args
->event
) {
37158 case NB_EV_VALIDATE
:
37159 case NB_EV_PREPARE
:
37162 /* TODO: implement me. */
37171 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/restart-timer
37173 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_restart_timer_modify(
37174 struct nb_cb_modify_args
*args
)
37176 switch (args
->event
) {
37177 case NB_EV_VALIDATE
:
37178 case NB_EV_PREPARE
:
37181 /* TODO: implement me. */
37188 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
37189 struct nb_cb_destroy_args
*args
)
37191 switch (args
->event
) {
37192 case NB_EV_VALIDATE
:
37193 case NB_EV_PREPARE
:
37196 /* TODO: implement me. */
37205 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
37207 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
37208 struct nb_cb_modify_args
*args
)
37210 switch (args
->event
) {
37211 case NB_EV_VALIDATE
:
37212 case NB_EV_PREPARE
:
37215 /* TODO: implement me. */
37222 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
37223 struct nb_cb_destroy_args
*args
)
37225 switch (args
->event
) {
37226 case NB_EV_VALIDATE
:
37227 case NB_EV_PREPARE
:
37230 /* TODO: implement me. */
37239 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
37241 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
37242 struct nb_cb_modify_args
*args
)
37244 switch (args
->event
) {
37245 case NB_EV_VALIDATE
:
37246 case NB_EV_PREPARE
:
37249 /* TODO: implement me. */
37256 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
37257 struct nb_cb_destroy_args
*args
)
37259 switch (args
->event
) {
37260 case NB_EV_VALIDATE
:
37261 case NB_EV_PREPARE
:
37264 /* TODO: implement me. */
37273 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/tr-restart-timer
37275 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
37276 struct nb_cb_modify_args
*args
)
37278 switch (args
->event
) {
37279 case NB_EV_VALIDATE
:
37280 case NB_EV_PREPARE
:
37283 /* TODO: implement me. */
37290 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
37291 struct nb_cb_destroy_args
*args
)
37293 switch (args
->event
) {
37294 case NB_EV_VALIDATE
:
37295 case NB_EV_PREPARE
:
37298 /* TODO: implement me. */
37307 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
37309 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
37310 struct nb_cb_modify_args
*args
)
37312 switch (args
->event
) {
37313 case NB_EV_VALIDATE
:
37314 case NB_EV_PREPARE
:
37317 /* TODO: implement me. */
37324 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
37325 struct nb_cb_destroy_args
*args
)
37327 switch (args
->event
) {
37328 case NB_EV_VALIDATE
:
37329 case NB_EV_PREPARE
:
37332 /* TODO: implement me. */
37341 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/prefix-limit/direction-list/options/tw-warning-only
37343 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
37344 struct nb_cb_modify_args
*args
)
37346 switch (args
->event
) {
37347 case NB_EV_VALIDATE
:
37348 case NB_EV_PREPARE
:
37351 /* TODO: implement me. */
37358 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
37359 struct nb_cb_destroy_args
*args
)
37361 switch (args
->event
) {
37362 case NB_EV_VALIDATE
:
37363 case NB_EV_PREPARE
:
37366 /* TODO: implement me. */
37375 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/nexthop-self/next-hop-self
37377 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_nexthop_self_next_hop_self_modify(
37378 struct nb_cb_modify_args
*args
)
37380 switch (args
->event
) {
37381 case NB_EV_VALIDATE
:
37382 case NB_EV_PREPARE
:
37386 return bgp_peer_group_afi_safi_flag_modify(
37387 args
, PEER_FLAG_NEXTHOP_SELF
,
37388 yang_dnode_get_bool(args
->dnode
, NULL
));
37398 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/nexthop-self/next-hop-self-force
37400 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_nexthop_self_next_hop_self_force_modify(
37401 struct nb_cb_modify_args
*args
)
37403 switch (args
->event
) {
37404 case NB_EV_VALIDATE
:
37405 case NB_EV_PREPARE
:
37409 return bgp_peer_group_afi_safi_flag_modify(
37410 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
37411 yang_dnode_get_bool(args
->dnode
, NULL
));
37421 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/private-as/remove-private-as-all
37423 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_private_as_remove_private_as_all_modify(
37424 struct nb_cb_modify_args
*args
)
37426 switch (args
->event
) {
37427 case NB_EV_VALIDATE
:
37428 case NB_EV_PREPARE
:
37432 return bgp_peer_group_afi_safi_flag_modify(
37433 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
37434 yang_dnode_get_bool(args
->dnode
, NULL
));
37444 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/private-as/remove-private-as-all-replace
37446 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_private_as_remove_private_as_all_replace_modify(
37447 struct nb_cb_modify_args
*args
)
37449 switch (args
->event
) {
37450 case NB_EV_VALIDATE
:
37451 case NB_EV_PREPARE
:
37455 return bgp_peer_group_afi_safi_flag_modify(
37456 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
37457 yang_dnode_get_bool(args
->dnode
, NULL
));
37467 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/private-as/remove-private-as
37469 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_private_as_remove_private_as_modify(
37470 struct nb_cb_modify_args
*args
)
37472 switch (args
->event
) {
37473 case NB_EV_VALIDATE
:
37474 case NB_EV_PREPARE
:
37478 return bgp_peer_group_afi_safi_flag_modify(
37479 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
37480 yang_dnode_get_bool(args
->dnode
, NULL
));
37490 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/private-as/remove-private-as-replace
37492 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_private_as_remove_private_as_replace_modify(
37493 struct nb_cb_modify_args
*args
)
37495 switch (args
->event
) {
37496 case NB_EV_VALIDATE
:
37497 case NB_EV_PREPARE
:
37501 return bgp_peer_group_afi_safi_flag_modify(
37502 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
37503 yang_dnode_get_bool(args
->dnode
, NULL
));
37513 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/route-reflector/route-reflector-client
37515 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_route_reflector_route_reflector_client_modify(
37516 struct nb_cb_modify_args
*args
)
37518 switch (args
->event
) {
37519 case NB_EV_VALIDATE
:
37520 case NB_EV_PREPARE
:
37524 return bgp_peer_group_afi_safi_flag_modify(
37525 args
, PEER_FLAG_REFLECTOR_CLIENT
,
37526 yang_dnode_get_bool(args
->dnode
, NULL
));
37536 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/route-server/route-server-client
37538 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_route_server_route_server_client_modify(
37539 struct nb_cb_modify_args
*args
)
37541 switch (args
->event
) {
37542 case NB_EV_VALIDATE
:
37543 case NB_EV_PREPARE
:
37547 return bgp_peer_group_afi_safi_flag_modify(
37548 args
, PEER_FLAG_RSERVER_CLIENT
,
37549 yang_dnode_get_bool(args
->dnode
, NULL
));
37559 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/send-community/send-community
37561 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_send_community_send_community_modify(
37562 struct nb_cb_modify_args
*args
)
37564 switch (args
->event
) {
37565 case NB_EV_VALIDATE
:
37566 case NB_EV_PREPARE
:
37570 return bgp_peer_group_afi_safi_flag_modify(
37571 args
, PEER_FLAG_SEND_COMMUNITY
,
37572 yang_dnode_get_bool(args
->dnode
, NULL
));
37582 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/send-community/send-ext-community
37584 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_send_community_send_ext_community_modify(
37585 struct nb_cb_modify_args
*args
)
37587 switch (args
->event
) {
37588 case NB_EV_VALIDATE
:
37589 case NB_EV_PREPARE
:
37593 return bgp_peer_group_afi_safi_flag_modify(
37594 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
37595 yang_dnode_get_bool(args
->dnode
, NULL
));
37605 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/send-community/send-large-community
37607 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_send_community_send_large_community_modify(
37608 struct nb_cb_modify_args
*args
)
37610 switch (args
->event
) {
37611 case NB_EV_VALIDATE
:
37612 case NB_EV_PREPARE
:
37616 return bgp_peer_group_afi_safi_flag_modify(
37617 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
37618 yang_dnode_get_bool(args
->dnode
, NULL
));
37628 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/soft-reconfiguration
37630 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_soft_reconfiguration_modify(
37631 struct nb_cb_modify_args
*args
)
37633 switch (args
->event
) {
37634 case NB_EV_VALIDATE
:
37635 case NB_EV_PREPARE
:
37639 return bgp_peer_group_afi_safi_flag_modify(
37640 args
, PEER_FLAG_SOFT_RECONFIG
,
37641 yang_dnode_get_bool(args
->dnode
, NULL
));
37651 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv4-unicast/weight/weight-attribute
37653 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_weight_weight_attribute_modify(
37654 struct nb_cb_modify_args
*args
)
37656 switch (args
->event
) {
37657 case NB_EV_VALIDATE
:
37658 case NB_EV_PREPARE
:
37662 return bgp_peer_group_afi_safi_weight_modify(args
);
37670 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv4_unicast_weight_weight_attribute_destroy(
37671 struct nb_cb_destroy_args
*args
)
37673 switch (args
->event
) {
37674 case NB_EV_VALIDATE
:
37675 case NB_EV_PREPARE
:
37679 return bgp_peer_group_afi_safi_weight_destroy(args
);
37689 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/add-paths/path-type
37691 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_add_paths_path_type_modify(
37692 struct nb_cb_modify_args
*args
)
37694 switch (args
->event
) {
37695 case NB_EV_VALIDATE
:
37696 case NB_EV_PREPARE
:
37699 /* TODO: implement me. */
37708 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/as-path-options/allow-own-as
37710 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_allow_own_as_modify(
37711 struct nb_cb_modify_args
*args
)
37713 switch (args
->event
) {
37714 case NB_EV_VALIDATE
:
37715 case NB_EV_PREPARE
:
37718 /* TODO: implement me. */
37725 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_allow_own_as_destroy(
37726 struct nb_cb_destroy_args
*args
)
37728 switch (args
->event
) {
37729 case NB_EV_VALIDATE
:
37730 case NB_EV_PREPARE
:
37733 /* TODO: implement me. */
37742 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/as-path-options/allow-own-origin-as
37744 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_allow_own_origin_as_modify(
37745 struct nb_cb_modify_args
*args
)
37747 switch (args
->event
) {
37748 case NB_EV_VALIDATE
:
37749 case NB_EV_PREPARE
:
37752 /* TODO: implement me. */
37759 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_allow_own_origin_as_destroy(
37760 struct nb_cb_destroy_args
*args
)
37762 switch (args
->event
) {
37763 case NB_EV_VALIDATE
:
37764 case NB_EV_PREPARE
:
37767 /* TODO: implement me. */
37776 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/as-path-options/replace-peer-as
37778 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_as_path_options_replace_peer_as_modify(
37779 struct nb_cb_modify_args
*args
)
37781 switch (args
->event
) {
37782 case NB_EV_VALIDATE
:
37783 case NB_EV_PREPARE
:
37787 return bgp_peer_group_afi_safi_flag_modify(
37788 args
, PEER_FLAG_AS_OVERRIDE
,
37789 yang_dnode_get_bool(args
->dnode
, NULL
));
37799 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/attr-unchanged/as-path-unchanged
37801 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_attr_unchanged_as_path_unchanged_modify(
37802 struct nb_cb_modify_args
*args
)
37804 switch (args
->event
) {
37805 case NB_EV_VALIDATE
:
37806 case NB_EV_PREPARE
:
37810 return bgp_peer_group_afi_safi_flag_modify(
37811 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
37812 yang_dnode_get_bool(args
->dnode
, NULL
));
37822 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/attr-unchanged/next-hop-unchanged
37824 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_attr_unchanged_next_hop_unchanged_modify(
37825 struct nb_cb_modify_args
*args
)
37827 switch (args
->event
) {
37828 case NB_EV_VALIDATE
:
37829 case NB_EV_PREPARE
:
37833 return bgp_peer_group_afi_safi_flag_modify(
37834 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
37835 yang_dnode_get_bool(args
->dnode
, NULL
));
37845 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/attr-unchanged/med-unchanged
37847 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_attr_unchanged_med_unchanged_modify(
37848 struct nb_cb_modify_args
*args
)
37850 switch (args
->event
) {
37851 case NB_EV_VALIDATE
:
37852 case NB_EV_PREPARE
:
37856 return bgp_peer_group_afi_safi_flag_modify(
37857 args
, PEER_FLAG_MED_UNCHANGED
,
37858 yang_dnode_get_bool(args
->dnode
, NULL
));
37868 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list
37870 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_create(
37871 struct nb_cb_create_args
*args
)
37873 switch (args
->event
) {
37874 case NB_EV_VALIDATE
:
37875 case NB_EV_PREPARE
:
37878 /* TODO: implement me. */
37885 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_destroy(
37886 struct nb_cb_destroy_args
*args
)
37888 switch (args
->event
) {
37889 case NB_EV_VALIDATE
:
37890 case NB_EV_PREPARE
:
37894 return bgp_peer_group_afi_safi_prefix_limit_list_destroy(args
);
37902 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/max-prefixes
37904 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_max_prefixes_modify(
37905 struct nb_cb_modify_args
*args
)
37907 switch (args
->event
) {
37908 case NB_EV_VALIDATE
:
37909 case NB_EV_PREPARE
:
37912 /* TODO: implement me. */
37921 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/force-check
37923 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_force_check_modify(
37924 struct nb_cb_modify_args
*args
)
37926 switch (args
->event
) {
37927 case NB_EV_VALIDATE
:
37928 case NB_EV_PREPARE
:
37931 /* TODO: implement me. */
37940 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/warning-only
37942 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_warning_only_modify(
37943 struct nb_cb_modify_args
*args
)
37945 switch (args
->event
) {
37946 case NB_EV_VALIDATE
:
37947 case NB_EV_PREPARE
:
37950 /* TODO: implement me. */
37957 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_warning_only_destroy(
37958 struct nb_cb_destroy_args
*args
)
37960 switch (args
->event
) {
37961 case NB_EV_VALIDATE
:
37962 case NB_EV_PREPARE
:
37965 /* TODO: implement me. */
37974 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/restart-timer
37976 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_restart_timer_modify(
37977 struct nb_cb_modify_args
*args
)
37979 switch (args
->event
) {
37980 case NB_EV_VALIDATE
:
37981 case NB_EV_PREPARE
:
37984 /* TODO: implement me. */
37991 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_restart_timer_destroy(
37992 struct nb_cb_destroy_args
*args
)
37994 switch (args
->event
) {
37995 case NB_EV_VALIDATE
:
37996 case NB_EV_PREPARE
:
37999 /* TODO: implement me. */
38008 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/shutdown-threshold-pct
38010 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_modify(
38011 struct nb_cb_modify_args
*args
)
38013 switch (args
->event
) {
38014 case NB_EV_VALIDATE
:
38015 case NB_EV_PREPARE
:
38018 /* TODO: implement me. */
38025 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_shutdown_threshold_pct_destroy(
38026 struct nb_cb_destroy_args
*args
)
38028 switch (args
->event
) {
38029 case NB_EV_VALIDATE
:
38030 case NB_EV_PREPARE
:
38033 /* TODO: implement me. */
38042 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/tr-shutdown-threshold-pct
38044 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_modify(
38045 struct nb_cb_modify_args
*args
)
38047 switch (args
->event
) {
38048 case NB_EV_VALIDATE
:
38049 case NB_EV_PREPARE
:
38052 /* TODO: implement me. */
38059 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tr_shutdown_threshold_pct_destroy(
38060 struct nb_cb_destroy_args
*args
)
38062 switch (args
->event
) {
38063 case NB_EV_VALIDATE
:
38064 case NB_EV_PREPARE
:
38067 /* TODO: implement me. */
38076 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/tr-restart-timer
38078 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tr_restart_timer_modify(
38079 struct nb_cb_modify_args
*args
)
38081 switch (args
->event
) {
38082 case NB_EV_VALIDATE
:
38083 case NB_EV_PREPARE
:
38086 /* TODO: implement me. */
38093 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tr_restart_timer_destroy(
38094 struct nb_cb_destroy_args
*args
)
38096 switch (args
->event
) {
38097 case NB_EV_VALIDATE
:
38098 case NB_EV_PREPARE
:
38101 /* TODO: implement me. */
38110 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/tw-shutdown-threshold-pct
38112 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_modify(
38113 struct nb_cb_modify_args
*args
)
38115 switch (args
->event
) {
38116 case NB_EV_VALIDATE
:
38117 case NB_EV_PREPARE
:
38120 /* TODO: implement me. */
38127 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tw_shutdown_threshold_pct_destroy(
38128 struct nb_cb_destroy_args
*args
)
38130 switch (args
->event
) {
38131 case NB_EV_VALIDATE
:
38132 case NB_EV_PREPARE
:
38135 /* TODO: implement me. */
38144 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/prefix-limit/direction-list/options/tw-warning-only
38146 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tw_warning_only_modify(
38147 struct nb_cb_modify_args
*args
)
38149 switch (args
->event
) {
38150 case NB_EV_VALIDATE
:
38151 case NB_EV_PREPARE
:
38154 /* TODO: implement me. */
38161 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_prefix_limit_direction_list_options_tw_warning_only_destroy(
38162 struct nb_cb_destroy_args
*args
)
38164 switch (args
->event
) {
38165 case NB_EV_VALIDATE
:
38166 case NB_EV_PREPARE
:
38169 /* TODO: implement me. */
38178 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/nexthop-self/next-hop-self
38180 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_nexthop_self_next_hop_self_modify(
38181 struct nb_cb_modify_args
*args
)
38183 switch (args
->event
) {
38184 case NB_EV_VALIDATE
:
38185 case NB_EV_PREPARE
:
38189 return bgp_peer_group_afi_safi_flag_modify(
38190 args
, PEER_FLAG_NEXTHOP_SELF
,
38191 yang_dnode_get_bool(args
->dnode
, NULL
));
38201 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/nexthop-self/next-hop-self-force
38203 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_nexthop_self_next_hop_self_force_modify(
38204 struct nb_cb_modify_args
*args
)
38206 switch (args
->event
) {
38207 case NB_EV_VALIDATE
:
38208 case NB_EV_PREPARE
:
38212 return bgp_peer_group_afi_safi_flag_modify(
38213 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
38214 yang_dnode_get_bool(args
->dnode
, NULL
));
38224 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/private-as/remove-private-as-all
38226 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_private_as_remove_private_as_all_modify(
38227 struct nb_cb_modify_args
*args
)
38229 switch (args
->event
) {
38230 case NB_EV_VALIDATE
:
38231 case NB_EV_PREPARE
:
38235 return bgp_peer_group_afi_safi_flag_modify(
38236 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL
,
38237 yang_dnode_get_bool(args
->dnode
, NULL
));
38247 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/private-as/remove-private-as-all-replace
38249 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_private_as_remove_private_as_all_replace_modify(
38250 struct nb_cb_modify_args
*args
)
38252 switch (args
->event
) {
38253 case NB_EV_VALIDATE
:
38254 case NB_EV_PREPARE
:
38258 return bgp_peer_group_afi_safi_flag_modify(
38259 args
, PEER_FLAG_REMOVE_PRIVATE_AS_ALL_REPLACE
,
38260 yang_dnode_get_bool(args
->dnode
, NULL
));
38270 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/private-as/remove-private-as
38272 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_private_as_remove_private_as_modify(
38273 struct nb_cb_modify_args
*args
)
38275 switch (args
->event
) {
38276 case NB_EV_VALIDATE
:
38277 case NB_EV_PREPARE
:
38281 return bgp_peer_group_afi_safi_flag_modify(
38282 args
, PEER_FLAG_REMOVE_PRIVATE_AS
,
38283 yang_dnode_get_bool(args
->dnode
, NULL
));
38293 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/private-as/remove-private-as-replace
38295 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_private_as_remove_private_as_replace_modify(
38296 struct nb_cb_modify_args
*args
)
38298 switch (args
->event
) {
38299 case NB_EV_VALIDATE
:
38300 case NB_EV_PREPARE
:
38304 return bgp_peer_group_afi_safi_flag_modify(
38305 args
, PEER_FLAG_REMOVE_PRIVATE_AS_REPLACE
,
38306 yang_dnode_get_bool(args
->dnode
, NULL
));
38316 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/route-reflector/route-reflector-client
38318 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_route_reflector_route_reflector_client_modify(
38319 struct nb_cb_modify_args
*args
)
38321 switch (args
->event
) {
38322 case NB_EV_VALIDATE
:
38323 case NB_EV_PREPARE
:
38327 return bgp_peer_group_afi_safi_flag_modify(
38328 args
, PEER_FLAG_REFLECTOR_CLIENT
,
38329 yang_dnode_get_bool(args
->dnode
, NULL
));
38339 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/route-server/route-server-client
38341 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_route_server_route_server_client_modify(
38342 struct nb_cb_modify_args
*args
)
38344 switch (args
->event
) {
38345 case NB_EV_VALIDATE
:
38346 case NB_EV_PREPARE
:
38350 return bgp_peer_group_afi_safi_flag_modify(
38351 args
, PEER_FLAG_RSERVER_CLIENT
,
38352 yang_dnode_get_bool(args
->dnode
, NULL
));
38362 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/send-community/send-community
38364 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_send_community_send_community_modify(
38365 struct nb_cb_modify_args
*args
)
38367 switch (args
->event
) {
38368 case NB_EV_VALIDATE
:
38369 case NB_EV_PREPARE
:
38373 return bgp_peer_group_afi_safi_flag_modify(
38374 args
, PEER_FLAG_SEND_COMMUNITY
,
38375 yang_dnode_get_bool(args
->dnode
, NULL
));
38385 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/send-community/send-ext-community
38387 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_send_community_send_ext_community_modify(
38388 struct nb_cb_modify_args
*args
)
38390 switch (args
->event
) {
38391 case NB_EV_VALIDATE
:
38392 case NB_EV_PREPARE
:
38396 return bgp_peer_group_afi_safi_flag_modify(
38397 args
, PEER_FLAG_SEND_EXT_COMMUNITY
,
38398 yang_dnode_get_bool(args
->dnode
, NULL
));
38408 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/send-community/send-large-community
38410 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_send_community_send_large_community_modify(
38411 struct nb_cb_modify_args
*args
)
38413 switch (args
->event
) {
38414 case NB_EV_VALIDATE
:
38415 case NB_EV_PREPARE
:
38419 return bgp_peer_group_afi_safi_flag_modify(
38420 args
, PEER_FLAG_SEND_LARGE_COMMUNITY
,
38421 yang_dnode_get_bool(args
->dnode
, NULL
));
38431 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/soft-reconfiguration
38433 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_soft_reconfiguration_modify(
38434 struct nb_cb_modify_args
*args
)
38436 switch (args
->event
) {
38437 case NB_EV_VALIDATE
:
38438 case NB_EV_PREPARE
:
38442 return bgp_peer_group_afi_safi_flag_modify(
38443 args
, PEER_FLAG_SOFT_RECONFIG
,
38444 yang_dnode_get_bool(args
->dnode
, NULL
));
38454 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l3vpn-ipv6-unicast/weight/weight-attribute
38456 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_weight_weight_attribute_modify(
38457 struct nb_cb_modify_args
*args
)
38459 switch (args
->event
) {
38460 case NB_EV_VALIDATE
:
38461 case NB_EV_PREPARE
:
38465 return bgp_peer_group_afi_safi_weight_modify(args
);
38473 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l3vpn_ipv6_unicast_weight_weight_attribute_destroy(
38474 struct nb_cb_destroy_args
*args
)
38476 switch (args
->event
) {
38477 case NB_EV_VALIDATE
:
38478 case NB_EV_PREPARE
:
38482 return bgp_peer_group_afi_safi_weight_destroy(args
);
38492 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l2vpn-evpn/as-path-options/allow-own-as
38494 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_as_path_options_allow_own_as_modify(
38495 struct nb_cb_modify_args
*args
)
38497 switch (args
->event
) {
38498 case NB_EV_VALIDATE
:
38499 case NB_EV_PREPARE
:
38502 /* TODO: implement me. */
38509 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_as_path_options_allow_own_as_destroy(
38510 struct nb_cb_destroy_args
*args
)
38512 switch (args
->event
) {
38513 case NB_EV_VALIDATE
:
38514 case NB_EV_PREPARE
:
38517 /* TODO: implement me. */
38526 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l2vpn-evpn/as-path-options/allow-own-origin-as
38528 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_as_path_options_allow_own_origin_as_modify(
38529 struct nb_cb_modify_args
*args
)
38531 switch (args
->event
) {
38532 case NB_EV_VALIDATE
:
38533 case NB_EV_PREPARE
:
38536 /* TODO: implement me. */
38543 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_as_path_options_allow_own_origin_as_destroy(
38544 struct nb_cb_destroy_args
*args
)
38546 switch (args
->event
) {
38547 case NB_EV_VALIDATE
:
38548 case NB_EV_PREPARE
:
38551 /* TODO: implement me. */
38560 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l2vpn-evpn/as-path-options/replace-peer-as
38562 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_as_path_options_replace_peer_as_modify(
38563 struct nb_cb_modify_args
*args
)
38565 switch (args
->event
) {
38566 case NB_EV_VALIDATE
:
38567 case NB_EV_PREPARE
:
38571 return bgp_peer_group_afi_safi_flag_modify(
38572 args
, PEER_FLAG_AS_OVERRIDE
,
38573 yang_dnode_get_bool(args
->dnode
, NULL
));
38583 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l2vpn-evpn/attr-unchanged/as-path-unchanged
38585 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_attr_unchanged_as_path_unchanged_modify(
38586 struct nb_cb_modify_args
*args
)
38588 switch (args
->event
) {
38589 case NB_EV_VALIDATE
:
38590 case NB_EV_PREPARE
:
38594 return bgp_peer_group_afi_safi_flag_modify(
38595 args
, PEER_FLAG_AS_PATH_UNCHANGED
,
38596 yang_dnode_get_bool(args
->dnode
, NULL
));
38606 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l2vpn-evpn/attr-unchanged/next-hop-unchanged
38608 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_attr_unchanged_next_hop_unchanged_modify(
38609 struct nb_cb_modify_args
*args
)
38611 switch (args
->event
) {
38612 case NB_EV_VALIDATE
:
38613 case NB_EV_PREPARE
:
38617 return bgp_peer_group_afi_safi_flag_modify(
38618 args
, PEER_FLAG_NEXTHOP_UNCHANGED
,
38619 yang_dnode_get_bool(args
->dnode
, NULL
));
38629 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l2vpn-evpn/attr-unchanged/med-unchanged
38631 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_attr_unchanged_med_unchanged_modify(
38632 struct nb_cb_modify_args
*args
)
38634 switch (args
->event
) {
38635 case NB_EV_VALIDATE
:
38636 case NB_EV_PREPARE
:
38640 return bgp_peer_group_afi_safi_flag_modify(
38641 args
, PEER_FLAG_MED_UNCHANGED
,
38642 yang_dnode_get_bool(args
->dnode
, NULL
));
38652 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l2vpn-evpn/nexthop-self/next-hop-self
38654 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_nexthop_self_next_hop_self_modify(
38655 struct nb_cb_modify_args
*args
)
38657 switch (args
->event
) {
38658 case NB_EV_VALIDATE
:
38659 case NB_EV_PREPARE
:
38663 return bgp_peer_group_afi_safi_flag_modify(
38664 args
, PEER_FLAG_NEXTHOP_SELF
,
38665 yang_dnode_get_bool(args
->dnode
, NULL
));
38675 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l2vpn-evpn/nexthop-self/next-hop-self-force
38677 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_nexthop_self_next_hop_self_force_modify(
38678 struct nb_cb_modify_args
*args
)
38680 switch (args
->event
) {
38681 case NB_EV_VALIDATE
:
38682 case NB_EV_PREPARE
:
38686 return bgp_peer_group_afi_safi_flag_modify(
38687 args
, PEER_FLAG_FORCE_NEXTHOP_SELF
,
38688 yang_dnode_get_bool(args
->dnode
, NULL
));
38698 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l2vpn-evpn/route-reflector/route-reflector-client
38700 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_route_reflector_route_reflector_client_modify(
38701 struct nb_cb_modify_args
*args
)
38703 switch (args
->event
) {
38704 case NB_EV_VALIDATE
:
38705 case NB_EV_PREPARE
:
38709 return bgp_peer_group_afi_safi_flag_modify(
38710 args
, PEER_FLAG_REFLECTOR_CLIENT
,
38711 yang_dnode_get_bool(args
->dnode
, NULL
));
38721 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l2vpn-evpn/route-server/route-server-client
38723 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_route_server_route_server_client_modify(
38724 struct nb_cb_modify_args
*args
)
38726 switch (args
->event
) {
38727 case NB_EV_VALIDATE
:
38728 case NB_EV_PREPARE
:
38732 return bgp_peer_group_afi_safi_flag_modify(
38733 args
, PEER_FLAG_RSERVER_CLIENT
,
38734 yang_dnode_get_bool(args
->dnode
, NULL
));
38744 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/l2vpn-evpn/soft-reconfiguration
38746 int bgp_peer_groups_peer_group_afi_safis_afi_safi_l2vpn_evpn_soft_reconfiguration_modify(
38747 struct nb_cb_modify_args
*args
)
38749 switch (args
->event
) {
38750 case NB_EV_VALIDATE
:
38751 case NB_EV_PREPARE
:
38755 return bgp_peer_group_afi_safi_flag_modify(
38756 args
, PEER_FLAG_SOFT_RECONFIG
,
38757 yang_dnode_get_bool(args
->dnode
, NULL
));
38767 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-flowspec/route-reflector/route-reflector-client
38769 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_flowspec_route_reflector_route_reflector_client_modify(
38770 struct nb_cb_modify_args
*args
)
38772 switch (args
->event
) {
38773 case NB_EV_VALIDATE
:
38774 case NB_EV_PREPARE
:
38778 return bgp_peer_group_afi_safi_flag_modify(
38779 args
, PEER_FLAG_REFLECTOR_CLIENT
,
38780 yang_dnode_get_bool(args
->dnode
, NULL
));
38790 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-flowspec/route-server/route-server-client
38792 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_flowspec_route_server_route_server_client_modify(
38793 struct nb_cb_modify_args
*args
)
38795 switch (args
->event
) {
38796 case NB_EV_VALIDATE
:
38797 case NB_EV_PREPARE
:
38801 return bgp_peer_group_afi_safi_flag_modify(
38802 args
, PEER_FLAG_RSERVER_CLIENT
,
38803 yang_dnode_get_bool(args
->dnode
, NULL
));
38813 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv4-flowspec/soft-reconfiguration
38815 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv4_flowspec_soft_reconfiguration_modify(
38816 struct nb_cb_modify_args
*args
)
38818 switch (args
->event
) {
38819 case NB_EV_VALIDATE
:
38820 case NB_EV_PREPARE
:
38824 return bgp_peer_group_afi_safi_flag_modify(
38825 args
, PEER_FLAG_SOFT_RECONFIG
,
38826 yang_dnode_get_bool(args
->dnode
, NULL
));
38836 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-flowspec/route-reflector/route-reflector-client
38838 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_flowspec_route_reflector_route_reflector_client_modify(
38839 struct nb_cb_modify_args
*args
)
38841 switch (args
->event
) {
38842 case NB_EV_VALIDATE
:
38843 case NB_EV_PREPARE
:
38847 return bgp_peer_group_afi_safi_flag_modify(
38848 args
, PEER_FLAG_REFLECTOR_CLIENT
,
38849 yang_dnode_get_bool(args
->dnode
, NULL
));
38859 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-flowspec/route-server/route-server-client
38861 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_flowspec_route_server_route_server_client_modify(
38862 struct nb_cb_modify_args
*args
)
38864 switch (args
->event
) {
38865 case NB_EV_VALIDATE
:
38866 case NB_EV_PREPARE
:
38870 return bgp_peer_group_afi_safi_flag_modify(
38871 args
, PEER_FLAG_RSERVER_CLIENT
,
38872 yang_dnode_get_bool(args
->dnode
, NULL
));
38882 * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/afi-safis/afi-safi/ipv6-flowspec/soft-reconfiguration
38884 int bgp_peer_groups_peer_group_afi_safis_afi_safi_ipv6_flowspec_soft_reconfiguration_modify(
38885 struct nb_cb_modify_args
*args
)
38887 switch (args
->event
) {
38888 case NB_EV_VALIDATE
:
38889 case NB_EV_PREPARE
:
38893 return bgp_peer_group_afi_safi_flag_modify(
38894 args
, PEER_FLAG_SOFT_RECONFIG
,
38895 yang_dnode_get_bool(args
->dnode
, NULL
));