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.hardwarevtep;
13 import org.opendaylight.ovsdb.lib.notation.Column;
14 import org.opendaylight.ovsdb.lib.notation.UUID;
15 import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
16 import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
17 import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
18 import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
19 import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
21 @TypedTable(name = "Physical_Switch", database = "hardware_vtep", fromVersion = "1.0.0")
22 public interface PhysicalSwitch extends TypedBaseTable<GenericTableSchema> {
23 @TypedColumn(name = "name", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
24 Column<GenericTableSchema, String> getNameColumn();
26 @TypedColumn(name = "name", method = MethodType.GETDATA, fromVersion = "1.0.0")
29 @TypedColumn(name = "name", method = MethodType.SETDATA, fromVersion = "1.0.0")
30 void setName(String name);
32 @TypedColumn(name = "description", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
33 Column<GenericTableSchema, String> getDescriptionColumn();
35 @TypedColumn(name = "description", method = MethodType.GETDATA, fromVersion = "1.0.0")
36 String getDescription();
38 @TypedColumn(name = "description", method = MethodType.SETDATA, fromVersion = "1.0.0")
39 void setDescription(String description);
41 @TypedColumn(name = "ports", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
42 Column<GenericTableSchema, Set<UUID>> getPortsColumn();
44 @TypedColumn(name = "ports", method = MethodType.SETDATA, fromVersion = "1.0.0")
45 void setPorts(Set<UUID> ports);
47 @TypedColumn(name = "management_ips", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
48 Column<GenericTableSchema, Set<String>> getManagementIpsColumn();
50 @TypedColumn(name = "management_ips", method = MethodType.SETDATA, fromVersion = "1.0.0")
51 void setManagementIps(Set<String> managementIps);
53 @TypedColumn(name = "tunnel_ips", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
54 Column<GenericTableSchema, Set<String>> getTunnelIpsColumn();
56 @TypedColumn(name = "tunnel_ips", method = MethodType.SETDATA, fromVersion = "1.0.0")
57 void setTunnelIps(Set<String> tunnelIps);
59 @TypedColumn(name = "tunnels", method = MethodType.GETCOLUMN, fromVersion = "1.3.0")
60 Column<GenericTableSchema, Set<UUID>> getTunnels();
62 @TypedColumn(name = "tunnels", method = MethodType.SETDATA, fromVersion = "1.3.0")
63 void setTunnels(Set<UUID> tunnels);
65 @TypedColumn(name = "other_config", method = MethodType.GETCOLUMN, fromVersion = "1.5.1")
66 Column<GenericTableSchema, Map<String, String>> getOtherConfigColumn();
68 @TypedColumn(name = "other_config", method = MethodType.SETDATA, fromVersion = "1.5.1")
69 void setOtherConfig(Map<String, String> otherConfig);
71 @TypedColumn(name = "switch_fault_status", method = MethodType.GETCOLUMN, fromVersion = "1.1.0")
72 Column<GenericTableSchema, Set<String>> getSwitchFaultStatusColumn();
74 @TypedColumn(name = "switch_fault_status", method = MethodType.SETDATA, fromVersion = "1.1.0")
75 void setSwitchFaultStatus(Set<String> switchFaultStatus);