Merge "Bug 2347: DOMConcurrentDataCommitCoordinator uses wrong phase name"
[controller.git] / third-party / openflowj / src / main / java / org / openflow / protocol / action / OFActionStripVirtualLan.java
1 /**
2  * @author David Erickson (daviderickson@cs.stanford.edu) - Mar 11, 2010
3  */
4 package org.openflow.protocol.action;
5
6 import java.nio.ByteBuffer;
7
8
9 /**
10  * Represents an ofp_action_strip_vlan
11  * @author David Erickson (daviderickson@cs.stanford.edu) - Mar 11, 2010
12  */
13 public class OFActionStripVirtualLan extends OFAction {
14     public static int MINIMUM_LENGTH = 8;
15
16     public OFActionStripVirtualLan() {
17         super();
18         super.setType(OFActionType.STRIP_VLAN);
19         super.setLength((short) MINIMUM_LENGTH);
20     }
21
22     @Override
23     public void readFrom(ByteBuffer data) {
24         super.readFrom(data);
25         // PAD
26         data.getInt();
27     }
28
29     @Override
30     public void writeTo(ByteBuffer data) {
31         super.writeTo(data);
32         // PAD
33         data.putInt(0);
34     }
35 }