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/pimd.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/pimd.c')
| -rw-r--r-- | pimd/pimd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pimd/pimd.c b/pimd/pimd.c index eaef4ff5c0..a8a2a806e0 100644 --- a/pimd/pimd.c +++ b/pimd/pimd.c @@ -194,6 +194,7 @@ pim_prefix_list_update (struct prefix_list *plist) { pim_rp_prefix_list_update (plist); pim_ssm_prefix_list_update (plist); + pim_upstream_spt_prefix_list_update (plist); } static void @@ -249,7 +250,9 @@ pim_instance_init (vrf_id_t vrf_id, afi_t afi) pim->vrf_id = vrf_id; pim->afi = afi; - pim->spt_switchover = PIM_SPT_IMMEDIATE; + pim->spt.switchover = PIM_SPT_IMMEDIATE; + pim->spt.plist = NULL; + pim->rpf_hash = hash_create_size (256, pim_rpf_hash_key, pim_rpf_equal); if (PIM_DEBUG_ZEBRA) |
