Jonathan Hart | 1236a9b | 2013-06-18 22:10:05 +1200 | [diff] [blame] | 1 | package net.onrc.onos.ofcontroller.bgproute; |
| 2 | |
| 3 | import java.util.List; |
| 4 | import java.util.Map; |
| 5 | |
| 6 | import org.codehaus.jackson.annotate.JsonProperty; |
Jonathan Hart | 832a7cb | 2013-06-24 11:25:35 +1200 | [diff] [blame] | 7 | import org.openflow.util.HexString; |
Jonathan Hart | 1236a9b | 2013-06-18 22:10:05 +1200 | [diff] [blame] | 8 | |
| 9 | public class Configuration { |
Jonathan Hart | 832a7cb | 2013-06-24 11:25:35 +1200 | [diff] [blame] | 10 | private long bgpdAttachmentDpid; |
| 11 | private short bgpdAttachmentPort; |
| 12 | private List<String> switches; |
| 13 | private Map<String, Interface> interfaces; |
| 14 | private List<BgpPeer> peers; |
Jonathan Hart | c824ad0 | 2013-07-03 15:58:45 +1200 | [diff] [blame^] | 15 | //private Map<String, GatewayRouter> gateways; |
Jonathan Hart | 1236a9b | 2013-06-18 22:10:05 +1200 | [diff] [blame] | 16 | |
| 17 | public Configuration() { |
| 18 | // TODO Auto-generated constructor stub |
| 19 | } |
| 20 | |
Jonathan Hart | 832a7cb | 2013-06-24 11:25:35 +1200 | [diff] [blame] | 21 | public long getBgpdAttachmentDpid() { |
| 22 | return bgpdAttachmentDpid; |
| 23 | } |
| 24 | |
| 25 | @JsonProperty("bgpdAttachmentDpid") |
| 26 | public void setBgpdAttachmentDpid(String bgpdAttachmentDpid) { |
| 27 | this.bgpdAttachmentDpid = HexString.toLong(bgpdAttachmentDpid); |
| 28 | } |
| 29 | |
| 30 | public short getBgpdAttachmentPort() { |
| 31 | return bgpdAttachmentPort; |
| 32 | } |
| 33 | |
| 34 | @JsonProperty("bgpdAttachmentPort") |
| 35 | public void setBgpdAttachmentPort(short bgpdAttachmentPort) { |
| 36 | this.bgpdAttachmentPort = bgpdAttachmentPort; |
| 37 | } |
| 38 | |
Jonathan Hart | 1236a9b | 2013-06-18 22:10:05 +1200 | [diff] [blame] | 39 | public List<String> getSwitches() { |
| 40 | return switches; |
| 41 | } |
| 42 | |
| 43 | @JsonProperty("switches") |
| 44 | public void setSwitches(List<String> switches) { |
| 45 | this.switches = switches; |
| 46 | } |
| 47 | |
Jonathan Hart | 832a7cb | 2013-06-24 11:25:35 +1200 | [diff] [blame] | 48 | public Map<String, Interface> getInterfaces() { |
| 49 | return interfaces; |
| 50 | } |
| 51 | |
| 52 | @JsonProperty("interfaces") |
| 53 | public void setInterfaces(Map<String, Interface> interfaces) { |
| 54 | this.interfaces = interfaces; |
| 55 | } |
| 56 | |
| 57 | public List<BgpPeer> getPeers() { |
| 58 | return peers; |
| 59 | } |
| 60 | |
| 61 | @JsonProperty("bgpPeers") |
| 62 | public void setPeers(List<BgpPeer> peers) { |
| 63 | this.peers = peers; |
| 64 | } |
| 65 | |
Jonathan Hart | c824ad0 | 2013-07-03 15:58:45 +1200 | [diff] [blame^] | 66 | /* |
Jonathan Hart | 1236a9b | 2013-06-18 22:10:05 +1200 | [diff] [blame] | 67 | public Map<String, GatewayRouter> getGateways() { |
| 68 | return gateways; |
| 69 | } |
| 70 | |
| 71 | @JsonProperty("gateways") |
| 72 | public void setGateways(Map<String, GatewayRouter> gateways) { |
| 73 | this.gateways = gateways; |
Jonathan Hart | c824ad0 | 2013-07-03 15:58:45 +1200 | [diff] [blame^] | 74 | }*/ |
Jonathan Hart | 1236a9b | 2013-06-18 22:10:05 +1200 | [diff] [blame] | 75 | |
| 76 | } |