Adding rest of the Open_vSwitch schema typed tables.
[ovsdb.git] / schemas / Open_vSwitch / src / main / java / org / opendaylight / ovsdb / schema / openvswitch / Port.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.math.BigInteger;
13 import java.util.Map;
14 import java.util.Set;
15
16 import org.opendaylight.ovsdb.lib.notation.Column;
17 import org.opendaylight.ovsdb.lib.notation.UUID;
18 import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
19 import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
20 import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
21 import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
22 import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
23
24
25 /*
26  * Reusing the existing Table definitions and many of columns are not defined here
27  * TODO : Fill up the missing Columns and include Supported DB Version
28  */
29
30 @TypedTable(name="Port", database="Open_vSwitch")
31 public interface Port extends TypedBaseTable {
32     @TypedColumn(name="name", method=MethodType.GETCOLUMN)
33     public Column<GenericTableSchema, String> getNameColumn() ;
34     @TypedColumn(name="name", method=MethodType.SETDATA)
35     public void setName(String name) ;
36
37     @TypedColumn(name="tag", method=MethodType.GETCOLUMN)
38     public Column<GenericTableSchema, Set<BigInteger>> getTagColumn() ;
39     @TypedColumn(name="tag", method=MethodType.SETDATA)
40     public void setTag(Set<BigInteger> tag) ;
41
42     @TypedColumn(name="trunks", method=MethodType.GETCOLUMN)
43     public Column<GenericTableSchema, Set<BigInteger>> getTrunksColumn() ;
44     @TypedColumn(name="trunks", method=MethodType.SETDATA)
45     public void setTrunks(Set<BigInteger> trunks) ;
46
47     @TypedColumn(name="interfaces", method=MethodType.GETCOLUMN)
48     public Column<GenericTableSchema, Set<UUID>> getInterfacesColumn() ;
49     @TypedColumn(name="interfaces", method=MethodType.SETDATA)
50     public void setInterfaces(Set<UUID> interfaces) ;
51
52     @TypedColumn(name="mac", method=MethodType.GETCOLUMN)
53     public Column<GenericTableSchema, Set<String>> getMacColumn() ;
54     @TypedColumn(name="mac", method=MethodType.SETDATA)
55     public void setMac(Set<String> mac) ;
56
57     @TypedColumn(name="qos", method=MethodType.GETCOLUMN)
58     public Column<GenericTableSchema, Set<UUID>> getQosColumn() ;
59     @TypedColumn(name="qos", method=MethodType.SETDATA)
60     public void setQos(Set<UUID> qos) ;
61
62     @TypedColumn(name="other_config", method=MethodType.GETCOLUMN)
63     public Column<GenericTableSchema, Map<String, String>> getOtherConfigColumn() ;
64     @TypedColumn(name="other_config", method=MethodType.SETDATA)
65     public void setOtherConfig(Map<String, String> otherConfig) ;
66
67     @TypedColumn(name="external_ids", method=MethodType.GETCOLUMN)
68     public Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn() ;
69     @TypedColumn(name="external_ids", method=MethodType.SETDATA)
70     public void setExternalIds(Map<String, String> externalIds) ;
71 }