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