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
9 package org.opendaylight.ovsdb.schema.openvswitch;
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;
21 * This class is a typed interface to the AutoAttach Table.
23 @TypedTable(name = "AutoAttach", database = "Open_vSwitch", fromVersion = "7.11.2")
24 public interface AutoAttach extends TypedBaseTable<GenericTableSchema> {
26 @TypedColumn(name = "system_name", method = MethodType.GETCOLUMN, fromVersion = "7.11.2")
27 Column<GenericTableSchema, String> getSystemNameColumn();
29 @TypedColumn(name = "system_name", method = MethodType.SETDATA, fromVersion = "7.11.2")
30 void setSystemName(String systemName);
32 @TypedColumn(name = "system_description", method = MethodType.GETCOLUMN, fromVersion = "7.11.2")
33 Column<GenericTableSchema, String> getSystemDescriptionColumn();
35 @TypedColumn(name = "system_description", method = MethodType.SETDATA, fromVersion = "7.11.2")
36 void setSystemDescription(String systemDescription);
38 @TypedColumn(name = "mappings", method = MethodType.GETCOLUMN, fromVersion = "7.11.2")
39 Column<GenericTableSchema, Map<Long, Long>> getMappingsColumn();
41 @TypedColumn(name = "mappings", method = MethodType.SETDATA, fromVersion = "7.11.2")
42 void setMappings(Map<Long, Long> mappings);
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);