Merge "Fix logic in validate_vxlan_udp_port"

This commit is contained in:
Jenkins 2016-07-05 18:20:18 +00:00 committed by Gerrit Code Review
commit bfd9f4968d

@ -25,7 +25,7 @@ module Puppet::Parser::Functions
# check if port is either default value or one of the private ports
# according to http://tools.ietf.org/html/rfc6056
if value != 4789 or (49151 >= value and value > 65535)
if value != 4789 and (49151 >= value or value > 65535)
raise Puppet::Error, "vxlan udp port is invalid."
end
end