diff options
| author | anuradhak <anuradhak@cumulusnetworks.com> | 2016-11-29 08:07:20 -0800 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-21 20:26:17 -0500 |
| commit | 7cdb24da72694d72af12963d394a8da1e6fcaa38 (patch) | |
| tree | 92b53a8788ca6f082cf17fd07ede9c522b8b79f5 /pimd/pim_cmd.c | |
| parent | b9b1e1f2bab7339fa9d761565cc9f21289a5b63c (diff) | |
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 <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_cmd.c')
| -rw-r--r-- | pimd/pim_cmd.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; |
