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
1=== modified file 'quantum/plugins/SamplePlugin.py'
2--- quantum/plugins/SamplePlugin.py 2011-08-22 23:57:33 +0000
3+++ quantum/plugins/SamplePlugin.py 2011-09-01 16:16:24 +0000
4@@ -125,105 +125,6 @@
5 print("method_to_support_foxnsox_extension() called\n")
6
7
8-class DummyDataPlugin(object):
9-
10- """
11- DummyDataPlugin is a demo plugin that provides
12- hard-coded data structures to aid in quantum
13- client/cli development
14- """
15-
16- def get_all_networks(self, tenant_id):
17- """
18- Returns a dictionary containing all
19- <network_uuid, network_name> for
20- the specified tenant.
21- """
22- nets = {"001": "lNet1", "002": "lNet2", "003": "lNet3"}
23- print("get_all_networks() called\n")
24- return nets
25-
26- def create_network(self, tenant_id, net_name):
27- """
28- Creates a new Virtual Network, and assigns it
29- a symbolic name.
30- """
31- print("create_network() called\n")
32- # return network_id of the created network
33- return 101
34-
35- def delete_network(self, tenant_id, net_id):
36- """
37- Deletes the network with the specified network identifier
38- belonging to the specified tenant.
39- """
40- print("delete_network() called\n")
41-
42- def get_network_details(self, tenant_id, net_id):
43- """
44- retrieved a list of all the remote vifs that
45- are attached to the network
46- """
47- vifs_on_net = ["/tenant1/networks/net_id/portid/vif2.0"]
48- return vifs_on_net
49-
50- def rename_network(self, tenant_id, net_id, new_name):
51- """
52- Updates the symbolic name belonging to a particular
53- Virtual Network.
54- """
55- print("rename_network() called\n")
56-
57- def get_all_ports(self, tenant_id, net_id):
58- """
59- Retrieves all port identifiers belonging to the
60- specified Virtual Network.
61- """
62- print("get_all_ports() called\n")
63- port_ids_on_net = ["2", "3", "4"]
64- return port_ids_on_net
65-
66- def create_port(self, tenant_id, net_id):
67- """
68- Creates a port on the specified Virtual Network.
69- """
70- print("create_port() called\n")
71- #return the port id
72- return 201
73-
74- def delete_port(self, tenant_id, net_id, port_id):
75- """
76- Deletes a port on a specified Virtual Network,
77- if the port contains a remote interface attachment,
78- the remote interface is first un-plugged and then the port
79- is deleted.
80- """
81- print("delete_port() called\n")
82-
83- def get_port_details(self, tenant_id, net_id, port_id):
84- """
85- This method allows the user to retrieve a remote interface
86- that is attached to this particular port.
87- """
88- print("get_port_details() called\n")
89- #returns the remote interface UUID
90- return "/tenant1/networks/net_id/portid/vif2.1"
91-
92- def plug_interface(self, tenant_id, net_id, port_id, remote_interface_id):
93- """
94- Attaches a remote interface to the specified port on the
95- specified Virtual Network.
96- """
97- print("plug_interface() called\n")
98-
99- def unplug_interface(self, tenant_id, net_id, port_id):
100- """
101- Detaches a remote interface from the specified port on the
102- specified Virtual Network.
103- """
104- print("unplug_interface() called\n")
105-
106-
107 class FakePlugin(object):
108 """
109 FakePlugin is a demo plugin that provides

Subscribers

People subscribed via source and target branches