Merge lp:~salvatore-orlando/neutron/bug838922 into lp:neutron/diablo

Proposed by Salvatore Orlando
Status: Merged
Merged at revision: 63
Proposed branch: lp:~salvatore-orlando/neutron/bug838922
Merge into: lp:neutron/diablo
Diff against target: 109 lines (+0/-99)
1 file modified
quantum/plugins/SamplePlugin.py (+0/-99)
To merge this branch: bzr merge lp:~salvatore-orlando/neutron/bug838922
Reviewer Review Type Date Requested Status
Brad Hall (community) Approve
Somik Behera netstack-core Approve
Review via email: mp+73688@code.launchpad.net

Description of the change

Removing DummyDataPlugin from quantum/plugings/SamplePlugin.py as it is not anymore used.

To post a comment you must log in.
Revision history for this message
Somik Behera (somikbehera) wrote :

looks good to me.

review: Approve (netstack-core)
Revision history for this message
Brad Hall (bgh) wrote :

Looks good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'quantum/plugins/SamplePlugin.py'
--- quantum/plugins/SamplePlugin.py 2011-08-22 23:57:33 +0000
+++ quantum/plugins/SamplePlugin.py 2011-09-01 16:16:24 +0000
@@ -125,105 +125,6 @@
125 print("method_to_support_foxnsox_extension() called\n")125 print("method_to_support_foxnsox_extension() called\n")
126126
127127
128class DummyDataPlugin(object):
129
130 """
131 DummyDataPlugin is a demo plugin that provides
132 hard-coded data structures to aid in quantum
133 client/cli development
134 """
135
136 def get_all_networks(self, tenant_id):
137 """
138 Returns a dictionary containing all
139 <network_uuid, network_name> for
140 the specified tenant.
141 """
142 nets = {"001": "lNet1", "002": "lNet2", "003": "lNet3"}
143 print("get_all_networks() called\n")
144 return nets
145
146 def create_network(self, tenant_id, net_name):
147 """
148 Creates a new Virtual Network, and assigns it
149 a symbolic name.
150 """
151 print("create_network() called\n")
152 # return network_id of the created network
153 return 101
154
155 def delete_network(self, tenant_id, net_id):
156 """
157 Deletes the network with the specified network identifier
158 belonging to the specified tenant.
159 """
160 print("delete_network() called\n")
161
162 def get_network_details(self, tenant_id, net_id):
163 """
164 retrieved a list of all the remote vifs that
165 are attached to the network
166 """
167 vifs_on_net = ["/tenant1/networks/net_id/portid/vif2.0"]
168 return vifs_on_net
169
170 def rename_network(self, tenant_id, net_id, new_name):
171 """
172 Updates the symbolic name belonging to a particular
173 Virtual Network.
174 """
175 print("rename_network() called\n")
176
177 def get_all_ports(self, tenant_id, net_id):
178 """
179 Retrieves all port identifiers belonging to the
180 specified Virtual Network.
181 """
182 print("get_all_ports() called\n")
183 port_ids_on_net = ["2", "3", "4"]
184 return port_ids_on_net
185
186 def create_port(self, tenant_id, net_id):
187 """
188 Creates a port on the specified Virtual Network.
189 """
190 print("create_port() called\n")
191 #return the port id
192 return 201
193
194 def delete_port(self, tenant_id, net_id, port_id):
195 """
196 Deletes a port on a specified Virtual Network,
197 if the port contains a remote interface attachment,
198 the remote interface is first un-plugged and then the port
199 is deleted.
200 """
201 print("delete_port() called\n")
202
203 def get_port_details(self, tenant_id, net_id, port_id):
204 """
205 This method allows the user to retrieve a remote interface
206 that is attached to this particular port.
207 """
208 print("get_port_details() called\n")
209 #returns the remote interface UUID
210 return "/tenant1/networks/net_id/portid/vif2.1"
211
212 def plug_interface(self, tenant_id, net_id, port_id, remote_interface_id):
213 """
214 Attaches a remote interface to the specified port on the
215 specified Virtual Network.
216 """
217 print("plug_interface() called\n")
218
219 def unplug_interface(self, tenant_id, net_id, port_id):
220 """
221 Detaches a remote interface from the specified port on the
222 specified Virtual Network.
223 """
224 print("unplug_interface() called\n")
225
226
227class FakePlugin(object):128class FakePlugin(object):
228 """129 """
229 FakePlugin is a demo plugin that provides130 FakePlugin is a demo plugin that provides

Subscribers

People subscribed via source and target branches