summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-09-19 06:25:13 -0700
committerChris Luke <chris_luke@comcast.com>2017-09-19 15:23:22 +0000
commit44f81310813f8f4a69e96b811b648dc4f49e3b03 (patch)
treeaa7521a682e9a96706fae511e85cead3ade86df1 /src
parent8f2a4eafeaa439432107563033728e09665c16d9 (diff)
Fix MPLS table create CLI
Change-Id: I1f3c0f879f636e587aa518c41e5ad99af65129a7 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/mpls/mpls.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/vnet/mpls/mpls.c b/src/vnet/mpls/mpls.c
index f8bbb8a955e..ed24f75fbde 100644
--- a/src/vnet/mpls/mpls.c
+++ b/src/vnet/mpls/mpls.c
@@ -575,11 +575,6 @@ vnet_mpls_table_cmd (vlib_main_t * vm,
error = clib_error_return (0, "No table id");
goto done;
}
- else if (0 == table_id)
- {
- error = clib_error_return (0, "Can't change the default table");
- goto done;
- }
else
{
if (is_add)
@@ -604,8 +599,8 @@ vnet_mpls_table_cmd (vlib_main_t * vm,
* Including the default table.
?*/
/* *INDENT-OFF* */
-VLIB_CLI_COMMAND (ip6_table_command, static) = {
- .path = "mpla table",
+VLIB_CLI_COMMAND (mpls_table_command, static) = {
+ .path = "mpls table",
.short_help = "mpls table [add|del] <table-id>",
.function = vnet_mpls_table_cmd,
.is_mp_safe = 1,