summaryrefslogtreecommitdiffstats
path: root/ripd/rip_cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'ripd/rip_cli.c')
-rw-r--r--ripd/rip_cli.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/ripd/rip_cli.c b/ripd/rip_cli.c
index 5bb81ef15..6fbcdc059 100644
--- a/ripd/rip_cli.c
+++ b/ripd/rip_cli.c
@@ -62,7 +62,7 @@ DEFPY (no_router_rip,
"Enable a routing process\n"
"Routing Information Protocol (RIP)\n")
{
- nb_cli_enqueue_change(vty, "/frr-ripd:ripd/instance", NB_OP_DELETE,
+ nb_cli_enqueue_change(vty, "/frr-ripd:ripd/instance", NB_OP_DESTROY,
NULL);
return nb_cli_apply_changes(vty, NULL);
@@ -213,9 +213,9 @@ DEFPY (rip_distance_source,
nb_cli_enqueue_change(vty, "./distance", NB_OP_MODIFY,
distance_str);
nb_cli_enqueue_change(vty, "./access-list",
- acl ? NB_OP_MODIFY : NB_OP_DELETE, acl);
+ acl ? NB_OP_MODIFY : NB_OP_DESTROY, acl);
} else
- nb_cli_enqueue_change(vty, ".", NB_OP_DELETE, NULL);
+ nb_cli_enqueue_change(vty, ".", NB_OP_DESTROY, NULL);
return nb_cli_apply_changes(vty, "./distance/source[prefix='%s']",
prefix_str);
@@ -244,7 +244,7 @@ DEFPY (rip_neighbor,
"Neighbor address\n")
{
nb_cli_enqueue_change(vty, "./explicit-neighbor",
- no ? NB_OP_DELETE : NB_OP_CREATE, neighbor_str);
+ no ? NB_OP_DESTROY : NB_OP_CREATE, neighbor_str);
return nb_cli_apply_changes(vty, NULL);
}
@@ -266,7 +266,7 @@ DEFPY (rip_network_prefix,
"IP prefix <network>/<length>, e.g., 35.0.0.0/8\n")
{
nb_cli_enqueue_change(vty, "./network",
- no ? NB_OP_DELETE : NB_OP_CREATE, network_str);
+ no ? NB_OP_DESTROY : NB_OP_CREATE, network_str);
return nb_cli_apply_changes(vty, NULL);
}
@@ -288,7 +288,7 @@ DEFPY (rip_network_if,
"Interface name\n")
{
nb_cli_enqueue_change(vty, "./interface",
- no ? NB_OP_DELETE : NB_OP_CREATE, network);
+ no ? NB_OP_DESTROY : NB_OP_CREATE, network);
return nb_cli_apply_changes(vty, NULL);
}
@@ -319,7 +319,7 @@ DEFPY (rip_offset_list,
nb_cli_enqueue_change(vty, "./metric", NB_OP_MODIFY,
metric_str);
} else
- nb_cli_enqueue_change(vty, ".", NB_OP_DELETE, NULL);
+ nb_cli_enqueue_change(vty, ".", NB_OP_DESTROY, NULL);
return nb_cli_apply_changes(
vty, "./offset-list[interface='%s'][direction='%s']",
@@ -379,9 +379,9 @@ DEFPY (rip_passive_interface,
"Interface name\n")
{
nb_cli_enqueue_change(vty, "./passive-interface",
- no ? NB_OP_DELETE : NB_OP_CREATE, ifname);
+ no ? NB_OP_DESTROY : NB_OP_CREATE, ifname);
nb_cli_enqueue_change(vty, "./non-passive-interface",
- no ? NB_OP_CREATE : NB_OP_DELETE, ifname);
+ no ? NB_OP_CREATE : NB_OP_DESTROY, ifname);
return nb_cli_apply_changes(vty, NULL);
}
@@ -417,13 +417,13 @@ DEFPY (rip_redistribute,
if (!no) {
nb_cli_enqueue_change(vty, ".", NB_OP_CREATE, NULL);
nb_cli_enqueue_change(vty, "./route-map",
- route_map ? NB_OP_MODIFY : NB_OP_DELETE,
+ route_map ? NB_OP_MODIFY : NB_OP_DESTROY,
route_map);
nb_cli_enqueue_change(vty, "./metric",
- metric_str ? NB_OP_MODIFY : NB_OP_DELETE,
+ metric_str ? NB_OP_MODIFY : NB_OP_DESTROY,
metric_str);
} else
- nb_cli_enqueue_change(vty, ".", NB_OP_DELETE, NULL);
+ nb_cli_enqueue_change(vty, ".", NB_OP_DESTROY, NULL);
return nb_cli_apply_changes(vty, "./redistribute[protocol='%s']",
protocol);
@@ -454,7 +454,7 @@ DEFPY (rip_route,
"IP prefix <network>/<length>\n")
{
nb_cli_enqueue_change(vty, "./static-route",
- no ? NB_OP_DELETE : NB_OP_CREATE, route_str);
+ no ? NB_OP_DESTROY : NB_OP_CREATE, route_str);
return nb_cli_apply_changes(vty, NULL);
}
@@ -942,7 +942,7 @@ DEFPY (no_ip_rip_authentication_key_chain,
"Authentication key-chain\n"
"name of key-chain\n")
{
- nb_cli_enqueue_change(vty, "./authentication-key-chain", NB_OP_DELETE,
+ nb_cli_enqueue_change(vty, "./authentication-key-chain", NB_OP_DESTROY,
NULL);
return nb_cli_apply_changes(vty, "./frr-ripd:rip");