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