blob: 226a26e60fc91d543040525e3bf2ee0351861786 [file] [log] [blame]
YuanyouZhangf26445a2015-07-22 17:13:18 +08001/*
2 * Copyright 2015 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.ovsdb.controller;
17
18import java.util.Set;
19
20import org.onlab.packet.IpAddress;
21import org.onlab.packet.MacAddress;
22
23/**
BitOhenry9b161fb2015-10-28 14:59:48 +080024 * Represents for an entity that carry important information for listener.
YuanyouZhangf26445a2015-07-22 17:13:18 +080025 */
26public interface OvsdbEventSubject extends EventSubject {
27 /**
28 * Returns the MAC address associated with this host (NIC).
29 *
30 * @return the MAC address of this host
31 */
32 MacAddress hwAddress();
33
34 /**
35 * Returns the IP address associated with this host's MAC.
36 *
37 * @return host IP address
38 */
39 Set<IpAddress> ipAddress();
40
41 /**
42 * Returns the Port name associated with the host.
43 *
44 * @return port name
45 */
46 OvsdbPortName portName();
47
48 /**
49 * Returns the Port number associated with the host.
50 *
51 * @return port number
52 */
53 OvsdbPortNumber portNumber();
54
55 /**
56 * Returns the Port type associated with the host.
57 *
58 * @return port type
59 */
60 OvsdbPortType portType();
61
62 /**
63 * Returns the Ovs dpid associated with the host.
64 *
65 * @return Ovs dpid
66 */
67 OvsdbDatapathId dpid();
68
69 /**
70 * Returns the vm ifaceid associated with the host.
71 *
72 * @return vm ifaceid
73 */
74 OvsdbIfaceId ifaceid();
75}