tunnel: Only print non-default UDP dst_port for LISP/VXLAN tunnels
authorKyle Mestery <kmestery@cisco.com>
Thu, 28 Feb 2013 14:30:16 +0000 (09:30 -0500)
committerJesse Gross <jesse@nicira.com>
Thu, 28 Feb 2013 17:19:52 +0000 (09:19 -0800)
commit9eeb949bbaf75565ab2330ea26ae467d87ec194d
tree6b302140b2a375f415e0a4de1f60cba8d4c51340
parentf231418e8b95f3a0baf930dee587a2bb271ae196
tunnel: Only print non-default UDP dst_port for LISP/VXLAN tunnels

In get_tunnel_config(), distinguish between VXLAN and LISP when deciding
whether or not to print UDP destination port. Only add the UDP
destination port for either protocol if it is not the default UDP port.
Update the LISP unit test to match the new behavior as well.

Signed-off-by: Kyle Mestery <kmestery@cisco.com>
[jesse: merge common test for VXLAN and LISP]
Signed-off-by: Jesse Gross <jesse@nicira.com>
lib/netdev-vport.c
tests/tunnel.at