blob: 13958ee63b44746dab191ef4861c127d9bea1ed2 [file] [log] [blame]
Oleksiy Petrenko5bfb8bc2018-08-23 15:08:17 +03001from neutronv2.common import send
2
3try:
4 from urllib.parse import urlencode
5except ImportError:
6 from urllib import urlencode
7
8
9@send('get')
10def subnet_list(**kwargs):
11 url = '/subnets?{}'.format(urlencode(kwargs))
12 return url, {}
13
14
15@send('get')
16def subnetpool_list(**kwargs):
17 url = '/subnetpools?{}'.format(urlencode(kwargs))
18 return url, {}
19
20
21@send('get')
22def agent_list(**kwargs):
23 url = '/agents?{}'.format(urlencode(kwargs))
24 return url, {}
25
26
27@send('get')
28def network_list(**kwargs):
29 url = '/networks?{}'.format(urlencode(kwargs))
30 return url, {}
31
32
33@send('get')
34def router_list(**kwargs):
35 url = '/routers?{}'.format(urlencode(kwargs))
36 return url, {}
Ann Taraday8204f722018-12-12 16:38:57 +040037
38
39@send('get')
40def port_list(**kwargs):
41 url = '/ports?{}'.format(urlencode(kwargs))
Vyacheslav Struk3f529d42019-06-13 13:37:25 +030042 return url, {}
43
44
45@send('get')
46def rbac_policies_list(**kwargs):
47 url = '/rbac-policies?{}'.format(urlencode(kwargs))
48 return url, {}