Doc : confdef : add new func to create confdef from an existing one