blob: 77beeee6684a6a7f347ff96259f239b055174090 [file] [log] [blame]
Jian Li3ff327a2017-03-14 17:02:19 +09001/*
2 * Copyright 2017-present Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.drivers.lisp.extensions;
18
19import org.onosproject.mapping.addresses.ExtensionMappingAddress;
20import org.onosproject.mapping.addresses.ExtensionMappingAddressType;
21import org.onosproject.net.flow.AbstractExtension;
22
Jian Li299bc1d2017-03-17 19:17:40 +090023import static org.onosproject.mapping.addresses.ExtensionMappingAddressType
24 .ExtensionMappingAddressTypes.LIST_ADDRESS;
25
Jian Li3ff327a2017-03-14 17:02:19 +090026/**
27 * Implementation of LISP list address.
Jian Li299bc1d2017-03-17 19:17:40 +090028 * When header translation between IPv4 and IPv6 is desirable a LISP Canonical
29 * Address can use the AFI List Type to carry a variable number of AFIs in one
30 * LCAF AFI.
Jian Li3ff327a2017-03-14 17:02:19 +090031 */
32public class LispListAddress extends AbstractExtension
33 implements ExtensionMappingAddress {
34 @Override
35 public ExtensionMappingAddressType type() {
Jian Li299bc1d2017-03-17 19:17:40 +090036 return LIST_ADDRESS.type();
Jian Li3ff327a2017-03-14 17:02:19 +090037 }
38
39 @Override
40 public byte[] serialize() {
41 return new byte[0];
42 }
43
44 @Override
45 public void deserialize(byte[] data) {
46
47 }
48}