2 * Copyright (c) 2016 Inocybe Technologies 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;
11 import org.opendaylight.ovsdb.lib.notation.Column;
12 import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
13 import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
14 import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
15 import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
16 import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
19 * This class is a typed interface to the AutoAttach Table.
21 @TypedTable(name = "AutoAttach", database = "Open_vSwitch", fromVersion = "7.11.2")
22 public interface AutoAttach extends TypedBaseTable<GenericTableSchema> {
24 @TypedColumn(name = "system_name", method = MethodType.GETCOLUMN, fromVersion = "7.11.2")
25 Column<GenericTableSchema, String> getSystemNameColumn();
27 @TypedColumn(name = "system_name", method = MethodType.SETDATA, fromVersion = "7.11.2")
28 void setSystemName(String systemName);
30 @TypedColumn(name = "system_description", method = MethodType.GETCOLUMN, fromVersion = "7.11.2")
31 Column<GenericTableSchema, String> getSystemDescriptionColumn();
33 @TypedColumn(name = "system_description", method = MethodType.SETDATA, fromVersion = "7.11.2")
34 void setSystemDescription(String systemDescription);
36 @TypedColumn(name = "mappings", method = MethodType.GETCOLUMN, fromVersion = "7.11.2")
37 Column<GenericTableSchema, Map<Long, Long>> getMappingsColumn();
39 @TypedColumn(name = "mappings", method = MethodType.SETDATA, fromVersion = "7.11.2")
40 void setMappings(Map<Long, Long> mappings);
42 // FIXME: To be uncommented when Open vSwitch supports external_ids column
43 // @TypedColumn (name="external_ids", method= MethodType.GETCOLUMN, fromVersion="7.11.2")
44 // Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn();
45 // @TypedColumn (name="external_ids", method= MethodType.SETDATA, fromVersion="7.11.2")
46 // void setExternalIds(Map<String, String> externalIds);