]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pim-anycast-rp: Change the reason code on use-source config failure.
authoranuradhak <anuradhak@cumulusnetworks.com>
Tue, 29 Nov 2016 16:07:20 +0000 (08:07 -0800)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:17 +0000 (20:26 -0500)
Was failing with a vague error -
"Source set failed"

Changed to used the error string (used by the rest of the commands) -
"Pim not enabled on this interface"

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
pimd/pim_cmd.c

index 7ab2bb7b48fee85796e2b7e804d7a01f391ee9bf..bfdcf93ddc31f9563bb43d3b5520a78e14fd33d4 100644 (file)
@@ -5214,6 +5214,9 @@ interface_pim_use_src_cmd_worker(struct vty *vty, const char *source)
   switch (result) {
     case PIM_SUCCESS:
       break;
+   case PIM_IFACE_NOT_FOUND:
+      vty_out(vty, "Pim not enabled on this interface%s", VTY_NEWLINE);
+      break;
     case PIM_UPDATE_SOURCE_DUP:
       vty_out(vty, "%% Source already set to %s%s", source, VTY_NEWLINE);
       break;