Build router_id dict and segment_id interface dict in cfgsync tester