2 * Copyright (C) 2013 Red Hat, Inc.
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
8 * Authors : Madhu Venugopal
10 package org.opendaylight.ovsdb.schema.openvswitch;
12 import java.math.BigInteger;
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;
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
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) ;
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) ;
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) ;
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) ;
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) ;
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) ;
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) ;
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) ;