Make sure to set 'port_no' in ofp_port_mod messages.