Merge branch 'master' into topic/schema
[ovsdb.git] / schemas / Open_vSwitch / src / main / java / org / opendaylight / ovsdb / schema / openvswitch / Mirror.java
1 /*
2  * Copyright (C) 2013 Red Hat, Inc.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Authors : Madhu Venugopal
9  */
10 package org.opendaylight.ovsdb.schema.openvswitch;
11
12 import java.util.Map;
13 import java.util.Set;
14
15 import org.opendaylight.ovsdb.lib.notation.Column;
16 import org.opendaylight.ovsdb.lib.notation.UUID;
17 import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
18 import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
19 import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
20 import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
21 import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
22
23
24 /*
25  * Reusing the existing Table definitions and many of columns are not defined here
26  * TODO : Fill up the missing Columns and include Supported DB Version
27  */
28 @TypedTable(name="Mirror", database="Open_vSwitch")
29 public interface Mirror extends TypedBaseTable {
30
31     @TypedColumn(name="name", method=MethodType.GETCOLUMN)
32     public Column<GenericTableSchema, String> getNameColumn();
33     @TypedColumn(name="name", method=MethodType.SETDATA)
34     public void setName(String name);
35
36     @TypedColumn(name="select_src_port", method=MethodType.GETCOLUMN)
37     public Column<GenericTableSchema, Set<UUID>> getSelectSrcPortColumn();
38     @TypedColumn(name="select_src_port", method=MethodType.SETDATA)
39     public void setSelectSrcPort(Set<UUID> selectSrcPort);
40
41     @TypedColumn(name="select_dst_port", method=MethodType.GETCOLUMN)
42     public Column<GenericTableSchema, Set<UUID>> getSelectDstPortColumn();
43     @TypedColumn(name="select_dst_port", method=MethodType.SETDATA)
44     public void setSelectDstPort(Set<UUID> selectDstPrt);
45
46     @TypedColumn(name="select_vlan", method=MethodType.GETCOLUMN)
47     public Column<GenericTableSchema, Set<Integer>> getSelectVlanColumn();
48     @TypedColumn(name="select_vlan", method=MethodType.SETDATA)
49     public void setSelectVlan(Set<Integer> selectVlan);
50
51     @TypedColumn(name="output_port", method=MethodType.GETCOLUMN)
52     public Column<GenericTableSchema, Set<UUID>> getOutputPortColumn();
53     @TypedColumn(name="output_port", method=MethodType.SETDATA)
54     public void setOutputPort(Set<UUID> outputPort);
55
56     @TypedColumn(name="output_vlan", method=MethodType.GETCOLUMN)
57     public Column<GenericTableSchema, Set<Integer>> getOutputVlanColumn();
58     @TypedColumn(name="output_vlan", method=MethodType.SETDATA)
59     public void setOutputVlan(Set<Integer> outputVlan);
60
61     @TypedColumn(name="statistics", method=MethodType.GETCOLUMN)
62     public Column<GenericTableSchema, Map<String, Integer>> getStatisticsColumn();
63     @TypedColumn(name="statistics", method=MethodType.SETDATA)
64     public void setStatistics(Map<String, Integer> statistics);
65
66     @TypedColumn(name="external_ids", method=MethodType.GETCOLUMN)
67     public Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn();
68     @TypedColumn(name="external_ids", method=MethodType.SETDATA)
69     public void setExternalIds(Map<String, String> externalIds);
70 }