/* * Copyright (c) 2014, 2015 Red Hat, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.ovsdb.schema.hardwarevtep; import java.util.Map; import java.util.Set; import org.opendaylight.ovsdb.lib.notation.Column; import org.opendaylight.ovsdb.lib.notation.UUID; import org.opendaylight.ovsdb.lib.schema.GenericTableSchema; import org.opendaylight.ovsdb.lib.schema.typed.MethodType; import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable; import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn; import org.opendaylight.ovsdb.lib.schema.typed.TypedTable; @TypedTable(name = "Physical_Switch", database = "hardware_vtep", fromVersion = "1.0.0") public interface PhysicalSwitch extends TypedBaseTable { @TypedColumn(name = "name", method = MethodType.GETCOLUMN, fromVersion = "1.0.0") Column getNameColumn(); @TypedColumn(name = "name", method = MethodType.GETDATA, fromVersion = "1.0.0") String getName(); @TypedColumn(name = "name", method = MethodType.SETDATA, fromVersion = "1.0.0") void setName(String name); @TypedColumn(name = "description", method = MethodType.GETCOLUMN, fromVersion = "1.0.0") Column getDescriptionColumn(); @TypedColumn(name = "description", method = MethodType.GETDATA, fromVersion = "1.0.0") String getDescription(); @TypedColumn(name = "description", method = MethodType.SETDATA, fromVersion = "1.0.0") void setDescription(String description); @TypedColumn(name = "ports", method = MethodType.GETCOLUMN, fromVersion = "1.0.0") Column> getPortsColumn(); @TypedColumn(name = "ports", method = MethodType.SETDATA, fromVersion = "1.0.0") void setPorts(Set ports); @TypedColumn(name = "management_ips", method = MethodType.GETCOLUMN, fromVersion = "1.0.0") Column> getManagementIpsColumn(); @TypedColumn(name = "management_ips", method = MethodType.SETDATA, fromVersion = "1.0.0") void setManagementIps(Set managementIps); @TypedColumn(name = "tunnel_ips", method = MethodType.GETCOLUMN, fromVersion = "1.0.0") Column> getTunnelIpsColumn(); @TypedColumn(name = "tunnel_ips", method = MethodType.SETDATA, fromVersion = "1.0.0") void setTunnelIps(Set tunnelIps); @TypedColumn(name = "tunnels", method = MethodType.GETCOLUMN, fromVersion = "1.3.0") Column> getTunnels(); @TypedColumn(name = "tunnels", method = MethodType.SETDATA, fromVersion = "1.3.0") void setTunnels(Set tunnels); @TypedColumn(name = "other_config", method = MethodType.GETCOLUMN, fromVersion = "1.5.1") Column> getOtherConfigColumn(); @TypedColumn(name = "other_config", method = MethodType.SETDATA, fromVersion = "1.5.1") void setOtherConfig(Map otherConfig); @TypedColumn(name = "switch_fault_status", method = MethodType.GETCOLUMN, fromVersion = "1.1.0") Column> getSwitchFaultStatusColumn(); @TypedColumn(name = "switch_fault_status", method = MethodType.SETDATA, fromVersion = "1.1.0") void setSwitchFaultStatus(Set switchFaultStatus); }