bridge: Deprecate the null interface type.
authorEthan Jackson <ethan@nicira.com>
Tue, 21 Aug 2012 22:44:58 +0000 (15:44 -0700)
committerEthan Jackson <ethan@nicira.com>
Wed, 29 Aug 2012 01:27:05 +0000 (18:27 -0700)
It's not entirely clear what problem the null interface type is
trying to solve, nor how it could be of use to any controller.
This patch deprecates it, and schedules its removal for February
2013.  If there are concerns, please email dev@openvswitch.org.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
NEWS
vswitchd/bridge.c
vswitchd/vswitch.xml

diff --git a/NEWS b/NEWS
index 45e11764c1b7a84cbb23534027611019189f05a2..872f8d0d85a81a1034c4249cd0af984e5490f4c8 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -22,6 +22,8 @@ post-v1.8.0
       February 2013.  Please email dev@openvswitch.org with concerns.
     - The autopath action is deprecated and will be removed no earlier than
       February 2013.  Please email dev@openvswitch.org with concerns.
+    - The null interface type is deprecated and will be removed no earlier
+      than February 2013.  Please email dev@openvswitch.org with concerns.
 
 
 v1.8.0 - xx xxx xxxx
index 1fbbe32ac3b3f463ef823c0ac9276aee82bff059..02257397999643b1584a56c972c68aae1880dae8 100644 (file)
@@ -2525,7 +2525,12 @@ bridge_add_del_ports(struct bridge *br,
             if (iface) {
                 iface->cfg = cfg;
                 iface->type = type;
-            } else if (strcmp(type, "null")) {
+            } else if (!strcmp(type, "null")) {
+                VLOG_WARN_ONCE("%s: The null interface type is deprecated and"
+                               " may be removed in February 2013. Please email"
+                               " dev@openvswitch.org with concerns.",
+                               cfg->name);
+            } else {
                 bridge_queue_if_cfg(br, cfg, port);
             }
         }
index b71a30874af56fd9347b41b5a4539c589b7fe93c..a1b99f863af58825f643e6aec8783de1fb5e3061 100644 (file)
           </dd>
 
           <dt><code>null</code></dt>
-          <dd>An ignored interface.</dd>
+          <dd>An ignored interface. Deprecated and slated for removal in
+              February 2013.</dd>
         </dl>
       </column>
     </group>