}
},
{
- .xpath = "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/local-as/no-replace-as",
+ .xpath = "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/local-as/replace-as",
.cbs = {
- .modify = bgp_neighbors_neighbor_local_as_no_replace_as_modify,
+ .modify = bgp_neighbors_neighbor_local_as_replace_as_modify,
}
},
{
}
},
{
- .xpath = "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/local-as/no-replace-as",
+ .xpath = "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/local-as/replace-as",
.cbs = {
- .modify = bgp_neighbors_unnumbered_neighbor_local_as_no_replace_as_modify,
+ .modify = bgp_neighbors_unnumbered_neighbor_local_as_replace_as_modify,
}
},
{
}
},
{
- .xpath = "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/local-as/no-replace-as",
+ .xpath = "/frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/local-as/replace-as",
.cbs = {
- .modify = bgp_peer_groups_peer_group_local_as_no_replace_as_modify,
+ .modify = bgp_peer_groups_peer_group_local_as_replace_as_modify,
}
},
{
struct nb_cb_destroy_args *args);
int bgp_neighbors_neighbor_local_as_no_prepend_modify(
struct nb_cb_modify_args *args);
-int bgp_neighbors_neighbor_local_as_no_replace_as_modify(
+int bgp_neighbors_neighbor_local_as_replace_as_modify(
struct nb_cb_modify_args *args);
int bgp_neighbors_neighbor_bfd_options_enable_modify(
struct nb_cb_modify_args *args);
struct nb_cb_destroy_args *args);
int bgp_neighbors_unnumbered_neighbor_local_as_no_prepend_modify(
struct nb_cb_modify_args *args);
-int bgp_neighbors_unnumbered_neighbor_local_as_no_replace_as_modify(
+int bgp_neighbors_unnumbered_neighbor_local_as_replace_as_modify(
struct nb_cb_modify_args *args);
int bgp_neighbors_unnumbered_neighbor_bfd_options_enable_modify(
struct nb_cb_modify_args *args);
struct nb_cb_destroy_args *args);
int bgp_peer_groups_peer_group_local_as_no_prepend_modify(
struct nb_cb_modify_args *args);
-int bgp_peer_groups_peer_group_local_as_no_replace_as_modify(
+int bgp_peer_groups_peer_group_local_as_replace_as_modify(
struct nb_cb_modify_args *args);
int bgp_peer_groups_peer_group_bfd_options_enable_modify(
struct nb_cb_modify_args *args);
as = yang_dnode_get_uint32(args->dnode, "./local-as");
if (yang_dnode_exists(args->dnode, "./no-prepend"))
no_prepend = yang_dnode_get_bool(args->dnode, "./no-prepend");
- if (yang_dnode_exists(args->dnode, "./no-replace-as"))
- replace_as =
- yang_dnode_get_bool(args->dnode, "./no-replace-as");
+ if (yang_dnode_exists(args->dnode, "./replace-as"))
+ replace_as = yang_dnode_get_bool(args->dnode, "./replace-as");
if (!as && !no_prepend && !replace_as)
ret = peer_local_as_unset(peer);
/*
* XPath:
- * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/local-as/no-replace-as
+ * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/neighbor/local-as/replace-as
*/
-int bgp_neighbors_neighbor_local_as_no_replace_as_modify(
+int bgp_neighbors_neighbor_local_as_replace_as_modify(
struct nb_cb_modify_args *args)
{
switch (args->event) {
as = yang_dnode_get_uint32(args->dnode, "./local-as");
if (yang_dnode_exists(args->dnode, "./no-prepend"))
no_prepend = yang_dnode_get_bool(args->dnode, "./no-prepend");
- if (yang_dnode_exists(args->dnode, "./no-replace-as"))
- replace_as =
- yang_dnode_get_bool(args->dnode, "./no-replace-as");
+ if (yang_dnode_exists(args->dnode, "./replace-as"))
+ replace_as = yang_dnode_get_bool(args->dnode, "./replace-as");
if (!as && !no_prepend && !replace_as)
ret = peer_local_as_unset(peer);
/*
* XPath:
- * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/local-as/no-replace-as
+ * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/neighbors/unnumbered-neighbor/local-as/replace-as
*/
-int bgp_neighbors_unnumbered_neighbor_local_as_no_replace_as_modify(
+int bgp_neighbors_unnumbered_neighbor_local_as_replace_as_modify(
struct nb_cb_modify_args *args)
{
switch (args->event) {
as = yang_dnode_get_uint32(args->dnode, "./local-as");
if (yang_dnode_exists(args->dnode, "./no-prepend"))
no_prepend = yang_dnode_get_bool(args->dnode, "./no-prepend");
- if (yang_dnode_exists(args->dnode, "./no-replace-as"))
- replace_as =
- yang_dnode_get_bool(args->dnode, "./no-replace-as");
+ if (yang_dnode_exists(args->dnode, "./replace-as"))
+ replace_as = yang_dnode_get_bool(args->dnode, "./replace-as");
if (!as && !no_prepend && !replace_as)
ret = peer_local_as_unset(peer);
/*
* XPath:
- * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/local-as/no-replace-as
+ * /frr-routing:routing/control-plane-protocols/control-plane-protocol/frr-bgp:bgp/peer-groups/peer-group/local-as/replace-as
*/
-int bgp_peer_groups_peer_group_local_as_no_replace_as_modify(
+int bgp_peer_groups_peer_group_local_as_replace_as_modify(
struct nb_cb_modify_args *args)
{
switch (args->event) {
argv[idx_number]->arg);
nb_cli_enqueue_change(vty, "./local-as/no-prepend", NB_OP_MODIFY,
"true");
- nb_cli_enqueue_change(vty, "./local-as/no-replace-as", NB_OP_MODIFY,
+ nb_cli_enqueue_change(vty, "./local-as/replace-as", NB_OP_MODIFY,
"true");
return nb_cli_apply_changes(vty, base_xpath);
nb_cli_enqueue_change(vty, "./local-as/local-as", NB_OP_DESTROY, NULL);
nb_cli_enqueue_change(vty, "./local-as/no-prepend", NB_OP_MODIFY,
"false");
- nb_cli_enqueue_change(vty, "./local-as/no-replace-as", NB_OP_MODIFY,
+ nb_cli_enqueue_change(vty, "./local-as/replace-as", NB_OP_MODIFY,
"false");
return nb_cli_apply_changes(vty, base_xpath);
set to 'false' it will prepend local-as to updates.";
}
- leaf no-replace-as {
+ leaf replace-as {
type boolean;
default "false";
description