blob: bc1b16824fc71902af63921e7253ae3f171477e1 [file] [log] [blame]
Jonathan Hart74f9c3b2014-09-29 20:03:50 -07001package org.onlab.onos.config;
2
3import java.util.List;
4
Jonathan Hartd7bd9822014-10-20 18:18:02 -07005import com.fasterxml.jackson.annotation.JsonProperty;
Jonathan Hart74f9c3b2014-09-29 20:03:50 -07006
7/**
8 * Represents a set of addresses bound to a port.
9 */
10public class AddressEntry {
11 private String dpid;
12 private short portNumber;
Jonathan Hart70da5122014-10-01 16:37:42 -070013 private List<String> ipAddresses;
14 private String macAddress;
Jonathan Hart74f9c3b2014-09-29 20:03:50 -070015
16 public String getDpid() {
17 return dpid;
18 }
19
20 @JsonProperty("dpid")
21 public void setDpid(String strDpid) {
22 this.dpid = strDpid;
23 }
24
25 public short getPortNumber() {
26 return portNumber;
27 }
28
29 @JsonProperty("port")
30 public void setPortNumber(short portNumber) {
31 this.portNumber = portNumber;
32 }
33
Jonathan Hart70da5122014-10-01 16:37:42 -070034 public List<String> getIpAddresses() {
Jonathan Hart74f9c3b2014-09-29 20:03:50 -070035 return ipAddresses;
36 }
37
38 @JsonProperty("ips")
Jonathan Hart70da5122014-10-01 16:37:42 -070039 public void setIpAddresses(List<String> strIps) {
40 this.ipAddresses = strIps;
Jonathan Hart74f9c3b2014-09-29 20:03:50 -070041 }
42
Jonathan Hart70da5122014-10-01 16:37:42 -070043 public String getMacAddress() {
Jonathan Hart74f9c3b2014-09-29 20:03:50 -070044 return macAddress;
45 }
46
47 @JsonProperty("mac")
Jonathan Hart70da5122014-10-01 16:37:42 -070048 public void setMacAddress(String macAddress) {
Jonathan Hart74f9c3b2014-09-29 20:03:50 -070049 this.macAddress = macAddress;
50 }
51}