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>
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;