blob: dc38735eb72ef62e1beb983dc1132f3b0f64bb86 [file] [log] [blame]
jiangrui72d343a2015-11-11 18:00:16 +08001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2015-present Open Networking Foundation
jiangrui72d343a2015-11-11 18:00:16 +08003 *
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.vtnrsc;
17
18import org.onlab.packet.IpAddress;
19
20/**
21 * Representation of a floatingIp.
22 */
23public interface FloatingIp {
24
25 /**
26 * Coarse classification of the type of the FloatingIp.
27 */
28 public enum Status {
29 /**
30 * Signifies that a floating Ip is currently active.
31 */
32 ACTIVE,
33 /**
34 * Signifies that a floating Ip is currently inactive.
35 */
36 INACTIVE
37 }
38
39 /**
40 * Returns the floatingIp identifier.
41 *
42 * @return identifier
43 */
44 FloatingIpId id();
45
46 /**
47 * Returns the tenant identifier.
48 *
49 * @return the tenant identifier
50 */
51 TenantId tenantId();
52
53 /**
54 * Returns the network identifier.
55 *
56 * @return the network identifier
57 */
58 TenantNetworkId networkId();
59
60 /**
61 * Returns the port identifier.
62 *
63 * @return the port identifier
64 */
65 VirtualPortId portId();
66
67 /**
68 * Returns the router identifier.
69 *
70 * @return the router identifier
71 */
72 RouterId routerId();
73
74 /**
75 * Returns the floating ip address.
76 *
77 * @return floatingIp
78 */
79 IpAddress floatingIp();
80
81 /**
82 * Returns the fixed ip address.
83 *
84 * @return fixedIp
85 */
86 IpAddress fixedIp();
87
88 /**
89 * Returns the status of floating ip.
90 *
91 * @return floatingIpStatus
92 */
93 Status status();
94}