2 * Copyright (c) 2013, 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.openvswitch;
14 import org.opendaylight.ovsdb.lib.notation.Column;
15 import org.opendaylight.ovsdb.lib.notation.UUID;
16 import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
17 import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
18 import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
19 import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
20 import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
23 * This class is a typed interface to the Port Table
25 @TypedTable(name="Port", database="Open_vSwitch", fromVersion="1.0.0")
26 public interface Port extends TypedBaseTable<GenericTableSchema> {
28 @TypedColumn(name="name", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
29 Column<GenericTableSchema, String> getNameColumn();
30 @TypedColumn(name="name", method=MethodType.SETDATA, fromVersion="1.0.0")
31 void setName(String name);
32 @TypedColumn(name="name", method=MethodType.GETDATA, fromVersion="1.0.0")
35 @TypedColumn(name="interfaces", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
36 Column<GenericTableSchema, Set<UUID>> getInterfacesColumn();
37 @TypedColumn(name="interfaces", method=MethodType.SETDATA, fromVersion="1.0.0")
38 void setInterfaces(Set<UUID> interfaces);
40 @TypedColumn(name="trunks", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
41 Column<GenericTableSchema, Set<Long>> getTrunksColumn();
42 @TypedColumn(name="trunks", method=MethodType.SETDATA, fromVersion="1.0.0")
43 void setTrunks(Set<Long> trunks);
45 @TypedColumn(name="tag", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
46 Column<GenericTableSchema, Set<Long>> getTagColumn();
48 @TypedColumn(name="tag", method=MethodType.SETDATA, fromVersion="1.0.0")
49 void setTag(Set<Long> tag);
51 @TypedColumn(name="vlan_mode", method=MethodType.GETCOLUMN, fromVersion="6.1.0")
52 Column<GenericTableSchema, Set<String>> getVlanModeColumn();
53 @TypedColumn(name="vlan_mode", method=MethodType.SETDATA, fromVersion="6.1.0")
54 void setVlanMode(Set<String> vlanMode);
56 @TypedColumn(name="qos", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
57 Column<GenericTableSchema, Set<UUID>> getQosColumn();
58 @TypedColumn(name="qos", method=MethodType.SETDATA, fromVersion="1.0.0")
59 void setQos(Set<UUID> qos);
61 @TypedColumn(name="mac", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
62 Column<GenericTableSchema, Set<String>> getMacColumn();
63 @TypedColumn(name="mac", method=MethodType.SETDATA, fromVersion="1.0.0")
64 void setMac(Set<String> mac);
66 @TypedColumn(name="bond_type", method=MethodType.GETCOLUMN, fromVersion="1.0.2", untilVersion="1.0.3")
67 Column<GenericTableSchema, Set<String>> getBondTypeColumn();
68 @TypedColumn(name="bond_type", method=MethodType.SETDATA)
69 void setBondType(Set<String> bond_type);
71 @TypedColumn(name="bond_mode", method=MethodType.GETCOLUMN, fromVersion="1.0.4")
72 Column<GenericTableSchema, Set<String>> getBondModeColumn();
73 @TypedColumn(name="bond_mode", method=MethodType.SETDATA, fromVersion="1.0.4")
74 void setBondMode(Set<String> bond_mode);
76 @TypedColumn(name="lacp", method=MethodType.GETCOLUMN, fromVersion="1.3.0")
77 Column<GenericTableSchema, Set<String>> getLacpColumn();
78 @TypedColumn(name="lacp", method=MethodType.SETDATA, fromVersion="1.3.0")
79 void setLacp(Set<String> lacp);
81 @TypedColumn(name="bond_updelay", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
82 Column<GenericTableSchema, Set<Long>> getBondUpDelayColumn();
83 @TypedColumn(name="bond_updelay", method=MethodType.SETDATA, fromVersion="1.0.0")
84 void setBondUpDelay(Set<Long> bondUpDelay);
86 @TypedColumn(name="bond_downdelay", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
87 Column<GenericTableSchema, Set<Long>> getBondDownDelayColumn();
88 @TypedColumn(name="bond_downdelay", method=MethodType.SETDATA, fromVersion="1.0.0")
89 void setBondDownDelay(Set<Long> bondDownDelay);
91 @TypedColumn(name="bond_fake_iface", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
92 Column<GenericTableSchema, Set<Boolean>> getBondFakeInterfaceColumn();
93 @TypedColumn(name="bond_fake_iface", method=MethodType.SETDATA, fromVersion="1.0.0")
94 void setBondFakeInterface(Set<Boolean> bondFakeInterface);
96 @TypedColumn(name="fake_bridge", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
97 Column<GenericTableSchema, Set<Boolean>> getFakeBridgeColumn();
98 @TypedColumn(name="fake_bridge", method=MethodType.SETDATA, fromVersion="1.0.0")
99 void setFakeBridge(Set<Boolean> fakeBridge);
101 @TypedColumn(name="status", method=MethodType.GETCOLUMN, fromVersion="6.2.0")
102 Column<GenericTableSchema, Map<String, String>> getStatusColumn();
103 @TypedColumn(name="status", method=MethodType.SETDATA, fromVersion="6.2.0")
104 void setStatus(Map<String, String> status);
106 @TypedColumn(name="statistics", method=MethodType.GETCOLUMN, fromVersion="6.3.0")
107 Column<GenericTableSchema, Map<String, Long>> getStatisticsColumn();
108 @TypedColumn(name="statistics", method=MethodType.SETDATA)
109 void setStatistics(Map<String, Long> statistics);
111 @TypedColumn(name="other_config", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
112 Column<GenericTableSchema, Map<String, String>> getOtherConfigColumn();
113 @TypedColumn(name="other_config", method=MethodType.SETDATA, fromVersion="1.0.0")
114 void setOtherConfig(Map<String, String> otherConfig);
116 @TypedColumn(name="external_ids", method=MethodType.GETCOLUMN, fromVersion="1.0.0")
117 Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn();
118 @TypedColumn(name="external_ids", method=MethodType.SETDATA, fromVersion="1.0.0")
119 void setExternalIds(Map<String, String> externalIds);