Srikanth Vavilapalli | e7dabdd | 2014-10-20 21:54:39 -0700 | [diff] [blame] | 1 | package net.onrc.onos.apps.segmentrouting.web; |
| 2 | |
| 3 | |
| 4 | public class SegmentRouterPolicyRESTParams { |
| 5 | private String policy_id; |
Srikanth Vavilapalli | 9cde381 | 2014-10-21 21:49:10 -0700 | [diff] [blame] | 6 | private String policy_type; |
Srikanth Vavilapalli | e7dabdd | 2014-10-20 21:54:39 -0700 | [diff] [blame] | 7 | private int priority; |
| 8 | private String tunnel_id; |
| 9 | private String proto_type; |
| 10 | private String src_ip; |
| 11 | private String src_tp_port_op; |
| 12 | private short src_tp_port; |
| 13 | private String dst_ip; |
| 14 | private String dst_tp_port_op; |
| 15 | private short dst_tp_port; |
| 16 | |
| 17 | public SegmentRouterPolicyRESTParams() { |
| 18 | this.policy_id = null; |
Srikanth Vavilapalli | 9cde381 | 2014-10-21 21:49:10 -0700 | [diff] [blame] | 19 | this.policy_type = null; |
Srikanth Vavilapalli | e7dabdd | 2014-10-20 21:54:39 -0700 | [diff] [blame] | 20 | this.priority = 0; |
| 21 | this.tunnel_id = null; |
| 22 | this.proto_type = null; |
| 23 | this.src_ip = null; |
| 24 | this.src_tp_port_op = null; |
| 25 | this.src_tp_port = 0; |
| 26 | this.dst_ip = null; |
| 27 | this.dst_tp_port_op = null; |
| 28 | this.dst_tp_port = 0; |
| 29 | } |
| 30 | |
| 31 | public void setPolicy_id(String policy_id) { |
| 32 | this.policy_id = policy_id; |
| 33 | } |
| 34 | |
| 35 | public String getPolicy_id() { |
| 36 | return this.policy_id; |
| 37 | } |
| 38 | |
Srikanth Vavilapalli | 9cde381 | 2014-10-21 21:49:10 -0700 | [diff] [blame] | 39 | public void setPolicy_type(String policy_type) { |
| 40 | this.policy_type = policy_type; |
| 41 | } |
| 42 | |
| 43 | public String getPolicy_type() { |
| 44 | return this.policy_type; |
| 45 | } |
| 46 | |
Srikanth Vavilapalli | e7dabdd | 2014-10-20 21:54:39 -0700 | [diff] [blame] | 47 | public void setPriority(int priority) { |
| 48 | this.priority = priority; |
| 49 | } |
| 50 | |
| 51 | public int getPriority() { |
| 52 | return this.priority; |
| 53 | } |
| 54 | |
| 55 | public void setTunnel_id(String tunnel_id) { |
| 56 | this.tunnel_id = tunnel_id; |
| 57 | } |
| 58 | |
| 59 | public String getTunnel_id() { |
| 60 | return this.tunnel_id; |
| 61 | } |
| 62 | |
| 63 | public void setProto_type(String proto_type) { |
| 64 | this.proto_type = proto_type; |
| 65 | } |
| 66 | |
| 67 | public String getProto_type() { |
| 68 | return this.proto_type; |
| 69 | } |
| 70 | |
| 71 | public void setSrc_ip(String src_ip) { |
| 72 | this.src_ip = src_ip; |
| 73 | } |
| 74 | |
| 75 | public String getSrc_ip() { |
| 76 | return this.src_ip; |
| 77 | } |
| 78 | |
| 79 | public void setSrc_tp_port_op(String src_tp_port_op) { |
| 80 | this.src_tp_port_op = src_tp_port_op; |
| 81 | } |
| 82 | |
| 83 | public String getSrc_tp_port_op() { |
| 84 | return this.src_tp_port_op; |
| 85 | } |
| 86 | |
| 87 | public void setSrc_tp_port(short src_tp_port) { |
| 88 | this.src_tp_port = src_tp_port; |
| 89 | } |
| 90 | |
| 91 | public short getSrc_tp_port() { |
| 92 | return this.src_tp_port; |
| 93 | } |
| 94 | |
| 95 | public void setDst_ip(String dst_ip) { |
| 96 | this.dst_ip = dst_ip; |
| 97 | } |
| 98 | |
| 99 | public String getDst_ip() { |
| 100 | return this.dst_ip; |
| 101 | } |
| 102 | |
| 103 | public void setDst_tp_port_op(String dst_tp_port_op) { |
| 104 | this.dst_tp_port_op = dst_tp_port_op; |
| 105 | } |
| 106 | |
| 107 | public String getDst_tp_port_op() { |
| 108 | return this.dst_tp_port_op; |
| 109 | } |
| 110 | |
| 111 | public void setDst_tp_port(short dst_tp_port) { |
| 112 | this.dst_tp_port = dst_tp_port; |
| 113 | } |
| 114 | |
| 115 | public short getDst_tp_port() { |
| 116 | return this.dst_tp_port; |
| 117 | } |
| 118 | } |