2 * Copyright (c) 2014, 2015 Red Hat, Inc. and others. All rights reserved.
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 package org.opendaylight.ovsdb.schema.openvswitch;
12 import org.opendaylight.ovsdb.lib.notation.Column;
13 import org.opendaylight.ovsdb.lib.notation.UUID;
14 import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
15 import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
16 import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
17 import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
18 import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
21 * This class is a typed interface to the Bridge Table.
23 @TypedTable(name = "Bridge", database = "Open_vSwitch", fromVersion = "1.0.0")
24 public interface Bridge extends TypedBaseTable<GenericTableSchema> {
26 @TypedColumn(name = "name", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
27 Column<GenericTableSchema, String> getNameColumn();
29 @TypedColumn(name = "name", method = MethodType.GETDATA, fromVersion = "1.0.0")
32 @TypedColumn(name = "name", method = MethodType.SETDATA, fromVersion = "1.0.0")
33 void setName(String name);
35 @TypedColumn(name = "datapath_type", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
36 Column<GenericTableSchema, String> getDatapathTypeColumn();
38 @TypedColumn(name = "datapath_type", method = MethodType.SETDATA, fromVersion = "1.0.0")
39 void setDatapathType(String datapathType);
41 @TypedColumn(name = "datapath_id", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
42 Column<GenericTableSchema, Set<String>> getDatapathIdColumn();
44 @TypedColumn(name = "datapath_id", method = MethodType.SETDATA, fromVersion = "1.0.0")
45 void setDatapathId(Set<String> datapathId);
47 @TypedColumn(name = "stp_enable", method = MethodType.GETCOLUMN, fromVersion = "6.2.0")
48 Column<GenericTableSchema, Boolean> getStpEnableColumn();
50 @TypedColumn(name = "stp_enable", method = MethodType.SETDATA, fromVersion = "6.2.0")
51 void setStpEnable(Boolean stpEnable);
53 @TypedColumn(name = "ports", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
54 Column<GenericTableSchema, Set<UUID>> getPortsColumn();
56 @TypedColumn(name = "ports", method = MethodType.SETDATA, fromVersion = "1.0.0")
57 void setPorts(Set<UUID> ports);
59 @TypedColumn(name = "mirrors", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
60 Column<GenericTableSchema, Set<UUID>> getMirrorsColumn();
62 @TypedColumn(name = "mirrors", method = MethodType.SETDATA, fromVersion = "1.0.0")
63 void setMirrors(Set<UUID> mirrors);
65 @TypedColumn(name = "netflow", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
66 Column<GenericTableSchema, Set<UUID>> getNetflowColumn();
68 @TypedColumn(name = "netflow", method = MethodType.SETDATA, fromVersion = "1.0.0")
69 void setNetflow(Set<UUID> netflow);
71 @TypedColumn(name = "sflow", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
72 Column<GenericTableSchema, Set<UUID>> getSflowColumn();
74 @TypedColumn(name = "sflow", method = MethodType.SETDATA, fromVersion = "1.0.0")
75 void setSflow(Set<UUID> sflow);
77 @TypedColumn(name = "ipfix", method = MethodType.GETCOLUMN, fromVersion = "7.1.0")
78 Column<GenericTableSchema, Set<UUID>> getIpfixColumn();
80 @TypedColumn(name = "ipfix", method = MethodType.SETDATA, fromVersion = "7.1.0")
81 void setIpfix(Set<UUID> ipfix);
83 @TypedColumn(name = "controller", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
84 Column<GenericTableSchema, Set<UUID>> getControllerColumn();
86 @TypedColumn(name = "controller", method = MethodType.SETDATA, fromVersion = "1.0.0")
87 void setController(Set<UUID> controller);
89 @TypedColumn(name = "protocols", method = MethodType.GETCOLUMN, fromVersion = "6.11.1")
90 Column<GenericTableSchema, Set<String>> getProtocolsColumn();
92 @TypedColumn(name = "protocols", method = MethodType.SETDATA, fromVersion = "6.11.1")
93 void setProtocols(Set<String> protocols);
95 @TypedColumn(name = "fail_mode", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
96 Column<GenericTableSchema, Set<String>> getFailModeColumn();
98 @TypedColumn(name = "fail_mode", method = MethodType.SETDATA, fromVersion = "1.0.0")
99 void setFailMode(Set<String> failMode);
101 @TypedColumn(name = "status", method = MethodType.GETCOLUMN, fromVersion = "6.2.0")
102 Column<GenericTableSchema, Map<String, String>> getStatusColumn();
104 @TypedColumn(name = "status", method = MethodType.SETDATA, fromVersion = "6.2.0")
105 void setStatus(Map<String, String> status);
107 @TypedColumn(name = "other_config", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
108 Column<GenericTableSchema, Map<String, String>> getOtherConfigColumn();
110 @TypedColumn(name = "other_config", method = MethodType.SETDATA, fromVersion = "1.0.0")
111 void setOtherConfig(Map<String, String> otherConfig);
113 @TypedColumn(name = "external_ids", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
114 Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn();
116 @TypedColumn(name = "external_ids", method = MethodType.SETDATA, fromVersion = "1.0.0")
117 void setExternalIds(Map<String, String> externalIds);
119 @TypedColumn(name = "flood_vlans", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
120 Column<GenericTableSchema, Set<Long>> getFloodVlansColumn();
122 @TypedColumn(name = "flood_vlans", method = MethodType.SETDATA, fromVersion = "1.0.0")
123 void setFloodVlans(Set<Long> vlans);
125 @TypedColumn(name = "flow_tables", method = MethodType.GETCOLUMN, fromVersion = "6.5.0")
126 Column<GenericTableSchema, Map<Long, UUID>> getFlowTablesColumn();
128 @TypedColumn(name = "flow_tables", method = MethodType.SETDATA, fromVersion = "6.5.0")
129 void setFlowTables(Map<Long, UUID> flowTables);
131 @TypedColumn(name = "auto_attach", method = MethodType.GETCOLUMN, fromVersion = "7.11.2")
132 Column<GenericTableSchema, Set<UUID>> getAutoAttachColumn();
134 @TypedColumn(name = "auto_attach", method = MethodType.SETDATA, fromVersion = "7.11.2")
135 void setAutoAttach(Set<UUID> autoAttach);