Jian Li | 3ff327a | 2017-03-14 17:02:19 +0900 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package org.onosproject.drivers.lisp.extensions; |
| 18 | |
| 19 | import org.onosproject.mapping.addresses.ExtensionMappingAddress; |
| 20 | import org.onosproject.mapping.addresses.ExtensionMappingAddressType; |
| 21 | import org.onosproject.net.flow.AbstractExtension; |
| 22 | |
Jian Li | 299bc1d | 2017-03-17 19:17:40 +0900 | [diff] [blame^] | 23 | import static org.onosproject.mapping.addresses.ExtensionMappingAddressType |
| 24 | .ExtensionMappingAddressTypes.GEO_COORDINATE_ADDRESS; |
| 25 | |
Jian Li | 3ff327a | 2017-03-14 17:02:19 +0900 | [diff] [blame] | 26 | /** |
| 27 | * Implementation of LISP Geo Coordinate (GC) address. |
Jian Li | 299bc1d | 2017-03-17 19:17:40 +0900 | [diff] [blame^] | 28 | * If an ETR desires to send a Map-Reply describing the Geo Coordinates for each |
| 29 | * locator in its locator-set, it can use the Geo Coordinate Type to convey |
| 30 | * physical location information. |
Jian Li | 3ff327a | 2017-03-14 17:02:19 +0900 | [diff] [blame] | 31 | */ |
| 32 | public class LispGcAddress extends AbstractExtension |
| 33 | implements ExtensionMappingAddress { |
| 34 | @Override |
| 35 | public ExtensionMappingAddressType type() { |
Jian Li | 299bc1d | 2017-03-17 19:17:40 +0900 | [diff] [blame^] | 36 | return GEO_COORDINATE_ADDRESS.type(); |
Jian Li | 3ff327a | 2017-03-14 17:02:19 +0900 | [diff] [blame] | 37 | } |
| 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 | } |