add new switch configuration api