YuanyouZhang | f26445a | 2015-07-22 17:13:18 +0800 | [diff] [blame] | 1 | /* |
Brian O'Connor | a09fe5b | 2017-08-03 21:12:30 -0700 | [diff] [blame] | 2 | * Copyright 2015-present Open Networking Foundation |
YuanyouZhang | f26445a | 2015-07-22 17:13:18 +0800 | [diff] [blame] | 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 | package org.onosproject.ovsdb.controller; |
| 17 | |
| 18 | import java.util.Set; |
| 19 | |
| 20 | import org.onlab.packet.IpAddress; |
| 21 | import org.onlab.packet.MacAddress; |
| 22 | |
| 23 | /** |
BitOhenry | 9b161fb | 2015-10-28 14:59:48 +0800 | [diff] [blame] | 24 | * Represents for an entity that carry important information for listener. |
YuanyouZhang | f26445a | 2015-07-22 17:13:18 +0800 | [diff] [blame] | 25 | */ |
| 26 | public 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 | } |