2 * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowjava.nx;
11 import org.opendaylight.openflowjava.nx.api.NiciraExtensionCodecRegistrator;
12 import org.opendaylight.openflowjava.nx.codec.action.ConntrackCodec;
13 import org.opendaylight.openflowjava.nx.codec.action.FinTimeoutCodec;
14 import org.opendaylight.openflowjava.nx.codec.action.LearnCodec;
15 import org.opendaylight.openflowjava.nx.codec.action.MultipathCodec;
16 import org.opendaylight.openflowjava.nx.codec.action.NiciraActionCodecs;
17 import org.opendaylight.openflowjava.nx.codec.action.OutputRegCodec;
18 import org.opendaylight.openflowjava.nx.codec.action.RegLoadCodec;
19 import org.opendaylight.openflowjava.nx.codec.action.RegMoveCodec;
20 import org.opendaylight.openflowjava.nx.codec.action.ResubmitCodec;
21 import org.opendaylight.openflowjava.nx.codec.action.PushNshCodec;
22 import org.opendaylight.openflowjava.nx.codec.action.PopNshCodec;
23 import org.opendaylight.openflowjava.nx.codec.match.ArpOpCodec;
24 import org.opendaylight.openflowjava.nx.codec.match.ArpShaCodec;
25 import org.opendaylight.openflowjava.nx.codec.match.ArpSpaCodec;
26 import org.opendaylight.openflowjava.nx.codec.match.ArpThaCodec;
27 import org.opendaylight.openflowjava.nx.codec.match.ArpTpaCodec;
28 import org.opendaylight.openflowjava.nx.codec.match.CtStateCodec;
29 import org.opendaylight.openflowjava.nx.codec.match.CtZoneCodec;
30 import org.opendaylight.openflowjava.nx.codec.match.EthDstCodec;
31 import org.opendaylight.openflowjava.nx.codec.match.EthSrcCodec;
32 import org.opendaylight.openflowjava.nx.codec.match.EthTypeCodec;
33 import org.opendaylight.openflowjava.nx.codec.match.Nshc1Codec;
34 import org.opendaylight.openflowjava.nx.codec.match.Nshc2Codec;
35 import org.opendaylight.openflowjava.nx.codec.match.Nshc3Codec;
36 import org.opendaylight.openflowjava.nx.codec.match.Nshc4Codec;
37 import org.opendaylight.openflowjava.nx.codec.match.NsiCodec;
38 import org.opendaylight.openflowjava.nx.codec.match.NspCodec;
39 import org.opendaylight.openflowjava.nx.codec.match.EncapEthTypeCodec;
40 import org.opendaylight.openflowjava.nx.codec.match.EncapEthSrcCodec;
41 import org.opendaylight.openflowjava.nx.codec.match.EncapEthDstCodec;
42 import org.opendaylight.openflowjava.nx.codec.match.NshMdtypeCodec;
43 import org.opendaylight.openflowjava.nx.codec.match.NshNpCodec;
44 import org.opendaylight.openflowjava.nx.codec.match.TunGpeNpCodec;
45 import org.opendaylight.openflowjava.nx.codec.match.Reg0Codec;
46 import org.opendaylight.openflowjava.nx.codec.match.Reg1Codec;
47 import org.opendaylight.openflowjava.nx.codec.match.Reg2Codec;
48 import org.opendaylight.openflowjava.nx.codec.match.Reg3Codec;
49 import org.opendaylight.openflowjava.nx.codec.match.Reg4Codec;
50 import org.opendaylight.openflowjava.nx.codec.match.Reg5Codec;
51 import org.opendaylight.openflowjava.nx.codec.match.Reg6Codec;
52 import org.opendaylight.openflowjava.nx.codec.match.Reg7Codec;
53 import org.opendaylight.openflowjava.nx.codec.match.TcpDstCodec;
54 import org.opendaylight.openflowjava.nx.codec.match.TcpSrcCodec;
55 import org.opendaylight.openflowjava.nx.codec.match.TunIdCodec;
56 import org.opendaylight.openflowjava.nx.codec.match.TunIpv4DstCodec;
57 import org.opendaylight.openflowjava.nx.codec.match.TunIpv4SrcCodec;
58 import org.opendaylight.openflowjava.nx.codec.match.UdpDstCodec;
59 import org.opendaylight.openflowjava.nx.codec.match.UdpSrcCodec;
60 import org.opendaylight.openflowjava.nx.codec.match.InPortCodec;
61 import org.opendaylight.openflowjava.nx.codec.match.MplsLabelCodec;
63 import com.google.common.base.Preconditions;
65 public class NiciraExtensionsRegistrator implements AutoCloseable {
67 private final NiciraExtensionCodecRegistrator registrator;
73 public NiciraExtensionsRegistrator(NiciraExtensionCodecRegistrator registrator) {
74 this.registrator = Preconditions.checkNotNull(registrator);
77 public void registerNiciraExtensions() {
78 registrator.registerActionDeserializer(RegLoadCodec.DESERIALIZER_KEY, NiciraActionCodecs.REG_LOAD_CODEC);
79 registrator.registerActionSerializer(RegLoadCodec.SERIALIZER_KEY, NiciraActionCodecs.REG_LOAD_CODEC);
80 registrator.registerActionDeserializer(RegMoveCodec.DESERIALIZER_KEY, NiciraActionCodecs.REG_MOVE_CODEC);
81 registrator.registerActionSerializer(RegMoveCodec.SERIALIZER_KEY, NiciraActionCodecs.REG_MOVE_CODEC);
82 registrator.registerActionDeserializer(OutputRegCodec.DESERIALIZER_KEY, NiciraActionCodecs.OUTPUT_REG_CODEC);
83 registrator.registerActionSerializer(OutputRegCodec.SERIALIZER_KEY, NiciraActionCodecs.OUTPUT_REG_CODEC);
84 registrator.registerActionSerializer(ResubmitCodec.SERIALIZER_KEY, NiciraActionCodecs.RESUBMIT_CODEC);
85 registrator.registerActionDeserializer(ResubmitCodec.DESERIALIZER_KEY, NiciraActionCodecs.RESUBMIT_CODEC);
86 registrator.registerActionDeserializer(ResubmitCodec.TABLE_DESERIALIZER_KEY, NiciraActionCodecs.RESUBMIT_CODEC);
87 registrator.registerActionSerializer(FinTimeoutCodec.SERIALIZER_KEY, NiciraActionCodecs.FIN_TIMEOUT_CODEC);
88 registrator.registerActionDeserializer(FinTimeoutCodec.DESERIALIZER_KEY, NiciraActionCodecs.FIN_TIMEOUT_CODEC);
89 registrator.registerActionSerializer(MultipathCodec.SERIALIZER_KEY, NiciraActionCodecs.MULTIPATH_CODEC);
90 registrator.registerActionDeserializer(MultipathCodec.DESERIALIZER_KEY, NiciraActionCodecs.MULTIPATH_CODEC);
91 registrator.registerActionDeserializer(PushNshCodec.DESERIALIZER_KEY, NiciraActionCodecs.PUSH_NSH_CODEC);
92 registrator.registerActionSerializer(PushNshCodec.SERIALIZER_KEY, NiciraActionCodecs.PUSH_NSH_CODEC);
93 registrator.registerActionDeserializer(PopNshCodec.DESERIALIZER_KEY, NiciraActionCodecs.POP_NSH_CODEC);
94 registrator.registerActionSerializer(PopNshCodec.SERIALIZER_KEY, NiciraActionCodecs.POP_NSH_CODEC);
96 registrator.registerActionSerializer(ConntrackCodec.SERIALIZER_KEY, NiciraActionCodecs.CONNTRACK_CODEC);
97 registrator.registerActionDeserializer(ConntrackCodec.DESERIALIZER_KEY, NiciraActionCodecs.CONNTRACK_CODEC);
98 registrator.registerActionSerializer(LearnCodec.SERIALIZER_KEY, NiciraActionCodecs.LEARN_CODEC);
99 registrator.registerActionDeserializer(LearnCodec.DESERIALIZER_KEY, NiciraActionCodecs.LEARN_CODEC);
102 registrator.registerMatchEntrySerializer(Reg0Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG0_CODEC);
103 registrator.registerMatchEntryDeserializer(Reg0Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG0_CODEC);
104 registrator.registerMatchEntrySerializer(Reg1Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG1_CODEC);
105 registrator.registerMatchEntryDeserializer(Reg1Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG1_CODEC);
106 registrator.registerMatchEntrySerializer(Reg2Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG2_CODEC);
107 registrator.registerMatchEntryDeserializer(Reg2Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG2_CODEC);
108 registrator.registerMatchEntrySerializer(Reg3Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG3_CODEC);
109 registrator.registerMatchEntryDeserializer(Reg3Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG3_CODEC);
110 registrator.registerMatchEntrySerializer(Reg4Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG4_CODEC);
111 registrator.registerMatchEntryDeserializer(Reg4Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG4_CODEC);
112 registrator.registerMatchEntrySerializer(Reg5Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG5_CODEC);
113 registrator.registerMatchEntryDeserializer(Reg5Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG5_CODEC);
114 registrator.registerMatchEntrySerializer(Reg6Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG6_CODEC);
115 registrator.registerMatchEntryDeserializer(Reg6Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG6_CODEC);
116 registrator.registerMatchEntrySerializer(Reg7Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG7_CODEC);
117 registrator.registerMatchEntryDeserializer(Reg7Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG7_CODEC);
118 registrator.registerMatchEntrySerializer(TunIdCodec.SERIALIZER_KEY, NiciraMatchCodecs.TUN_ID_CODEC);
119 registrator.registerMatchEntryDeserializer(TunIdCodec.DESERIALIZER_KEY, NiciraMatchCodecs.TUN_ID_CODEC);
120 registrator.registerMatchEntrySerializer(ArpOpCodec.SERIALIZER_KEY, NiciraMatchCodecs.ARP_OP_CODEC);
121 registrator.registerMatchEntryDeserializer(ArpOpCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ARP_OP_CODEC);
122 registrator.registerMatchEntrySerializer(ArpShaCodec.SERIALIZER_KEY, NiciraMatchCodecs.ARP_SHA_CODEC);
123 registrator.registerMatchEntryDeserializer(ArpShaCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ARP_SHA_CODEC);
124 registrator.registerMatchEntrySerializer(ArpSpaCodec.SERIALIZER_KEY, NiciraMatchCodecs.ARP_SPA_CODEC);
125 registrator.registerMatchEntryDeserializer(ArpSpaCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ARP_SPA_CODEC);
126 registrator.registerMatchEntrySerializer(ArpThaCodec.SERIALIZER_KEY, NiciraMatchCodecs.ARP_THA_CODEC);
127 registrator.registerMatchEntryDeserializer(ArpThaCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ARP_THA_CODEC);
128 registrator.registerMatchEntrySerializer(ArpTpaCodec.SERIALIZER_KEY, NiciraMatchCodecs.ARP_TPA_CODEC);
129 registrator.registerMatchEntryDeserializer(ArpTpaCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ARP_TPA_CODEC);
130 registrator.registerMatchEntrySerializer(InPortCodec.SERIALIZER_KEY, NiciraMatchCodecs.NXM_OF_IN_PORT_CODEC);
131 registrator.registerMatchEntryDeserializer(InPortCodec.DESERIALIZER_KEY,
132 NiciraMatchCodecs.NXM_OF_IN_PORT_CODEC);
133 registrator.registerMatchEntrySerializer(MplsLabelCodec.SERIALIZER_KEY, NiciraMatchCodecs.OXM_OF_MPLS_LABEL);
134 registrator.registerMatchEntryDeserializer(MplsLabelCodec.DESERIALIZER_KEY,
135 NiciraMatchCodecs.OXM_OF_MPLS_LABEL);
136 registrator.registerMatchEntrySerializer(EthDstCodec.SERIALIZER_KEY, NiciraMatchCodecs.ETH_DST_CODEC);
137 registrator.registerMatchEntryDeserializer(EthDstCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ETH_DST_CODEC);
138 registrator.registerMatchEntrySerializer(EthSrcCodec.SERIALIZER_KEY, NiciraMatchCodecs.ETH_SRC_CODEC);
139 registrator.registerMatchEntryDeserializer(EthSrcCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ETH_SRC_CODEC);
140 registrator.registerMatchEntrySerializer(EthTypeCodec.SERIALIZER_KEY, NiciraMatchCodecs.ETH_TYPE_CODEC);
141 registrator.registerMatchEntryDeserializer(EthTypeCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ETH_TYPE_CODEC);
142 registrator.registerMatchEntrySerializer(NspCodec.SERIALIZER_KEY, NiciraMatchCodecs.NSP_CODEC);
143 registrator.registerMatchEntryDeserializer(NspCodec.DESERIALIZER_KEY, NiciraMatchCodecs.NSP_CODEC);
144 registrator.registerMatchEntrySerializer(Nshc1Codec.SERIALIZER_KEY, NiciraMatchCodecs.NSC1_CODEC);
145 registrator.registerMatchEntryDeserializer(Nshc1Codec.DESERIALIZER_KEY, NiciraMatchCodecs.NSC1_CODEC);
146 registrator.registerMatchEntrySerializer(Nshc2Codec.SERIALIZER_KEY, NiciraMatchCodecs.NSC2_CODEC);
147 registrator.registerMatchEntryDeserializer(Nshc2Codec.DESERIALIZER_KEY, NiciraMatchCodecs.NSC2_CODEC);
148 registrator.registerMatchEntrySerializer(Nshc3Codec.SERIALIZER_KEY, NiciraMatchCodecs.NSC3_CODEC);
149 registrator.registerMatchEntryDeserializer(Nshc3Codec.DESERIALIZER_KEY, NiciraMatchCodecs.NSC3_CODEC);
150 registrator.registerMatchEntrySerializer(Nshc4Codec.SERIALIZER_KEY, NiciraMatchCodecs.NSC4_CODEC);
151 registrator.registerMatchEntryDeserializer(Nshc4Codec.DESERIALIZER_KEY, NiciraMatchCodecs.NSC4_CODEC);
152 registrator.registerMatchEntrySerializer(NsiCodec.SERIALIZER_KEY, NiciraMatchCodecs.NSI_CODEC);
153 registrator.registerMatchEntryDeserializer(NsiCodec.DESERIALIZER_KEY, NiciraMatchCodecs.NSI_CODEC);
154 registrator.registerMatchEntrySerializer(TunIpv4DstCodec.SERIALIZER_KEY, NiciraMatchCodecs.TUN_IPV4_DST_CODEC);
155 registrator.registerMatchEntryDeserializer(TunIpv4DstCodec.DESERIALIZER_KEY,
156 NiciraMatchCodecs.TUN_IPV4_DST_CODEC);
157 registrator.registerMatchEntrySerializer(TunIpv4SrcCodec.SERIALIZER_KEY, NiciraMatchCodecs.TUN_IPV4_SRC_CODEC);
158 registrator.registerMatchEntryDeserializer(TunIpv4SrcCodec.DESERIALIZER_KEY,
159 NiciraMatchCodecs.TUN_IPV4_SRC_CODEC);
160 registrator.registerMatchEntrySerializer(EncapEthTypeCodec.SERIALIZER_KEY,
161 NiciraMatchCodecs.ENCAP_ETH_TYPE_CODEC);
162 registrator.registerMatchEntryDeserializer(EncapEthTypeCodec.DESERIALIZER_KEY,
163 NiciraMatchCodecs.ENCAP_ETH_TYPE_CODEC);
164 registrator.registerMatchEntrySerializer(EncapEthSrcCodec.SERIALIZER_KEY,
165 NiciraMatchCodecs.ENCAP_ETH_SRC_CODEC);
166 registrator.registerMatchEntryDeserializer(EncapEthSrcCodec.DESERIALIZER_KEY,
167 NiciraMatchCodecs.ENCAP_ETH_SRC_CODEC);
168 registrator.registerMatchEntrySerializer(EncapEthDstCodec.SERIALIZER_KEY,
169 NiciraMatchCodecs.ENCAP_ETH_DST_CODEC);
170 registrator.registerMatchEntryDeserializer(EncapEthDstCodec.DESERIALIZER_KEY,
171 NiciraMatchCodecs.ENCAP_ETH_DST_CODEC);
172 registrator.registerMatchEntrySerializer(NshMdtypeCodec.SERIALIZER_KEY, NiciraMatchCodecs.NSH_MDTYPE_CODEC);
173 registrator.registerMatchEntryDeserializer(NshMdtypeCodec.DESERIALIZER_KEY, NiciraMatchCodecs.NSH_MDTYPE_CODEC);
174 registrator.registerMatchEntrySerializer(NshNpCodec.SERIALIZER_KEY, NiciraMatchCodecs.NSH_NP_CODEC);
175 registrator.registerMatchEntryDeserializer(NshNpCodec.DESERIALIZER_KEY, NiciraMatchCodecs.NSH_NP_CODEC);
176 registrator.registerMatchEntrySerializer(TunGpeNpCodec.SERIALIZER_KEY, NiciraMatchCodecs.TUN_GPE_NP_CODEC);
177 registrator.registerMatchEntryDeserializer(TunGpeNpCodec.DESERIALIZER_KEY, NiciraMatchCodecs.TUN_GPE_NP_CODEC);
178 registrator.registerMatchEntrySerializer(TcpSrcCodec.SERIALIZER_KEY, NiciraMatchCodecs.TCP_SRC_CODEC);
179 registrator.registerMatchEntryDeserializer(TcpSrcCodec.DESERIALIZER_KEY, NiciraMatchCodecs.TCP_SRC_CODEC);
180 registrator.registerMatchEntrySerializer(TcpDstCodec.SERIALIZER_KEY, NiciraMatchCodecs.TCP_DST_CODEC);
181 registrator.registerMatchEntryDeserializer(TcpDstCodec.DESERIALIZER_KEY, NiciraMatchCodecs.TCP_DST_CODEC);
182 registrator.registerMatchEntrySerializer(UdpSrcCodec.SERIALIZER_KEY, NiciraMatchCodecs.UDP_SRC_CODEC);
183 registrator.registerMatchEntryDeserializer(UdpSrcCodec.DESERIALIZER_KEY, NiciraMatchCodecs.UDP_SRC_CODEC);
184 registrator.registerMatchEntrySerializer(UdpDstCodec.SERIALIZER_KEY, NiciraMatchCodecs.UDP_DST_CODEC);
185 registrator.registerMatchEntryDeserializer(UdpDstCodec.DESERIALIZER_KEY, NiciraMatchCodecs.UDP_DST_CODEC);
186 registrator.registerMatchEntrySerializer(CtStateCodec.SERIALIZER_KEY, NiciraMatchCodecs.CT_ST_CODEC);
187 registrator.registerMatchEntryDeserializer(CtStateCodec.DESERIALIZER_KEY, NiciraMatchCodecs.CT_ST_CODEC);
188 registrator.registerMatchEntrySerializer(CtZoneCodec.SERIALIZER_KEY, NiciraMatchCodecs.CT_ZONE_CODEC);
189 registrator.registerMatchEntryDeserializer(CtZoneCodec.DESERIALIZER_KEY, NiciraMatchCodecs.CT_ZONE_CODEC);
192 public void unregisterExtensions() {
193 registrator.unregisterActionDeserializer(RegLoadCodec.DESERIALIZER_KEY);
194 registrator.unregisterActionSerializer(RegLoadCodec.SERIALIZER_KEY);
195 registrator.unregisterActionDeserializer(RegMoveCodec.DESERIALIZER_KEY);
196 registrator.unregisterActionSerializer(RegMoveCodec.SERIALIZER_KEY);
197 registrator.unregisterActionDeserializer(OutputRegCodec.DESERIALIZER_KEY);
198 registrator.unregisterActionSerializer(OutputRegCodec.SERIALIZER_KEY);
199 registrator.unregisterActionSerializer(ResubmitCodec.SERIALIZER_KEY);
200 registrator.unregisterActionDeserializer(ResubmitCodec.TABLE_DESERIALIZER_KEY);
201 registrator.unregisterActionDeserializer(ResubmitCodec.DESERIALIZER_KEY);
202 registrator.unregisterActionSerializer(FinTimeoutCodec.SERIALIZER_KEY);
203 registrator.unregisterActionDeserializer(FinTimeoutCodec.DESERIALIZER_KEY);
204 registrator.unregisterActionSerializer(MultipathCodec.SERIALIZER_KEY);
205 registrator.unregisterActionDeserializer(MultipathCodec.DESERIALIZER_KEY);
206 registrator.unregisterActionDeserializer(PushNshCodec.DESERIALIZER_KEY);
207 registrator.unregisterActionSerializer(PushNshCodec.SERIALIZER_KEY);
208 registrator.unregisterActionDeserializer(PopNshCodec.DESERIALIZER_KEY);
209 registrator.unregisterActionSerializer(PopNshCodec.SERIALIZER_KEY);
210 registrator.unregisterActionSerializer(ConntrackCodec.SERIALIZER_KEY);
211 registrator.unregisterActionDeserializer(ConntrackCodec.DESERIALIZER_KEY);
212 registrator.unregisterActionSerializer(LearnCodec.SERIALIZER_KEY);
213 registrator.unregisterActionDeserializer(LearnCodec.DESERIALIZER_KEY);
215 registrator.unregisterMatchEntrySerializer(Reg0Codec.SERIALIZER_KEY);
216 registrator.unregisterMatchEntryDeserializer(Reg0Codec.DESERIALIZER_KEY);
217 registrator.unregisterMatchEntrySerializer(Reg1Codec.SERIALIZER_KEY);
218 registrator.unregisterMatchEntryDeserializer(Reg1Codec.DESERIALIZER_KEY);
219 registrator.unregisterMatchEntrySerializer(Reg2Codec.SERIALIZER_KEY);
220 registrator.unregisterMatchEntryDeserializer(Reg2Codec.DESERIALIZER_KEY);
221 registrator.unregisterMatchEntrySerializer(Reg3Codec.SERIALIZER_KEY);
222 registrator.unregisterMatchEntryDeserializer(Reg3Codec.DESERIALIZER_KEY);
223 registrator.unregisterMatchEntrySerializer(Reg4Codec.SERIALIZER_KEY);
224 registrator.unregisterMatchEntryDeserializer(Reg4Codec.DESERIALIZER_KEY);
225 registrator.unregisterMatchEntrySerializer(Reg5Codec.SERIALIZER_KEY);
226 registrator.unregisterMatchEntryDeserializer(Reg5Codec.DESERIALIZER_KEY);
227 registrator.unregisterMatchEntrySerializer(Reg6Codec.SERIALIZER_KEY);
228 registrator.unregisterMatchEntryDeserializer(Reg6Codec.DESERIALIZER_KEY);
229 registrator.unregisterMatchEntrySerializer(Reg7Codec.SERIALIZER_KEY);
230 registrator.unregisterMatchEntryDeserializer(Reg7Codec.DESERIALIZER_KEY);
231 registrator.unregisterMatchEntrySerializer(TunIdCodec.SERIALIZER_KEY);
232 registrator.unregisterMatchEntryDeserializer(TunIdCodec.DESERIALIZER_KEY);
233 registrator.unregisterMatchEntrySerializer(ArpOpCodec.SERIALIZER_KEY);
234 registrator.unregisterMatchEntryDeserializer(ArpOpCodec.DESERIALIZER_KEY);
235 registrator.unregisterMatchEntrySerializer(ArpShaCodec.SERIALIZER_KEY);
236 registrator.unregisterMatchEntryDeserializer(ArpShaCodec.DESERIALIZER_KEY);
237 registrator.unregisterMatchEntrySerializer(ArpSpaCodec.SERIALIZER_KEY);
238 registrator.unregisterMatchEntryDeserializer(ArpSpaCodec.DESERIALIZER_KEY);
239 registrator.unregisterMatchEntrySerializer(ArpThaCodec.SERIALIZER_KEY);
240 registrator.unregisterMatchEntryDeserializer(ArpThaCodec.DESERIALIZER_KEY);
241 registrator.unregisterMatchEntrySerializer(ArpTpaCodec.SERIALIZER_KEY);
242 registrator.unregisterMatchEntryDeserializer(ArpTpaCodec.DESERIALIZER_KEY);
243 registrator.unregisterMatchEntrySerializer(InPortCodec.SERIALIZER_KEY);
244 registrator.unregisterMatchEntryDeserializer(InPortCodec.DESERIALIZER_KEY);
245 registrator.unregisterMatchEntrySerializer(MplsLabelCodec.SERIALIZER_KEY);
246 registrator.unregisterMatchEntryDeserializer(MplsLabelCodec.DESERIALIZER_KEY);
247 registrator.unregisterMatchEntrySerializer(EthDstCodec.SERIALIZER_KEY);
248 registrator.unregisterMatchEntryDeserializer(EthDstCodec.DESERIALIZER_KEY);
249 registrator.unregisterMatchEntrySerializer(EthSrcCodec.SERIALIZER_KEY);
250 registrator.unregisterMatchEntryDeserializer(EthSrcCodec.DESERIALIZER_KEY);
251 registrator.unregisterMatchEntrySerializer(EthTypeCodec.SERIALIZER_KEY);
252 registrator.unregisterMatchEntryDeserializer(EthTypeCodec.DESERIALIZER_KEY);
253 registrator.unregisterMatchEntrySerializer(NspCodec.SERIALIZER_KEY);
254 registrator.unregisterMatchEntryDeserializer(NspCodec.DESERIALIZER_KEY);
255 registrator.unregisterMatchEntrySerializer(NsiCodec.SERIALIZER_KEY);
256 registrator.unregisterMatchEntryDeserializer(NsiCodec.DESERIALIZER_KEY);
257 registrator.unregisterMatchEntrySerializer(Nshc1Codec.SERIALIZER_KEY);
258 registrator.unregisterMatchEntryDeserializer(Nshc1Codec.DESERIALIZER_KEY);
259 registrator.unregisterMatchEntrySerializer(Nshc2Codec.SERIALIZER_KEY);
260 registrator.unregisterMatchEntryDeserializer(Nshc2Codec.DESERIALIZER_KEY);
261 registrator.unregisterMatchEntrySerializer(Nshc3Codec.SERIALIZER_KEY);
262 registrator.unregisterMatchEntryDeserializer(Nshc3Codec.DESERIALIZER_KEY);
263 registrator.unregisterMatchEntrySerializer(Nshc4Codec.SERIALIZER_KEY);
264 registrator.unregisterMatchEntryDeserializer(Nshc4Codec.DESERIALIZER_KEY);
265 registrator.unregisterMatchEntrySerializer(TunIpv4DstCodec.SERIALIZER_KEY);
266 registrator.unregisterMatchEntryDeserializer(TunIpv4DstCodec.DESERIALIZER_KEY);
267 registrator.unregisterMatchEntrySerializer(TunIpv4SrcCodec.SERIALIZER_KEY);
268 registrator.unregisterMatchEntryDeserializer(TunIpv4SrcCodec.DESERIALIZER_KEY);
269 registrator.unregisterMatchEntrySerializer(EncapEthTypeCodec.SERIALIZER_KEY);
270 registrator.unregisterMatchEntryDeserializer(EncapEthTypeCodec.DESERIALIZER_KEY);
271 registrator.unregisterMatchEntrySerializer(EncapEthSrcCodec.SERIALIZER_KEY);
272 registrator.unregisterMatchEntryDeserializer(EncapEthSrcCodec.DESERIALIZER_KEY);
273 registrator.unregisterMatchEntrySerializer(EncapEthDstCodec.SERIALIZER_KEY);
274 registrator.unregisterMatchEntryDeserializer(EncapEthDstCodec.DESERIALIZER_KEY);
275 registrator.unregisterMatchEntrySerializer(NshMdtypeCodec.SERIALIZER_KEY);
276 registrator.unregisterMatchEntryDeserializer(NshMdtypeCodec.DESERIALIZER_KEY);
277 registrator.unregisterMatchEntrySerializer(NshNpCodec.SERIALIZER_KEY);
278 registrator.unregisterMatchEntryDeserializer(NshNpCodec.DESERIALIZER_KEY);
279 registrator.unregisterMatchEntrySerializer(TunGpeNpCodec.SERIALIZER_KEY);
280 registrator.unregisterMatchEntryDeserializer(TunGpeNpCodec.DESERIALIZER_KEY);
281 registrator.unregisterMatchEntrySerializer(TcpSrcCodec.SERIALIZER_KEY);
282 registrator.unregisterMatchEntryDeserializer(TcpSrcCodec.DESERIALIZER_KEY);
283 registrator.unregisterMatchEntrySerializer(TcpDstCodec.SERIALIZER_KEY);
284 registrator.unregisterMatchEntryDeserializer(TcpDstCodec.DESERIALIZER_KEY);
285 registrator.unregisterMatchEntrySerializer(UdpSrcCodec.SERIALIZER_KEY);
286 registrator.unregisterMatchEntryDeserializer(UdpSrcCodec.DESERIALIZER_KEY);
287 registrator.unregisterMatchEntrySerializer(UdpDstCodec.SERIALIZER_KEY);
288 registrator.unregisterMatchEntryDeserializer(UdpDstCodec.DESERIALIZER_KEY);
289 registrator.unregisterMatchEntrySerializer(CtStateCodec.SERIALIZER_KEY);
290 registrator.unregisterMatchEntryDeserializer(CtStateCodec.DESERIALIZER_KEY);
291 registrator.unregisterMatchEntrySerializer(CtZoneCodec.SERIALIZER_KEY);
292 registrator.unregisterMatchEntryDeserializer(CtZoneCodec.DESERIALIZER_KEY);
296 public void close() throws Exception {
297 unregisterExtensions();