testutils: add openflow_ports()

This function replaces the common boilerplate code that gets a list of port
numbers from the config dictionary and checks that enough ports are available
for the test.

I changed the OF 1.3 tests to use this function.
3 files changed