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;
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;
25 * Reusing the existing Table definitions and a few columns are not defined here
26 * TODO : Fill up the missing Columns and include Supported DB Version
29 @TypedTable(name="Open_vSwitch", database="Open_vSwitch")
30 public interface OpenVSwitch extends TypedBaseTable {
31 @TypedColumn(name="bridges", method=MethodType.GETCOLUMN)
32 public Column<GenericTableSchema, Set<UUID>> getBridgesColumn() ;
33 @TypedColumn(name="bridges", method=MethodType.SETDATA)
34 public void setBridges(Set<UUID> bridges) ;
36 @TypedColumn(name="curr_cfg", method=MethodType.GETCOLUMN)
37 public Column<GenericTableSchema, Integer> getCurr_cfgColumn() ;
38 @TypedColumn(name="curr_cfg", method=MethodType.SETDATA)
39 public void setCurr_cfg(Integer curr_cfg) ;
41 @TypedColumn(name="db_version", method=MethodType.GETCOLUMN)
42 public Column<GenericTableSchema, Set<String>> getDbVersionColumn() ;
43 @TypedColumn(name="db_version", method=MethodType.SETDATA)
44 public void setDbVersion(Set<String> dbVersion) ;
46 @TypedColumn(name="manager_options", method=MethodType.GETCOLUMN)
47 public Column<GenericTableSchema, Set<UUID>> getManagerOptionsColumn() ;
48 @TypedColumn(name="manager_options", method=MethodType.SETDATA)
49 public void setManagerOptions(Set<UUID> managerOptions) ;
51 @TypedColumn(name="status", method=MethodType.GETCOLUMN)
52 public Column<GenericTableSchema, Map<String, String>> getStatusColumn() ;
53 @TypedColumn(name="status", method=MethodType.SETDATA)
54 public void setStatus(Map<String, String> status) ;
56 @TypedColumn(name="next_cfg", method=MethodType.GETCOLUMN)
57 public Column<GenericTableSchema, Integer> getNextCfgColumn() ;
58 @TypedColumn(name="next_cfg", method=MethodType.SETDATA)
59 public void setNextCfg(Integer nextCfg) ;
61 @TypedColumn(name="ovs_version", method=MethodType.GETCOLUMN)
62 public Column<GenericTableSchema, Set<String>> getOvsVersionColumn() ;
63 @TypedColumn(name="ovs_version", method=MethodType.SETDATA)
64 public void setOvsVersion(Set<String> ovsVersion) ;
66 @TypedColumn(name="ssl", method=MethodType.GETCOLUMN)
67 public Column<GenericTableSchema, Set<UUID>> getSslColumn() ;
68 @TypedColumn(name="ssl", method=MethodType.SETDATA)
69 public void setSsl(Set<UUID> ssl) ;
71 @TypedColumn(name="system_type", method=MethodType.GETCOLUMN)
72 public Column<GenericTableSchema, Set<String>> getSystemTypeColumn() ;
73 @TypedColumn(name="system_type", method=MethodType.SETDATA)
74 public void setSystemType(Set<String> systemType) ;
76 @TypedColumn(name="system_version", method=MethodType.GETCOLUMN)
77 public Column<GenericTableSchema, Set<String>> getSystemVersionColumn() ;
78 @TypedColumn(name="system_version", method=MethodType.SETDATA)
79 public void setSystemVersion(Set<String> systemVersion) ;
81 @TypedColumn(name="capabilities", method=MethodType.GETCOLUMN)
82 public Column<GenericTableSchema, Map<String, UUID>> getCapabilitiesColumn() ;
83 @TypedColumn(name="capabilities", method=MethodType.SETDATA)
84 public void setCapabilities(Map<String, UUID> capabilities) ;
86 @TypedColumn(name="other_config", method=MethodType.GETCOLUMN)
87 public Column<GenericTableSchema, Map<String, String>> getOtherConfigColumn() ;
88 @TypedColumn(name="other_config", method=MethodType.SETDATA)
89 public void setOtherConfig(Map<String, String> otherConfig) ;
91 @TypedColumn(name="external_ids", method=MethodType.GETCOLUMN)
92 public Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn() ;
93 @TypedColumn(name="external_ids", method=MethodType.SETDATA)
94 public void setExternalIds(Map<String, String> externalIds) ;
96 @TypedColumn(name="statistics", method=MethodType.GETCOLUMN)
97 public Column<GenericTableSchema, Map<String, Integer>> getStatisticsColumn() ;
98 @TypedColumn(name="statistics", method=MethodType.SETDATA)
99 public void setStatistics(Map<String, Integer> statistics) ;