blob: c1473e91fd9537242a70296c068ab446e6fef484 [file] [log] [blame]
Jian Li136fd6c2017-02-10 14:54:59 +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 */
16package org.onosproject.mapping.address;
17
18/**
19 * Presentation of a single mapping selection.
20 */
21public interface MappingAddress {
22
23 /**
24 * Types of address to which the mapping criterion may apply.
25 */
26 enum Type {
27
28 /** IPv4 Address. */
29 IPV4,
30
31 /** IPv6 Address. */
32 IPV6,
33
34 /** Autonomous System Number. */
35 AS,
36
37 /** Ethernet Address (MAC Address). */
38 ETH,
39
40 /** Distinguished Name. */
41 DN,
42
43 /** Extension Address. */
44 EXTENSION
45 }
46
47 /**
48 * Returns the type of mapping address.
49 *
50 * @return type of mapping address
51 */
52 Type type();
53}