net/ice/base: add functions to create new switch recipe