BUG-1713: NPE by flow with push-vlan action (OF-1.0) 06/11006/1
authorMichal Rehak <mirehak@cisco.com>
Wed, 10 Sep 2014 18:02:02 +0000 (20:02 +0200)
committerMichal Rehak <mirehak@cisco.com>
Wed, 10 Sep 2014 18:02:02 +0000 (20:02 +0200)
- fixed empty action

Change-Id: I21c8aced0024e70b05777487a75c695118c50a5d
Signed-off-by: Michal Rehak <mirehak@cisco.com>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/convertor/ActionConvertor.java

index 9acb1e615aafebac262540b68fc9af3ed7322b19..9aaf98da1c12bfc8588625e6561083992d7fbfdc 100644 (file)
@@ -358,7 +358,7 @@ public final class ActionConvertor {
         if (version == OFConstants.OFP_VERSION_1_0) {
             // if client configure openflow 1.0 switch as a openflow 1.3 switch using openflow 1.3 instructions
             // then we can ignore PUSH_VLAN as set-vlan-id will push a vlan header if not present
-            return emtpyAction(actionBuilder);
+            return null;
         }
 
         PushVlanActionCase pushVlanActionCase = (PushVlanActionCase) action;