ruby: specify number of vnets for each protocol