blob: 465540a4a5cdb432131dd1787a0176a2ae1adbd1 [file] [log] [blame]
Jian Li136fd6c2017-02-10 14:54:59 +09001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2017-present Open Networking Foundation
Jian Li136fd6c2017-02-10 14:54:59 +09003 *
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 */
Jian Li0e09eaa2017-02-14 02:01:18 +090016package org.onosproject.mapping.addresses;
Jian Li136fd6c2017-02-10 14:54:59 +090017
18/**
19 * Presentation of a single mapping selection.
20 */
21public interface MappingAddress {
22
Jian Li0e09eaa2017-02-14 02:01:18 +090023 String TYPE_SEPARATOR = ":";
24
Jian Li136fd6c2017-02-10 14:54:59 +090025 /**
26 * Types of address to which the mapping criterion may apply.
27 */
28 enum Type {
29
30 /** IPv4 Address. */
31 IPV4,
32
33 /** IPv6 Address. */
34 IPV6,
35
36 /** Autonomous System Number. */
37 AS,
38
39 /** Ethernet Address (MAC Address). */
40 ETH,
41
42 /** Distinguished Name. */
43 DN,
44
45 /** Extension Address. */
46 EXTENSION
47 }
48
49 /**
50 * Returns the type of mapping address.
51 *
52 * @return type of mapping address
53 */
54 Type type();
55}