Change pre/post_command execution for custom topology.