diff --git a/lib/cisco_node_utils/pim.rb b/lib/cisco_node_utils/pim.rb index 720da3e5..ec93e587 100644 --- a/lib/cisco_node_utils/pim.rb +++ b/lib/cisco_node_utils/pim.rb @@ -111,5 +111,14 @@ def ssm_range=(range) set_args_keys(state: state, ssm_range: range) config_set('pim', 'ssm_range', @set_args) end + + # This destroy method is different than most because pim does not have a + # "container" for properties, they simply exist in a given vrf context. + # For that reason destroy needs to explicitly set each property + # to its default state. + def destroy + set_args_keys(state: 'no', ssm_range: 'none') + config_set('pim', 'ssm_range', @set_args) + end end # Class end # Module