Pier Ventre
Committed by Gerrit Code Review

[ONOS-5036] Revise Mirror table in OVSDB protocol

Change-Id: I99f5151a7a7abe7c79aec88020b1b9c63337c052
...@@ -78,7 +78,7 @@ public class Mirror extends AbstractOvsdbTableService { ...@@ -78,7 +78,7 @@ public class Mirror extends AbstractOvsdbTableService {
78 * attributes. 78 * attributes.
79 * @param name the column data which column name is "name" 79 * @param name the column data which column name is "name"
80 */ 80 */
81 - public void setName(Set<String> name) { 81 + public void setName(String name) {
82 ColumnDescription columndesc = new ColumnDescription(MirrorColumn.NAME.columnName(), 82 ColumnDescription columndesc = new ColumnDescription(MirrorColumn.NAME.columnName(),
83 "setName", 83 "setName",
84 VersionNum.VERSION100); 84 VersionNum.VERSION100);
...@@ -90,11 +90,11 @@ public class Mirror extends AbstractOvsdbTableService { ...@@ -90,11 +90,11 @@ public class Mirror extends AbstractOvsdbTableService {
90 * attributes. 90 * attributes.
91 * @return the column data which column name is "name" 91 * @return the column data which column name is "name"
92 */ 92 */
93 - public Set<String> getName() { 93 + public String getName() {
94 ColumnDescription columndesc = new ColumnDescription(MirrorColumn.NAME.columnName(), 94 ColumnDescription columndesc = new ColumnDescription(MirrorColumn.NAME.columnName(),
95 "getName", 95 "getName",
96 VersionNum.VERSION100); 96 VersionNum.VERSION100);
97 - return (Set<String>) super.getDataHandler(columndesc); 97 + return (String) super.getDataHandler(columndesc);
98 } 98 }
99 99
100 /** 100 /**
...@@ -159,7 +159,7 @@ public class Mirror extends AbstractOvsdbTableService { ...@@ -159,7 +159,7 @@ public class Mirror extends AbstractOvsdbTableService {
159 * of attributes. 159 * of attributes.
160 * @param selectVlan the column data which column name is "select_vlan" 160 * @param selectVlan the column data which column name is "select_vlan"
161 */ 161 */
162 - public void setSelectVlan(Set<Long> selectVlan) { 162 + public void setSelectVlan(Set<Short> selectVlan) {
163 ColumnDescription columndesc = new ColumnDescription(MirrorColumn.SELECTVLAN.columnName(), 163 ColumnDescription columndesc = new ColumnDescription(MirrorColumn.SELECTVLAN.columnName(),
164 "setSelectVlan", VersionNum.VERSION100); 164 "setSelectVlan", VersionNum.VERSION100);
165 super.setDataHandler(columndesc, selectVlan); 165 super.setDataHandler(columndesc, selectVlan);
...@@ -181,7 +181,7 @@ public class Mirror extends AbstractOvsdbTableService { ...@@ -181,7 +181,7 @@ public class Mirror extends AbstractOvsdbTableService {
181 * of attributes. 181 * of attributes.
182 * @param outputPort the column data which column name is "output_port" 182 * @param outputPort the column data which column name is "output_port"
183 */ 183 */
184 - public void setOutputPort(Set<Uuid> outputPort) { 184 + public void setOutputPort(Uuid outputPort) {
185 ColumnDescription columndesc = new ColumnDescription(MirrorColumn.OUTPUTPORT.columnName(), 185 ColumnDescription columndesc = new ColumnDescription(MirrorColumn.OUTPUTPORT.columnName(),
186 "setOutputPort", VersionNum.VERSION100); 186 "setOutputPort", VersionNum.VERSION100);
187 super.setDataHandler(columndesc, outputPort); 187 super.setDataHandler(columndesc, outputPort);
...@@ -203,7 +203,7 @@ public class Mirror extends AbstractOvsdbTableService { ...@@ -203,7 +203,7 @@ public class Mirror extends AbstractOvsdbTableService {
203 * of attributes. 203 * of attributes.
204 * @param outputVlan the column data which column name is "output_vlan" 204 * @param outputVlan the column data which column name is "output_vlan"
205 */ 205 */
206 - public void setOutputVlan(Set<Long> outputVlan) { 206 + public void setOutputVlan(Set<Short> outputVlan) {
207 ColumnDescription columndesc = new ColumnDescription(MirrorColumn.OUTPUTVLAN.columnName(), 207 ColumnDescription columndesc = new ColumnDescription(MirrorColumn.OUTPUTVLAN.columnName(),
208 "setOutputVlan", VersionNum.VERSION100); 208 "setOutputVlan", VersionNum.VERSION100);
209 super.setDataHandler(columndesc, outputVlan); 209 super.setDataHandler(columndesc, outputVlan);
......