fa5fa208fe5b64a05f68a1adb11d319797b8007d
[ovsdb.git] / schemas / openvswitch / src / main / java / org / opendaylight / ovsdb / schema / openvswitch / AutoAttach.java
1 /*
2  * Copyright (c) 2016 Inocybe Technologies and others. All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.ovsdb.schema.openvswitch;
10
11 import java.util.Map;
12
13 import org.opendaylight.ovsdb.lib.notation.Column;
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;
19
20 /**
21  * This class is a typed interface to the AutoAttach Table.
22  */
23 @TypedTable(name = "AutoAttach", database = "Open_vSwitch", fromVersion = "7.11.2")
24 public interface AutoAttach extends TypedBaseTable<GenericTableSchema> {
25
26     @TypedColumn(name = "system_name", method = MethodType.GETCOLUMN, fromVersion = "7.11.2")
27     Column<GenericTableSchema, String> getSystemNameColumn();
28
29     @TypedColumn(name = "system_name", method = MethodType.SETDATA, fromVersion = "7.11.2")
30     void setSystemName(String systemName);
31
32     @TypedColumn(name = "system_description", method = MethodType.GETCOLUMN, fromVersion = "7.11.2")
33     Column<GenericTableSchema, String> getSystemDescriptionColumn();
34
35     @TypedColumn(name = "system_description", method = MethodType.SETDATA, fromVersion = "7.11.2")
36     void setSystemDescription(String systemDescription);
37
38     @TypedColumn(name = "mappings", method = MethodType.GETCOLUMN, fromVersion = "7.11.2")
39     Column<GenericTableSchema, Map<Long, Long>> getMappingsColumn();
40
41     @TypedColumn(name = "mappings", method = MethodType.SETDATA, fromVersion = "7.11.2")
42     void setMappings(Map<Long, Long> mappings);
43
44     // FIXME: To be uncommented when Open vSwitch supports external_ids column
45 //    @TypedColumn (name="external_ids", method= MethodType.GETCOLUMN, fromVersion="7.11.2")
46 //    Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn();
47 //    @TypedColumn (name="external_ids", method= MethodType.SETDATA, fromVersion="7.11.2")
48 //    void setExternalIds(Map<String, String> externalIds);
49
50 }