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