Add support for Controller.type
[ovsdb.git] / schemas / openvswitch / src / main / java / org / opendaylight / ovsdb / schema / openvswitch / Controller.java
1 /*
2  * Copyright (c) 2013, 2015 Red Hat, Inc. and others. All rights reserved.
3  *
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
7  */
8
9 package org.opendaylight.ovsdb.schema.openvswitch;
10
11 import java.util.Map;
12 import java.util.Set;
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;
19
20 /**
21  * This class is a typed interface to the Controller Table.
22  */
23
24 @TypedTable(name = "Controller", database = "Open_vSwitch", fromVersion = "1.0.0")
25 public interface Controller extends TypedBaseTable<GenericTableSchema> {
26
27     @TypedColumn(name = "type", method = MethodType.GETCOLUMN, fromVersion = "8.0.0")
28     Column<GenericTableSchema, Set<String>> getTypeColumn();
29
30     @TypedColumn(name = "type", method = MethodType.SETDATA, fromVersion = "8.0.0")
31     void setType(Set<String> type);
32
33     @TypedColumn(name = "target", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
34     Column<GenericTableSchema, String> getTargetColumn();
35
36     @TypedColumn(name = "target", method = MethodType.SETDATA, fromVersion = "1.0.0")
37     void setTarget(String target);
38
39     @TypedColumn(name = "controller_burst_limit", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
40     Column<GenericTableSchema, Long> getBurstLimitColumn();
41
42     @TypedColumn(name = "controller_burst_limit", method = MethodType.SETDATA, fromVersion = "1.0.0")
43     void setBurstLimit(Long burstLimit);
44
45     @TypedColumn(name = "controller_rate_limit", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
46     Column<GenericTableSchema, Long> getRateLimitColumn();
47
48     @TypedColumn(name = "controller_rate_limit", method = MethodType.SETDATA, fromVersion = "1.0.0")
49     void setRateLimit(Long rateLimit);
50
51     @TypedColumn(name = "connection_mode", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
52     Column<GenericTableSchema, Set<String>> getConnectionModeColumn();
53
54     @TypedColumn(name = "connection_mode", method = MethodType.SETDATA, fromVersion = "1.0.0")
55     void setConnectionMode(Set<String> connectionMode);
56
57     @TypedColumn(name = "enable_async_messages", method = MethodType.GETCOLUMN, fromVersion = "6.7.0")
58     Column<GenericTableSchema, Set<Boolean>> getEnableAsyncMessagesColumn();
59
60     @TypedColumn(name = "enable_async_messages", method = MethodType.SETDATA, fromVersion = "6.7.0")
61     void setEnableAsyncMessages(Set<Boolean> enableAsyncMessages);
62
63     @TypedColumn(name = "external_ids", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
64     Column<GenericTableSchema, Map<String, String>> getExternalIdsColumn();
65
66     @TypedColumn(name = "external_ids", method = MethodType.SETDATA, fromVersion = "1.0.0")
67     void setExternalIds(Map<String, String> externalIds);
68
69     @TypedColumn(name = "local_netmask", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
70     Column<GenericTableSchema, Set<String>> getLocalNetmaskColumn();
71
72     @TypedColumn(name = "local_netmask", method = MethodType.SETDATA, fromVersion = "1.0.0")
73     void setLocalNetmask(Set<String> localNetmask);
74
75     @TypedColumn(name = "local_gateway", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
76     Column<GenericTableSchema, Set<String>> getLocalGatewayColumn();
77
78     @TypedColumn(name = "local_gateway", method = MethodType.SETDATA, fromVersion = "1.0.0")
79     void setLocalGateway(Set<String> localGateway);
80
81     @TypedColumn(name = "status", method = MethodType.GETCOLUMN, fromVersion = "1.1.0")
82     Column<GenericTableSchema, Map<String, String>> getStatusColumn();
83
84     @TypedColumn(name = "status", method = MethodType.SETDATA, fromVersion = "1.1.0")
85     void setStatus(Map<String, String> status);
86
87     @TypedColumn(name = "role", method = MethodType.GETCOLUMN, fromVersion = "1.1.0")
88     Column<GenericTableSchema, Set<String>> getRoleColumn();
89
90     @TypedColumn(name = "role", method = MethodType.SETDATA, fromVersion = "1.1.0")
91     void setRole(Set<String> role);
92
93     @TypedColumn(name = "inactivity_probe", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
94     Column<GenericTableSchema, Set<Long>> getInactivityProbeColumn();
95
96     @TypedColumn(name = "inactivity_probe", method = MethodType.SETDATA, fromVersion = "1.0.0")
97     void setInactivityProbe(Set<Long> inactivityProbe);
98
99     @TypedColumn(name = "is_connected", method = MethodType.GETCOLUMN, fromVersion = "1.1.0")
100     Column<GenericTableSchema, Boolean> getIsConnectedColumn();
101
102     @TypedColumn(name = "is_connected", method = MethodType.SETDATA, fromVersion = "1.1.0")
103     void setIsConnected(Boolean isConnected);
104
105     @TypedColumn(name = "other_config", method = MethodType.GETCOLUMN, fromVersion = "6.8.0")
106     Column<GenericTableSchema, Map<String, String>> getOtherConfigColumn();
107
108     @TypedColumn(name = "other_config", method = MethodType.SETDATA, fromVersion = "6.8.0")
109     void setOtherConfig(Map<String, String> otherConfig);
110
111     @TypedColumn(name = "max_backoff", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
112     Column<GenericTableSchema, Set<Long>> getMaxBackoffColumn();
113
114     @TypedColumn(name = "max_backoff", method = MethodType.SETDATA, fromVersion = "1.0.0")
115     void setMaxBackoff(Set<Long> maxBackoff);
116
117     @TypedColumn(name = "local_ip", method = MethodType.GETCOLUMN, fromVersion = "1.0.0")
118     Column<GenericTableSchema, Set<String>> getLocalIpColumn();
119
120     @TypedColumn(name = "local_ip", method = MethodType.SETDATA, fromVersion = "1.0.0")
121     void setLocalIp(Set<String> localIp);
122
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();
126
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);
130
131     @TypedColumn(name = "discover_accept_regex", method = MethodType.GETCOLUMN,
132             fromVersion = "1.0.0", untilVersion = "3.0.0")
133     Column<GenericTableSchema, Set<String>> getDiscoverAcceptRegexColumn();
134
135     @TypedColumn(name = "discover_accept_regex", method = MethodType.SETDATA,
136             fromVersion = "1.0.0", untilVersion = "3.0.0")
137     void setDiscoverAcceptRegex(Set<String> discoverAcceptRegex);
138 }