This fix addresses an issue Mike found with dcnm_fabric replaced state -> #305.
Changes include:
FabricReplacedCommon().update_replaced_payload()
If the playbook value for a parameter is None (which is the case when the playbook config does not contain the parameter), then the only thing we need to ensure is that the controller value is set to the default value. If the default value is null, we change it to the empty string "" since NDFC throws a 500 error for null parameter values.
Update unit tests to reflect the above change. The following test was modified. Specifically two cases where the playbook parameter value is None (PARAM_8 and PARAM_15).
This fix addresses an issue Mike found with dcnm_fabric replaced state -> #305.
Changes include:
If the playbook value for a parameter is None (which is the case when the playbook config does not contain the parameter), then the only thing we need to ensure is that the controller value is set to the default value. If the default value is null, we change it to the empty string "" since NDFC throws a 500 error for null parameter values.