-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.py
More file actions
53 lines (40 loc) · 1.27 KB
/
plugin.py
File metadata and controls
53 lines (40 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
from neutron import neutron_plugin_base_v2
class MyPlugin(neutron_plugin_base_v2.NeutronPluginBaseV2):
def __init__(self):
pass
def create_network(self,context,network):
return network
def update_network(self,context,id,network):
return network
def get_network(self,context,id,fields=None):
network = { }
return network
def get_networks(self,context,filters=None,fields=None):
network = { }
return network
def delete_network(self,context,id):
return id
def create_port(self,context,port):
return port
def update_port(self,context,id,port):
return port
def get_port(self,context,id,fields=None):
port = {}
return port
def get_ports(self,context,filters=None,fields=None):
port = {}
return port
def delete_port(self,context,id):
return id
def create_subnet(self,context,subnet):
return subnet
def update_subnet(self,context,id,subnet):
return subnet
def get_subnet(self,context,id,fields=None):
subnet={}
return subnet
def get_subnets(self,context,filters=None,fields=None):
subnet={}
return subnet
def delete_subnet(self,context,id):
return id