ofp-util: Again allow OpenFlow port 0 in commands and actions.
[openvswitch] / lib / ofp-util.c
index 419a1cd471a1eb5e8a078082c4d22dadc0d6976a..34255da2f4153bc73c6a1e7323c6ae521f1ba590 100644 (file)
@@ -3562,10 +3562,7 @@ ofputil_port_from_string(const char *s, uint16_t *portp)
 
     *portp = 0;
     if (str_to_uint(s, 10, &port32)) {
-        if (port32 == 0) {
-            VLOG_WARN("port 0 is not a valid OpenFlow port number");
-            return false;
-        } else if (port32 < OFPP_MAX) {
+        if (port32 < OFPP_MAX) {
             *portp = port32;
             return true;
         } else if (port32 < OFPP_FIRST_RESV) {