tunneling: Fix a tunnel name display bug
authorAndy Zhou <azhou@nicira.com>
Thu, 4 Jun 2015 20:45:55 +0000 (13:45 -0700)
committerAndy Zhou <azhou@nicira.com>
Mon, 8 Jun 2015 20:28:14 +0000 (13:28 -0700)
commit6d9e94b522dc4b11f724365f1ca9cbf8669627da
tree42c09ba89a9589f4a90a3e0a617f07a26d03bbf8
parent50dcbd8ed473210e6d2aa44f28843fb417416397
tunneling: Fix a tunnel name display bug

Currently, 'ovs-appctl tnl/ports/show' command won't display gre port
name correctly. Since netdev_vport_get_dpif_port() will not always
set the 'namebuf' it receives. Should use the name by its return
value instead. Found by inspection.

Also extend the test case to cover this command.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-dpif.c
tests/tunnel-push-pop.at