2 * Copyright (C) 2013 Red Hat, Inc.
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 * Authors : Madhu Venugopal, Dave Tucker
10 package org.opendaylight.ovsdb.schema.openvswitch;
12 import java.math.BigInteger;
16 import org.opendaylight.ovsdb.lib.notation.Column;
17 import org.opendaylight.ovsdb.lib.notation.UUID;
18 import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
19 import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
20 import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
21 import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
22 import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
25 * This class is a typed interface to the Port Table
27 @TypedTable(name="Port", database="Open_vSwitch")
28 public interface Port extends TypedBaseTable {
30 @TypedColumn(name="name", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
31 public Column<GenericTableSchema, String> getNameColumn();
32 @TypedColumn(name="name", method=MethodType.SETDATA, fromVersion="1.0.0")
33 public void setName(String name);
34 @TypedColumn(name="name", method=MethodType.GETDATA, fromVersion="1.0.0")
35 public String getName();
37 @TypedColumn(name="interfaces", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
38 public Column<GenericTableSchema, Set<UUID>> getInterfacesColumn();
39 @TypedColumn(name="interfaces", method=MethodType.SETDATA, fromVersion="1.0.0")
40 public void setInterfaces(Set<UUID> interfaces);
42 @TypedColumn(name="trunks", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
43 public Column<GenericTableSchema, Set<BigInteger>> getTrunksColumn();
44 @TypedColumn(name="trunks", method=MethodType.SETDATA, fromVersion="1.0.0")
45 public void setTrunks(Set<BigInteger> trunks);
47 @TypedColumn(name="tag", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
48 public Column<GenericTableSchema, Set<BigInteger>> getTagColumn();
49 @TypedColumn(name="tag", method=MethodType.SETDATA, fromVersion="1.0.0")
50 public void setTag(Set<BigInteger> tag);
52 @TypedColumn(name="vlan_mode", method=MethodType.GETCOLUMN, fromVersion="6.1.0")
53 public Column<GenericTableSchema, Set<String>> getVlanModeColumn();
54 @TypedColumn(name="vlan_mode", method=MethodType.SETDATA, fromVersion="6.1.0")
55 public void setVlanMode(Set<String> vlanMode);
57 @TypedColumn(name="qos", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
58 public Column<GenericTableSchema, Set<UUID>> getQosColumn();
59 @TypedColumn(name="qos", method=MethodType.SETDATA, fromVersion="1.0.0")
60 public void setQos(Set<UUID> qos);
62 @TypedColumn(name="mac", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
63 public Column<GenericTableSchema, Set<String>> getMacColumn();
64 @TypedColumn(name="mac", method=MethodType.SETDATA, fromVersion="1.0.0")
65 public void setMac(Set<String> mac);
67 @TypedColumn(name="bond_type", method=MethodType.GETCOLUMN, fromVersion="1.0.2", untilVersion="1.0.3")
68 public Column<GenericTableSchema, Set<String>> getBondTypeColumn();
69 @TypedColumn(name="bond_type", method=MethodType.SETDATA)
70 public void setBondType(Set<String> bond_type);
72 @TypedColumn(name="bond_mode", method=MethodType.GETCOLUMN, fromVersion="1.0.4")
73 public Column<GenericTableSchema, Set<String>> getBondModeColumn();
74 @TypedColumn(name="bond_mode", method=MethodType.SETDATA, fromVersion="1.0.4")
75 public void setBondMode(Set<String> bond_mode);
77 @TypedColumn(name="lacp", method=MethodType.GETCOLUMN, fromVersion="1.3.0")
78 public Column<GenericTableSchema, Set<String>> getLacpColumn();
79 @TypedColumn(name="lacp", method=MethodType.SETDATA, fromVersion="1.3.0")
80 public void setLacp(Set<String> lacp);
82 @TypedColumn(name="bond_updelay", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
83 public Column<GenericTableSchema, Set<BigInteger>> getBondUpDelayColumn();
84 @TypedColumn(name="bond_updelay", method=MethodType.SETDATA, fromVersion="1.0.0")
85 public void setBondUpDelay(Set<BigInteger> bondUpDelay);
87 @TypedColumn(name="bond_downdelay", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
88 public Column<GenericTableSchema, Set<BigInteger>> getBondDownDelayColumn();
89 @TypedColumn(name="bond_downdelay", method=MethodType.SETDATA, fromVersion="1.0.0")
90 public void setBondDownDelay(Set<BigInteger> bondDownDelay);
92 @TypedColumn(name="bond_fake_iface", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
93 public Column<GenericTableSchema, Set<Boolean>> getBondFakeInterfaceColumn();
94 @TypedColumn(name="bond_fake_iface", method=MethodType.SETDATA, fromVersion="1.0.0")
95 public void setBondFakeInterface(Set<Boolean> bondFakeInterface);
97 @TypedColumn(name="fake_bridge", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
98 public Column<GenericTableSchema, Set<Boolean>> getFakeBridgeColumn();
99 @TypedColumn(name="fake_bridge", method=MethodType.SETDATA, fromVersion="1.0.0")
100 public void setFakeBridge(Set<Boolean> fakeBridge);
102 @TypedColumn(name="status", method=MethodType.GETCOLUMN, fromVersion="6.2.0")
103 public Column<GenericTableSchema, Map<String, String>> getStatusColumn();
104 @TypedColumn(name="status", method=MethodType.SETDATA, fromVersion="6.2.0")
105 public void setStatus(Map<String, String> status);
107 @TypedColumn(name="statistics", method=MethodType.GETCOLUMN, fromVersion="6.3.0")
108 public Column<GenericTableSchema, Map<String, BigInteger>> getStatisticsColumn();
109 @TypedColumn(name="statistics", method=MethodType.SETDATA)
110 public void setStatistics(Map<String, BigInteger> statistics);
112 @TypedColumn(name="other_config", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
113 public Column<GenericTableSchema, Map<String, String>> getOtherConfigColumn();
114 @TypedColumn(name="other_config", method=MethodType.SETDATA, fromVersion="1.0.0")
115 public void setOtherConfig(Map<String, String> otherConfig);
117 @TypedColumn(name="external_ids", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
118 public Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn();
119 @TypedColumn(name="external_ids", method=MethodType.SETDATA, fromVersion="1.0.0")
120 public void setExternalIds(Map<String, String> externalIds);