]> git.puffer.fish Git - matthieu/frr.git/commitdiff
sharpd: Allow sharpd to specify it's own routes for label changes
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 13 Apr 2020 12:12:26 +0000 (08:12 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 13 Apr 2020 12:12:26 +0000 (08:12 -0400)
With the command using STR_SHARP, the sharp daemon is not allowed
to use it's own routes for label modification.  Switching over
to STR_ZEBRA allows the sharp daemon to modify labels on any
route in the system, since there are no `ROUTE_ZEBRA` types.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
sharpd/sharp_vty.c

index 8a787c8e831fb0bb0ff4da57ab9eb8516e51bba9..e2ea77305578fe6d24c8386c807902aa2b69822d 100644 (file)
@@ -397,7 +397,7 @@ DEFPY(sharp_lsp_prefix_v4, sharp_lsp_prefix_v4_cmd,
       "sharp lsp (0-100000)$inlabel\
         nexthop-group NHGNAME$nhgname\
         [prefix A.B.C.D/M$pfx\
-       " FRR_IP_REDIST_STR_SHARPD "$type_str [instance (0-255)$instance]]",
+       " FRR_IP_REDIST_STR_ZEBRA "$type_str [instance (0-255)$instance]]",
       "Sharp Routing Protocol\n"
       "Add an LSP\n"
       "The ingress label to use\n"
@@ -405,7 +405,7 @@ DEFPY(sharp_lsp_prefix_v4, sharp_lsp_prefix_v4_cmd,
       "The nexthop-group name\n"
       "Label a prefix\n"
       "The v4 prefix to label\n"
-      FRR_IP_REDIST_HELP_STR_SHARPD
+      FRR_IP_REDIST_HELP_STR_ZEBRA
       "Instance to use\n"
       "Instance\n")
 {