diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-07 10:16:23 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-04-20 15:55:50 -0400 |
| commit | df94f9a91dbff3e0b04928d564484dfc4bf55aed (patch) | |
| tree | 1cee9cc829182d1dd28342c5a5ef25390e674eac /pimd/pim_vty.c | |
| parent | 54cd060799ecb582fa3b9cc548fe5f6fc3fae51a (diff) | |
pimd: Add prefix list handling to spt-switchover
To the 'ip pim spt-switchover infinity-and-beyond' command
add 'prefix-list <PLIST>'. To the command.
Use this as the basis to deny (Not immediate switchover)
or permit (Immediate switchover), based upon matching
the group address and the prefix-list.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_vty.c')
| -rw-r--r-- | pimd/pim_vty.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c index 3d52dc9c41..c8322b629a 100644 --- a/pimd/pim_vty.c +++ b/pimd/pim_vty.c @@ -182,10 +182,14 @@ int pim_global_config_write(struct vty *vty) ssm->plist_name, VTY_NEWLINE); ++writes; } - if (pimg->spt_switchover == PIM_SPT_INFINITY) + if (pimg->spt.switchover == PIM_SPT_INFINITY) { - vty_out (vty, "ip pim spt-switchover infinity-and-beyond%s", - VTY_NEWLINE); + if (pimg->spt.plist) + vty_out (vty, "ip pim spt-switchover infinity-and-beyond prefix-list %s%s", + pimg->spt.plist, VTY_NEWLINE); + else + vty_out (vty, "ip pim spt-switchover infinity-and-beyond%s", + VTY_NEWLINE); ++writes; } |
