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
9 package org.opendaylight.ovsdb.schema.openvswitch;
14 import org.opendaylight.ovsdb.lib.notation.Column;
15 import org.opendaylight.ovsdb.lib.notation.UUID;
16 import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
17 import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
18 import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
19 import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
20 import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
23 * This class is a typed interface to the Bridge Table.
25 @TypedTable(name = "Bridge", database = "Open_vSwitch", fromVersion = "1.0.0")
26 public interface Bridge extends TypedBaseTable<GenericTableSchema> {
28 @TypedColumn(name = "name", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
29 Column<GenericTableSchema, String> getNameColumn();
31 @TypedColumn(name = "name", method = MethodType.GETDATA, fromVersion = "1.0.0")
34 @TypedColumn(name = "name", method = MethodType.SETDATA, fromVersion = "1.0.0")
35 void setName(String name);
37 @TypedColumn(name = "datapath_type", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
38 Column<GenericTableSchema, String> getDatapathTypeColumn();
40 @TypedColumn(name = "datapath_type", method = MethodType.SETDATA, fromVersion = "1.0.0")
41 void setDatapathType(String datapathType);
43 @TypedColumn(name = "datapath_id", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
44 Column<GenericTableSchema, Set<String>> getDatapathIdColumn();
46 @TypedColumn(name = "datapath_id", method = MethodType.SETDATA, fromVersion = "1.0.0")
47 void setDatapathId(Set<String> datapathId);
49 @TypedColumn(name = "stp_enable", method = MethodType.GETCOLUMN, fromVersion = "6.2.0")
50 Column<GenericTableSchema, Boolean> getStpEnableColumn();
52 @TypedColumn(name = "stp_enable", method = MethodType.SETDATA, fromVersion = "6.2.0")
53 void setStpEnable(Boolean stpEnable);
55 @TypedColumn(name = "ports", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
56 Column<GenericTableSchema, Set<UUID>> getPortsColumn();
58 @TypedColumn(name = "ports", method = MethodType.SETDATA, fromVersion = "1.0.0")
59 void setPorts(Set<UUID> ports);
61 @TypedColumn(name = "mirrors", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
62 Column<GenericTableSchema, Set<UUID>> getMirrorsColumn();
64 @TypedColumn(name = "mirrors", method = MethodType.SETDATA, fromVersion = "1.0.0")
65 void setMirrors(Set<UUID> mirrors);
67 @TypedColumn(name = "netflow", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
68 Column<GenericTableSchema, Set<UUID>> getNetflowColumn();
70 @TypedColumn(name = "netflow", method = MethodType.SETDATA, fromVersion = "1.0.0")
71 void setNetflow(Set<UUID> netflow);
73 @TypedColumn(name = "sflow", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
74 Column<GenericTableSchema, Set<UUID>> getSflowColumn();
76 @TypedColumn(name = "sflow", method = MethodType.SETDATA, fromVersion = "1.0.0")
77 void setSflow(Set<UUID> sflow);
79 @TypedColumn(name = "ipfix", method = MethodType.GETCOLUMN, fromVersion = "7.1.0")
80 Column<GenericTableSchema, Set<UUID>> getIpfixColumn();
82 @TypedColumn(name = "ipfix", method = MethodType.SETDATA, fromVersion = "7.1.0")
83 void setIpfix(Set<UUID> ipfix);
85 @TypedColumn(name = "controller", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
86 Column<GenericTableSchema, Set<UUID>> getControllerColumn();
88 @TypedColumn(name = "controller", method = MethodType.SETDATA, fromVersion = "1.0.0")
89 void setController(Set<UUID> controller);
91 @TypedColumn(name = "protocols", method = MethodType.GETCOLUMN, fromVersion = "6.11.1")
92 Column<GenericTableSchema, Set<String>> getProtocolsColumn();
94 @TypedColumn(name = "protocols", method = MethodType.SETDATA, fromVersion = "6.11.1")
95 void setProtocols(Set<String> protocols);
97 @TypedColumn(name = "fail_mode", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
98 Column<GenericTableSchema, Set<String>> getFailModeColumn();
100 @TypedColumn(name = "fail_mode", method = MethodType.SETDATA, fromVersion = "1.0.0")
101 void setFailMode(Set<String> failMode);
103 @TypedColumn(name = "status", method = MethodType.GETCOLUMN, fromVersion = "6.2.0")
104 Column<GenericTableSchema, Map<String, String>> getStatusColumn();
106 @TypedColumn(name = "status", method = MethodType.SETDATA, fromVersion = "6.2.0")
107 void setStatus(Map<String, String> status);
109 @TypedColumn(name = "other_config", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
110 Column<GenericTableSchema, Map<String, String>> getOtherConfigColumn();
112 @TypedColumn(name = "other_config", method = MethodType.SETDATA, fromVersion = "1.0.0")
113 void setOtherConfig(Map<String, String> otherConfig);
115 @TypedColumn(name = "external_ids", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
116 Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn();
118 @TypedColumn(name = "external_ids", method = MethodType.SETDATA, fromVersion = "1.0.0")
119 void setExternalIds(Map<String, String> externalIds);
121 @TypedColumn(name = "flood_vlans", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
122 Column<GenericTableSchema, Set<Long>> getFloodVlansColumn();
124 @TypedColumn(name = "flood_vlans", method = MethodType.SETDATA, fromVersion = "1.0.0")
125 void setFloodVlans(Set<Long> vlans);
127 @TypedColumn(name = "flow_tables", method = MethodType.GETCOLUMN, fromVersion = "6.5.0")
128 Column<GenericTableSchema, Map<Long, UUID>> getFlowTablesColumn();
130 @TypedColumn(name = "flow_tables", method = MethodType.SETDATA, fromVersion = "6.5.0")
131 void setFlowTables(Map<Long, UUID> flowTables);
133 @TypedColumn(name = "auto_attach", method = MethodType.GETCOLUMN, fromVersion = "7.11.2")
134 Column<GenericTableSchema, Set<UUID>> getAutoAttachColumn();
136 @TypedColumn(name = "auto_attach", method = MethodType.SETDATA, fromVersion = "7.11.2")
137 void setAutoAttach(Set<UUID> autoAttach);