in-band: use open_type when opening internal device
authorThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Mon, 18 Jul 2016 13:53:44 +0000 (10:53 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@redhat.com>
Wed, 27 Jul 2016 12:05:58 +0000 (09:05 -0300)
commit78a0f734f9a7a15479b6ead616a0d9bee38a916b
treecf6f87650abb621fec86363aa45fc18a6139eec5
parentfa183acc654f7e5da17cd70fc91d6b5b02782183
in-band: use open_type when opening internal device

in-band code will open a device that it expects to be the main internal port of
the bridge. However, it's possible that the correct type is a different one. For
dpif-netdev, it might be a tap device, or a dummy device for dummy datapaths.
ofproto_port_open_type will give the correct type.

While this doesn't cause any problems right now, as the needed type would be
opened already, a later patch assumes netdev with different types cannot be
opened.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@redhat.com>
ofproto/in-band.c