National Foods has agreed to sell the licence to yoghurt brand Ski to Fonterra, should it seal its planned acquisition of Australian dairy group Dairy Farmers.