From 7cdb24da72694d72af12963d394a8da1e6fcaa38 Mon Sep 17 00:00:00 2001 From: anuradhak Date: Tue, 29 Nov 2016 08:07:20 -0800 Subject: [PATCH] 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 --- pimd/pim_cmd.c | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.39.5