From: anuradhak Date: Tue, 29 Nov 2016 16:07:20 +0000 (-0800) Subject: pim-anycast-rp: Change the reason code on use-source config failure. X-Git-Tag: frr-3.0-branchpoint~64^2~10^2~61 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=7cdb24da72694d72af12963d394a8da1e6fcaa38;p=mirror%2Ffrr.git pim-anycast-rp: Change the reason code on use-source config failure. 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 --- diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 7ab2bb7b48..bfdcf93ddc 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -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;