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;
13 import org.opendaylight.ovsdb.lib.notation.Column;
14 import org.opendaylight.ovsdb.lib.schema.GenericTableSchema;
15 import org.opendaylight.ovsdb.lib.schema.typed.MethodType;
16 import org.opendaylight.ovsdb.lib.schema.typed.TypedBaseTable;
17 import org.opendaylight.ovsdb.lib.schema.typed.TypedColumn;
18 import org.opendaylight.ovsdb.lib.schema.typed.TypedTable;
21 * This class is a typed interface to the Controller Table.
24 @TypedTable(name = "Controller", database = "Open_vSwitch", fromVersion = "1.0.0")
25 public interface Controller extends TypedBaseTable<GenericTableSchema> {
27 @TypedColumn(name = "type", method = MethodType.GETCOLUMN, fromVersion = "8.0.0")
28 Column<GenericTableSchema, Set<String>> getTypeColumn();
30 @TypedColumn(name = "type", method = MethodType.SETDATA, fromVersion = "8.0.0")
31 void setType(Set<String> type);
33 @TypedColumn(name = "target", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
34 Column<GenericTableSchema, String> getTargetColumn();
36 @TypedColumn(name = "target", method = MethodType.SETDATA, fromVersion = "1.0.0")
37 void setTarget(String target);
39 @TypedColumn(name = "controller_burst_limit", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
40 Column<GenericTableSchema, Long> getBurstLimitColumn();
42 @TypedColumn(name = "controller_burst_limit", method = MethodType.SETDATA, fromVersion = "1.0.0")
43 void setBurstLimit(Long burstLimit);
45 @TypedColumn(name = "controller_rate_limit", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
46 Column<GenericTableSchema, Long> getRateLimitColumn();
48 @TypedColumn(name = "controller_rate_limit", method = MethodType.SETDATA, fromVersion = "1.0.0")
49 void setRateLimit(Long rateLimit);
51 @TypedColumn(name = "connection_mode", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
52 Column<GenericTableSchema, Set<String>> getConnectionModeColumn();
54 @TypedColumn(name = "connection_mode", method = MethodType.SETDATA, fromVersion = "1.0.0")
55 void setConnectionMode(Set<String> connectionMode);
57 @TypedColumn(name = "enable_async_messages", method = MethodType.GETCOLUMN, fromVersion = "6.7.0")
58 Column<GenericTableSchema, Set<Boolean>> getEnableAsyncMessagesColumn();
60 @TypedColumn(name = "enable_async_messages", method = MethodType.SETDATA, fromVersion = "6.7.0")
61 void setEnableAsyncMessages(Set<Boolean> enableAsyncMessages);
63 @TypedColumn(name = "external_ids", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
64 Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn();
66 @TypedColumn(name = "external_ids", method = MethodType.SETDATA, fromVersion = "1.0.0")
67 void setExternalIds(Map<String, String> externalIds);
69 @TypedColumn(name = "local_netmask", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
70 Column<GenericTableSchema, Set<String>> getLocalNetmaskColumn();
72 @TypedColumn(name = "local_netmask", method = MethodType.SETDATA, fromVersion = "1.0.0")
73 void setLocalNetmask(Set<String> localNetmask);
75 @TypedColumn(name = "local_gateway", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
76 Column<GenericTableSchema, Set<String>> getLocalGatewayColumn();
78 @TypedColumn(name = "local_gateway", method = MethodType.SETDATA, fromVersion = "1.0.0")
79 void setLocalGateway(Set<String> localGateway);
81 @TypedColumn(name = "status", method = MethodType.GETCOLUMN, fromVersion = "1.1.0")
82 Column<GenericTableSchema, Map<String, String>> getStatusColumn();
84 @TypedColumn(name = "status", method = MethodType.SETDATA, fromVersion = "1.1.0")
85 void setStatus(Map<String, String> status);
87 @TypedColumn(name = "role", method = MethodType.GETCOLUMN, fromVersion = "1.1.0")
88 Column<GenericTableSchema, Set<String>> getRoleColumn();
90 @TypedColumn(name = "role", method = MethodType.SETDATA, fromVersion = "1.1.0")
91 void setRole(Set<String> role);
93 @TypedColumn(name = "inactivity_probe", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
94 Column<GenericTableSchema, Set<Long>> getInactivityProbeColumn();
96 @TypedColumn(name = "inactivity_probe", method = MethodType.SETDATA, fromVersion = "1.0.0")
97 void setInactivityProbe(Set<Long> inactivityProbe);
99 @TypedColumn(name = "is_connected", method = MethodType.GETCOLUMN, fromVersion = "1.1.0")
100 Column<GenericTableSchema, Boolean> getIsConnectedColumn();
102 @TypedColumn(name = "is_connected", method = MethodType.SETDATA, fromVersion = "1.1.0")
103 void setIsConnected(Boolean isConnected);
105 @TypedColumn(name = "other_config", method = MethodType.GETCOLUMN, fromVersion = "6.8.0")
106 Column<GenericTableSchema, Map<String, String>> getOtherConfigColumn();
108 @TypedColumn(name = "other_config", method = MethodType.SETDATA, fromVersion = "6.8.0")
109 void setOtherConfig(Map<String, String> otherConfig);
111 @TypedColumn(name = "max_backoff", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
112 Column<GenericTableSchema, Set<Long>> getMaxBackoffColumn();
114 @TypedColumn(name = "max_backoff", method = MethodType.SETDATA, fromVersion = "1.0.0")
115 void setMaxBackoff(Set<Long> maxBackoff);
117 @TypedColumn(name = "local_ip", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
118 Column<GenericTableSchema, Set<String>> getLocalIpColumn();
120 @TypedColumn(name = "local_ip", method = MethodType.SETDATA, fromVersion = "1.0.0")
121 void setLocalIp(Set<String> localIp);
123 @TypedColumn(name = "discover_update_resolv_conf", method = MethodType.GETCOLUMN,
124 fromVersion = "1.0.0", untilVersion = "3.0.0")
125 Column<GenericTableSchema, Set<String>> getDiscoverUpdateResolvConfColumn();
127 @TypedColumn(name = "discover_update_resolv_conf", method = MethodType.SETDATA,
128 fromVersion = "1.0.0", untilVersion = "3.0.0")
129 void setDiscoverUpdateResolvConf(Set<String> discoverUpdateResolvConf);
131 @TypedColumn(name = "discover_accept_regex", method = MethodType.GETCOLUMN,
132 fromVersion = "1.0.0", untilVersion = "3.0.0")
133 Column<GenericTableSchema, Set<String>> getDiscoverAcceptRegexColumn();
135 @TypedColumn(name = "discover_accept_regex", method = MethodType.SETDATA,
136 fromVersion = "1.0.0", untilVersion = "3.0.0")
137 void setDiscoverAcceptRegex(Set<String> discoverAcceptRegex);