mst_rules function

Define routing rules