Support for ifroute

bnc#897394, bnc#866250
there should be comment why we need mode test because we will forgot it in few weeks.